sqllogictest
Artifact Content
Not logged in

Artifact d6d7d1be90536415029f526418f7a7ee8e06f78c:


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 # aggregate syntax: 
query I rowsort label-0
SELECT + MAX( ALL + col0 ) FROM tab2 AS cor0
----
75

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

query II rowsort
SELECT col2 AS col1, + col0 + col2 * - 21 AS col2 FROM tab0 AS cor0
----
10
-123
47
-972
99
-1982

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3
SELECT ALL - 15 * CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-3
SELECT ALL - 15 * CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-4
SELECT ALL col2 DIV 22 DIV + col1 * + col0 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4
SELECT ALL col2 / 22 / + col1 * + col0 col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + col1 * - 66, - 63 FROM tab1 WHERE NOT - 56 + - 7 / col0 * - col2 NOT IN ( + - col2 )
----

skipif mysql # not compatible
query II rowsort label-5
SELECT DISTINCT CAST ( NULL AS REAL ) + + col1 * - 66, - 63 FROM tab1 WHERE NOT - 56 + - 7 / col0 * - col2 NOT IN ( + - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6
SELECT - MAX( DISTINCT col2 ) DIV + 5 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-6
SELECT - MAX ( DISTINCT col2 ) / + 5 FROM tab1
----
-19

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9
SELECT * FROM tab1 WHERE NOT + 83 BETWEEN ( col0 + col2 + - + col1 * + col0 + col2 + - col1 - + CAST( NULL AS SIGNED ) * 19 ) AND col0
----
51
14
96

skipif mysql # not compatible
query III rowsort label-9
SELECT * FROM tab1 WHERE NOT + 83 BETWEEN ( col0 + col2 + - + col1 * + col0 + col2 + - col1 - + CAST ( NULL AS INTEGER ) * 19 ) AND col0
----
51
14
96

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT + COUNT( * ) * - 99 + - MIN( - - col1 ) FROM tab1 AS cor0
----
-302

skipif mysql # not compatible
query I rowsort label-12
SELECT + COUNT ( * ) * - 99 + - MIN ( - - col1 ) FROM tab1 AS cor0
----
-302

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT + 11 + - MAX( - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 * + 2 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-13
SELECT + 11 + - MAX ( - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 * + 2 >= NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-14
SELECT - col0 AS col1 FROM tab1 cor0 WHERE ( NOT - col2 + + - col0 * + CAST ( + 36 AS INTEGER ) IS NULL )
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT MAX( 51 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-15
SELECT MAX ( 51 ) FROM tab2
----
51

query II rowsort
SELECT DISTINCT 48, + col2 FROM tab0
----
48
10
48
47
48
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-17
SELECT * FROM tab1 WHERE + col2 NOT BETWEEN NULL AND + CAST( NULL AS SIGNED ) + + 46 + + ( + + col0 )
----

skipif mysql # not compatible
query III rowsort label-17
SELECT * FROM tab1 WHERE + col2 NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER ) + + 46 + + ( + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT DISTINCT ( - - 29 ) + COUNT( * ) FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-18
SELECT DISTINCT ( - - 29 ) + COUNT ( * ) FROM tab2
----
32

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

onlyif mysql # aggregate syntax: 
query II rowsort label-20
SELECT DISTINCT + 33, COUNT( * ) * + 13 col2 FROM tab1 cor0
----
33
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-20
SELECT DISTINCT + 33, COUNT ( * ) * + 13 col2 FROM tab1 cor0
----
33
39

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

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

query I rowsort
SELECT ALL 62 * - + col1 AS col2 FROM tab2 AS cor0
----
-3162
-4154
-4774

query I rowsort
SELECT + 54 + + col2 * col2 FROM tab1
----
3535
4678
9270

query I rowsort
SELECT ALL + 49 + + - col2 FROM tab1
----
-10
-19
-47

query I rowsort
SELECT ALL - 66 + + - col0 + 20 + - col2 FROM tab2
----
-115
-150
-179

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

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT DISTINCT COUNT( * ) + - - 24 AS col1 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-28
SELECT DISTINCT COUNT ( * ) + - - 24 AS col1 FROM tab2
----
27

query I rowsort
SELECT ALL + col0 + - + 11 FROM tab2
----
35
53
64

query I rowsort
SELECT DISTINCT - 23 * col2 FROM tab0 WHERE - col1 <> NULL
----

query I rowsort
SELECT ( - + col2 ) * 57 * col0 * - col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
4314330
53094987
602775

query I rowsort
SELECT DISTINCT - + ( - 63 ) - - - col1 FROM tab2 AS cor0
----
-14
-4
12

query I rowsort
SELECT - - col2 FROM tab0 AS cor0 WHERE NULL = - 27 * - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-34
SELECT DISTINCT - col0 DIV + - 65 - 87 FROM tab2 AS cor0
----
-86
-87

skipif mysql # not compatible
query I rowsort label-34
SELECT DISTINCT - col0 / + - 65 - 87 FROM tab2 AS cor0
----
-86
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-35
SELECT ALL - + COUNT( col1 ) - + - 79 * - COUNT( * ) DIV - COUNT( + - col1 ) FROM tab1 cor0
----
76

skipif mysql # not compatible
query I rowsort label-35
SELECT ALL - + COUNT ( col1 ) - + - 79 * - COUNT ( * ) / - COUNT ( + - col1 ) FROM tab1 cor0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT ALL COUNT( * ) - + 24 * - - MIN( DISTINCT - - 31 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-735

skipif mysql # not compatible
query I rowsort label-36
SELECT ALL COUNT ( * ) - + 24 * - - MIN ( DISTINCT - - 31 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-735

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-40
SELECT COUNT ( DISTINCT - col2 ) col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT col1 * + 60 AS col1 FROM tab0 AS cor0
----
1260
4860
60

onlyif mysql # DIV for integer division: 
query I rowsort label-42
SELECT DISTINCT 24 DIV - col1 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-42
SELECT DISTINCT 24 / - col1 AS col2 FROM tab2
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-44
SELECT DISTINCT 90 DIV 82 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-44
SELECT DISTINCT 90 / 82 FROM tab2
----
1

query III rowsort
SELECT col1, col1, + col2 FROM tab1
----
9 values hashing to 011ac9924fd92ecf353dfcc8fcdc43f3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, ( + - 85 ) FROM tab0
----
1
-85
21
-85
81
-85

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

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

query II rowsort
SELECT 33, + col1 AS col0 FROM tab0
----
33
1
33
21
33
81

query I rowsort
SELECT - + col2 FROM tab0 WHERE NOT 29 IS NULL
----
-10
-47
-99

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

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

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

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

query I rowsort
SELECT + col2 + ( - 99 ) AS col2 FROM tab0 AS cor0
----
-52
-89
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-54
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * 39 * + 80 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-54
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * 39 * + 80 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

query I rowsort
SELECT ALL + 74 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL BETWEEN ( NULL ) AND - 89
----

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

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

query I rowsort
SELECT col1 * ( - - col1 ) AS col0 FROM tab0 cor0
----
1
441
6561

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 / - ( + col0 ) / + col0 + 71 * + col2 + + col2 IS NOT NULL
----

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

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

query I rowsort
SELECT col2 - + - 69 AS col1 FROM tab0
----
116
168
79

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-64
SELECT ALL - COUNT ( * ) - + 0 col2 FROM tab2
----
-3

query I rowsort
SELECT ALL 16 + - 66 * + col1 + 35 AS col1 FROM tab1
----
-279
-3051
-873

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

skipif mysql # not compatible
query II rowsort label-66
SELECT DISTINCT + COUNT ( * ) - - - ( + 71 ) AS col0, COUNT ( * ) FROM tab1
----
-68
3

query I rowsort
SELECT + 83 + - + col0 AS col2 FROM tab0 AS cor0
----
-14
-4
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-68
SELECT - 12 * + - SUM( CAST( + - col1 AS SIGNED ) ) col2 FROM tab0 WHERE NOT col0 = col1
----
-1236

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-68
SELECT - 12 * + - SUM ( CAST ( + - col1 AS INTEGER ) ) col2 FROM tab0 WHERE NOT col0 = col1
----
-1236

query I rowsort
SELECT ALL col1 * + col2 + col0 + - - col2 - 89 AS col1 FROM tab1 AS cor0
----
1402
3266
350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-70
SELECT - COUNT( * ) DIV 90 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-70
SELECT - COUNT ( * ) / 90 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-71
SELECT DISTINCT + - MAX( ALL CAST( NULL AS SIGNED ) ) * + - 69 col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-71
SELECT DISTINCT + - MAX ( ALL CAST ( NULL AS INTEGER ) ) * + - 69 col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 * 51 * - col2 * + 73 FROM tab0 AS cor0
----
-36489123
-372300
-8224107

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-75
SELECT ALL + col1 DIV col1 * col2 * - 9 AS col2 FROM tab1
----
-531
-612
-864

skipif mysql # not compatible
query I rowsort label-75
SELECT ALL + col1 / col1 * col2 * - 9 AS col2 FROM tab1
----
-531
-612
-864

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * ( + + col1 ) * + 87 * - - col1 + 89 + 21 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-78
SELECT ALL * FROM tab1 WHERE NOT + + 12 * col0 + + - CAST( NULL AS SIGNED ) NOT BETWEEN + + col2 * 49 / + col2 * - 28 AND NULL
----

skipif mysql # not compatible
query III rowsort label-78
SELECT ALL * FROM tab1 WHERE NOT + + 12 * col0 + + - CAST ( NULL AS INTEGER ) NOT BETWEEN + + col2 * 49 / + col2 * - 28 AND NULL
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-81
SELECT ALL - col1 DIV 41 col2 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-81
SELECT ALL - col1 / 41 col2 FROM tab1 cor0
----
-1
0
0

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

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

query II rowsort
SELECT DISTINCT - 9, 17 + + col1 + - + ( + - 95 ) AS col0 FROM tab0 AS cor0
----
-9
113
-9
133
-9
193

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-85
SELECT + CAST( NULL AS DECIMAL ) - - 16 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-85
SELECT + CAST ( NULL AS REAL ) - - 16 AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col1 + + + col2, - col2 FROM tab0 cor0 WHERE ( NOT ( NULL IS NULL ) )
----

query II rowsort
SELECT DISTINCT + col0 AS col2, col2 * - 93 * + col0 FROM tab0 AS cor0 WHERE NOT 34 < - col0
----
15
-65565
87
-80910
97
-893079

onlyif mysql # DIV for integer division: 
query II rowsort label-88
SELECT DISTINCT col0 DIV 33 AS col1, col2 FROM tab0 AS cor0
----
0
47
2
10
2
99

skipif mysql # not compatible
query II rowsort label-88
SELECT DISTINCT col0 / 33 AS col1, col2 FROM tab0 AS cor0
----
0
47
2
10
2
99

query II rowsort
SELECT ALL col1 AS col0, + 23 * - col2 * - col0 FROM tab1 AS cor0
----
14
112608
47
142324
5
115345

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

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT ( - 35 IS NULL )
----
59
68
96

query I rowsort
SELECT 86 * + 5 * - col1 FROM tab1
----
-20210
-2150
-6020

query II rowsort
SELECT col2 * + - 18, col2 FROM tab1
----
-1062
59
-1224
68
-1728
96

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-95
SELECT MAX( 88 ) * 46 + + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
4051

skipif mysql # not compatible
query I rowsort label-95
SELECT MAX ( 88 ) * 46 + + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
4051

query I rowsort
SELECT col0 * + 87 FROM tab1
----
4437
7395
7917

query I rowsort
SELECT DISTINCT + ( - - col0 ) + - + 64 + + 77 * + 6 FROM tab1 WHERE NOT col1 / col0 + - col1 * + + col0 IS NULL
----
449
483
489

query I rowsort
SELECT col2 * 31 * + 69 * + 35 AS col0 FROM tab2
----
1721895
2994600
4342170

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

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

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-101
SELECT 36 AS col1, - COUNT( ALL col0 ) FROM tab2 AS cor0
----
36
-3

skipif mysql # not compatible
query II rowsort label-101
SELECT 36 AS col1, - COUNT ( ALL col0 ) FROM tab2 AS cor0
----
36
-3

query I rowsort
SELECT ALL col2 + + - 48 + + 13 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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

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

query I rowsort
SELECT - + 46 * - 42 AS col0 FROM tab2 AS cor0
----
1932
1932
1932

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT DISTINCT + + MIN( - col2 ) * + ( 4 ) FROM tab2 cor0
----
-232

skipif mysql # not compatible
query I rowsort label-105
SELECT DISTINCT + + MIN ( - col2 ) * + ( 4 ) FROM tab2 cor0
----
-232

query II rowsort
SELECT DISTINCT - col2, - col2 AS col0 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

query I rowsort
SELECT ALL + col1 * - + col2 + col1 + + 26 FROM tab1 AS cor0
----
-1304
-264
-3123

onlyif mysql # aggregate syntax: 
query II rowsort label-108
SELECT - + 58 col0, 16 + - + COUNT( col0 ) FROM tab2 AS cor0
----
-58
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-108
SELECT - + 58 col0, 16 + - + COUNT ( col0 ) FROM tab2 AS cor0
----
-58
13

query I rowsort
SELECT + - col1 * - + col2 FROM tab2 cor0
----
1173
3080
3886

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT DISTINCT MIN( DISTINCT - col2 ) + + COUNT( * ) FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-113
SELECT DISTINCT MIN ( DISTINCT - col2 ) + + COUNT ( * ) FROM tab1
----
-93

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 26 ) > 78 / + + ( - col2 ) + col0 + - + 50
----
15
81
47

query I rowsort
SELECT DISTINCT + col2 + - col0 * + 26 AS col0 FROM tab0
----
-2252
-2423
-343

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

query I rowsort
SELECT DISTINCT + col2 + + + ( - col2 ) * 96 FROM tab2
----
-2185
-3800
-5510

onlyif mysql # DIV for integer division: 
query II rowsort label-118
SELECT DISTINCT - 26 DIV - col1 AS col1, col2 AS col0 FROM tab0 cor0
----
0
47
1
10
26
99

skipif mysql # not compatible
query II rowsort label-118
SELECT DISTINCT - 26 / - col1 AS col1, col2 AS col0 FROM tab0 cor0
----
0
47
1
10
26
99

onlyif mysql # aggregate syntax: 
query II rowsort label-119
SELECT + 23 + + - COUNT( * ) * - + MAX( - + col2 ) AS col2, + 56 AS col2 FROM tab0 AS cor0
----
-7
56

skipif mysql # not compatible
query II rowsort label-119
SELECT + 23 + + - COUNT ( * ) * - + MAX ( - + col2 ) AS col2, + 56 AS col2 FROM tab0 AS cor0
----
-7
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-120
SELECT DISTINCT - - 64 + - col2, CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-32
14
-4
47
5
5

skipif mysql # not compatible
query II rowsort label-120
SELECT DISTINCT - - 64 + - col2, CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-32
14
-4
47
5
5

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + col2 - + 54 AS col0 FROM tab1 AS cor0
----
14
42
5

query I rowsort
SELECT ALL + + 83 AS col2 FROM tab0 cor0
----
83
83
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-128
SELECT + COUNT( * ) * SUM( + 28 ) DIV + + 78 - - - 57 AS col1 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-128
SELECT + COUNT ( * ) * SUM ( + 28 ) / + + 78 - - - 57 AS col1 FROM tab1 AS cor0
----
-54

query I rowsort
SELECT ALL - - col1 - col2 + - col2 AS col0 FROM tab2 AS cor0
----
-3
-49
5

query I rowsort
SELECT ALL 15 FROM tab0 WHERE NOT - col1 <= NULL
----

query I rowsort
SELECT 6 * - 5 AS col2 FROM tab2
----
-30
-30
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 38 * - col0 col1, - col1 * - + 11 FROM tab0
----
-3306
231
-3686
11
-570
891

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

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

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

query I rowsort
SELECT col0 * + 27 * - - col0 * + 34 AS col1 FROM tab2
----
1942488
3760128
5163750

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, - col0 col1 FROM tab1 AS cor0
----
-59
-85
-68
-91
-96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT - SUM( DISTINCT 95 ) AS col2 FROM tab0 cor0
----
-95

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

query I rowsort
SELECT ALL - col0 * - 11 AS col1 FROM tab2 AS cor0 WHERE NOT col0 < + col2
----
506
704
825

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 28 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 > - - 77 / + 60 * - col1 + + col2 / + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT - COUNT( 5 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-142
SELECT - COUNT ( 5 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 74 * + + col2 + - col0 FROM tab1 AS cor0
----
4281
4941
7053

query I rowsort
SELECT + col0 * - col1 * + - col1 + - 93 * + col0 AS col1 FROM tab1 AS cor0
----
-5780
192556
5253

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-147
SELECT DISTINCT SUM( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE 18 = - - col0 * + 63
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-151
SELECT DISTINCT CAST( + 78 AS SIGNED ) + + + col1 AS col0, col0 AS col1 FROM tab2
----
129
46
145
75
155
64

skipif mysql # not compatible
query II rowsort label-151
SELECT DISTINCT CAST ( + 78 AS INTEGER ) + + + col1 AS col0, col0 AS col1 FROM tab2
----
129
46
145
75
155
64

query I rowsort
SELECT + 62 + ( + 33 ) AS col2 FROM tab1
----
95
95
95

query I rowsort
SELECT + 28 + + 91 FROM tab2
----
119
119
119

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT ALL 68 + + - COUNT( * ) AS col1 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL 68 + + - COUNT ( * ) AS col1 FROM tab1
----
65

query I rowsort
SELECT 46 + + col0 AS col0 FROM tab2
----
110
121
92

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

skipif mysql # not compatible
query I rowsort label-156
SELECT CAST ( - ( + 41 ) AS INTEGER ) FROM tab0
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT + COUNT( 98 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-157
SELECT + COUNT ( 98 ) AS col1 FROM tab1
----
3

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-159
SELECT CAST ( NULL AS INTEGER ) - 90 * - 46 + - - 34, col2 col1 FROM tab0
----
NULL
10
NULL
47
NULL
99

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT DISTINCT + col1 - + col2 + - col0 * col0 + - - 69 + - + 55 AS col2 FROM tab2 cor0
----
-2074
-4045
-5602

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

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

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

query I rowsort
SELECT 76 * + - col2 AS col0 FROM tab0
----
-3572
-7524
-760

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT + MAX( ALL + + 29 ) * - 75 * + COUNT( * ) AS col0 FROM tab2
----
-6525

skipif mysql # not compatible
query I rowsort label-168
SELECT + MAX ( ALL + + 29 ) * - 75 * + COUNT ( * ) AS col0 FROM tab2
----
-6525

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

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

skipif mysql # not compatible
query I rowsort label-170
SELECT - CAST ( - + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT col2 * 99 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
4653
9801
990

query II rowsort
SELECT DISTINCT + col2 AS col1, 69 FROM tab0 cor0
----
10
69
47
69
99
69

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 * + 5 <= NULL
----

query II rowsort
SELECT col1, - 57 - col1 * - 89 FROM tab0
----
1
32
21
1812
81
7152

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT MIN( - col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-176
SELECT MIN ( - col0 ) FROM tab2
----
-75

query II rowsort
SELECT col1 * + col1 * - + ( 68 ) + - + 91 + + col0, col1 FROM tab1
----
-13368
14
-150212
47
-1706
5

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT + COUNT( * ) * + ( + + 86 ) FROM tab2 WHERE NOT col2 IS NULL
----
258

skipif mysql # not compatible
query I rowsort label-178
SELECT + COUNT ( * ) * + ( + + 86 ) FROM tab2 WHERE NOT col2 IS NULL
----
258

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

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

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

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 + + - col0 IS NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-183
SELECT + + 27 DIV + - col1 AS col2 FROM tab1 cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-183
SELECT + + 27 / + - col1 AS col2 FROM tab1 cor0
----
-1
-5
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, col0 col2 FROM tab0 AS cor0
----
10
87
47
15
99
97

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-186
SELECT DISTINCT - - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-186
SELECT DISTINCT - - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT SUM( + + 41 ) FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-187
SELECT SUM ( + + 41 ) FROM tab0 AS cor0
----
123

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + - col2 AS col2, col2 col0 FROM tab0 AS cor0
----
-98
99
11
10
34
47

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

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

query II rowsort
SELECT DISTINCT - col1 * - - ( + + col1 ) AS col1, ( col2 ) AS col2 FROM tab1 AS cor0
----
-196
96
-2209
68
-25
59

onlyif mysql # aggregate syntax: 
query II rowsort label-192
SELECT ALL - - 74 * - - 15 col0, - ( - COUNT( * ) ) col1 FROM tab0 AS cor0
----
1110
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-194
SELECT DISTINCT + COUNT( * ) + 95 AS col2 FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-194
SELECT DISTINCT + COUNT ( * ) + 95 AS col2 FROM tab0
----
98

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT ALL + col1 + 40 FROM tab2
----
107
117
91

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-198
SELECT + - 42 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + col2 ) * col0 + CAST( NULL AS SIGNED ) + 92 AND - col0
----

skipif mysql # not compatible
query I rowsort label-198
SELECT + - 42 + + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + col2 ) * col0 + CAST ( NULL AS INTEGER ) + 92 AND - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-199
SELECT - CAST( - MIN( + col2 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-199
SELECT - CAST ( - MIN ( + col2 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT DISTINCT 22 * col1 AS col0 FROM tab2 AS cor0
----
1122
1474
1694

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

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

query I rowsort
SELECT DISTINCT - 74 * col1 * col2 FROM tab2 cor0
----
-227920
-287564
-86802

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

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

query I rowsort
SELECT - col1 * - 92 FROM tab2
----
4692
6164
7084

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE - - col1 + - - 65 + 1 * + col0 IS NOT NULL
----
-46
-64
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT ALL - + COUNT( * ) FROM tab0 AS cor0 WHERE - 52 - + 12 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-207
SELECT ALL - + COUNT ( * ) FROM tab0 AS cor0 WHERE - 52 - + 12 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT COUNT( + 35 ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-208
SELECT COUNT ( + 35 ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-209
SELECT ALL - + CAST( + + 68 AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL - + CAST ( + + 68 AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-211
SELECT 84 * MAX( ALL + + CAST( - 11 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-924

skipif mysql # not compatible
query I rowsort label-211
SELECT 84 * MAX ( ALL + + CAST ( - 11 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-924

query I rowsort
SELECT ALL col2 FROM tab0 cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL - col2 + + 84 FROM tab0 AS cor0
----
-15
37
74

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

query I rowsort
SELECT ALL + - col2 * - 67 AS col0 FROM tab1 AS cor0
----
3953
4556
6432

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

query I rowsort
SELECT - 75 + - + col1 AS col0 FROM tab0
----
-156
-76
-96

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

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

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

query I rowsort
SELECT + 23 + + col1 FROM tab1
----
28
37
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-221
SELECT - col0 * - col2 + + CAST( + col2 AS SIGNED ) + 17 FROM tab1
----
5009
5091
6273

skipif mysql # not compatible
query I rowsort label-221
SELECT - col0 * - col2 + + CAST ( + col2 AS INTEGER ) + 17 FROM tab1
----
5009
5091
6273

query I rowsort
SELECT ALL 77 AS col1 FROM tab0 WHERE NULL NOT BETWEEN - ( + col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT DISTINCT - 47 + - + COUNT( * ) AS col0 FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-223
SELECT DISTINCT - 47 + - + COUNT ( * ) AS col0 FROM tab1
----
-50

query I rowsort
SELECT DISTINCT - col1 + + + col1 AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + col2 - + + col0 FROM tab2
----
-17
-23
-24

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-227
SELECT ALL * FROM tab2 WHERE CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-227
SELECT ALL * FROM tab2 WHERE CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT DISTINCT col2 - + col2 + + col1 - - col0 + - + ( - + col1 ) * + + col0 FROM tab1 cor0
----
4415
515
779

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-233
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) >= 11
----

skipif mysql # not compatible
query III rowsort label-233
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) >= 11
----

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

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

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

query I rowsort
SELECT ( - 34 ) FROM tab1 cor0
----
-34
-34
-34

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-238
SELECT DISTINCT 93 DIV - - 66 AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-238
SELECT DISTINCT 93 / - - 66 AS col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT ALL 81 * COUNT( * ) col0 FROM tab0
----
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-239
SELECT ALL 81 * COUNT ( * ) col0 FROM tab0
----
243

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

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT + 59 * ( - MIN( + + col0 ) ) AS col0 FROM tab0
----
-885

skipif mysql # not compatible
query I rowsort label-241
SELECT + 59 * ( - MIN ( + + col0 ) ) AS col0 FROM tab0
----
-885

query I rowsort
SELECT col1 * + 31 * col0 FROM tab1
----
13175
132587
22134

query I rowsort
SELECT col2 / - - col0 / + col0 AS col2 FROM tab1 cor0 WHERE NOT NULL = + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, col0 * - col2 - col0 FROM tab0 AS cor0
----
-10
-957
-47
-720
-99
-9700

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

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

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

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

query I rowsort
SELECT col1 FROM tab1 WHERE NOT NULL < + col2 + col2
----

query I rowsort
SELECT DISTINCT ( 57 ) AS col2 FROM tab0
----
57

query I rowsort
SELECT ALL - col2 + col2 * col2 AS col2 FROM tab2
----
1560
3306
506

query I rowsort
SELECT + col2 * 53 FROM tab0
----
2491
5247
530

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT - COUNT( * ) * - 63 AS col2 FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-251
SELECT - COUNT ( * ) * - 63 AS col2 FROM tab1
----
189

query I rowsort
SELECT DISTINCT 23 + - col2 AS col0 FROM tab2
----
-17
-35
0

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT + COUNT( * ) * 61 FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-253
SELECT + COUNT ( * ) * 61 FROM tab1
----
183

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

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

query I rowsort
SELECT 61 AS col1 FROM tab2 WHERE NOT ( ( - col0 ) ) NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT DISTINCT ( + COUNT( * ) ) + COUNT( * ) * 8 FROM tab0 WHERE - col1 = col2
----
0

skipif mysql # not compatible
query I rowsort label-256
SELECT DISTINCT ( + COUNT ( * ) ) + COUNT ( * ) * 8 FROM tab0 WHERE - col1 = col2
----
0

query I rowsort
SELECT DISTINCT ( col2 ) + + col1 AS col2 FROM tab2
----
117
125
74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT ALL + 13 + COUNT( * ) AS col0 FROM tab1 WHERE NOT ( + ( - col1 ) ) < ( col0 / col0 )
----
13

skipif mysql # not compatible
query I rowsort label-259
SELECT ALL + 13 + COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( + ( - col1 ) ) < ( col0 / col0 )
----
13

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

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

query I rowsort
SELECT ALL 48 * + col1 FROM tab2
----
2448
3216
3696

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

onlyif mysql # DIV for integer division: 
query I rowsort label-263
SELECT DISTINCT - ( 8 ) DIV - col0 col2 FROM tab0
----
0

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

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

skipif mysql # not compatible
query I rowsort label-264
SELECT DISTINCT - COUNT ( ALL - 19 ) FROM tab2
----
-3

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

skipif mysql # not compatible
query I rowsort label-265
SELECT - COUNT ( col2 ) FROM tab1 WHERE NOT + col1 * - 12 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - 41 AS col2 FROM tab2
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-267
SELECT ALL CAST( - COUNT( col0 ) AS SIGNED ) + - 62 FROM tab1 WHERE NOT ( 88 ) IS NULL
----
-65

skipif mysql # not compatible
query I rowsort label-267
SELECT ALL CAST ( - COUNT ( col0 ) AS INTEGER ) + - 62 FROM tab1 WHERE NOT ( 88 ) IS NULL
----
-65

query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) <> ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < col2
----

query I rowsort
SELECT DISTINCT + col2 + 75 AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT 40 + + col0 FROM tab0
----
127
137
55

query I rowsort
SELECT DISTINCT col1 * + ( - col1 ) - + 48 * + 69 AS col2 FROM tab2
----
-5913
-7801
-9241

query I rowsort
SELECT - col1 + - 81 * col1 FROM tab0
----
-1722
-6642
-82

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

onlyif mysql # DIV for integer division: 
query I rowsort label-275
SELECT + col0 DIV 71 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-275
SELECT + col0 / 71 FROM tab2
----
0
0
1

query I rowsort
SELECT + ( 64 ) * + col1 + + col0 FROM tab1
----
3099
405
947

query I rowsort
SELECT - ( - col2 ) * 48 AS col0 FROM tab0
----
2256
4752
480

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

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

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

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

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

query I rowsort
SELECT col0 * + 42 + + 93 FROM tab2 AS cor0
----
2025
2781
3243

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * + 86 > NULL
----

query I rowsort
SELECT 44 AS col0 FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-284
SELECT + 64 + + CAST( + col2 AS SIGNED ) col0 FROM tab2 AS cor0
----
104
122
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-284
SELECT + 64 + + CAST ( + col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
104
122
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 * - col0 - + col0 col0 FROM tab2 AS cor0
----
-3266
-4544
-5325

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

query I rowsort
SELECT col0 * 53 AS col0 FROM tab0
----
4611
5141
795

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT + MIN( DISTINCT + 71 ) FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-290
SELECT + MIN ( DISTINCT + 71 ) FROM tab2 AS cor0
----
71

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

skipif mysql # not compatible
query I rowsort label-291
SELECT - col0 / - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 22 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( 57 ) FROM tab1 cor0
----
-57

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-295
SELECT col0 AS col2 FROM tab0 cor0 WHERE NOT ( CAST( NULL AS SIGNED ) + col1 / - 87 ) IS NOT NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-295
SELECT col0 AS col2 FROM tab0 cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) + col1 / - 87 ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL - + ( - col0 ) * - col0 FROM tab1 cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT DISTINCT ( 60 ) + MIN( DISTINCT + col1 - - 21 ) FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-297
SELECT DISTINCT ( 60 ) + MIN ( DISTINCT + col1 - - 21 ) FROM tab2
----
132

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT - MIN( ALL - col0 ) + 96 col2 FROM tab1
----
187

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

query I rowsort
SELECT ALL + col1 * + + col0 * + ( col0 ) FROM tab2
----
107916
315392
376875

query I rowsort
SELECT DISTINCT - 29 * col0 * - col0 AS col1 FROM tab2
----
118784
163125
61364

query I rowsort
SELECT col0 + - 79 FROM tab0
----
-64
18
8

query I rowsort
SELECT + 48 * + ( + col2 ) FROM tab2 AS cor0
----
1104
1920
2784

query I rowsort
SELECT ALL - 6 + + col1 * - 57 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 AND ( - col2 / col1 )
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 > - col0
----

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

query I rowsort
SELECT col1 FROM tab1 WHERE - - col1 * + ( 70 ) NOT BETWEEN NULL AND ( - col0 / col2 )
----
14
47
5

query I rowsort
SELECT DISTINCT col2 * + + col2 * + - col2 + col1 AS col0 FROM tab1
----
-205374
-314385
-884722

query I rowsort
SELECT 23 + + 32 * col2 FROM tab0
----
1527
3191
343

query II rowsort
SELECT ALL + 76 AS col2, - col0 * + + col0 FROM tab2 AS cor0
----
76
-2116
76
-4096
76
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-315
SELECT + col0 * - CAST( col2 AS SIGNED ) + + 45 + + col1 AS col1 FROM tab0 AS cor0
----
-579
-804
-9557

skipif mysql # not compatible
query I rowsort label-315
SELECT + col0 * - CAST ( col2 AS INTEGER ) + + 45 + + col1 AS col1 FROM tab0 AS cor0
----
-579
-804
-9557

query I rowsort
SELECT DISTINCT col0 - + + 17 FROM tab2 cor0
----
29
47
58

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

query I rowsort
SELECT + 46 + + col1 * - col1 AS col1 FROM tab1 AS cor0 WHERE 47 + - + col1 IS NOT NULL
----
-150
-2163
21

query II rowsort
SELECT ALL - 26, col2 FROM tab0 AS cor0
----
-26
10
-26
47
-26
99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-322
SELECT - col2 + col1 DIV + ( + 43 ) + + col1 AS col1 FROM tab0 AS cor0
----
-98
11
35

skipif mysql # not compatible
query I rowsort label-322
SELECT - col2 + col1 / + ( + 43 ) + + col1 AS col1 FROM tab0 AS cor0
----
-98
11
35

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-324
SELECT - SUM( + 7 ) AS col2, + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
-21
NULL

skipif mysql # not compatible
query II rowsort label-324
SELECT - SUM ( + 7 ) AS col2, + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
-21
NULL

query I rowsort
SELECT col1 FROM tab0 WHERE NULL BETWEEN - 70 * - + col2 AND NULL
----

query I rowsort
SELECT ALL 9 + - col0 AS col0 FROM tab2
----
-37
-55
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-327
SELECT 69 DIV - - COUNT( * ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-327
SELECT 69 / - - COUNT ( * ) AS col1 FROM tab2
----
23

query I rowsort
SELECT DISTINCT col1 * - 46 AS col1 FROM tab0
----
-3726
-46
-966

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 96 - - col0 col1 FROM tab1
----
-11
-45
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 76 - + 9 col1, - col2 * - - 66 FROM tab1
----
67
-3894
67
-4488
67
-6336

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

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

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

query I rowsort
SELECT DISTINCT - 27 AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-27

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

skipif mysql # not compatible
query I rowsort label-334
SELECT + COUNT ( * ) + - ( - 2 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
11

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

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE NOT + col2 >= NULL
----

query II rowsort
SELECT ALL - - 66, + col2 FROM tab2 AS cor0
----
66
23
66
40
66
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 34 ) IS NOT NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-340
SELECT + 85 DIV - SUM( ALL - + col2 ) col2, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-340
SELECT + 85 / - SUM ( ALL - + col2 ) col2, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
0
NULL

query II rowsort
SELECT + 48, + 56 AS col0 FROM tab2 AS cor0
----
48
56
48
56
48
56

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-343
SELECT - CAST( NULL AS SIGNED ) AS col1, col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-343
SELECT - CAST ( NULL AS INTEGER ) AS col1, col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query II rowsort
SELECT col1, - 79 + - - col2 AS col0 FROM tab2
----
51
-56
67
-21
77
-39

query I rowsort
SELECT - 43 + 32 AS col1 FROM tab1 WHERE NOT ( NULL ) NOT IN ( ( + col1 ) * + - col0 )
----

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

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

skipif mysql # not compatible
query II rowsort label-347
SELECT ALL - COUNT ( - + CAST ( NULL AS INTEGER ) ) AS col1, + COUNT ( * ) AS col1 FROM tab2
----
0
3

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

query I rowsort
SELECT ALL - 69 + - col0 FROM tab1
----
-120
-154
-160

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 - - + 47 * - - 11 * + col0 ) = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 49 * - ( + col1 ) * - col0 IS NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col2, ( col1 ) FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT - 47 * + col0 + - + col2 FROM tab2 AS cor0
----
-2185
-3048
-3583

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-354
SELECT DISTINCT - col0, CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-354
SELECT DISTINCT - col0, CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-356
SELECT DISTINCT + 41 * + 58 AS col1, - 46 + + col1 DIV - 69 AS col1 FROM tab2
----
2378
-46
2378
-47

skipif mysql # not compatible
query II rowsort label-356
SELECT DISTINCT + 41 * + 58 AS col1, - 46 + + col1 / - 69 AS col1 FROM tab2
----
2378
-46
2378
-47

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-358
SELECT * FROM tab1 WHERE - col1 BETWEEN + col2 * CAST( col1 AS SIGNED ) / col2 + 41 AND + 62 * ( col2 )
----

skipif mysql # not compatible
query III rowsort label-358
SELECT * FROM tab1 WHERE - col1 BETWEEN + col2 * CAST ( col1 AS INTEGER ) / col2 + 41 AND + 62 * ( col2 )
----

query I rowsort
SELECT ALL + 45 * + - col0 FROM tab0 WHERE - - 26 IS NOT NULL
----
-3915
-4365
-675

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT + col2 >= - - 93 )
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-361
SELECT 54 FROM tab2 AS cor0 WHERE - CAST( - 31 AS SIGNED ) * + + ( - col0 ) + + - 61 / + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-361
SELECT 54 FROM tab2 AS cor0 WHERE - CAST ( - 31 AS INTEGER ) * + + ( - col0 ) + + - 61 / + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + + col2 ) * 20 * - + col2 FROM tab2 AS cor0
----
-10580
-32000
-67280

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT - 56 - - - 70 + + COUNT( * ) + COUNT( * ) col0 FROM tab0 AS cor0
----
-120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-363
SELECT - 56 - - - 70 + + COUNT ( * ) + COUNT ( * ) col0 FROM tab0 AS cor0
----
-120

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

query I rowsort
SELECT ALL + 62 * - + col0 AS col0 FROM tab2
----
-2852
-3968
-4650

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT ALL MIN( ALL 19 ) * 8 FROM tab0
----
152

skipif mysql # not compatible
query I rowsort label-366
SELECT ALL MIN ( ALL 19 ) * 8 FROM tab0
----
152

query I rowsort
SELECT DISTINCT - 29 + + + col2 AS col0 FROM tab1
----
30
39
67

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT DISTINCT - 18 * - COUNT( * ) * - - 33 AS col2 FROM tab2
----
1782

skipif mysql # not compatible
query I rowsort label-368
SELECT DISTINCT - 18 * - COUNT ( * ) * - - 33 AS col2 FROM tab2
----
1782

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-369
SELECT ALL * FROM tab1 WHERE NOT - - CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-369
SELECT ALL * FROM tab1 WHERE NOT - - CAST ( NULL AS INTEGER ) <> NULL
----

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

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

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

query I rowsort
SELECT ALL - col2 * - 58 FROM tab2
----
1334
2320
3364

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-374
SELECT DISTINCT 21 AS col0, + COUNT( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
21
3

skipif mysql # not compatible
query II rowsort label-374
SELECT DISTINCT 21 AS col0, + COUNT ( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
21
3

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

skipif mysql # not compatible
query I rowsort label-375
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 BETWEEN ( - - col1 * col2 ) AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-377
SELECT - col2 AS col1 FROM tab1 WHERE NOT - 68 * + 6 / - + 20 IN ( + CAST( NULL AS DECIMAL ), col0 )
----

skipif mysql # not compatible
query I rowsort label-377
SELECT - col2 AS col1 FROM tab1 WHERE NOT - 68 * + 6 / - + 20 IN ( + CAST ( NULL AS REAL ), col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT - SUM( 17 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-378
SELECT - SUM ( 17 ) AS col2 FROM tab2 AS cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( - - col2 ) > ( + col0 + + + col0 )
----
15
81
47

query I rowsort
SELECT ALL col2 * 85 + - 74 FROM tab0 AS cor0
----
3921
776
8341

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

query I rowsort
SELECT - col1 + - 88 * 79 * ( - + col1 ) FROM tab1
----
326697
34755
97314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-383
SELECT ( + CAST( col0 AS SIGNED ) ) + - 31 FROM tab0
----
-16
56
66

skipif mysql # not compatible
query I rowsort label-383
SELECT ( + CAST ( col0 AS INTEGER ) ) + - 31 FROM tab0
----
-16
56
66

query I rowsort
SELECT DISTINCT - 3 + 63 FROM tab0
----
60

query I rowsort
SELECT + 33 AS col2 FROM tab1 WHERE - - col0 IS NOT NULL
----
33
33
33

query I rowsort
SELECT 37 + + col0 FROM tab1
----
122
128
88

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

query I rowsort
SELECT + 64 * - col0 AS col1 FROM tab2
----
-2944
-4096
-4800

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-391
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) <> + + 60
----

skipif mysql # not compatible
query III rowsort label-391
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) <> + + 60
----

query I rowsort
SELECT DISTINCT col2 * + col0 + col1 AS col1 FROM tab1 AS cor0
----
4910
5020
6235

query I rowsort
SELECT col1 - + 48 FROM tab2
----
19
29
3

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT SUM( + + col1 ) * - COUNT( * ) - 66 + + COUNT( * ) AS col2 FROM tab1
----
-261

skipif mysql # not compatible
query I rowsort label-394
SELECT SUM ( + + col1 ) * - COUNT ( * ) - 66 + + COUNT ( * ) AS col2 FROM tab1
----
-261

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 80 ) + col0 > NULL
----

query I rowsort
SELECT col2 + col1 + + col2 * - col1 FROM tab1
----
-1234
-231
-3081

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-397
SELECT ALL 67 AS col0 FROM tab1 AS cor0 WHERE col0 > + 11 / col1 + CAST( col0 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-397
SELECT ALL 67 AS col0 FROM tab1 AS cor0 WHERE col0 > + 11 / col1 + CAST ( col0 AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, - col1 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-400
SELECT ALL col2 * col1 + 3 - col2 * col2 * col2 DIV 23 AS col0 FROM tab1 AS cor0
----
-10471
-37119
-8631

skipif mysql # not compatible
query I rowsort label-400
SELECT ALL col2 * col1 + 3 - col2 * col2 * col2 / 23 AS col0 FROM tab1 AS cor0
----
-10471
-37119
-8631

query I rowsort
SELECT DISTINCT - col2 * col2 + 36 FROM tab1 AS cor0
----
-3445
-4588
-9180

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

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT COUNT( * ) * - + COUNT( * ) * + 95 * - 13 FROM tab0
----
11115

skipif mysql # not compatible
query I rowsort label-403
SELECT COUNT ( * ) * - + COUNT ( * ) * + 95 * - 13 FROM tab0
----
11115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 WHERE NOT col2 IS NULL
----
51
85
91

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 * - ( - col2 ) col0 FROM tab2 AS cor0
----
1794
3120
4524

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

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

query I rowsort
SELECT ( - 38 ) + - 13 AS col0 FROM tab1
----
-51
-51
-51

query I rowsort
SELECT + + 1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT + - 52 * + - col1 AS col0 FROM tab0 AS cor0
----
1092
4212
52

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

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

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

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

skipif mysql # not compatible
query II rowsort label-413
SELECT ALL - + col2 / + ( + + col1 ), col1 AS col1 FROM tab1 AS cor0
----
-1
47
-11
5
-6
14

onlyif mysql # aggregate syntax: 
query II rowsort label-414
SELECT COUNT( * ), - 89 + - 33 AS col1 FROM tab2 AS cor0
----
3
-122

skipif mysql # not compatible
query II rowsort label-414
SELECT COUNT ( * ), - 89 + - 33 AS col1 FROM tab2 AS cor0
----
3
-122

onlyif mysql # DIV for integer division: 
query II rowsort label-415
SELECT - col0 DIV - + 71 + col0, col1 * - col1 AS col0 FROM tab0 AS cor0
----
15
-6561
88
-441
98
-1

skipif mysql # not compatible
query II rowsort label-415
SELECT - col0 / - + 71 + col0, col1 * - col1 AS col0 FROM tab0 AS cor0
----
15
-6561
88
-441
98
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 6 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( - + col0 ) * - - ( + + 85 ) AS col0 FROM tab2 cor0
----
-3910
-5440
-6375

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-419
SELECT + MAX( ALL CAST( - col2 AS SIGNED ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-419
SELECT + MAX ( ALL CAST ( - col2 AS INTEGER ) ) FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT DISTINCT + COUNT( * ) + - + MIN( ALL col2 ) FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-420
SELECT DISTINCT + COUNT ( * ) + - + MIN ( ALL col2 ) FROM tab2
----
-20

query I rowsort
SELECT ALL + col1 + col0 + - col1 * 46 FROM tab1
----
-140
-2024
-579

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT ALL - ( + COUNT( * ) ) * - 9 + + MIN( - col0 ) AS col2 FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-424
SELECT ALL - ( + COUNT ( * ) ) * - 9 + + MIN ( - col0 ) AS col2 FROM tab1
----
-64

query I rowsort
SELECT DISTINCT - col2 * + + col1 * + 34 FROM tab2
----
-104720
-132124
-39882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-426
SELECT + CAST( + col1 AS SIGNED ) * - - ( + + 3 ) + - - col0 + 22 * - col0 + + col0 - + CAST( NULL AS SIGNED ) + - + 70 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-426
SELECT + CAST ( + col1 AS INTEGER ) * - - ( + + 3 ) + - - col0 + 22 * - col0 + + col0 - + CAST ( NULL AS INTEGER ) + - + 70 col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - + 16 >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 27 NOT BETWEEN ( 95 ) AND ( 77 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 + - col2 + + - ( + col1 ) + 50 + 98 AS col0 FROM tab1 AS cor0
----
-35
-58
25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-430
SELECT col2 + - 69 - CAST( NULL AS DECIMAL ) / - 60 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-430
SELECT col2 + - 69 - CAST ( NULL AS REAL ) / - 60 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-432
SELECT DISTINCT + CAST( - - col1 AS SIGNED ) * + + col0 + - 23 FROM tab0
----
1192
1804
74

skipif mysql # not compatible
query I rowsort label-432
SELECT DISTINCT + CAST ( - - col1 AS INTEGER ) * + + col0 + - 23 FROM tab0
----
1192
1804
74

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT - MAX( + + col1 ) - 57 FROM tab2 AS cor0
----
-134

skipif mysql # not compatible
query I rowsort label-433
SELECT - MAX ( + + col1 ) - 57 FROM tab2 AS cor0
----
-134

query I rowsort
SELECT 79 - col0 FROM tab2 AS cor0
----
15
33
4

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

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

query I rowsort
SELECT 95 * - + 46 FROM tab0 cor0
----
-4370
-4370
-4370

query I rowsort
SELECT DISTINCT + 19 * + col2 FROM tab0 AS cor0
----
1881
190
893

query I rowsort
SELECT ALL 98 * - - 95 AS col1 FROM tab2
----
9310
9310
9310

query III rowsort
SELECT * FROM tab2 WHERE NOT - 35 / + col1 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query III rowsort label-441
SELECT DISTINCT + COUNT( * ), COUNT( * ), + - 72 AS col2 FROM tab2
----
3
3
-72

skipif mysql # not compatible
query III rowsort label-441
SELECT DISTINCT + COUNT ( * ), COUNT ( * ), + - 72 AS col2 FROM tab2
----
3
3
-72

query II rowsort
SELECT col0, 72 FROM tab2
----
46
72
64
72
75
72

query I rowsort
SELECT ALL ( + 73 ) * - col0 FROM tab0 AS cor0
----
-1095
-6351
-7081

onlyif mysql # aggregate syntax: 
query II rowsort label-444
SELECT DISTINCT - - 62 AS col0, + COUNT( + + ( - - 69 ) ) AS col2 FROM tab2 AS cor0
----
62
3

skipif mysql # not compatible
query II rowsort label-444
SELECT DISTINCT - - 62 AS col0, + COUNT ( + + ( - - 69 ) ) AS col2 FROM tab2 AS cor0
----
62
3

onlyif mysql # aggregate syntax: 
query I rowsort label-445
SELECT - - 97 + - + COUNT( * ) + + - COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col2 >= NULL
----
97

skipif mysql # not compatible
query I rowsort label-445
SELECT - - 97 + - + COUNT ( * ) + + - COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col2 >= NULL
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-446
SELECT ALL - - col0 * 18 DIV - col2 AS col0 FROM tab2 AS cor0
----
-23
-28
-36

skipif mysql # not compatible
query I rowsort label-446
SELECT ALL - - col0 * 18 / - col2 AS col0 FROM tab2 AS cor0
----
-23
-28
-36

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 18 BETWEEN col1 AND + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT DISTINCT SUM( ALL 18 ) col2 FROM tab1
----
54

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

query II rowsort
SELECT ALL col0 * 51, - col1 * - + col0 AS col0 FROM tab2 AS cor0
----
2346
2346
3264
4928
3825
5025

onlyif mysql # aggregate syntax: 
query II rowsort label-450
SELECT COUNT( * ), 20 AS col0 FROM tab2 AS cor0 WHERE ( - col1 ) IS NULL
----
0
20

skipif mysql # not compatible
query II rowsort label-450
SELECT COUNT ( * ), 20 AS col0 FROM tab2 AS cor0 WHERE ( - col1 ) IS NULL
----
0
20

onlyif mysql # DIV for integer division: 
query I rowsort label-451
SELECT ALL 85 DIV - 62 AS col2 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-451
SELECT ALL 85 / - 62 AS col2 FROM tab0 cor0
----
-1
-1
-1

query II rowsort
SELECT DISTINCT - - col0 * 35, col2 * + + col1 AS col1 FROM tab1 AS cor0
----
1785
1344
2975
295
3185
3196

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

onlyif mysql # DIV for integer division: 
query I rowsort label-454
SELECT ALL - col0 DIV 95 * - - 34 * - + col0 - col0 FROM tab0 AS cor0
----
-15
-87
3201

skipif mysql # not compatible
query I rowsort label-454
SELECT ALL - col0 / 95 * - - 34 * - + col0 - col0 FROM tab0 AS cor0
----
-15
-87
3201

query I rowsort
SELECT ALL - + col0 * - col1 + col2 FROM tab2 cor0
----
2369
4968
5083

onlyif mysql # DIV for integer division: 
query I rowsort label-456
SELECT DISTINCT + 6 DIV - 34 * + col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-456
SELECT DISTINCT + 6 / - 34 * + col1 FROM tab2 cor0
----
0

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

query I rowsort
SELECT + col2 * col2 + - - 42 FROM tab0
----
142
2251
9843

query I rowsort
SELECT - 91 + col0 AS col2 FROM tab2
----
-16
-27
-45

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

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

query I rowsort
SELECT ALL col0 + + 5 + col1 + 8 * col0 FROM tab2
----
470
658
747

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT ALL + 74 + COUNT( * ) AS col1 FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL + 74 + COUNT ( * ) AS col1 FROM tab1
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 - col0 col2 FROM tab0
----
-62
-72
10

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT COUNT( ALL 85 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-464
SELECT COUNT ( ALL 85 ) col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE ( col2 ) >= + 98
----
-1

skipif mysql # not compatible
query I rowsort label-465
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE ( col2 ) >= + 98
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, - col0 * - - col2 AS col2 FROM tab1 cor0
----
-51
-4896
-85
-5015
-91
-6188

query I rowsort
SELECT ALL + col0 - 85 - ( - 37 ) * - ( - + col0 ) AS col0 FROM tab1 AS cor0
----
1853
3145
3373

query I rowsort
SELECT ALL - 64 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

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

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

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

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

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

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

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

query I rowsort
SELECT ALL ( + 91 ) FROM tab2
----
91
91
91

query II rowsort
SELECT - col2, 59 AS col0 FROM tab2
----
-23
59
-40
59
-58
59

query III rowsort
SELECT DISTINCT + 17 AS col2, + col2 * + col1, + col1 + 3 AS col2 FROM tab1
----
9 values hashing to 1d66d54ec95208e60a593c47869b97fc

query I rowsort
SELECT DISTINCT + 90 FROM tab1 AS cor0 WHERE 62 BETWEEN NULL AND 36
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-479
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT + 23 NOT IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-479
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT + 23 NOT IN ( col1 )
----

query II rowsort
SELECT ALL - col1 AS col2, - 32 FROM tab2 AS cor0
----
-51
-32
-67
-32
-77
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT DISTINCT + MIN( - + col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-481
SELECT DISTINCT + MIN ( - + col0 ) AS col1 FROM tab1
----
-91

query I rowsort
SELECT ALL + ( - + 84 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-483
SELECT col2 * + 36 FROM tab1 WHERE 40 * CAST( NULL AS SIGNED ) <> 69 + col1
----

skipif mysql # not compatible
query I rowsort label-483
SELECT col2 * + 36 FROM tab1 WHERE 40 * CAST ( NULL AS INTEGER ) <> 69 + col1
----

query I rowsort
SELECT ALL + 71 + + - 84 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 97 + - 67 + - + col1 AS col2 FROM tab0 AS cor0
----
-51
29
9

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-489
SELECT + + 39 DIV + col2 AS col0 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-489
SELECT + + 39 / + col2 AS col0 FROM tab0 AS cor0
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col0, 33 col1 FROM tab0 AS cor0
----
1
33
21
33
81
33

query I rowsort
SELECT - col0 * + col1 - col0 FROM tab2
----
-2392
-4992
-5100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-492
SELECT ALL ( col0 ) + + - CAST( + CAST( + + ( - - col1 ) AS SIGNED ) AS SIGNED ) + + + col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-492
SELECT ALL ( col0 ) + + - CAST ( + CAST ( + + ( - - col1 ) AS INTEGER ) AS INTEGER ) + + + col1 FROM tab0
----
15
87
97

query II rowsort
SELECT ALL + 47 * 50, + col0 AS col0 FROM tab1
----
2350
51
2350
85
2350
91

query II rowsort
SELECT DISTINCT 54 + + + col2, + 36 AS col1 FROM tab0
----
101
36
153
36
64
36

query I rowsort
SELECT ( - - col0 ) + + + col1 FROM tab2
----
141
142
97

query II rowsort
SELECT 29 + col1 AS col1, - col1 AS col2 FROM tab0
----
110
-81
30
-1
50
-21

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

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

query II rowsort
SELECT DISTINCT + col2 + + - 46 AS col1, col2 * 3 * 98 AS col1 FROM tab1 AS cor0
----
13
17346
22
19992
50
28224

query I rowsort
SELECT DISTINCT - - col2 * + col0 - ( - 2 ) FROM tab2 AS cor0
----
1060
2562
4352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-500
SELECT DISTINCT + 68 * + CAST( NULL AS SIGNED ) * ( 4 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-500
SELECT DISTINCT + 68 * + CAST ( NULL AS INTEGER ) * ( 4 ) FROM tab1
----
NULL

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-504
SELECT + MAX ( + + 23 ) FROM tab0 AS cor0
----
23

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

query I rowsort
SELECT DISTINCT - - 54 FROM tab1 cor0
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-507
SELECT COUNT( * ) DIV - + 55 AS col0 FROM tab0 AS cor0 WHERE NOT col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-507
SELECT COUNT ( * ) / - + 55 AS col0 FROM tab0 AS cor0 WHERE NOT col2 <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-508
SELECT ALL col0, CAST( - - col2 AS SIGNED ) FROM tab1 AS cor0
----
51
96
85
59
91
68

skipif mysql # not compatible
query II rowsort label-508
SELECT ALL col0, CAST ( - - col2 AS INTEGER ) FROM tab1 AS cor0
----
51
96
85
59
91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 + col0 * - col0 col1 FROM tab1
----
-2538
-7162
-8218

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

query I rowsort
SELECT DISTINCT + col2 * col2 * + - col0 AS col0 FROM tab1
----
-295885
-420784
-470016

query I rowsort
SELECT - 36 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query I rowsort
SELECT DISTINCT - ( - 1 ) AS col1 FROM tab2
----
1

query I rowsort
SELECT 13 * + + 82 * 77 + - col2 FROM tab0
----
81983
82035
82072

query I rowsort
SELECT ALL + 22 + - col0 + - + ( - 77 ) * - col1 + col0 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-1056
-3597
-363

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

query I rowsort
SELECT - - 2 * + 36 + - col1 FROM tab1 cor0
----
25
58
67

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 > + 92
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + + - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT ALL 2 * col2 * col2 + - 72 * - - 79 + + + col0 + + + col1 AS col2 FROM tab2
----
-2347
-4533
1182

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

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

query I rowsort
SELECT col2 * + - 22 AS col1 FROM tab2
----
-1276
-506
-880

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

skipif mysql # not compatible
query I rowsort label-526
SELECT + MIN ( ALL + ( - col1 ) ) FROM tab2
----
-77

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

skipif mysql # not compatible
query I rowsort label-527
SELECT CAST ( NULL AS INTEGER ) / + 28 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-528
SELECT DISTINCT * FROM tab1 WHERE + - col1 <= - col0 * - CAST( NULL AS SIGNED ) + + col2
----

skipif mysql # not compatible
query III rowsort label-528
SELECT DISTINCT * FROM tab1 WHERE + - col1 <= - col0 * - CAST ( NULL AS INTEGER ) + + col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT - ( COUNT( DISTINCT 26 ) ) - - COUNT( * ) FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-530
SELECT - ( COUNT ( DISTINCT 26 ) ) - - COUNT ( * ) FROM tab2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-531
SELECT - CAST( 68 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL AND NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-531
SELECT - CAST ( 68 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL AND NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - ( + col2 ) col0 FROM tab1 cor0
----
-118
-136
-192

query I rowsort
SELECT ALL col0 * - - 8 * - col1 FROM tab0 AS cor0
----
-14616
-776
-9720

query I rowsort
SELECT DISTINCT + col2 * ( - col0 ) + - - 40 AS col2 FROM tab2 AS cor0
----
-1018
-2520
-4310

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 55 col1 FROM tab2
----
-2530
-3520
-4125

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

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

query I rowsort
SELECT DISTINCT + ( - 99 ) * + col1 AS col1 FROM tab0 AS cor0
----
-2079
-8019
-99

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

onlyif mysql # aggregate syntax: 
query II rowsort label-540
SELECT DISTINCT - 44 * - COUNT( * ), - 38 AS col1 FROM tab0 AS cor0
----
132
-38

skipif mysql # not compatible
query II rowsort label-540
SELECT DISTINCT - 44 * - COUNT ( * ), - 38 AS col1 FROM tab0 AS cor0
----
132
-38

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

skipif mysql # not compatible
query I rowsort label-541
SELECT ALL CAST ( NULL AS INTEGER ) / + - 18 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + + col1, 63 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT - MIN( - 17 ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-545
SELECT - MIN ( - 17 ) FROM tab1
----
17

query I rowsort
SELECT DISTINCT col0 + ( col0 ) + col1 + - col2 FROM tab0
----
185
64
96

query II rowsort
SELECT ALL col1 AS col1, + col1 + + 1 FROM tab2
----
51
52
67
68
77
78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-548
SELECT DISTINCT + + 94 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 * + col2 NOT IN ( + CAST( NULL AS DECIMAL ), col2 * + col0 * + 91 + + col1 )
----

skipif mysql # not compatible
query I rowsort label-548
SELECT DISTINCT + + 94 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 * + col2 NOT IN ( + CAST ( NULL AS REAL ), col2 * + col0 * + 91 + + col1 )
----

query I rowsort
SELECT + 87 * + col2 AS col0 FROM tab0 AS cor0
----
4089
8613
870

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NULL > col1
----

query I rowsort
SELECT + - col2 * 94 FROM tab1 cor0
----
-5546
-6392
-9024

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

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

query I rowsort
SELECT DISTINCT 34 + col0 AS col2 FROM tab1
----
119
125
85

query I rowsort
SELECT DISTINCT col1 + + 11 * - col1 - + + ( - col2 ) FROM tab1
----
-402
-44
9

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

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

query I rowsort
SELECT + 23 - - col0 * - col0 FROM tab1 AS cor0
----
-2578
-7202
-8258

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

onlyif mysql # DIV for integer division: 
query II rowsort label-559
SELECT ( 0 ) - + - 67 DIV col1 col0, 93 AS col2 FROM tab1 AS cor0
----
1
93
13
93
4
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-559
SELECT ( 0 ) - + - 67 / col1 col0, 93 AS col2 FROM tab1 AS cor0
----
1
93
13
93
4
93

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT ALL 22 * COUNT( * ) AS col0 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-560
SELECT ALL 22 * COUNT ( * ) AS col0 FROM tab2
----
66

query I rowsort
SELECT DISTINCT - col0 * - ( + 84 ) FROM tab1
----
4284
7140
7644

query I rowsort
SELECT DISTINCT 46 * - col2 - 30 FROM tab1
----
-2744
-3158
-4446

query I rowsort
SELECT ALL 74 + - 20 FROM tab2
----
54
54
54

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

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

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

query I rowsort
SELECT ALL + + ( - + col2 ) * + 40 AS col2 FROM tab1 AS cor0
----
-2360
-2720
-3840

query I rowsort
SELECT + - col2 FROM tab1 AS cor0 WHERE NOT - col0 < + col1
----

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

query II rowsort
SELECT ALL + 74 * col1 AS col1, + 38 AS col0 FROM tab0
----
1554
38
5994
38
74
38

query I rowsort
SELECT DISTINCT 47 * - 52 AS col2 FROM tab2
----
-2444

query I rowsort
SELECT col1 * + - col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT 4 * + + 75 FROM tab1 AS cor0
----
300

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT ALL + COUNT( * ) + + SUM( DISTINCT - - 98 ) FROM tab0 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-576
SELECT ALL + COUNT ( * ) + + SUM ( DISTINCT - - 98 ) FROM tab0 AS cor0
----
101

query I rowsort
SELECT ALL - col0 + col1 + - col0 FROM tab2
----
-41
-51
-83

query I rowsort
SELECT + col0 + ( col0 ) + - 19 * + col2 AS col2 FROM tab2
----
-345
-632
-952

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

query I rowsort
SELECT - 13 * + col2 FROM tab1
----
-1248
-767
-884

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

query I rowsort
SELECT ALL + col2 + - + col0 + col2 + + - 67 * + 80 FROM tab1
----
-5219
-5315
-5327

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

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

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT - col2 / + 82 AS col0 FROM tab2 AS cor0
----
0

query II rowsort
SELECT col1 + 95 + col1 AS col0, - col1 FROM tab0 AS cor0
----
137
-21
257
-81
97
-1

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

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

query I rowsort
SELECT DISTINCT - + col2 - - 47 AS col2 FROM tab2 AS cor0
----
-11
24
7

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

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

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

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

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

query I rowsort
SELECT + + col2 * - + col2 AS col0 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # DIV for integer division: 
query II rowsort label-593
SELECT ALL + col0 * col0 DIV col0 - - col1, - col2 AS col0 FROM tab0
----
108
-10
96
-47
98
-99

skipif mysql # not compatible
query II rowsort label-593
SELECT ALL + col0 * col0 / col0 - - col1, - col2 AS col0 FROM tab0
----
108
-10
96
-47
98
-99

query I rowsort
SELECT DISTINCT col1 + - ( + - col1 ) AS col2 FROM tab2
----
102
134
154

query I rowsort
SELECT ALL - 29 + + col0 - - 20 AS col0 FROM tab1
----
42
76
82

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT + 37 * ( + COUNT( * ) ) AS col1 FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-596
SELECT + 37 * ( + COUNT ( * ) ) AS col1 FROM tab2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT COUNT( + 28 ) * - - MAX( - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-597
SELECT COUNT ( + 28 ) * - - MAX ( - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT DISTINCT + 52 * + 25 - - MAX( ALL + + 67 ) + + + 91 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
1458

skipif mysql # not compatible
query I rowsort label-599
SELECT DISTINCT + 52 * + 25 - - MAX ( ALL + + 67 ) + + + 91 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
1458

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-600
SELECT ALL CAST( + + col2 AS SIGNED ) * + - col0 + - + col2 AS col2 FROM tab1
----
-4992
-5074
-6256

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL CAST ( + + col2 AS INTEGER ) * + - col0 + - + col2 AS col2 FROM tab1
----
-4992
-5074
-6256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 75 AS col1, col1 col0 FROM tab0 AS cor0 WHERE NOT 69 < NULL
----

query I rowsort
SELECT DISTINCT col0 * + 83 * - + col1 AS col2 FROM tab1 AS cor0
----
-35275
-354991
-59262

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT MAX( - col1 ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-603
SELECT MAX ( - col1 ) FROM tab1 cor0
----
-5

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

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

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

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

query I rowsort
SELECT ( 56 ) AS col1 FROM tab0
----
56
56
56

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND 60
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND + + col0 * + - col0 * col1
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-612
SELECT DISTINCT + col0 DIV col2 AS col2 FROM tab1 AS cor0 WHERE NOT col0 <= 58
----
1

skipif mysql # not compatible
query I rowsort label-612
SELECT DISTINCT + col0 / col2 AS col2 FROM tab1 AS cor0 WHERE NOT col0 <= 58
----
1

query I rowsort
SELECT + col1 + - 99 * - 96 AS col0 FROM tab2 cor0
----
9555
9571
9581

query I rowsort
SELECT ALL + col1 + - + 9 * - - col0 FROM tab2 AS cor0
----
-363
-499
-608

query I rowsort
SELECT - col2 * col2 * - 66 - + col1 FROM tab2 AS cor0
----
105523
221957
34863

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-617
SELECT DISTINCT 83 - + CAST( NULL AS DECIMAL ) / - 14 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT 83 - + CAST ( NULL AS REAL ) / - 14 FROM tab0 AS cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) col0 FROM tab2 AS cor0
----
46
64
75

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

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

query II rowsort
SELECT ALL col0 AS col0, - col1 + - col1 FROM tab1
----
51
-28
85
-10
91
-94

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

query I rowsort
SELECT col0 * - + 64 * + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL AND NOT ( col1 - + - col2 + - 24 + - 98 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT - COUNT( - - 12 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-624
SELECT - COUNT ( - - 12 ) AS col0 FROM tab0
----
-3

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

skipif mysql # not compatible
query I rowsort label-625
SELECT DISTINCT MAX ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-626
SELECT ( + ( + + COUNT ( * ) ) ) / + 29 AS col1 FROM tab0
----
0

query I rowsort
SELECT + col2 * - - col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-628
SELECT DISTINCT - CAST( col0 AS SIGNED ) AS col1, 70 AS col2 FROM tab2 AS cor0
----
-46
70
-64
70
-75
70

skipif mysql # not compatible
query II rowsort label-628
SELECT DISTINCT - CAST ( col0 AS INTEGER ) AS col1, 70 AS col2 FROM tab2 AS cor0
----
-46
70
-64
70
-75
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-629
SELECT col0 + - 4 / + CAST( - - 20 AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-629
SELECT col0 + - 4 / + CAST ( - - 20 AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

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

query I rowsort
SELECT - 58 + 56 AS col1 FROM tab0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT 45 + - MAX( + - 36 ) * - ( - + 31 ) AS col1 FROM tab2
----
1161

skipif mysql # not compatible
query I rowsort label-632
SELECT 45 + - MAX ( + - 36 ) * - ( - + 31 ) AS col1 FROM tab2
----
1161

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

query I rowsort
SELECT 63 + - col2 FROM tab0
----
-36
16
53

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT + ( + - 21 ) + + MIN( + 89 ) AS col0 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-635
SELECT + ( + - 21 ) + + MIN ( + 89 ) AS col0 FROM tab0
----
68

query I rowsort
SELECT DISTINCT col0 + + + col1 + col1 FROM tab0
----
129
177
99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-638
SELECT ALL + col2 + col1 DIV + col0 + col0 + + 44 FROM tab0
----
111
141
240

skipif mysql # not compatible
query I rowsort label-638
SELECT ALL + col2 + col1 / + col0 + col0 + + 44 FROM tab0
----
111
141
240

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT DISTINCT 71 + COUNT( ALL + ( - col1 ) ) AS col2 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-639
SELECT DISTINCT 71 + COUNT ( ALL + ( - col1 ) ) AS col2 FROM tab2
----
74

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

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

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

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

skipif mysql # not compatible
query I rowsort label-642
SELECT DISTINCT + MAX ( - 29 ) FROM tab2 AS cor0
----
-29

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

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

query I rowsort
SELECT + 33 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT DISTINCT col2 + + col1 + - + 88 AS col1 FROM tab2
----
-14
29
37

query I rowsort
SELECT ALL col1 + - - 75 - + col1 FROM tab1
----
75
75
75

query I rowsort
SELECT DISTINCT - col2 * 57 - col0 FROM tab2 AS cor0
----
-1357
-2344
-3381

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

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

query I rowsort
SELECT - 36 * 49 + - col0 FROM tab2 AS cor0
----
-1810
-1828
-1839

query I rowsort
SELECT col0 * - 11 FROM tab2
----
-506
-704
-825

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

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT DISTINCT - SUM( ALL + - 60 ) FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-653
SELECT DISTINCT - SUM ( ALL + - 60 ) FROM tab0
----
180

query I rowsort
SELECT 85 * + 64 FROM tab0
----
5440
5440
5440

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT ALL SUM( - ( + col2 ) ) - - - COUNT( * ) AS col1 FROM tab0 WHERE NOT - col1 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-655
SELECT ALL SUM ( - ( + col2 ) ) - - - COUNT ( * ) AS col1 FROM tab0 WHERE NOT - col1 >= NULL
----
NULL

query I rowsort
SELECT + col1 * - 17 * - + col0 AS col1 FROM tab2
----
39882
83776
85425

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-658
SELECT col0 * CAST( NULL AS SIGNED ) AS col0, + 20 FROM tab2 AS cor0
----
NULL
20
NULL
20
NULL
20

skipif mysql # not compatible
query II rowsort label-658
SELECT col0 * CAST ( NULL AS INTEGER ) AS col0, + 20 FROM tab2 AS cor0
----
NULL
20
NULL
20
NULL
20

query I rowsort
SELECT - - col2 * - col2 * - col2 AS col1 FROM tab0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT 83 * + ( + + col1 ) + + col2 + - - col0 + + col0 + col1 - - + col1 AS col1 FROM tab2
----
4450
5903
6713

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL = NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col2, - col1 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 77 + 85 <> + col1
----

query I rowsort
SELECT - - ( + + 54 ) FROM tab2 cor0
----
54
54
54

onlyif mysql # DIV for integer division: 
query I rowsort label-666
SELECT - col2 DIV + 21 + + 39 AS col0 FROM tab0 AS cor0
----
35
37
39

skipif mysql # not compatible
query I rowsort label-666
SELECT - col2 / + 21 + + 39 AS col0 FROM tab0 AS cor0
----
35
37
39

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-668
SELECT DISTINCT + 95 AS col0, 51 * + MIN( DISTINCT - 52 ) AS col0 FROM tab2 AS cor0
----
95
-2652

skipif mysql # not compatible
query II rowsort label-668
SELECT DISTINCT + 95 AS col0, 51 * + MIN ( DISTINCT - 52 ) AS col0 FROM tab2 AS cor0
----
95
-2652

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

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

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

skipif mysql # not compatible
query I rowsort label-671
SELECT MAX ( ALL 97 ) AS col0 FROM tab2
----
97

query I rowsort
SELECT ALL - 59 + - 97 AS col2 FROM tab0
----
-156
-156
-156

query I rowsort
SELECT ALL col1 * - 41 * + col0 + 95 * - 62 + - col0 FROM tab2
----
-102122
-208002
-211990

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT DISTINCT 88 + + - 70 * - - SUM( ALL + col1 ) AS col2 FROM tab2
----
-13562

skipif mysql # not compatible
query I rowsort label-674
SELECT DISTINCT 88 + + - 70 * - - SUM ( ALL + col1 ) AS col2 FROM tab2
----
-13562

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

skipif mysql # not compatible
query I rowsort label-675
SELECT DISTINCT + COUNT ( * ) + MAX ( ALL - col0 ) FROM tab0 cor0
----
-12

query I rowsort
SELECT + col0 + - - col2 * + + col0 FROM tab2 AS cor0
----
1104
2624
4425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 60 + col1 col1, - col0 + ( + col1 ) col1 FROM tab0 AS cor0
----
141
66
61
-96
81
-66

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-679
SELECT ALL CAST( + 55 AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL CAST ( + 55 AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

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

query I rowsort
SELECT - ( - + col2 ) FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT DISTINCT + + SUM( ALL + + ( - 21 ) ) AS col2 FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-682
SELECT DISTINCT + + SUM ( ALL + + ( - 21 ) ) AS col2 FROM tab0 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT ALL + - MAX( ALL - col2 ) FROM tab0 cor0 WHERE + col1 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-683
SELECT ALL + - MAX ( ALL - col2 ) FROM tab0 cor0 WHERE + col1 < NULL
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-685
SELECT DISTINCT + col0 * CAST( - 62 AS SIGNED ) * - col0 * + col0 FROM tab0
----
209250
40827186
56585726

skipif mysql # not compatible
query I rowsort label-685
SELECT DISTINCT + col0 * CAST ( - 62 AS INTEGER ) * - col0 * + col0 FROM tab0
----
209250
40827186
56585726

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT DISTINCT SUM( - 21 ) col1 FROM tab2
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-686
SELECT DISTINCT SUM ( - 21 ) col1 FROM tab2
----
-63

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 NOT IN ( - - 35, - col1 * - col2 + + - col0, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-688
SELECT ALL MIN( + 61 ) FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-688
SELECT ALL MIN ( + 61 ) FROM tab2
----
61

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

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

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

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

skipif mysql # not compatible
query I rowsort label-691
SELECT - + 85 / - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
28

query I rowsort
SELECT ALL + 46 * - + col2 * - - 13 AS col1 FROM tab1 AS cor0
----
-35282
-40664
-57408

onlyif mysql # DIV for integer division: 
query I rowsort label-693
SELECT + + 83 DIV + col1 + - 33 FROM tab1 AS cor0
----
-17
-28
-32

skipif mysql # not compatible
query I rowsort label-693
SELECT + + 83 / + col1 + - 33 FROM tab1 AS cor0
----
-17
-28
-32

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-695
SELECT CAST( NULL AS SIGNED ) * 62, - 94 AS col2 FROM tab1
----
NULL
-94
NULL
-94
NULL
-94

skipif mysql # not compatible
query II rowsort label-695
SELECT CAST ( NULL AS INTEGER ) * 62, - 94 AS col2 FROM tab1
----
NULL
-94
NULL
-94
NULL
-94

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + + col0 * - col0 >= - col1 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT DISTINCT 12 + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
12

skipif mysql # not compatible
query I rowsort label-700
SELECT DISTINCT 12 + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
12

query I rowsort
SELECT 83 + - 54 * + 58 FROM tab0 AS cor0
----
-3049
-3049
-3049

query I rowsort
SELECT DISTINCT col0 * + 99 FROM tab2
----
4554
6336
7425

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT + MAX( ALL - col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-703
SELECT + MAX ( ALL - col1 ) AS col2 FROM tab0
----
-1

query II rowsort
SELECT + col2, - 56 AS col1 FROM tab0
----
10
-56
47
-56
99
-56

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

query I rowsort
SELECT DISTINCT col2 + 21 FROM tab2
----
44
61
79

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT - SUM( ALL + 80 ) FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-707
SELECT - SUM ( ALL + 80 ) FROM tab1
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT DISTINCT - COUNT( * ) * + 33 AS col1 FROM tab2, tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-708
SELECT DISTINCT - COUNT ( * ) * + 33 AS col1 FROM tab2, tab0 AS cor0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT ALL 37 * + COUNT( * ) - MIN( DISTINCT + - col2 ) col2 FROM tab1
----
207

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN 43 AND - col0
----

query II rowsort
SELECT - col1 + ( 64 ), - ( - + col2 ) + + - 29 AS col2 FROM tab0 AS cor0
----
-17
18
43
-19
63
70

onlyif mysql # DIV for integer division: 
query I rowsort label-712
SELECT 21 DIV - 82 + - col0 col1 FROM tab2 WHERE ( NULL ) IS NULL
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-712
SELECT 21 / - 82 + - col0 col1 FROM tab2 WHERE ( NULL ) IS NULL
----
-46
-64
-75

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-714
SELECT + COUNT( + CAST( - col0 AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-714
SELECT + COUNT ( + CAST ( - col0 AS INTEGER ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT - COUNT( ALL 39 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-715
SELECT - COUNT ( ALL 39 ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT + ( 56 ) FROM tab2
----
56
56
56

query I rowsort
SELECT - col0 - col1 * - 41 FROM tab0
----
-56
3306
774

query I rowsort
SELECT ALL col2 - - 36 * + 85 FROM tab1 WHERE NOT col2 * + 30 + col1 IS NOT NULL
----

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT + col2 * 25 IS NOT NULL
----

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

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

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

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT ( col2 - - col1 ) IN ( + ( + 32 ) + + col2 )
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-723
SELECT - CAST( 4 AS SIGNED ) AS col0 FROM tab2
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-723
SELECT - CAST ( 4 AS INTEGER ) AS col0 FROM tab2
----
-4
-4
-4

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 83 > 80
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 + + 6 * col2 <> ( col1 )
----

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

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 / - 11 - - col2 <= + col1 + 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT COUNT( DISTINCT 24 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-730
SELECT COUNT ( DISTINCT 24 ) AS col2 FROM tab2
----
1

query I rowsort
SELECT 83 - 63 FROM tab0
----
20
20
20

query I rowsort
SELECT - col1 * col2 AS col2 FROM tab2 WHERE NOT col1 * - ( ( 2 ) * 87 ) NOT BETWEEN ( 78 + col1 ) AND col0
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-733
SELECT + MIN ( ALL ( - 6 ) ) col2 FROM tab2
----
-6

query I rowsort
SELECT DISTINCT - 57 AS col0 FROM tab2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT ALL + MIN( - 67 ) AS col0 FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL + MIN ( - 67 ) AS col0 FROM tab1 AS cor0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT + 37 + COUNT( * ) * - 49 FROM tab2 AS cor0
----
-110

skipif mysql # not compatible
query I rowsort label-736
SELECT + 37 + COUNT ( * ) * - 49 FROM tab2 AS cor0
----
-110

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

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE 50 * - 33 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT DISTINCT + COUNT( ALL 55 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( 87 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-739
SELECT DISTINCT + COUNT ( ALL 55 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( 87 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-740
SELECT DISTINCT - AVG ( ALL + CAST( NULL AS SIGNED ) ) - + 44 AS col2 FROM tab2 cor0 WHERE 93 * 77 IN ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-740
SELECT DISTINCT - AVG ( ALL + CAST ( NULL AS INTEGER ) ) - + 44 AS col2 FROM tab2 cor0 WHERE 93 * 77 IN ( + col0 )
----
NULL

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

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT col2 NOT IN ( 27 + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 38 < col2 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-744
SELECT ALL 2 DIV + ( col1 ) FROM tab0 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-744
SELECT ALL 2 / + ( col1 ) FROM tab0 cor0
----
0
0
2

query I rowsort
SELECT 36 * - 21 AS col2 FROM tab2 cor0
----
-756
-756
-756

query I rowsort
SELECT DISTINCT - + col2 + 15 AS col0 FROM tab1 cor0
----
-44
-53
-81

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 * + 28 col1 FROM tab0 AS cor0
----
2016
2016
2016

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 76 col1 FROM tab0 AS cor0
----
3572
7524
760

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-754
SELECT COUNT( * ) col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - CAST( NULL AS SIGNED ) AND col2
----
0

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 + col1 * - 67 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT 67 + - col1 AS col0 FROM tab0 AS cor0
----
-14
46
66

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

query I rowsort
SELECT DISTINCT - col1 + - + col2 AS col0 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT - col2 * - col1 + + 83 FROM tab0
----
182
293
3890

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

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

query I rowsort
SELECT DISTINCT ( col2 ) FROM tab0 WHERE NULL IS NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 + + col2 col2 FROM tab1
----
-17
-8
20

query III rowsort
SELECT * FROM tab0 WHERE - ( 32 ) * - col1 BETWEEN col0 * - 85 AND ( - col1 )
----

query I rowsort
SELECT - 94 + + col0 FROM tab0
----
-7
-79
3

query I rowsort
SELECT + 43 + col0 * + 14 FROM tab1
----
1233
1317
757

query I rowsort
SELECT ALL - 46 * + 42 + col2 * - 79 FROM tab0 AS cor0
----
-2722
-5645
-9753

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - - 3 col0 FROM tab1 AS cor0
----
62
71
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT ALL + MIN( DISTINCT - col0 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-772
SELECT ALL + MIN ( DISTINCT - col0 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 71 col0 FROM tab0
----
1491
5751
71

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL NOT IN ( + 97 / 40 )
----

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

query I rowsort
SELECT ALL + col2 * 38 * 59 FROM tab2 AS cor0
----
130036
51566
89680

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE 99 IS NOT NULL
----
46
64
75

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 * + col2 <= col0 / col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 50 NOT IN ( + 73 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-784
SELECT DISTINCT col1 FROM tab2 WHERE - CAST( NULL AS SIGNED ) + + col2 >= ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-784
SELECT DISTINCT col1 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) + + col2 >= ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col1 FROM tab1 WHERE ( col1 + col0 ) >= col2
----
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - ( - 70 ) col1 FROM tab1
----
129
138
166

query I rowsort
SELECT DISTINCT + col1 + - 14 AS col1 FROM tab0
----
-13
67
7

query I rowsort
SELECT DISTINCT 67 + - - 75 * + - 74 FROM tab0
----
-5483

query I rowsort
SELECT DISTINCT + 54 * 75 AS col2 FROM tab2
----
4050

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT ALL MIN( - col2 ) + + 32 * COUNT( * ) FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-790
SELECT ALL MIN ( - col2 ) + + 32 * COUNT ( * ) FROM tab2
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-791
SELECT DISTINCT - col0 DIV - col1 AS col2 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-791
SELECT DISTINCT - col0 / - col1 AS col2 FROM tab1
----
1
17
3

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

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

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

query II rowsort
SELECT col2 AS col0, + col1 * - 28 + + + col0 * - - col0 FROM tab1
----
59
7085
68
6965
96
2209

onlyif mysql # DIV for integer division: 
query I rowsort label-795
SELECT ALL + col1 + + + col0 DIV 8 * + 44 * - + ( - col0 ) * - col1 FROM tab1
----
-186995
-188482
-2070021

skipif mysql # not compatible
query I rowsort label-795
SELECT ALL + col1 + + + col0 / 8 * + 44 * - + ( - col0 ) * - col1 FROM tab1
----
-186995
-188482
-2070021

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT ALL COUNT( col2 ) + + 78 col0 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-796
SELECT ALL COUNT ( col2 ) + + 78 col0 FROM tab0
----
81

query I rowsort
SELECT - col1 + - 80 + + 40 * col0 FROM tab1 AS cor0
----
1946
3315
3513

query I rowsort
SELECT + 85 FROM tab1 cor0 WHERE col0 * 15 IS NOT NULL
----
85
85
85

query I rowsort
SELECT DISTINCT - col1 - + 43 FROM tab1 AS cor0
----
-48
-57
-90

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

query I rowsort
SELECT - 61 + col1 AS col2 FROM tab2 AS cor0
----
-10
16
6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 <= ( col0 )
----

query I rowsort
SELECT ALL 65 - - 99 * + col0 FROM tab0 AS cor0
----
1550
8678
9668

onlyif mysql # DIV for integer division: 
query I rowsort label-804
SELECT - 86 DIV + - col0 AS col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-804
SELECT - 86 / + - col0 AS col2 FROM tab1
----
0
1
1

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

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

query I rowsort
SELECT - col2 - + - col2 * + col2 AS col1 FROM tab0
----
2162
90
9702

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

skipif mysql # not compatible
query I rowsort label-807
SELECT DISTINCT 10 AS col0 FROM tab1 WHERE ( CAST ( col0 AS INTEGER ) <> - ( - CAST ( NULL AS INTEGER ) ) + col1 )
----

query I rowsort
SELECT ALL + 21 - - - col1 AS col0 FROM tab1
----
-26
16
7

query II rowsort
SELECT ALL + col2 + - col0, 41 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-17
41
-23
41
-24
41

onlyif mysql # DIV for integer division: 
query I rowsort label-810
SELECT DISTINCT - col0 DIV + + col0 AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-810
SELECT DISTINCT - col0 / + + col0 AS col0 FROM tab0
----
-1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - 77 - + 4 ) NOT BETWEEN col0 + ( ( + 62 ) ) AND 10
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-812
SELECT DISTINCT MAX( ALL + - col0 ) DIV + COUNT( * ) FROM tab2 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-812
SELECT DISTINCT MAX ( ALL + - col0 ) / + COUNT ( * ) FROM tab2 cor0
----
-15

query I rowsort
SELECT - - ( 99 ) FROM tab2 cor0
----
99
99
99

query I rowsort
SELECT ALL + + ( - + col1 ) AS col2 FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-815
SELECT - col0 DIV - 85 AS col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-815
SELECT - col0 / - 85 AS col2 FROM tab1
----
0
1
1

query I rowsort
SELECT ALL 72 * - col2 * - - 84 AS col1 FROM tab1
----
-356832
-411264
-580608

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

skipif mysql # not compatible
query II rowsort label-817
SELECT COUNT ( DISTINCT + 79 ), + COUNT ( * ) AS col2 FROM tab0
----
1
3

query I rowsort
SELECT ALL col2 * + col2 + + + col2 FROM tab1 AS cor0
----
3540
4692
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IN ( + col0, - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-819
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IN ( + col0, - col0 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT DISTINCT + COUNT( * ) * ( + 21 ) AS col0 FROM tab1 AS cor0 WHERE + 21 * - 72 >= col1
----
0

skipif mysql # not compatible
query I rowsort label-821
SELECT DISTINCT + COUNT ( * ) * ( + 21 ) AS col0 FROM tab1 AS cor0 WHERE + 21 * - 72 >= col1
----
0

query I rowsort
SELECT - ( - 10 ) AS col2 FROM tab2 AS cor0
----
10
10
10

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

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT 10 * + col0 >= col1 * - col0 - + 49
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-825
SELECT 49 * - 72 * + ( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-825
SELECT 49 * - 72 * + ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 20 + - col2 FROM tab0
----
-27
-79
10

query I rowsort
SELECT DISTINCT col2 + + 27 FROM tab2
----
50
67
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT - MAX( - 30 ) FROM tab1 WHERE NULL NOT IN ( col1, + 49 - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-830
SELECT - MAX ( - 30 ) FROM tab1 WHERE NULL NOT IN ( col1, + 49 - col2 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + 65 col2 FROM tab1
----
124
133
161

query I rowsort
SELECT + - col0 FROM tab1 AS cor0 WHERE NULL < 46
----

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

skipif mysql # not compatible
query I rowsort label-833
SELECT + + COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

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

skipif mysql # not compatible
query I rowsort label-834
SELECT - + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT + 72 * + + col0 - - + 98 AS col0 FROM tab0 AS cor0
----
1178
6362
7082

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-838
SELECT + 33 - SUM( DISTINCT + ( - 72 ) ), 93 * + - 68 + + + SUM( + ( - col1 ) ) AS col1 FROM tab1 AS cor0
----
105
-6390

skipif mysql # not compatible
query II rowsort label-838
SELECT + 33 - SUM ( DISTINCT + ( - 72 ) ), 93 * + - 68 + + + SUM ( + ( - col1 ) ) AS col1 FROM tab1 AS cor0
----
105
-6390

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-839
SELECT ALL CAST( NULL AS DECIMAL ) - - col2 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-839
SELECT ALL CAST ( NULL AS REAL ) - - col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-841
SELECT col0 DIV - - col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-841
SELECT col0 / - - col2 FROM tab1
----
0
1
1

query III rowsort
SELECT * FROM tab2 WHERE NOT - 38 + - 39 <= - col0
----

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

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

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

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

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

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

query II rowsort
SELECT + col1 AS col2, + col0 * col0 * + col0 * - col0 FROM tab2
----
51
-4477456
67
-31640625
77
-16777216

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col1, 58 AS col1 FROM tab2 AS cor0
----
-23
58
-40
58
-58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-850
SELECT - - col2 * 82 * ( + 66 ) DIV + col0 + + col0 FROM tab1 AS cor0
----
10238
3841
4135

skipif mysql # not compatible
query I rowsort label-850
SELECT - - col2 * 82 * ( + 66 ) / + col0 + + col0 FROM tab1 AS cor0
----
10238
3841
4135

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-851
SELECT ALL + 18, - COUNT ( * ) col2 FROM tab2 AS cor0
----
18
-3

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

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

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

query I rowsort
SELECT 58 * 45 * 3 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30f47f60a48ac53b96458d555d178b2d

query I rowsort
SELECT + 22 * + col0 AS col1 FROM tab0
----
1914
2134
330

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-857
SELECT 11 AS col2, col2 DIV - col2 AS col0 FROM tab1
----
11
-1
11
-1
11
-1

skipif mysql # not compatible
query II rowsort label-857
SELECT 11 AS col2, col2 / - col2 AS col0 FROM tab1
----
11
-1
11
-1
11
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-859
SELECT + col2 DIV - col2 - + - col2 AS col0 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-859
SELECT + col2 / - col2 - + - col2 AS col0 FROM tab0 AS cor0
----
46
9
98

query I rowsort
SELECT DISTINCT + col0 * + col0 * + col2 FROM tab1 AS cor0
----
249696
426275
563108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-861
SELECT - - 32 DIV MAX( - 28 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-861
SELECT - - 32 / MAX ( - 28 ) FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-862
SELECT - 15 DIV - - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-862
SELECT - 15 / - - col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-863
SELECT + + 36 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) <> - + col1
----

skipif mysql # not compatible
query I rowsort label-863
SELECT + + 36 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) <> - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * col1 col1, col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + col1 AND - 39
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-865
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST( NULL AS DECIMAL ) * + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-865
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST ( NULL AS REAL ) * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-866
SELECT DISTINCT + COUNT( ALL - col1 ) * 33 AS col0 FROM tab1 AS cor0 WHERE - CAST( - + col1 AS SIGNED ) * col2 IS NOT NULL
----
99

skipif mysql # not compatible
query I rowsort label-866
SELECT DISTINCT + COUNT ( ALL - col1 ) * 33 AS col0 FROM tab1 AS cor0 WHERE - CAST ( - + col1 AS INTEGER ) * col2 IS NOT NULL
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-867
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) NOT IN ( + 95 )
----

skipif mysql # not compatible
query III rowsort label-867
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) NOT IN ( + 95 )
----

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

skipif mysql # not compatible
query II rowsort label-868
SELECT DISTINCT 87 + + 41 AS col2, COUNT ( * ) FROM tab1
----
128
3

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT - ( + + MIN( DISTINCT - 92 ) ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-869
SELECT - ( + + MIN ( DISTINCT - 92 ) ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
92

query I rowsort
SELECT col2 + - ( + - 32 ) + + ( + col1 ) * - col1 + 78 FROM tab0
----
-321
-6404
208

onlyif mysql # DIV for integer division: 
query II rowsort label-871
SELECT DISTINCT col1 + + - col1 DIV + col1 col1, col1 AS col1 FROM tab0
----
0
1
20
21
80
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-871
SELECT DISTINCT col1 + + - col1 / + col1 col1, col1 AS col1 FROM tab0
----
0
1
20
21
80
81

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT + 52 + + - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
49

skipif mysql # not compatible
query I rowsort label-872
SELECT + 52 + + - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
49

query I rowsort
SELECT ALL - - col2 - - ( col2 ) FROM tab1 cor0
----
118
136
192

query I rowsort
SELECT DISTINCT - col0 - + + 46 FROM tab2 AS cor0
----
-110
-121
-92

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT DISTINCT 73 * - - SUM( - col0 ) FROM tab0 AS cor0
----
-14527

skipif mysql # not compatible
query I rowsort label-877
SELECT DISTINCT 73 * - - SUM ( - col0 ) FROM tab0 AS cor0
----
-14527

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-879
SELECT ALL ( - + col0 ) DIV + CAST( + col1 AS SIGNED ) FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL ( - + col0 ) / + CAST ( + col1 AS INTEGER ) FROM tab0
----
-4
-97
0

onlyif mysql # DIV for integer division: 
query I rowsort label-880
SELECT col2 DIV - 27 FROM tab1
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-880
SELECT col2 / - 27 FROM tab1
----
-2
-2
-3

query I rowsort
SELECT + col2 * - 54 * + 34 AS col2 FROM tab2
----
-106488
-42228
-73440

query I rowsort
SELECT DISTINCT + + 25 AS col1 FROM tab2 WHERE NOT - col0 * - 4 IS NULL
----
25

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

skipif mysql # not compatible
query I rowsort label-883
SELECT col1 / - 73 FROM tab0
----
-1
0
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-885
SELECT col1 DIV 62 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-885
SELECT col1 / 62 FROM tab2
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 65 * + col0 col2 FROM tab2 AS cor0
----
-2990
-4160
-4875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, 0 * + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 96 * + + 98 AS col2 FROM tab2 AS cor0
----
9408

query II rowsort
SELECT + col1 * ( + col2 ) AS col0, + col2 AS col2 FROM tab1
----
1344
96
295
59
3196
68

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * col0 > + col0 * + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-891
SELECT + 4 DIV + col2 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-891
SELECT + 4 / + col2 AS col0 FROM tab0 AS cor0
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-893
SELECT - 92 * - CAST( + - col0 AS SIGNED ) FROM tab0 AS cor0
----
-1380
-8004
-8924

skipif mysql # not compatible
query I rowsort label-893
SELECT - 92 * - CAST ( + - col0 AS INTEGER ) FROM tab0 AS cor0
----
-1380
-8004
-8924

query I rowsort
SELECT 60 * + - col0 AS col0 FROM tab0 AS cor0
----
-5220
-5820
-900

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

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

query I rowsort
SELECT ALL + 31 + col1 AS col1 FROM tab1
----
36
45
78

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT DISTINCT + MAX( DISTINCT - 71 ) FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-897
SELECT DISTINCT + MAX ( DISTINCT - 71 ) FROM tab2
----
-71

query II rowsort
SELECT DISTINCT + col2, + col1 AS col1 FROM tab1 cor0 WHERE + ( + - col0 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 = + 88
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 - 74 FROM tab0 AS cor0
----
-53
-73
7

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT ALL MAX( col2 ) col0 FROM tab1 AS cor0
----
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT + ( - - MIN( + 71 ) ) AS col2 FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-902
SELECT + ( - - MIN ( + 71 ) ) AS col2 FROM tab2 AS cor0
----
71

query I rowsort
SELECT + - 44 FROM tab2 WHERE + col2 IS NOT NULL
----
-44
-44
-44

query I rowsort
SELECT DISTINCT - 75 + ( + 95 ) AS col2 FROM tab1
----
20

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-908
SELECT DISTINCT + MAX( ALL + - 96 ), - 47 AS col0 FROM tab1 AS cor0
----
-96
-47

skipif mysql # not compatible
query II rowsort label-908
SELECT DISTINCT + MAX ( ALL + - 96 ), - 47 AS col0 FROM tab1 AS cor0
----
-96
-47

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-912
SELECT ALL + COUNT( * ) DIV SUM( ALL - 84 ) + + COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-912
SELECT ALL + COUNT ( * ) / SUM ( ALL - 84 ) + + COUNT ( * ) FROM tab2 AS cor0
----
3

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

query II rowsort
SELECT DISTINCT - 54, col1 AS col1 FROM tab1 WHERE NOT - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT - MAX( DISTINCT col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-915
SELECT - MAX ( DISTINCT col0 ) FROM tab1
----
-91

query I rowsort
SELECT DISTINCT 21 FROM tab0 WHERE NOT + - 90 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT ALL + MIN( DISTINCT + col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-917
SELECT ALL + MIN ( DISTINCT + col2 ) AS col1 FROM tab2
----
23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT DISTINCT - MAX( ALL - - col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-919
SELECT DISTINCT - MAX ( ALL - - col2 ) FROM tab1
----
-96

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

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

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

skipif mysql # not compatible
query II rowsort label-921
SELECT DISTINCT - + COUNT ( * ) AS col1, 39 FROM tab2 cor0
----
-3
39

query I rowsort
SELECT DISTINCT + + 18 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18

query I rowsort
SELECT + 5 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT 48 + + 5 FROM tab2 AS cor0
----
53
53
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-925
SELECT ALL - col0 / - - ( + - 66 ) * + - CAST( NULL AS SIGNED ) - + + col0 - - 73 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-925
SELECT ALL - col0 / - - ( + - 66 ) * + - CAST ( NULL AS INTEGER ) - + + col0 - - 73 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT ALL - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT IN ( + + col2, col2 + - 61 ) )
----
0

skipif mysql # not compatible
query I rowsort label-926
SELECT ALL - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT IN ( + + col2, col2 + - 61 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-927
SELECT 84 + - - col0 + + - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
186
254
266

skipif mysql # not compatible
query I rowsort label-927
SELECT 84 + - - col0 + + - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
186
254
266

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-929
SELECT ALL + - SUM( DISTINCT col0 ) DIV + 91 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-929
SELECT ALL + - SUM ( DISTINCT col0 ) / + 91 FROM tab0 AS cor0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-930
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 20 + + col1 >= CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-930
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 20 + + col1 >= CAST ( + col2 AS INTEGER )
----

query II rowsort
SELECT ALL - ( - + col1 ) AS col1, + col1 + + col2 FROM tab2 cor0
----
51
74
67
125
77
117

query I rowsort
SELECT - 80 * - col0 AS col0 FROM tab2
----
3680
5120
6000

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT - COUNT( ALL - 62 ) AS col2 FROM tab1 WHERE + 69 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-933
SELECT - COUNT ( ALL - 62 ) AS col2 FROM tab1 WHERE + 69 >= NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-934
SELECT ALL - 32 + + 77 DIV - col1 + + 3 * - col0 * - - col2 AS col2 FROM tab2
----
-13083
-3207
-7713

skipif mysql # not compatible
query I rowsort label-934
SELECT ALL - 32 + + 77 / - col1 + + 3 * - col0 * - - col2 AS col2 FROM tab2
----
-13083
-3207
-7713

query I rowsort
SELECT DISTINCT + col0 + + + col1 AS col2 FROM tab1
----
138
65
90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT DISTINCT - COUNT( 76 ) + + + 65 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-938
SELECT DISTINCT - COUNT ( 76 ) + + + 65 FROM tab1
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - 46 + + col1 col1 FROM tab1
----
2209
235
658

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

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

query I rowsort
SELECT ( 14 ) + - 85 AS col1 FROM tab1
----
-71
-71
-71

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-942
SELECT - 1 / + col1 col1 FROM tab0
----
-1
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT 53 * - - MAX( + + col0 ) * MIN( ALL + col1 ) FROM tab2
----
202725

skipif mysql # not compatible
query I rowsort label-945
SELECT 53 * - - MAX ( + + col0 ) * MIN ( ALL + col1 ) FROM tab2
----
202725

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN col0 AND - 22 * + - 86
----
15
81
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-947
SELECT ALL + COUNT( * ) + + + ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN - - CAST( NULL AS SIGNED ) AND + + col1 * - 63
----
6

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL + COUNT ( * ) + + + ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN - - CAST ( NULL AS INTEGER ) AND + + col1 * - 63
----
6

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

query II rowsort
SELECT DISTINCT - 57 AS col0, + 8 * + 35 FROM tab2 AS cor0
----
-57
280

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > 36
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-952
SELECT DISTINCT + + col2 AS col2, col1, col2 * - - CAST( NULL AS SIGNED ) + - 70 FROM tab1 AS cor0
----
9 values hashing to c2c4a6adb50571aceb34e876c9e9e99a

skipif mysql # not compatible
query III rowsort label-952
SELECT DISTINCT + + col2 AS col2, col1, col2 * - - CAST ( NULL AS INTEGER ) + - 70 FROM tab1 AS cor0
----
9 values hashing to c2c4a6adb50571aceb34e876c9e9e99a

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 / + 92 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT - 38 * - MAX( DISTINCT + - 83 ) + 92 FROM tab1 AS cor0
----
-3062

skipif mysql # not compatible
query I rowsort label-954
SELECT - 38 * - MAX ( DISTINCT + - 83 ) + 92 FROM tab1 AS cor0
----
-3062

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT - 10 IS NULL
----
10
47
99

query II rowsort
SELECT 1 * col0, + 28 AS col1 FROM tab1
----
51
28
85
28
91
28

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * - 7 * + col0 * + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT DISTINCT - SUM( + col0 ) * ( - 14 ) FROM tab1 AS cor0
----
3178

skipif mysql # not compatible
query I rowsort label-962
SELECT DISTINCT - SUM ( + col0 ) * ( - 14 ) FROM tab1 AS cor0
----
3178

query I rowsort
SELECT + col2 * 46 FROM tab0 cor0
----
2162
4554
460

query II rowsort
SELECT DISTINCT col2, + col0 + - 40 + col1 FROM tab1 AS cor0
----
59
50
68
98
96
25

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

query I rowsort
SELECT ALL ( col2 ) AS col1 FROM tab1 WHERE NOT col2 = NULL
----

query I rowsort
SELECT + 12 + - col0 AS col0 FROM tab0
----
-3
-75
-85

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-971
SELECT DISTINCT ( 56 ) DIV - col1 col0 FROM tab0
----
-2
-56
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-971
SELECT DISTINCT ( 56 ) / - col1 col0 FROM tab0
----
-2
-56
0

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

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

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

query II rowsort
SELECT DISTINCT - - col2 AS col2, - col1 AS col0 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= 16 * col0 / + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col0, - col0 + col2 col0 FROM tab2
----
23
-23
40
-24
58
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT ALL MIN( - 46 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL MIN ( - 46 ) FROM tab2
----
-46

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

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

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

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

query I rowsort
SELECT 19 * + ( + col0 ) AS col2 FROM tab0
----
1653
1843
285

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT 37 * COUNT( * ) AS col1 FROM tab1
----
111

skipif mysql # not compatible
query I rowsort label-984
SELECT 37 * COUNT ( * ) AS col1 FROM tab1
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-985
SELECT ALL + 39 AS col2, COUNT( * ) DIV - CAST( - 20 AS SIGNED ) FROM tab2 AS cor0
----
39
0

skipif mysql # not compatible
query II rowsort label-985
SELECT ALL + 39 AS col2, COUNT ( * ) / - CAST ( - 20 AS INTEGER ) FROM tab2 AS cor0
----
39
0

query I rowsort
SELECT - col0 * col1 * + - col1 AS col0 FROM tab0 AS cor0
----
38367
97
98415

query II rowsort
SELECT DISTINCT + 54 AS col1, col2 FROM tab1 AS cor0
----
54
59
54
68
54
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col1 + col2 col0 FROM tab1
----
1440
3264
354

query I rowsort
SELECT DISTINCT 81 AS col1 FROM tab2 WHERE - + col1 * + 70 = ( + col2 )
----

query I rowsort
SELECT - 16 + + - 2 + - - col0 + + + 96 * + - ( - col0 ) FROM tab2
----
4444
6190
7257

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT - MIN( ALL - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-995
SELECT - MIN ( ALL - col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT ( - 43 ) AS col1 FROM tab1
----
-43
-43
-43

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

skipif mysql # not compatible
query I rowsort label-997
SELECT + COUNT ( * ) / - 77 AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-998
SELECT DISTINCT + SUM( ALL - + col0 ) DIV + COUNT( * ) - - 54 + - + CAST( - 98 AS SIGNED ) AS col1 FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-998
SELECT DISTINCT + SUM ( ALL - + col0 ) / + COUNT ( * ) - - 54 + - + CAST ( - 98 AS INTEGER ) AS col1 FROM tab1
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-999
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( 32 * - col1, + ( - CAST( - - col0 AS SIGNED ) ) * 12, + col2 * col2 * - 78 + 19 + - 93, - + col2 * + ( - 5 ) )
----

skipif mysql # not compatible
query III rowsort label-999
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( 32 * - col1, + ( - CAST ( - - col0 AS INTEGER ) ) * 12, + col2 * col2 * - 78 + 19 + - 93, - + col2 * + ( - 5 ) )
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 * 60 / + col0 = NULL
----

query II rowsort
SELECT - 2 + - - col0, - col0 AS col2 FROM tab1 WHERE - + 97 + + ( - col2 ) * - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + + 70 FROM tab0
----
157
167
85

query I rowsort
SELECT 51 - 63 FROM tab0
----
-12
-12
-12

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT ALL SUM( ALL - 65 ) col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1006
SELECT ALL SUM ( ALL - 65 ) col2 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT DISTINCT - ( col0 ) * col2 + 29 FROM tab1 AS cor0
----
-4867
-4986
-6159

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT + + COUNT( * ) * - 36 + + - 79 FROM tab2 AS cor0
----
-187

skipif mysql # not compatible
query I rowsort label-1008
SELECT + + COUNT ( * ) * - 36 + + - 79 FROM tab2 AS cor0
----
-187

query II rowsort
SELECT ALL + - col1 + - col1, ( 4 ) - ( col1 ) AS col1 FROM tab2 AS cor0
----
-102
-47
-134
-63
-154
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT ALL MIN( ALL - col2 ) + + + 81 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-1010
SELECT ALL MIN ( ALL - col2 ) + + + 81 FROM tab1
----
-15

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1012
SELECT ALL CAST( + + col2 AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1012
SELECT ALL CAST ( + + col2 AS INTEGER ) FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT - 60 + - col0 FROM tab0
----
-147
-157
-75

query I rowsort
SELECT + - 41 * + - ( - col0 ) FROM tab0 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT 49 IS NOT NULL
----

query I rowsort
SELECT 88 * - col1 AS col0 FROM tab1
----
-1232
-4136
-440

query II rowsort
SELECT ALL - col1 AS col2, 88 * - 35 FROM tab2 AS cor0
----
-51
-3080
-67
-3080
-77
-3080

onlyif mysql # DIV for integer division: 
query I rowsort label-1019
SELECT DISTINCT + 48 * - col0 DIV - - col0 + - + ( + + 28 ) AS col0 FROM tab0 cor0
----
-76

skipif mysql # not compatible
query I rowsort label-1019
SELECT DISTINCT + 48 * - col0 / - - col0 + - + ( + + 28 ) AS col0 FROM tab0 cor0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1020
SELECT ALL - ( + CAST( + - COUNT( * ) AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
3

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

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

query I rowsort
SELECT DISTINCT col1 - col2 + - col0 AS col0 FROM tab1 cor0
----
-112
-133
-139

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

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

query I rowsort
SELECT - 88 - - 35 AS col0 FROM tab0 AS cor0
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT + - 8 - COUNT( * ) * ( + + 12 ) FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-1025
SELECT + - 8 - COUNT ( * ) * ( + + 12 ) FROM tab1 AS cor0
----
-44

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 44 + col1 NOT BETWEEN + 14 + 19 + + col2 AND + + col1 + - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 * + ( + - 48 ) FROM tab2 AS cor0
----
-2208
-3072
-3600

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE ( - col1 * + - 74 IS NOT NULL )
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT - COUNT( * ) + - MIN( DISTINCT + col2 ) FROM tab2 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-1029
SELECT - COUNT ( * ) + - MIN ( DISTINCT + col2 ) FROM tab2 cor0
----
-26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT DISTINCT 66 + - - COUNT( * ) + - 2 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-1031
SELECT DISTINCT 66 + - - COUNT ( * ) + - 2 FROM tab2
----
67

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 91 * col2 col1 FROM tab2 AS cor0
----
-2093
-3640
-5278

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

query I rowsort
SELECT DISTINCT - 89 * - col2 AS col2 FROM tab2 AS cor0
----
2047
3560
5162

query I rowsort
SELECT ALL - - 3 FROM tab1 WHERE NOT - 52 * - col0 <> col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1037
SELECT ALL + col2 DIV + + 27 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1037
SELECT ALL + col2 / + + 27 FROM tab2 AS cor0
----
0
1
2

query II rowsort
SELECT 94 * - col1 AS col1, - col0 * - + col2 AS col2 FROM tab1 AS cor0 WHERE NOT + ( - + col2 ) BETWEEN - col1 + + 67 AND col0
----
-1316
4896
-4418
6188
-470
5015

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

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

skipif mysql # not compatible
query I rowsort label-1040
SELECT DISTINCT - SUM ( DISTINCT - 14 ) AS col0 FROM tab1 cor0
----
14

query I rowsort
SELECT 58 FROM tab1 AS cor0 WHERE NOT col0 * - 24 IS NOT NULL
----

query I rowsort
SELECT ALL 2 * - col0 FROM tab0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT 63 + - MAX( DISTINCT col2 ) * COUNT( * ) FROM tab2
----
-111

skipif mysql # not compatible
query I rowsort label-1043
SELECT 63 + - MAX ( DISTINCT col2 ) * COUNT ( * ) FROM tab2
----
-111

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

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

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

query I rowsort
SELECT ALL + + ( 49 ) * 53 - - col1 AS col0 FROM tab1 AS cor0
----
2602
2611
2644

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT + - 80 * + - COUNT( * ) FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-1048
SELECT + - 80 * + - COUNT ( * ) FROM tab0 AS cor0
----
240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 3 * 72 + + + 59 col0, col2 AS col2 FROM tab0
----
275
10
275
47
275
99

query I rowsort
SELECT + col0 + - 46 AS col1 FROM tab0
----
-31
41
51

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

query I rowsort
SELECT ALL 72 - 69 FROM tab2 cor0
----
3
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col1 FROM tab2 AS cor0 WHERE - 79 > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT ALL + COUNT( * ) * - 20 FROM tab1 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-1054
SELECT ALL + COUNT ( * ) * - 20 FROM tab1 cor0
----
-60

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1056
SELECT + 58 DIV col1 + + col2, - col2 col2 FROM tab2 AS cor0
----
24
-23
40
-40
58
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1056
SELECT + 58 / col1 + + col2, - col2 col2 FROM tab2 AS cor0
----
24
-23
40
-40
58
-58

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

query I rowsort
SELECT DISTINCT + + col1 * - - 84 AS col0 FROM tab0 AS cor0
----
1764
6804
84

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1062
SELECT ALL + 66 AS col2, SUM( - col2 ) FROM tab2
----
66
-121

skipif mysql # not compatible
query II rowsort label-1062
SELECT ALL + 66 AS col2, SUM ( - col2 ) FROM tab2
----
66
-121

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE NOT - ( + 75 ) <= - 81
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1064
SELECT DISTINCT COUNT( * ), COUNT( * ) AS col0 FROM tab0 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-1064
SELECT DISTINCT COUNT ( * ), COUNT ( * ) AS col0 FROM tab0 cor0
----
3
3

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1068
SELECT ALL 7 * + col0 + - 27 DIV - 27 FROM tab2 AS cor0
----
323
449
526

skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL 7 * + col0 + - 27 / - 27 FROM tab2 AS cor0
----
323
449
526

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT DISTINCT + COUNT( * ) * - 13 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-1069
SELECT DISTINCT + COUNT ( * ) * - 13 FROM tab1 AS cor0
----
-39

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

query I rowsort
SELECT ALL ( 34 ) FROM tab0
----
34
34
34

query I rowsort
SELECT ALL + col2 * - - 48 + - ( col1 ) AS col0 FROM tab2 cor0
----
1053
1843
2717

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

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

query I rowsort
SELECT ALL + + 1 * col0 AS col1 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1075
SELECT - col1 DIV 73 * - - CAST( - - col2 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1075
SELECT - col1 / 73 * - - CAST ( - - col2 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1076
SELECT DISTINCT - + CAST( col2 AS SIGNED ) + - - 22 * - col2 AS col1 FROM tab2 AS cor0
----
-1334
-529
-920

skipif mysql # not compatible
query I rowsort label-1076
SELECT DISTINCT - + CAST ( col2 AS INTEGER ) + - - 22 * - col2 AS col1 FROM tab2 AS cor0
----
-1334
-529
-920

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1078
SELECT MAX( col2 ), + COUNT( * ) AS col1 FROM tab1 AS cor0
----
96
3

skipif mysql # not compatible
query II rowsort label-1078
SELECT MAX ( col2 ), + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
96
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT - SUM( ALL + + 91 ) FROM tab0
----
-273

skipif mysql # not compatible
query I rowsort label-1079
SELECT - SUM ( ALL + + 91 ) FROM tab0
----
-273

query II rowsort
SELECT - col2 AS col0, 32 AS col1 FROM tab0
----
-10
32
-47
32
-99
32

query II rowsort
SELECT DISTINCT - 83 AS col0, col1 * - col2 - - col0 AS col1 FROM tab1
----
-83
-1293
-83
-210
-83
-3105

query I rowsort
SELECT DISTINCT col2 + + 74 FROM tab1
----
133
142
170

query I rowsort
SELECT DISTINCT + col0 * - - col0 AS col1 FROM tab2
----
2116
4096
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-1084
SELECT ALL col1 * ( - + 47 ) DIV + 52 + col0 FROM tab0
----
-58
69
97

skipif mysql # not compatible
query I rowsort label-1084
SELECT ALL col1 * ( - + 47 ) / + 52 + col0 FROM tab0
----
-58
69
97

query III rowsort
SELECT * FROM tab0 WHERE - 96 BETWEEN NULL AND + - 29 + 58
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE - 27 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT - col1 FROM tab0 WHERE + col2 * col0 < NULL
----

query I rowsort
SELECT ALL + + col1 - - - 13 * + col0 AS col2 FROM tab1 AS cor0
----
-1100
-1136
-649

query I rowsort
SELECT ALL col2 + + col0 * - col1 * + - col1 FROM tab1 AS cor0
----
10092
201087
2184

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

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

query I rowsort
SELECT DISTINCT - + 14 - - ( - - col1 ) FROM tab0 AS cor0
----
-13
67
7

query I rowsort
SELECT - col1 * 58 * + 82 AS col1 FROM tab0 AS cor0
----
-385236
-4756
-99876

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

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

query I rowsort
SELECT DISTINCT ( - 83 ) FROM tab1 AS cor0
----
-83

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1096
SELECT ALL - 13 - CAST( - 89 AS SIGNED ) FROM tab2 WHERE NOT + 90 IS NULL
----
76
76
76

skipif mysql # not compatible
query I rowsort label-1096
SELECT ALL - 13 - CAST ( - 89 AS INTEGER ) FROM tab2 WHERE NOT + 90 IS NULL
----
76
76
76

query I rowsort
SELECT - col2 * - 24 AS col0 FROM tab0
----
1128
2376
240

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT SUM( 75 ) AS col2 FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-1098
SELECT SUM ( 75 ) AS col2 FROM tab1
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1099
SELECT ALL - CAST( 32 AS SIGNED ) AS col1 FROM tab0
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL - CAST ( 32 AS INTEGER ) AS col1 FROM tab0
----
-32
-32
-32

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

skipif mysql # not compatible
query I rowsort label-1100
SELECT MIN ( ALL - - col1 ) FROM tab0
----
1

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

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

query I rowsort
SELECT - col2 * - + col2 + - - col1 FROM tab0 AS cor0
----
121
2290
9802

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT ALL 82 * - COUNT( * ) + - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-1105
SELECT ALL 82 * - COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1106
SELECT - SUM( - + col1 ) + + COUNT( - col0 ) DIV - + CAST( - AVG ( DISTINCT - ( + + col1 ) ) AS SIGNED ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-1106
SELECT - SUM ( - + col1 ) + + COUNT ( - col0 ) / - + CAST ( - AVG ( DISTINCT - ( + + col1 ) ) AS INTEGER ) AS col1 FROM tab2
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1107
SELECT ALL - col2 + - - col1, + 82 / 64 * - col0 * - col2 * + col1 AS col1 FROM tab2 WHERE CAST( NULL AS SIGNED ) < ( NULL )
----

skipif mysql # not compatible
query II rowsort label-1107
SELECT ALL - col2 + - - col1, + 82 / 64 * - col0 * - col2 * + col1 AS col1 FROM tab2 WHERE CAST ( NULL AS INTEGER ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT + 30 + + 38 + + + 2 - 38 + + MIN( DISTINCT + - 6 ) * + - COUNT( * ) * + SUM( + col2 ) + + COUNT( * ) AS col2 FROM tab0
----
2843

skipif mysql # not compatible
query I rowsort label-1108
SELECT + 30 + + 38 + + + 2 - 38 + + MIN ( DISTINCT + - 6 ) * + - COUNT ( * ) * + SUM ( + col2 ) + + COUNT ( * ) AS col2 FROM tab0
----
2843

query I rowsort
SELECT ( - col0 ) + + col1 FROM tab2
----
-8
13
5

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

skipif mysql # not compatible
query I rowsort label-1110
SELECT AVG ( - - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL COUNT ( * ) + + 20 / - - CAST ( NULL AS INTEGER ) + 4 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT DISTINCT - 56 + + + MAX( DISTINCT - + 54 ) col0 FROM tab1
----
-110

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1112
SELECT DISTINCT - 56 + + + MAX ( DISTINCT - + 54 ) col0 FROM tab1
----
-110

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 64 col0 FROM tab2
----
-11
0
18

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

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

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

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

query I rowsort
SELECT - - col0 - - 25 + - + 6 * - + col0 + col1 AS col1 FROM tab0 AS cor0
----
211
655
705

query I rowsort
SELECT - col2 + + col0 * - col0 FROM tab1
----
-2697
-7284
-8349

query I rowsort
SELECT DISTINCT + 81 * + col0 + - col1 + + col2 AS col2 FROM tab1
----
4213
6939
7392

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1122
SELECT DISTINCT + + COUNT( * ) AS col2, + 88 DIV + 62 AS col2 FROM tab1 AS cor0
----
3
1

skipif mysql # not compatible
query II rowsort label-1122
SELECT DISTINCT + + COUNT ( * ) AS col2, + 88 / + 62 AS col2 FROM tab1 AS cor0
----
3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT + MAX( - col0 ) + 40 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-11

skipif mysql # not compatible
query I rowsort label-1123
SELECT + MAX ( - col0 ) + 40 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-11

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

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

query I rowsort
SELECT DISTINCT + 43 AS col2 FROM tab1 cor0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1127
SELECT DISTINCT - 12 AS col0, + ( CAST( + AVG ( + 6 ) AS SIGNED ) ) col1 FROM tab0 AS cor0
----
-12
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1127
SELECT DISTINCT - 12 AS col0, + ( CAST ( + AVG ( + 6 ) AS INTEGER ) ) col1 FROM tab0 AS cor0
----
-12
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT - 17 * - SUM( + col0 ) AS col0 FROM tab1
----
3859

skipif mysql # not compatible
query I rowsort label-1128
SELECT - 17 * - SUM ( + col0 ) AS col0 FROM tab1
----
3859

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

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

skipif mysql # not compatible
query I rowsort label-1130
SELECT - MAX ( ALL 85 ) AS col0 FROM tab2
----
-85

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

query I rowsort
SELECT - 1 * + col2 AS col2 FROM tab1
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-1133
SELECT DISTINCT + col1 DIV + 4 AS col2 FROM tab2
----
12
16
19

skipif mysql # not compatible
query I rowsort label-1133
SELECT DISTINCT + col1 / + 4 AS col2 FROM tab2
----
12
16
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1134
SELECT CAST( + col1 AS SIGNED ) AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1134
SELECT CAST ( + col1 AS INTEGER ) AS col2 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1135
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) AS col0, col0 col2 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-1135
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) AS col0, col0 col2 FROM tab1
----
NULL
51
NULL
85
NULL
91

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

query I rowsort
SELECT 37 + + - col2 AS col2 FROM tab0
----
-10
-62
27

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1141
SELECT DISTINCT COUNT( * ) AS col2, 95 * - - MIN( ALL - + col0 ) AS col0 FROM tab0 AS cor0
----
3
-9215

skipif mysql # not compatible
query II rowsort label-1141
SELECT DISTINCT COUNT ( * ) AS col2, 95 * - - MIN ( ALL - + col0 ) AS col0 FROM tab0 AS cor0
----
3
-9215

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1144
SELECT + 98 DIV + col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1144
SELECT + 98 / + col2 FROM tab1 AS cor0
----
1
1
1

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

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

query I rowsort
SELECT ALL - col0 * + 68 + + - col0 + + col1 AS col1 FROM tab0 AS cor0
----
-5982
-6692
-954

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

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

query I rowsort
SELECT DISTINCT + col0 + + - col1 AS col1 FROM tab2
----
-13
-5
8

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

query I rowsort
SELECT ALL - col2 - + 77 - col1 * col1 * - - col1 FROM tab0
----
-177
-531565
-9348

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

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

query I rowsort
SELECT ALL + col0 + col0 AS col0 FROM tab2 cor0 WHERE NOT + 50 / - col0 IS NULL
----
128
150
92

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

query I rowsort
SELECT DISTINCT 80 * + 23 FROM tab1
----
1840

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1156
SELECT DISTINCT 95 DIV - col2, col2 + col1 AS col2 FROM tab0 AS cor0
----
-2
128
-9
31
0
100

skipif mysql # not compatible
query II rowsort label-1156
SELECT DISTINCT 95 / - col2, col2 + col1 AS col2 FROM tab0 AS cor0
----
-2
128
-9
31
0
100

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

query I rowsort
SELECT ALL + + 71 * + 4 + - - col0 FROM tab1 AS cor0
----
335
369
375

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 70 > NULL
----

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

query II rowsort
SELECT DISTINCT + col0 * - col0 * + col1, col0 + + - col0 AS col1 FROM tab2
----
-107916
0
-315392
0
-376875
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT ALL COUNT( * ) FROM tab0, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL COUNT ( * ) FROM tab0, tab2 cor0
----
9

query I rowsort
SELECT ALL + 16 + + + 20 AS col1 FROM tab0 cor0
----
36
36
36

query III rowsort
SELECT * FROM tab2 WHERE - col1 NOT BETWEEN ( - 20 ) AND col1 - 22 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 + 12 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

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

query I rowsort
SELECT - 26 AS col0 FROM tab1 WHERE NULL BETWEEN ( 5 ) AND col2
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1169
SELECT + 86 - - col2 DIV + col0 FROM tab2
----
86
86
86

skipif mysql # not compatible
query I rowsort label-1169
SELECT + 86 - - col2 / + col0 FROM tab2
----
86
86
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1170
SELECT ALL - col0 AS col2 FROM tab1 WHERE NOT + CAST( NULL AS DECIMAL ) IN ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-1170
SELECT ALL - col0 AS col2 FROM tab1 WHERE NOT + CAST ( NULL AS REAL ) IN ( - col1 )
----

query I rowsort
SELECT ALL + 29 * col1 FROM tab2
----
1479
1943
2233

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE ( - 78 ) IS NOT NULL
----
-46
-64
-75

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

query I rowsort
SELECT - ( 48 ) * - col0 FROM tab0
----
4176
4656
720

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1177
SELECT + CAST( col1 AS SIGNED ) * + col1 AS col2 FROM tab2
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-1177
SELECT + CAST ( col1 AS INTEGER ) * + col1 AS col2 FROM tab2
----
2601
4489
5929

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT - 0 * - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1179
SELECT - 0 * - COUNT ( * ) FROM tab1
----
0

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

query I rowsort
SELECT - 18 * 42 - + col0 AS col0 FROM tab0
----
-771
-843
-853

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT DISTINCT MIN( DISTINCT col1 ) AS col1 FROM tab2 WHERE NOT + 91 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1184
SELECT DISTINCT MIN ( DISTINCT col1 ) AS col1 FROM tab2 WHERE NOT + 91 < NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT DISTINCT - COUNT( * ) * + MIN( col1 ) col1 FROM tab1
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1187
SELECT DISTINCT - COUNT ( * ) * + MIN ( col1 ) col1 FROM tab1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT ALL 70 * COUNT( * ) FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL 70 * COUNT ( * ) FROM tab0
----
210

query I rowsort
SELECT + 59 + + col2 FROM tab0
----
106
158
69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col0 / 19 ) NOT BETWEEN - col0 AND + col2 * - 73
----

query I rowsort
SELECT - 48 + col0 FROM tab2
----
-2
16
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1192
SELECT DISTINCT + 19 DIV col1 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-1192
SELECT DISTINCT + 19 / col1 FROM tab1
----
0
1
3

query I rowsort
SELECT DISTINCT ( + col0 ) * + 32 AS col0 FROM tab2
----
1472
2048
2400

query I rowsort
SELECT DISTINCT 46 * + 98 FROM tab2 AS cor0 WHERE NULL IN ( ( + col1 ) )
----

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

query I rowsort
SELECT 35 AS col0 FROM tab2 AS cor0 WHERE NULL > ( 2 * col1 )
----

query I rowsort
SELECT DISTINCT - 84 * col0 FROM tab2
----
-3864
-5376
-6300

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 / - col0 NOT BETWEEN - 76 - 36 * 18 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT DISTINCT 4 * SUM( + 18 ) FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-1199
SELECT DISTINCT 4 * SUM ( + 18 ) FROM tab2
----
216

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT ALL - MIN( DISTINCT + 39 ) col2 FROM tab0
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1201
SELECT ALL - MIN ( DISTINCT + 39 ) col2 FROM tab0
----
-39

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

query I rowsort
SELECT DISTINCT - 7 + col0 AS col1 FROM tab1 AS cor0 WHERE - 74 + + 89 <> 97 - + col0 * + col1
----
44
78
84

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

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

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

query I rowsort
SELECT DISTINCT + 31 * + 80 AS col2 FROM tab0 cor0
----
2480

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

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

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

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

query I rowsort
SELECT ALL + 55 * - 2 FROM tab0
----
-110
-110
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT 74 * - 47 * MIN( + col2 ) col1 FROM tab1
----
-205202

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1211
SELECT 74 * - 47 * MIN ( + col2 ) col1 FROM tab1
----
-205202

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

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

query I rowsort
SELECT ALL col2 * ( - 3 ) AS col0 FROM tab1
----
-177
-204
-288

query I rowsort
SELECT ALL - 99 * + + col0 + col2 FROM tab2
----
-4531
-6296
-7367

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

query I rowsort
SELECT DISTINCT - col1 * - 4 AS col2 FROM tab0
----
324
4
84

query I rowsort
SELECT DISTINCT - col0 * - + 50 + col2 * 38 AS col0 FROM tab1
----
6198
6492
7134

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

query I rowsort
SELECT - - col0 + + - 21 + - col0 AS col0 FROM tab1 AS cor0
----
-21
-21
-21

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

query I rowsort
SELECT + 18 + + col0 FROM tab2 AS cor0
----
64
82
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT ALL + 61 + + COUNT( * ) col1 FROM tab1 WHERE NULL IS NULL
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1222
SELECT ALL + 61 + + COUNT ( * ) col1 FROM tab1 WHERE NULL IS NULL
----
64

query I rowsort
SELECT - col1 * + 19 AS col2 FROM tab0
----
-1539
-19
-399

query I rowsort
SELECT ALL - 56 + + - 12 FROM tab1
----
-68
-68
-68

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1226
SELECT ALL + 50 / + CAST( 68 AS SIGNED ) + col1 AS col0 FROM tab0 AS cor0 WHERE col0 BETWEEN ( col0 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL + 50 / + CAST ( 68 AS INTEGER ) + col1 AS col0 FROM tab0 AS cor0 WHERE col0 BETWEEN ( col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1227
SELECT * FROM tab0 AS cor0 WHERE - 94 - - col2 NOT BETWEEN CAST( col0 AS SIGNED ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1227
SELECT * FROM tab0 AS cor0 WHERE - 94 - - col2 NOT BETWEEN CAST ( col0 AS INTEGER ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col1, - col2 col0 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

query I rowsort
SELECT + col1 * + 50 - 34 * col2 FROM tab0 AS cor0
----
-3316
2452
710

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - 11 col2 FROM tab0 AS cor0
----
12
32
92

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN - col1 AND 27 OR ( NULL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT DISTINCT - COUNT( * ) + - 32 - + 31 * - COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT NULL <> NULL
----
-32

skipif mysql # not compatible
query I rowsort label-1232
SELECT DISTINCT - COUNT ( * ) + - 32 - + 31 * - COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT NULL <> NULL
----
-32

query I rowsort
SELECT DISTINCT + - col0 * 24 FROM tab2 AS cor0
----
-1104
-1536
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT 60 + - MIN( col0 ) FROM tab1 cor0 WHERE ( NULL ) NOT IN ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1234
SELECT 60 + - MIN ( col0 ) FROM tab1 cor0 WHERE ( NULL ) NOT IN ( + col1 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1235
SELECT MAX( ALL + col0 ) - + COUNT( * ) DIV COUNT( * ) FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-1235
SELECT MAX ( ALL + col0 ) - + COUNT ( * ) / COUNT ( * ) FROM tab2 AS cor0
----
74

query I rowsort
SELECT ALL + 88 AS col1 FROM tab0
----
88
88
88

query I rowsort
SELECT - col2 * - col2 + + 70 FROM tab0
----
170
2279
9871

query I rowsort
SELECT DISTINCT 74 * 52 FROM tab1 WHERE NOT - col1 IS NULL AND NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT 67 AS col1 FROM tab1 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT DISTINCT - 95 + - - MAX( + - 7 ) AS col2 FROM tab1
----
-102

skipif mysql # not compatible
query I rowsort label-1240
SELECT DISTINCT - 95 + - - MAX ( + - 7 ) AS col2 FROM tab1
----
-102

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 + - 35 ) >= col0 / - col0 - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1242
SELECT DISTINCT - COUNT( * ) + - MIN( ALL - col1 ) DIV - COUNT( * ) + + SUM( + col2 ) FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT - COUNT ( * ) + - MIN ( ALL - col1 ) / - COUNT ( * ) + + SUM ( + col2 ) FROM tab0
----
126

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

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

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

query I rowsort
SELECT + 93 / col2 + - col1 FROM tab2 AS cor0 WHERE NOT ( - 8 + - + col0 ) NOT BETWEEN + col1 + col2 AND 77 * + col1 + 22
----

query II rowsort
SELECT ALL 73, - col2 AS col0 FROM tab0
----
73
-10
73
-47
73
-99

query I rowsort
SELECT ALL + ( - - 29 ) AS col1 FROM tab2
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT DISTINCT 71 * - + COUNT( * ) FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-1248
SELECT DISTINCT 71 * - + COUNT ( * ) FROM tab2 AS cor0
----
-213

query I rowsort
SELECT DISTINCT - 42 AS col0 FROM tab1 AS cor0
----
-42

query II rowsort
SELECT ALL col2 AS col0, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 93 * 58 * - col2 <> ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1252
SELECT COUNT( * ) DIV + - ( 10 ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1252
SELECT COUNT ( * ) / + - ( 10 ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT DISTINCT + + 27 FROM tab0 cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT DISTINCT + + MAX( 84 ) * 68 AS col2 FROM tab0 AS cor0
----
5712

skipif mysql # not compatible
query I rowsort label-1255
SELECT DISTINCT + + MAX ( 84 ) * 68 AS col2 FROM tab0 AS cor0
----
5712

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 <= ( NULL )
----

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

query I rowsort
SELECT col0 + 47 FROM tab0
----
134
144
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT ALL - COUNT( * ) FROM tab1 WHERE - 93 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1259
SELECT ALL - COUNT ( * ) FROM tab1 WHERE - 93 <> NULL
----
0

query I rowsort
SELECT DISTINCT - 18 + col2 AS col0 FROM tab0
----
-8
29
81

onlyif mysql # DIV for integer division: 
query II rowsort label-1261
SELECT ALL + 79 DIV - 5 AS col0, 73 * + col2 AS col2 FROM tab1
----
-15
4307
-15
4964
-15
7008

skipif mysql # not compatible
query II rowsort label-1261
SELECT ALL + 79 / - 5 AS col0, 73 * + col2 AS col2 FROM tab1
----
-15
4307
-15
4964
-15
7008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + ( - ( - - col0 ) ) col1, ( - 53 ) AS col2 FROM tab1
----
-4896
-53
-5015
-53
-6188
-53

query II rowsort
SELECT ALL - col1 AS col0, col1 FROM tab2 WHERE ( + 78 ) IS NOT NULL
----
-51
51
-67
67
-77
77

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT ALL MAX( + + col1 ) + - COUNT( * ) AS col0 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-1266
SELECT ALL MAX ( + + col1 ) + - COUNT ( * ) AS col0 FROM tab1
----
44

query I rowsort
SELECT ALL col2 FROM tab0 cor0 WHERE NOT NULL NOT IN ( + 65 )
----

query II rowsort
SELECT - + col1 * - - 92 AS col0, + 7 - + + 84 AS col2 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 10, col2 col0 FROM tab1 AS cor0
----
-10
59
-10
68
-10
96

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

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

query I rowsort
SELECT DISTINCT + col1 * 5 FROM tab1 WHERE NOT NULL <= + col1 AND NULL = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - col2 AND - - 58 * - 56 * + 47 + 6
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1274
SELECT DISTINCT CAST( col0 AS SIGNED ) - - - col2 FROM tab2 AS cor0
----
17
23
24

skipif mysql # not compatible
query I rowsort label-1274
SELECT DISTINCT CAST ( col0 AS INTEGER ) - - - col2 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT ALL + 50 - 43 AS col0 FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT - col1 * - col1 + col0 FROM tab0 AS cor0 WHERE col1 * - col0 * ( + 31 ) IS NOT NULL
----
528
6576
98

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL = - 6 * 98 + - col0 + - 24 * - 74 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT MAX( - col1 ) * 87 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-87

skipif mysql # not compatible
query I rowsort label-1279
SELECT MAX ( - col1 ) * 87 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-1280
SELECT - col2 DIV - + col0 AS col0, + col1 AS col1 FROM tab2 cor0
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-1280
SELECT - col2 / - + col0 AS col0, + col1 AS col1 FROM tab2 cor0
----
0
51
0
67
0
77

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

query III rowsort
SELECT * FROM tab2 WHERE 48 <= - - 1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1283
SELECT ALL ( col0 ) DIV + col0 - - 13 + + - col0 FROM tab0
----
-1
-73
-83

skipif mysql # not compatible
query I rowsort label-1283
SELECT ALL ( col0 ) / + col0 - - 13 + + - col0 FROM tab0
----
-1
-73
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1284
SELECT ALL col1 AS col2 FROM tab0 WHERE NOT ( CAST( + col0 AS SIGNED ) * + ( - 27 ) ) IN ( CAST( + 76 AS SIGNED ) + + ( + 72 ) )
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1284
SELECT ALL col1 AS col2 FROM tab0 WHERE NOT ( CAST ( + col0 AS INTEGER ) * + ( - 27 ) ) IN ( CAST ( + 76 AS INTEGER ) + + ( + 72 ) )
----
1
21
81

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1286
SELECT 38 * + CAST( - col0 AS SIGNED ) - + col1 FROM tab1
----
-1952
-3235
-3505

skipif mysql # not compatible
query I rowsort label-1286
SELECT 38 * + CAST ( - col0 AS INTEGER ) - + col1 FROM tab1
----
-1952
-3235
-3505

query I rowsort
SELECT 93 - - 81 AS col2 FROM tab2
----
174
174
174

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1289
SELECT DISTINCT 9 DIV col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1289
SELECT DISTINCT 9 / col0 FROM tab0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1291
SELECT ALL + 11 DIV - col1 AS col0 FROM tab0
----
-11
0
0

skipif mysql # not compatible
query I rowsort label-1291
SELECT ALL + 11 / - col1 AS col0 FROM tab0
----
-11
0
0

query I rowsort
SELECT DISTINCT ( 41 ) FROM tab1 AS cor0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1293
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE ( + 65 ) * - col1 * + col0 * - ( - 60 ) + - + col1 + ( - 60 + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) ) = 49
----
0

skipif mysql # not compatible
query I rowsort label-1293
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE ( + 65 ) * - col1 * + col0 * - ( - 60 ) + - + col1 + ( - 60 + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) ) = 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT + - COUNT( + + 46 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1294
SELECT + - COUNT ( + + 46 ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-1295
SELECT + COUNT( * ) col0, - COUNT( DISTINCT 25 ) * + - 67 AS col2 FROM tab1 AS cor0 WHERE NOT + 92 IS NOT NULL
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1295
SELECT + COUNT ( * ) col0, - COUNT ( DISTINCT 25 ) * + - 67 AS col2 FROM tab1 AS cor0 WHERE NOT + 92 IS NOT NULL
----
0
0

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1298
SELECT + COUNT ( * ) / + 86 * - - COUNT ( * ) FROM tab0 AS cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT + MIN( DISTINCT + col0 ) / 97 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 * + + col2 - + - col1 + - col2 + ( + - col2 ) * - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1300
SELECT + MIN ( DISTINCT + col0 ) / 97 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 * + + col2 - + - col1 + - col2 + ( + - col2 ) * - col1 IS NOT NULL
----
NULL

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

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

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

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

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

query I rowsort
SELECT DISTINCT 26 FROM tab1 cor0 WHERE NULL NOT BETWEEN 52 * + ( - col2 ) * - ( col2 ) * - col2 AND ( - 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT COUNT( - col2 ) col0 FROM tab0
----
3

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

query I rowsort
SELECT DISTINCT - col2 + + 5 AS col0 FROM tab2
----
-18
-35
-53

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

query I rowsort
SELECT - col0 FROM tab0 WHERE NULL > col1 * - - col0 - col0 * + col1 * + 50 / - - 56
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1309
SELECT ALL - col2 DIV col1 + col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1309
SELECT ALL - col2 / col1 + col1 FROM tab2
----
51
67
77

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

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

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

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

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

query I rowsort
SELECT + col0 + - + 94 AS col0 FROM tab2 AS cor0
----
-19
-30
-48

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 col0 FROM tab2 WHERE NULL > + 16 * - + col1 + ( col1 ) + + 26
----

query I rowsort
SELECT DISTINCT - col1 + + - col2 + - - 87 FROM tab0
----
-13
-41
56

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

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

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

query I rowsort
SELECT + + col2 - + - ( col2 ) * - col1 * col0 FROM tab2 AS cor0
----
-197080
-291392
-53935

query I rowsort
SELECT + + col1 * + + 42 * - col1 - - + 3 FROM tab0 AS cor0
----
-18519
-275559
-39

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1324
SELECT + 27 DIV 96 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1324
SELECT + 27 / 96 FROM tab1
----
0
0
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - ( - + col2 ) ) * 8 * - 80 + - col2 BETWEEN NULL AND - col2
----

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 40 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1329
SELECT DISTINCT col2 DIV - + 30 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-1329
SELECT DISTINCT col2 / - + 30 FROM tab0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1330
SELECT DISTINCT + - 3 AS col0, + COUNT( * ) * - COUNT( * ) * - 5 FROM tab2 AS cor0
----
-3
45

skipif mysql # not compatible
query II rowsort label-1330
SELECT DISTINCT + - 3 AS col0, + COUNT ( * ) * - COUNT ( * ) * - 5 FROM tab2 AS cor0
----
-3
45

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1332
SELECT ALL + COUNT( * ) AS col1, - SUM( ALL - col2 ) col0 FROM tab1 AS cor0
----
3
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1332
SELECT ALL + COUNT ( * ) AS col1, - SUM ( ALL - col2 ) col0 FROM tab1 AS cor0
----
3
223

query I rowsort
SELECT + + col1 + - 41 AS col1 FROM tab0 AS cor0
----
-20
-40
40

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 + + - col1 * - col0 col0 FROM tab0
----
1259
141
1871

query I rowsort
SELECT + col2 + - + col2 FROM tab2 WHERE col0 BETWEEN NULL AND 89
----

query II rowsort
SELECT ALL col2 + + 11, - ( + col2 ) AS col1 FROM tab0
----
110
-99
21
-10
58
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1338
SELECT + CAST( NULL AS DECIMAL ) * + ( + 44 ) col1 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1339
SELECT DISTINCT + MIN( ALL + + col0 ) DIV - 32 + - 2 DIV + + MIN( ALL + col2 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1339
SELECT DISTINCT + MIN ( ALL + + col0 ) / - 32 + - 2 / + + MIN ( ALL + col2 ) FROM tab2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1340
SELECT + 61 * + MIN( col2 ) DIV + - MIN( DISTINCT + col2 ) + + + 52 + + COUNT( * ) col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1340
SELECT + 61 * + MIN ( col2 ) / + - MIN ( DISTINCT + col2 ) + + + 52 + + COUNT ( * ) col0 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT ALL - + ( 25 ) + - 46 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
-71
-71
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-1342
SELECT DISTINCT col2 DIV col1 + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1342
SELECT DISTINCT col2 / col1 + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT MIN( - 84 ) + + COUNT( * ) col2 FROM tab1
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1343
SELECT MIN ( - 84 ) + + COUNT ( * ) col2 FROM tab1
----
-81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1346
SELECT COUNT( * ) + + + 69 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-1346
SELECT COUNT ( * ) + + + 69 FROM tab2
----
72

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1348
SELECT ALL - col1 + - col0 * CAST( NULL AS SIGNED ) * 50 col2 FROM tab2 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-1348
SELECT ALL - col1 + - col0 * CAST ( NULL AS INTEGER ) * 50 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

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

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

query II rowsort
SELECT DISTINCT - col2 * - col1 + col1, - col2 + 16 AS col2 FROM tab1 AS cor0
----
1358
-80
300
-43
3243
-52

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 <= - 0 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 83 * col2 AS col1 FROM tab1 cor0
----
-4897
-5644
-7968

query II rowsort
SELECT + - 9 + - 3, - col2 * + col0 AS col0 FROM tab1 WHERE NOT NULL IN ( - 58, + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1354
SELECT ALL + 16 * 98 DIV + - 66 FROM tab0
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-1354
SELECT ALL + 16 * 98 / + - 66 FROM tab0
----
-23
-23
-23

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

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

query I rowsort
SELECT col0 * - - 90 FROM tab0
----
1350
7830
8730

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT - COUNT( * ) FROM tab0 WHERE NOT + col2 IN ( - - 17 )
----
-3

skipif mysql # not compatible
query I rowsort label-1357
SELECT - COUNT ( * ) FROM tab0 WHERE NOT + col2 IN ( - - 17 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1358
SELECT ALL - 89 * + CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
-4539
-5963
-6853

skipif mysql # not compatible
query I rowsort label-1358
SELECT ALL - 89 * + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
-4539
-5963
-6853

onlyif mysql # DIV for integer division: 
query I rowsort label-1359
SELECT - 18 DIV col1 AS col0 FROM tab0
----
-18
0
0

skipif mysql # not compatible
query I rowsort label-1359
SELECT - 18 / col1 AS col0 FROM tab0
----
-18
0
0

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 ) < ( NULL )
----

query I rowsort
SELECT ALL - - 84 AS col1 FROM tab2 WHERE NULL IS NULL
----
84
84
84

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

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

query I rowsort
SELECT DISTINCT + col1 * 99 FROM tab2 AS cor0
----
5049
6633
7623

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN + col1 + - 33 AND + + col0
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT MIN( DISTINCT - - ( 37 ) ) AS col1 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-1369
SELECT MIN ( DISTINCT - - ( 37 ) ) AS col1 FROM tab2 AS cor0
----
37

query I rowsort
SELECT DISTINCT + col2 + - - 80 * - + col2 AS col0 FROM tab1
----
-4661
-5372
-7584

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

query I rowsort
SELECT ALL 61 + + + 90 AS col2 FROM tab0
----
151
151
151

query I rowsort
SELECT 79 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

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

skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT 88 + + COUNT ( * ) FROM tab2
----
91

query I rowsort
SELECT ALL + 40 FROM tab0, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT - col2 + + 43 - - + col1 - + + col1 FROM tab2 AS cor0
----
-15
20
3

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 41 = + col0 + - - 90 - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1379
SELECT + col1 DIV 83 * - - col0 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1379
SELECT + col1 / 83 * - - col0 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT 97 * + - 53 FROM tab1 AS cor0
----
-5141
-5141
-5141

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1382
SELECT 67 * + 51 - - + MAX( ALL 74 ) AS col2, MIN( DISTINCT + - col0 ) AS col0 FROM tab1
----
3491
-91

skipif mysql # not compatible
query II rowsort label-1382
SELECT 67 * + 51 - - + MAX ( ALL 74 ) AS col2, MIN ( DISTINCT + - col0 ) AS col0 FROM tab1
----
3491
-91

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

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

query II rowsort
SELECT ALL - col1 * + 12 AS col2, col2 FROM tab1 AS cor0
----
-168
96
-564
68
-60
59

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

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

skipif mysql # not compatible
query I rowsort label-1386
SELECT DISTINCT + - COUNT ( 16 ) / + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-1

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * + col1 <= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1389
SELECT CAST( - - ( + col0 ) AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1389
SELECT CAST ( - - ( + col0 ) AS INTEGER ) FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT NULL <> 98
----
0

skipif mysql # not compatible
query I rowsort label-1390
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT NULL <> 98
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1391
SELECT ( - + col0 ) * - + CAST( - 26 AS SIGNED ) FROM tab1
----
-1326
-2210
-2366

skipif mysql # not compatible
query I rowsort label-1391
SELECT ( - + col0 ) * - + CAST ( - 26 AS INTEGER ) FROM tab1
----
-1326
-2210
-2366

onlyif mysql # DIV for integer division: 
query I rowsort label-1392
SELECT 36 DIV - + 75 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1392
SELECT 36 / - + 75 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - 52 col2 FROM tab1
----
3068
3536
4992

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 + - col2 / col2 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1395
SELECT ( + + ( col1 ) ) DIV + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1395
SELECT ( + + ( col1 ) ) / + col2 AS col2 FROM tab1
----
0
0
0

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

query I rowsort
SELECT DISTINCT - 99 * - 29 FROM tab1 AS cor0
----
2871

query II rowsort
SELECT - col1 * + - col0 + + - 67, 47 AS col2 FROM tab0 AS cor0
----
1148
47
1760
47
30
47

query II rowsort
SELECT - col2, col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-10
87
-47
15
-99
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 82 col2 FROM tab0 AS cor0
----
-82

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT ALL + - 49 + + COUNT( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1403
SELECT ALL + - 49 + + COUNT ( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
-46

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

skipif mysql # not compatible
query I rowsort label-1404
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * + col0 IS NOT NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, 6 * - + 54 col1 FROM tab1 AS cor0
----
-59
-324
-68
-324
-96
-324

query I rowsort
SELECT - - col2 + + 46 FROM tab2 cor0
----
104
69
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT + COUNT( * ) + + 17 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-1407
SELECT + COUNT ( * ) + + 17 FROM tab2 AS cor0
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-1408
SELECT DISTINCT 57 DIV - + 95 + + col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1408
SELECT DISTINCT 57 / - + 95 + + col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1409
SELECT DISTINCT - 27 DIV COUNT( ALL + - 22 ) col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1409
SELECT DISTINCT - 27 / COUNT ( ALL + - 22 ) col0 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT DISTINCT + - COUNT( * ) + + + 23 AS col0 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-1410
SELECT DISTINCT + - COUNT ( * ) + + + 23 AS col0 FROM tab0 AS cor0
----
20

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1413
SELECT - ( + 24 ) DIV + COUNT( * ) FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-1413
SELECT - ( + 24 ) / + COUNT ( * ) FROM tab2
----
-8

query I rowsort
SELECT ALL - 89 - + 57 FROM tab0
----
-146
-146
-146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1415
SELECT DISTINCT - 39 DIV - COUNT( DISTINCT - 14 ) AS col1 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-1415
SELECT DISTINCT - 39 / - COUNT ( DISTINCT - 14 ) AS col1 FROM tab2
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 76 * - col0 col0, - ( 50 ) AS col0 FROM tab2
----
-3496
-50
-4864
-50
-5700
-50

query I rowsort
SELECT ALL - + col0 + - col0 + + + col2 - ( + col1 ) FROM tab0 AS cor0
----
-185
-64
-96

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1419
SELECT ALL SUM( + 76 ) DIV - MIN( ALL 53 ) AS col0 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL SUM ( + 76 ) / - MIN ( ALL 53 ) AS col0 FROM tab1 AS cor0
----
-4

query I rowsort
SELECT DISTINCT - - col0 - + 96 AS col2 FROM tab2 cor0
----
-21
-32
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT DISTINCT + 26 - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-1421
SELECT DISTINCT + 26 - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
29

query I rowsort
SELECT DISTINCT - - col0 - - + col1 FROM tab0 cor0
----
108
96
98

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT NULL <= - col1 * - col1
----

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

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

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

query I rowsort
SELECT ALL + - 47 FROM tab0 AS cor0
----
-47
-47
-47

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT ALL SUM( + 18 ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL SUM ( + 18 ) FROM tab2
----
54

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1435
SELECT DISTINCT - col2 * - CAST( 30 AS SIGNED ) FROM tab0 AS cor0
----
1410
2970
300

skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT - col2 * - CAST ( 30 AS INTEGER ) FROM tab0 AS cor0
----
1410
2970
300

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT + 34 * + 20 + 97 + - COUNT( * ) col1 FROM tab1 cor0
----
774

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1436
SELECT + 34 * + 20 + 97 + - COUNT ( * ) col1 FROM tab1 cor0
----
774

query I rowsort
SELECT ALL 55 + - col1 AS col0 FROM tab0 AS cor0
----
-26
34
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IN ( + + col0 * col1 - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IN ( + + col0 * col1 - col0 )
----
3

query I rowsort
SELECT DISTINCT + 84 + col0 FROM tab2
----
130
148
159

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT ALL + MIN( - ( - col2 ) ) + + - 25 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL + MIN ( - ( - col2 ) ) + + - 25 FROM tab2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1441
SELECT - col0 / + 15 + - + CAST( NULL AS SIGNED ) AS col1, + 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-1441
SELECT - col0 / + 15 + - + CAST ( NULL AS INTEGER ) AS col1, + col2 col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col0 col2 FROM tab2 cor0
----
128
150
92

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1444
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( - col2 / + 14 / - + col2 + - + col2 + col2, - col1, - 10, + CAST( NULL AS SIGNED ) * - 82 )
----

skipif mysql # not compatible
query III rowsort label-1444
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( - col2 / + 14 / - + col2 + - + col2 + col2, - col1, - 10, + CAST ( NULL AS INTEGER ) * - 82 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1445
SELECT DISTINCT + + SUM( - col2 ) + + ( + 16 ) AS col2, + COUNT( - col2 ) FROM tab2 AS cor0 WHERE NOT col2 = + 97 + + col2
----
-105
3

skipif mysql # not compatible
query II rowsort label-1445
SELECT DISTINCT + + SUM ( - col2 ) + + ( + 16 ) AS col2, + COUNT ( - col2 ) FROM tab2 AS cor0 WHERE NOT col2 = + 97 + + col2
----
-105
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 9 + + col1 col0 FROM tab2 AS cor0
----
42
58
68

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

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

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

query II rowsort
SELECT + + 84, + col2 FROM tab2 cor0
----
84
23
84
40
84
58

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( NULL ) NOT BETWEEN + 82 AND 25 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1452
SELECT ALL + 74 DIV - col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-1452
SELECT ALL + 74 / - col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - - 50 col1 FROM tab0 AS cor0
----
1050
4050
50

query I rowsort
SELECT col1 * + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
1173
3080
3886

query II rowsort
SELECT - col1 * - - 25 AS col0, + col0 AS col0 FROM tab2 AS cor0
----
-1275
46
-1675
75
-1925
64

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

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

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

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

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

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

query I rowsort
SELECT - 89 * 22 FROM tab1
----
-1958
-1958
-1958

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 85 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
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-1463
SELECT ALL ( - - SUM ( DISTINCT + col0 ) ) col0 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT - 90 * + - COUNT( * ) FROM tab2 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-1464
SELECT - 90 * + - COUNT ( * ) FROM tab2 AS cor0
----
270

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT - - ( COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE 99 / - + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1466
SELECT - - ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE 99 / - + col2 IS NOT NULL
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT ALL COUNT( * ) + 15 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL COUNT ( * ) + 15 FROM tab1
----
18

query I rowsort
SELECT ALL col0 / 23 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 AND + col1 * - + 69 + - 51
----

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

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

query I rowsort
SELECT col2 + + 24 FROM tab0
----
123
34
71

query II rowsort
SELECT - col2 + - + col1 AS col0, - col1 AS col2 FROM tab1
----
-110
-14
-115
-47
-64
-5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1473
SELECT 86 + - 22 + - - col2 * col1 + - CAST( col2 AS SIGNED ) DIV col2 AS col0 FROM tab1 AS cor0
----
1407
3259
358

skipif mysql # not compatible
query I rowsort label-1473
SELECT 86 + - 22 + - - col2 * col1 + - CAST ( col2 AS INTEGER ) / col2 AS col0 FROM tab1 AS cor0
----
1407
3259
358

onlyif mysql # DIV for integer division: 
query I rowsort label-1474
SELECT + - col2 DIV col0 + - 75 FROM tab2 AS cor0
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort label-1474
SELECT + - col2 / col0 + - 75 FROM tab2 AS cor0
----
-75
-75
-75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT DISTINCT 2 * + + COUNT( + 36 ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1476
SELECT DISTINCT 2 * + + COUNT ( + 36 ) FROM tab0 AS cor0
----
6

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

query III rowsort
SELECT * FROM tab0 WHERE + + col2 IN ( + - col0, col1, + col1 + + 36, ( - col2 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1479
SELECT COUNT( * ) AS col0, - COUNT( * ) + - 7 FROM tab2
----
3
-10

skipif mysql # not compatible
query II rowsort label-1479
SELECT COUNT ( * ) AS col0, - COUNT ( * ) + - 7 FROM tab2
----
3
-10

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

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

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

query I rowsort
SELECT ALL - 38 * - col0 + + col0 + col0 FROM tab1 AS cor0
----
2040
3400
3640

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

query I rowsort
SELECT DISTINCT 84 * + col1 FROM tab0
----
1764
6804
84

query I rowsort
SELECT col1 * 45 AS col0 FROM tab0
----
3645
45
945

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

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

query I rowsort
SELECT + col2 * + + ( - 16 ) FROM tab2 AS cor0
----
-368
-640
-928

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1489
SELECT ALL - - ( + + 98 ) + + SUM( + col2 ) DIV + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL - - ( + + 98 ) + + SUM ( + col2 ) / + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
24

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

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

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

query II rowsort
SELECT DISTINCT col2 + col2 AS col1, - ( - col2 ) * - - col0 + col0 + + col0 AS col2 FROM tab1
----
118
5185
136
6370
192
4998

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT ALL COUNT( + 25 ) + + - 69 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL COUNT ( + 25 ) + + - 69 FROM tab2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT + - 83 + + COUNT( * ) FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-1494
SELECT + - 83 + + COUNT ( * ) FROM tab2 AS cor0
----
-80

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 42 NOT BETWEEN - col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1496
SELECT DISTINCT + + col2 + + 27 DIV + - 92 col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1496
SELECT DISTINCT + + col2 + + 27 / + - 92 col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL 84 + - col1 AS col0 FROM tab2
----
17
33
7

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

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

query I rowsort
SELECT DISTINCT - ( 20 ) + - 79 - + 54 AS col2 FROM tab1
----
-153

query I rowsort
SELECT ALL col2 + + 32 + - ( - col1 ) + - 53 AS col1 FROM tab0
----
10
107
79

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1505
SELECT + + col0 + + - col0 DIV - - 19 AS col1 FROM tab1 AS cor0
----
49
81
87

skipif mysql # not compatible
query I rowsort label-1505
SELECT + + col0 + + - col0 / - - 19 AS col1 FROM tab1 AS cor0
----
49
81
87

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

query I rowsort
SELECT + 70 + col0 AS col2 FROM tab2
----
116
134
145

query I rowsort
SELECT ALL 75 + 99 AS col2 FROM tab2
----
174
174
174

query I rowsort
SELECT ALL + col2 * + + 95 AS col1 FROM tab2
----
2185
3800
5510

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE NOT + 11 IS NOT NULL
----

query II rowsort
SELECT + ( + col1 ) AS col0, + col0 + - col2 FROM tab2
----
51
23
67
17
77
24

query I rowsort
SELECT + + col2 * + 39 * + 40 FROM tab2 AS cor0
----
35880
62400
90480

query I rowsort
SELECT ALL - - col1 * + 76 + + col2 AS col1 FROM tab0 AS cor0
----
1606
175
6203

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

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

skipif mysql # not compatible
query I rowsort label-1515
SELECT ALL CAST ( NULL AS INTEGER ) / + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 6 col2 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-1517
SELECT ALL + 47 AS col0, COUNT( * ) FROM tab1
----
47
3

skipif mysql # not compatible
query II rowsort label-1517
SELECT ALL + 47 AS col0, COUNT ( * ) FROM tab1
----
47
3

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

query I rowsort
SELECT 54 * + col1 AS col2 FROM tab2 AS cor0
----
2754
3618
4158

query I rowsort
SELECT DISTINCT - + 4 + - col0 FROM tab0 cor0
----
-101
-19
-91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT + COUNT( * ) + - 32 * - COUNT( DISTINCT - col1 ) AS col1 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-1522
SELECT + COUNT ( * ) + - 32 * - COUNT ( DISTINCT - col1 ) AS col1 FROM tab1
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col1, - 79 col1 FROM tab1
----
-14
-79
-47
-79
-5
-79

query II rowsort
SELECT col2 * - col2 / + col0 + - 95, - 57 * + - ( col0 ) FROM tab0 WHERE - + col0 IS NULL
----

query II rowsort
SELECT - 20 AS col0, col0 * + col2 + + - 34 AS col0 FROM tab1
----
-20
4862
-20
4981
-20
6154

query I rowsort
SELECT ALL ( col2 ) * + ( - col1 ) AS col2 FROM tab2
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, - col1 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
-14
47
-47
5
-5

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1529
SELECT ALL 85 DIV + - COUNT( * ) FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL 85 / + - COUNT ( * ) FROM tab0
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1530
SELECT DISTINCT COUNT( * ) DIV - - COUNT( * ) col0 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1530
SELECT DISTINCT COUNT ( * ) / - - COUNT ( * ) col0 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
1

query I rowsort
SELECT ALL - 88 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

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

query I rowsort
SELECT DISTINCT col2 - - 30 FROM tab2 AS cor0
----
53
70
88

query I rowsort
SELECT + col2 * + 2 FROM tab1 AS cor0
----
118
136
192

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1536
SELECT DISTINCT + 35, + COUNT( * ) * - 0 AS col1 FROM tab1
----
35
0

skipif mysql # not compatible
query II rowsort label-1536
SELECT DISTINCT + 35, + COUNT ( * ) * - 0 AS col1 FROM tab1
----
35
0

query II rowsort
SELECT DISTINCT col1, + ( 96 ) + + col0 FROM tab1
----
14
147
47
187
5
181

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1538
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( - + 67 * + ( - col0 ), col1 * + 70 * - + col0 + + + col0, 32 * CAST( NULL AS DECIMAL ), col1, 51 )
----

skipif mysql # not compatible
query III rowsort label-1538
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( - + 67 * + ( - col0 ), col1 * + 70 * - + col0 + + + col0, 32 * CAST ( NULL AS REAL ), col1, 51 )
----

query I rowsort
SELECT + col1 * - - 16 FROM tab0
----
1296
16
336

query I rowsort
SELECT 50 * - + 61 AS col1 FROM tab1
----
-3050
-3050
-3050

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1542
SELECT - 82, + COUNT( + + col0 ) AS col1 FROM tab0 AS cor0
----
-82
3

skipif mysql # not compatible
query II rowsort label-1542
SELECT - 82, + COUNT ( + + col0 ) AS col1 FROM tab0 AS cor0
----
-82
3

query I rowsort
SELECT DISTINCT + 49 AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1544
SELECT ALL - - CAST( - col0 AS SIGNED ) * + col2 * - + 62 FROM tab1 AS cor0
----
303552
310930
383656

skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL - - CAST ( - col0 AS INTEGER ) * + col2 * - + 62 FROM tab1 AS cor0
----
303552
310930
383656

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 79 * 44 AS col1, - 41 col2 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
3476
-41
3476
-41
3476
-41

query I rowsort
SELECT col2 * + col1 * ( + col0 ) FROM tab0 AS cor0
----
18270
57105
9603

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT ALL - 70 * + COUNT( * ) * ( + COUNT( * ) ) FROM tab2 AS cor0
----
-630

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL - 70 * + COUNT ( * ) * ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-630

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1550
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 85 ) <= + 98 / - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1550
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 85 ) <= + 98 / - CAST ( NULL AS INTEGER )
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1552
SELECT + 71, col2 DIV 6 + + col1 AS col2 FROM tab0
----
71
17
71
22
71
88

skipif mysql # not compatible
query II rowsort label-1552
SELECT + 71, col2 / 6 + + col1 AS col2 FROM tab0
----
71
17
71
22
71
88

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1554
SELECT 41 DIV 93 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1554
SELECT 41 / 93 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1555
SELECT ALL MIN( ALL - col0 ) + - COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL

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

query I rowsort
SELECT col0 * + 91 + col1 AS col1 FROM tab1
----
4655
7740
8328

query I rowsort
SELECT ALL - col2 * - 4 FROM tab0
----
188
396
40

query I rowsort
SELECT ALL + + 88 + + + col1 FROM tab2 AS cor0 WHERE NOT ( + 68 IS NULL )
----
139
155
165

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

query I rowsort
SELECT + + 14 + - - 67 * + 41 FROM tab1 AS cor0
----
2761
2761
2761

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1561
SELECT + CAST( NULL AS DECIMAL ) + - MAX( col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1561
SELECT + CAST ( NULL AS REAL ) + - MAX ( col2 ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL + 81 AS col1, col2 AS col0 FROM tab0 AS cor0
----
81
10
81
47
81
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT DISTINCT + SUM( - 52 ) + + + 0 FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-1563
SELECT DISTINCT + SUM ( - 52 ) + + + 0 FROM tab1 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT 22 - + + COUNT( * ) FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-1564
SELECT 22 - + + COUNT ( * ) FROM tab0 AS cor0
----
19

query II rowsort
SELECT - - ( col1 ), col0 + - col1 + - 90 AS col2 FROM tab0 AS cor0
----
1
6
21
-24
81
-156

query II rowsort
SELECT DISTINCT 13 AS col2, 26 AS col1 FROM tab2 AS cor0
----
13
26

onlyif mysql # aggregate syntax: 
query II rowsort label-1567
SELECT - MAX( + + 70 ) AS col1, 57 col2 FROM tab1 AS cor0
----
-70
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1567
SELECT - MAX ( + + 70 ) AS col1, 57 col2 FROM tab1 AS cor0
----
-70
57

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

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

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

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

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

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

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

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1575
SELECT ALL MAX( ALL + col1 ), - MIN( DISTINCT - col1 ) AS col1 FROM tab0
----
81
81

skipif mysql # not compatible
query II rowsort label-1575
SELECT ALL MAX ( ALL + col1 ), - MIN ( DISTINCT - col1 ) AS col1 FROM tab0
----
81
81

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1578
SELECT DISTINCT 59 AS col1, COUNT( * ) AS col1 FROM tab2
----
59
3

skipif mysql # not compatible
query II rowsort label-1578
SELECT DISTINCT 59 AS col1, COUNT ( * ) AS col1 FROM tab2
----
59
3

query I rowsort
SELECT - 36 + + - 78 FROM tab0 AS cor0
----
-114
-114
-114

query I rowsort
SELECT - - 23 * col1 + col0 AS col0 FROM tab2 AS cor0
----
1219
1616
1835

query I rowsort
SELECT DISTINCT - col0 * + 51 AS col1 FROM tab2 cor0
----
-2346
-3264
-3825

query I rowsort
SELECT ALL ( 49 ) * - + 56 FROM tab1 AS cor0
----
-2744
-2744
-2744

onlyif mysql # aggregate syntax: 
query II rowsort label-1583
SELECT - MIN( ALL - + col1 ) + 87 AS col0, - COUNT( * ) FROM tab1 AS cor0
----
134
-3

skipif mysql # not compatible
query II rowsort label-1583
SELECT - MIN ( ALL - + col1 ) + 87 AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
134
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1584
SELECT ALL col2 / - 59 * col1 * - 22 * - col1 * - CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1584
SELECT ALL col2 / - 59 * col1 * - 22 * - col1 * - CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

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

skipif mysql # not compatible
query II rowsort label-1586
SELECT - ( + 1 ), col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-1
NULL
-1
NULL
-1
NULL

query I rowsort
SELECT ALL - 44 * + col2 + - - col1 FROM tab0
----
-1987
-419
-4355

query I rowsort
SELECT DISTINCT - col0 + 44 FROM tab2
----
-2
-20
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1589
SELECT DISTINCT + col0 FROM tab2 WHERE + CAST( 7 AS DECIMAL ) - + - col0 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-1589
SELECT DISTINCT + col0 FROM tab2 WHERE + CAST ( 7 AS REAL ) - + - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 1 * + col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT DISTINCT col2 - 99 FROM tab1 AS cor0
----
-3
-31
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT 15 * ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-1592
SELECT 15 * ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-45

query I rowsort
SELECT DISTINCT + + col1 - - col1 AS col1 FROM tab0 AS cor0
----
162
2
42

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - - col2 col0 FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT DISTINCT COUNT( * ) + + MIN( DISTINCT + ( col1 ) ) AS col1 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-1596
SELECT DISTINCT COUNT ( * ) + + MIN ( DISTINCT + ( col1 ) ) AS col1 FROM tab0
----
4

query I rowsort
SELECT DISTINCT 59 * + col0 * ( - 98 ) AS col0 FROM tab0
----
-503034
-560854
-86730

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

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

query I rowsort
SELECT DISTINCT + col0 * - + col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1601
SELECT ALL - - col0 DIV - 75 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1601
SELECT ALL - - col0 / - 75 FROM tab2 AS cor0
----
-1
0
0

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

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

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

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

query I rowsort
SELECT - 8 * - col1 FROM tab2 cor0
----
408
536
616

query II rowsort
SELECT + 20, 28 + - - 74 AS col1 FROM tab0
----
20
102
20
102
20
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT 91 * ( + + COUNT( * ) ) AS col0 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-1607
SELECT 91 * ( + + COUNT ( * ) ) AS col0 FROM tab1
----
273

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1609
SELECT ALL COUNT( * ) * 50, - COUNT( * ) AS col1 FROM tab0
----
150
-3

skipif mysql # not compatible
query II rowsort label-1609
SELECT ALL COUNT ( * ) * 50, - COUNT ( * ) AS col1 FROM tab0
----
150
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1610
SELECT 9 * - CAST( + + col1 AS SIGNED ) FROM tab2
----
-459
-603
-693

skipif mysql # not compatible
query I rowsort label-1610
SELECT 9 * - CAST ( + + col1 AS INTEGER ) FROM tab2
----
-459
-603
-693

query I rowsort
SELECT DISTINCT col2 * + - 16 AS col0 FROM tab0
----
-1584
-160
-752

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT MIN( DISTINCT + 86 ) * + + COUNT( * ) + + - 72 AS col2 FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-1612
SELECT MIN ( DISTINCT + 86 ) * + + COUNT ( * ) + + - 72 AS col2 FROM tab0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT ALL - MAX( - ( + + col2 ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-1613
SELECT ALL - MAX ( - ( + + col2 ) ) FROM tab2
----
23

query I rowsort
SELECT ALL 10 + + - 30 AS col0 FROM tab1 WHERE NOT - 33 * - - 55 + - 41 IS NULL
----
-20
-20
-20

query I rowsort
SELECT ALL - col1 + + + col2 / - col0 FROM tab1 WHERE NOT + col1 + + - ( 89 ) * col0 >= NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1617
SELECT ALL CAST( NULL AS SIGNED ) AS col2, + col0 * + 25 * - 69, col1 + - 60 col2 FROM tab1 cor0
----
9 values hashing to 91f95fa293efd44062f1087307955849

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-1617
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, + col0 * + 25 * - 69, col1 + - 60 col2 FROM tab1 cor0
----
9 values hashing to 91f95fa293efd44062f1087307955849

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + 90 BETWEEN col2 AND NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 88 + - 60 * + - 66 * - + 94 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1624
SELECT DISTINCT - CAST( - col2 AS SIGNED ) * + CAST( - col0 AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT col2 * - col2 / 3 - + col1 BETWEEN NULL AND - col1 * + 93 * col2 / - 30
----

skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) * + CAST ( - col0 AS REAL ) FROM tab0 AS cor0 WHERE NOT col2 * - col2 / 3 - + col1 BETWEEN NULL AND - col1 * + 93 * col2 / - 30
----

query I rowsort
SELECT + col0 * + ( - 57 ) AS col0 FROM tab2 AS cor0
----
-2622
-3648
-4275

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1629
SELECT + col1 DIV col0 * - col1 * + + 33 + + + col1 AS col2 FROM tab2 AS cor0
----
-1632
-2464
67

skipif mysql # not compatible
query I rowsort label-1629
SELECT + col1 / col0 * - col1 * + + 33 + + + col1 AS col2 FROM tab2 AS cor0
----
-1632
-2464
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1630
SELECT - 8 + + 84 + SUM( - CAST( - col0 AS SIGNED ) ) AS col0 FROM tab0 WHERE ( col0 ) NOT IN ( 85, 32, col1 )
----
275

skipif mysql # not compatible
query I rowsort label-1630
SELECT - 8 + + 84 + SUM ( - CAST ( - col0 AS INTEGER ) ) AS col0 FROM tab0 WHERE ( col0 ) NOT IN ( 85, 32, col1 )
----
275

query I rowsort
SELECT + 36 + 17 + - col0 FROM tab1
----
-32
-38
2

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

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

query I rowsort
SELECT DISTINCT - col0 * col2 * + + 26 - + - col0 AS col1 FROM tab0 AS cor0
----
-18315
-22533
-249581

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 98 >= + - col0
----

query I rowsort
SELECT DISTINCT 30 * ( - 42 ) + col0 FROM tab0
----
-1163
-1173
-1245

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 74 / col2 + - col2 * col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1639
SELECT ALL CAST( NULL AS DECIMAL ) AS col0 FROM tab1 WHERE + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1639
SELECT ALL CAST ( NULL AS REAL ) AS col0 FROM tab1 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL col2 FROM tab1 WHERE + col2 + col0 IS NOT NULL
----
59
68
96

query I rowsort
SELECT + col0 / + col2 - + col1 FROM tab0 WHERE NOT NULL <> + col1
----

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

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

query I rowsort
SELECT + col0 FROM tab2 WHERE ( + col1 ) - col0 BETWEEN col0 AND NULL
----

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

query I rowsort
SELECT 95 / + col2 FROM tab0 WHERE NOT ( + col0 ) <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + 37
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 IN ( 20 * + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1651
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE NOT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * col0 IS NOT NULL
----
3

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

query I rowsort
SELECT col0 + - 45 AS col2 FROM tab1
----
40
46
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT COUNT( * ) col1 FROM tab1 WHERE - 40 - - col1 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1654
SELECT COUNT ( * ) col1 FROM tab1 WHERE - 40 - - col1 IS NULL
----
0

query I rowsort
SELECT - 35 + + col1 FROM tab0
----
-14
-34
46

query I rowsort
SELECT DISTINCT 47 + + col0 * + 93 FROM tab0
----
1442
8138
9068

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1657
SELECT DISTINCT - col0 + 57 AS col1 FROM tab2 WHERE + col0 * CAST( + col1 AS SIGNED ) <> 8 * col2
----
-18
-7
11

skipif mysql # not compatible
query I rowsort label-1657
SELECT DISTINCT - col0 + 57 AS col1 FROM tab2 WHERE + col0 * CAST ( + col1 AS INTEGER ) <> 8 * col2
----
-18
-7
11

query I rowsort
SELECT col0 + - 11 AS col0 FROM tab2
----
35
53
64

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

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT - MAX ( ( ( col1 ) ) ) FROM tab1
----
-47

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT IN ( - ( - col0 ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + - 9 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - ( + 15 ) * col2 IS NULL
----

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( 49 ) BETWEEN - 65 * ( - col2 * col2 ) AND NULL
----

query I rowsort
SELECT ALL + col0 - - col2 AS col0 FROM tab1 WHERE NOT ( - col0 * col2 ) IN ( - col2 )
----
144
147
159

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 / - ( - col1 ) IN ( 88 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT DISTINCT + 6 + + col2 FROM tab2 AS cor0
----
29
46
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT COUNT( 27 ) * 76 AS col2 FROM tab1 cor0 WHERE NULL < 65 + 18
----
0

skipif mysql # not compatible
query I rowsort label-1669
SELECT COUNT ( 27 ) * 76 AS col2 FROM tab1 cor0 WHERE NULL < 65 + 18
----
0

query I rowsort
SELECT + 81 + - col2 * ( + 72 ) FROM tab2 AS cor0
----
-1575
-2799
-4095

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1671
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> col0 + ( col1 )
----

skipif mysql # not compatible
query I rowsort label-1671
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> col0 + ( col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 54 NOT BETWEEN 84 * 98 + col2 AND ( col2 * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 col2 FROM tab0 cor0 WHERE NOT + col0 = ( col0 / 57 )
----
7

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

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE - 16 <> - col2
----
1
21
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 BETWEEN NULL AND ( 1 )
----

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

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

query I rowsort
SELECT DISTINCT - 19 * + col2 AS col0 FROM tab0
----
-1881
-190
-893

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1679
SELECT - ( + CAST( + col0 AS SIGNED ) ) * 7 - 2 * 8 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1679
SELECT - ( + CAST ( + col0 AS INTEGER ) ) * 7 - 2 * 8 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col0 * - - ( col1 ) AS col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT ALL MIN( DISTINCT - ( + col0 ) ) + - 85 AS col0 FROM tab2
----
-160

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL MIN ( DISTINCT - ( + col0 ) ) + - 85 AS col0 FROM tab2
----
-160

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 73 IN ( + 51 * + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1683
SELECT DISTINCT + col1 * CAST( 50 AS SIGNED ) - + 42 DIV 24 col0 FROM tab1
----
2349
249
699

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1683
SELECT DISTINCT + col1 * CAST ( 50 AS INTEGER ) - + 42 / 24 col0 FROM tab1
----
2349
249
699

query I rowsort
SELECT ALL + 92 + - 15 AS col0 FROM tab2
----
77
77
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1685
SELECT - CAST( COUNT( * ) AS SIGNED ) * + 53 - + 28 FROM tab0
----
-187

skipif mysql # not compatible
query I rowsort label-1685
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * + 53 - + 28 FROM tab0
----
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE 70 * col2 <= ( + col1 * + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-1686
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE 70 * col2 <= ( + col1 * + col0 )
----
3

query I rowsort
SELECT DISTINCT - 53 - - + 95 FROM tab2 AS cor0
----
42

query I rowsort
SELECT DISTINCT - 40 FROM tab0 AS cor0 WHERE NOT NULL > + col2
----

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

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

query I rowsort
SELECT ALL + - col1 * + + col1 * + ( - ( - 4 ) ) FROM tab0 AS cor0
----
-1764
-26244
-4

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

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

query I rowsort
SELECT ALL - 61 AS col0 FROM tab0 WHERE ( NOT - col2 BETWEEN ( 25 ) AND + 76 )
----
-61
-61
-61

query II rowsort
SELECT DISTINCT col0, 54 * 17 AS col2 FROM tab1
----
51
918
85
918
91
918

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

skipif mysql # not compatible
query I rowsort label-1695
SELECT DISTINCT + + COUNT ( * ) * 95 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
855

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT MAX( ALL + col1 ) * COUNT( * ) FROM tab0 cor0 WHERE NOT ( col2 ) <= + col1
----
1

skipif mysql # not compatible
query I rowsort label-1697
SELECT MAX ( ALL + col1 ) * COUNT ( * ) FROM tab0 cor0 WHERE NOT ( col2 ) <= + col1
----
1

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

skipif mysql # not compatible
query I rowsort label-1698
SELECT DISTINCT - + col1 / - CAST ( - 68 AS INTEGER ) + + col1 FROM tab2 AS cor0
----
51
67
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 6 * - col1 * + + col1 * - col2 + + col0 col2 FROM tab2 AS cor0
----
1423024
1562247
358984

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT - - col1 FROM tab1 AS cor0 WHERE NOT col0 >= NULL
----

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

query I rowsort
SELECT DISTINCT + col0 + col2 + 90 FROM tab1 AS cor0 WHERE NULL IS NULL
----
234
237
249

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

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

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

query II rowsort
SELECT + 32 * - col2, + col2 FROM tab2
----
-1280
40
-1856
58
-736
23

onlyif mysql # DIV for integer division: 
query II rowsort label-1707
SELECT DISTINCT col0 DIV col1 AS col0, - col2 + + 86 AS col2 FROM tab0
----
0
39
4
76
97
-13

skipif mysql # not compatible
query II rowsort label-1707
SELECT DISTINCT col0 / col1 AS col0, - col2 + + 86 AS col2 FROM tab0
----
0
39
4
76
97
-13

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = + 49
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1709
SELECT 99 * + col2 * - col2 * - CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
20332521
31128768
87588864

skipif mysql # not compatible
query I rowsort label-1709
SELECT 99 * + col2 * - col2 * - CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
20332521
31128768
87588864

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

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

query I rowsort
SELECT + col1 * + 79 AS col1 FROM tab0
----
1659
6399
79

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1714
SELECT ALL + col1 * col2 * - col0 + - 69 DIV col0 FROM tab2 AS cor0
----
-197121
-291450
-53959

skipif mysql # not compatible
query I rowsort label-1714
SELECT ALL + col1 * col2 * - col0 + - 69 / col0 FROM tab2 AS cor0
----
-197121
-291450
-53959

query I rowsort
SELECT ALL + - col0 + 34 FROM tab0 AS cor0
----
-53
-63
19

query I rowsort
SELECT + 72 + - - 61 FROM tab1 AS cor0
----
133
133
133

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT col0 < ( col0 )
----
10
47
99

query I rowsort
SELECT + ( col0 ) + - 82 FROM tab2
----
-18
-36
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1719
SELECT DISTINCT 11 AS col0, CAST( - + COUNT( * ) AS SIGNED ) + + - 31 AS col2 FROM tab1
----
11
-34

skipif mysql # not compatible
query II rowsort label-1719
SELECT DISTINCT 11 AS col0, CAST ( - + COUNT ( * ) AS INTEGER ) + + - 31 AS col2 FROM tab1
----
11
-34

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

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

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

query I rowsort
SELECT ALL - col1 * col0 + col0 + - 32 AS col1 FROM tab0 AS cor0
----
-1232
-1772
-32

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT ( - col1 / 1 ) IN ( - col2 * + col1 + ( col1 ) )
----
-23
-40
-58

query I rowsort
SELECT + 38 FROM tab0 AS cor0 WHERE NULL = - ( - - col0 ) * + col1
----

query I rowsort
SELECT 29 - - - col1 AS col2 FROM tab2 AS cor0
----
-22
-38
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1726
SELECT DISTINCT - 75, + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-1726
SELECT DISTINCT - 75, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-75
NULL

query I rowsort
SELECT ALL 75 * col1 * ( col0 ) - 64 AS col0 FROM tab1 AS cor0
----
31811
320711
53486

query I rowsort
SELECT - + col2 + + - col2 FROM tab2 AS cor0
----
-116
-46
-80

query II rowsort
SELECT DISTINCT + col1 AS col0, 44 FROM tab0 AS cor0
----
1
44
21
44
81
44

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 70 + + + col1 - + + col2 col0 FROM tab0
----
-28
104
81

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

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

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

skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT MAX ( ALL + + 1 ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT ALL - MIN( DISTINCT - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL - MIN ( DISTINCT - col2 ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT 45 AS col2 FROM tab1 cor0
----
45
45
45

query I rowsort
SELECT DISTINCT - col0 + - 40 FROM tab2 WHERE NOT ( + col1 ) > - col0 + - col0 + - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1739
SELECT + SUM( - 66 ), 54 - COUNT( * ) AS col1 FROM tab2
----
-198
51

skipif mysql # not compatible
query II rowsort label-1739
SELECT + SUM ( - 66 ), 54 - COUNT ( * ) AS col1 FROM tab2
----
-198
51

query I rowsort
SELECT - + 26 * + col2 * + + col1 FROM tab1 AS cor0
----
-34944
-7670
-83096

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT + MAX( - 71 ) col1 FROM tab2 cor0
----
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1741
SELECT + MAX ( - 71 ) col1 FROM tab2 cor0
----
-71

query II rowsort
SELECT - 72, ( + col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT 55 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1744
SELECT + col1 DIV + + col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1744
SELECT + col1 / + + col2 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query II rowsort label-1745
SELECT - COUNT( * ) AS col1, - 89 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3
-89

skipif mysql # not compatible
query II rowsort label-1745
SELECT - COUNT ( * ) AS col1, - 89 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3
-89

query I rowsort
SELECT ( 25 ) FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col2 * - + 13 AS col2 FROM tab0
----
-1287
-130
-611

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 25 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, + 67 * + - col0 FROM tab0
----
10
-5829
47
-1005
99
-6499

query I rowsort
SELECT DISTINCT - 69 * + 32 FROM tab0
----
-2208

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1752
SELECT - 38, col1 * - CAST( NULL AS SIGNED ) - 79 AS col2 FROM tab1 AS cor0
----
-38
NULL
-38
NULL
-38
NULL

skipif mysql # not compatible
query II rowsort label-1752
SELECT - 38, col1 * - CAST ( NULL AS INTEGER ) - 79 AS col2 FROM tab1 AS cor0
----
-38
NULL
-38
NULL
-38
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1753
SELECT DISTINCT + CAST( - - 65 AS SIGNED ) AS col0 FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-1753
SELECT DISTINCT + CAST ( - - 65 AS INTEGER ) AS col0 FROM tab0
----
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 53 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-53

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 / col2 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + col0 + 40 col0 FROM tab1
----
2641
7265
8321

onlyif mysql # DIV for integer division: 
query I rowsort label-1757
SELECT ALL - 27 DIV + + col2 AS col2 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL - 27 / + + col2 AS col2 FROM tab0 AS cor0
----
-2
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT - 13 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-1758
SELECT - 13 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1759
SELECT - CAST( + col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1759
SELECT - CAST ( + col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT - + 29 FROM tab2 cor0
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT DISTINCT - AVG ( ALL + col2 ) + - COUNT( * ) + - AVG ( - + col0 ) FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1761
SELECT DISTINCT - AVG ( ALL + col2 ) + - COUNT ( * ) + - AVG ( - + col0 ) FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT DISTINCT - MIN( - col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1762
SELECT DISTINCT - MIN ( - col2 ) AS col0 FROM tab0
----
99

query I rowsort
SELECT - col1 * + 78 - + - col2 + + col1 FROM tab0
----
-1607
-6190
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 85 col2 FROM tab2
----
4335
5695
6545

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1765
SELECT DISTINCT + col2 * - - CAST( + 73 AS SIGNED ) FROM tab2
----
1679
2920
4234

skipif mysql # not compatible
query I rowsort label-1765
SELECT DISTINCT + col2 * - - CAST ( + 73 AS INTEGER ) FROM tab2
----
1679
2920
4234

query I rowsort
SELECT + ( - + col0 ) AS col2 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT COUNT( * ) * + - 52 AS col1 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-1767
SELECT COUNT ( * ) * + - 52 AS col1 FROM tab0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1768
SELECT + CAST( NULL AS SIGNED ) * + - CAST( - col0 AS SIGNED ) AS col2 FROM tab1 WHERE NOT + + 20 <> + col0
----

skipif mysql # not compatible
query I rowsort label-1768
SELECT + CAST ( NULL AS INTEGER ) * + - CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 WHERE NOT + + 20 <> + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 col2 FROM tab0 AS cor0
----
-67
-67
-67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + - col0 + + + 16 - - + 79, col1, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT + MIN( - + 62 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-62

skipif mysql # not compatible
query I rowsort label-1771
SELECT + MIN ( - + 62 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1772
SELECT ALL * FROM tab0 WHERE NOT + + 66 IN ( + CAST( NULL AS SIGNED ), + 78, - col1 )
----

skipif mysql # not compatible
query III rowsort label-1772
SELECT ALL * FROM tab0 WHERE NOT + + 66 IN ( + CAST ( NULL AS INTEGER ), + 78, - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1773
SELECT - col0 DIV 68 * + 20 FROM tab2 AS cor0
----
-20
0
0

skipif mysql # not compatible
query I rowsort label-1773
SELECT - col0 / 68 * + 20 FROM tab2 AS cor0
----
-20
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * col2 * - + 96 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 * + - col1 AS col1 FROM tab2 AS cor0
----
2601
4489
5929

query I rowsort
SELECT ALL - + 20 AS col1 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1777
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 NOT IN ( - col0 + 34 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-1779
SELECT - COUNT( * ) AS col0, 97 FROM tab1 cor0
----
-3
97

skipif mysql # not compatible
query II rowsort label-1779
SELECT - COUNT ( * ) AS col0, 97 FROM tab1 cor0
----
-3
97

query I rowsort
SELECT DISTINCT - + 4 AS col2 FROM tab0 AS cor0
----
-4

query I rowsort
SELECT - + 26 * + + col2 FROM tab0 AS cor0
----
-1222
-2574
-260

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 84 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT + + ( - + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1783
SELECT + + ( - + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT - - col2 AS col1, + 52 * - 76 * col0 FROM tab2 cor0
----
23
-181792
40
-252928
58
-296400

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1786
SELECT DISTINCT - 35 + CAST( NULL AS SIGNED ) * + - COUNT( * ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1786
SELECT DISTINCT - 35 + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT COUNT( * ) * - COUNT( * ) + - + 85 AS col0 FROM tab1, tab1 AS cor0
----
-166

skipif mysql # not compatible
query I rowsort label-1787
SELECT COUNT ( * ) * - COUNT ( * ) + - + 85 AS col0 FROM tab1, tab1 AS cor0
----
-166

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col1 ) <= ( NULL )
----

query II rowsort
SELECT col1 + + col1 AS col2, + 52 + - col2 FROM tab2
----
102
29
134
-6
154
12

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( NOT - 31 <= NULL ) )
----

query I rowsort
SELECT DISTINCT - col1 + + 34 FROM tab0
----
-47
13
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT DISTINCT - MAX( col1 ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1792
SELECT DISTINCT - MAX ( col1 ) AS col0 FROM tab1 AS cor0
----
-47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + - - col2 IS NULL
----

query I rowsort
SELECT ALL - + col0 - - col2 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT DISTINCT + col2 FROM tab0 cor0 WHERE NOT + 71 - col0 BETWEEN + col1 AND NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 67 * - - 29 * + col0 col2 FROM tab1 AS cor0
----
-165155
-176813
-99093

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1797
SELECT - + CAST( SUM( + - 10 ) AS SIGNED ) FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-1797
SELECT - + CAST ( SUM ( + - 10 ) AS INTEGER ) FROM tab2 AS cor0
----
30

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1799
SELECT ALL - 2 * + CAST( NULL AS SIGNED ) / + - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL - 2 * + CAST ( NULL AS INTEGER ) / + - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - col1 * + col2 AS col2 FROM tab0
----
-178929
-2100
-9801

onlyif mysql # DIV for integer division: 
query I rowsort label-1801
SELECT ( - + col2 ) DIV + col0 * - 39 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1801
SELECT ( - + col2 ) / + col0 * - 39 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 + + col0 + 28 / - - 69 * - col2 + + col2 IS NOT NULL
----

query II rowsort
SELECT - col2 * col2 AS col1, col0 FROM tab1
----
-3481
85
-4624
91
-9216
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT 79 * - COUNT( * ) AS col2 FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-1804
SELECT 79 * - COUNT ( * ) AS col2 FROM tab1
----
-237

query I rowsort
SELECT - 52 FROM tab1 AS cor0 WHERE NOT col2 IN ( - 0 ) AND NOT ( + col1 ) * col2 + + col2 * + col0 + ( + - col2 ) <> - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - 44 ) * + col0 col1 FROM tab0 cor0
----
-3828
-4268
-660

onlyif mysql # DIV for integer division: 
query I rowsort label-1807
SELECT DISTINCT + col1 DIV + col0 * - col2 DIV + col2 FROM tab0
----
-5
0

skipif mysql # not compatible
query I rowsort label-1807
SELECT DISTINCT + col1 / + col0 * - col2 / + col2 FROM tab0
----
-5
0

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NOT col1 IS NULL
----
15
87
97

query I rowsort
SELECT - - col1 * + - col2 - + 69 + 84 + + col2 FROM tab1 cor0
----
-1233
-221
-3113

query II rowsort
SELECT DISTINCT - col2, col1 - - - col1 * - + 81 AS col1 FROM tab0 AS cor0
----
-10
1722
-47
6642
-99
82

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * col2 + - - col1 > 45
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT COUNT( * ) + COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-1812
SELECT COUNT ( * ) + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
12

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 97 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 col0 FROM tab0 AS cor0
----
84
84
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1815
SELECT ALL + col2 AS col0, CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE col2 * 96 <> col2
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-1815
SELECT ALL + col2 AS col0, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE col2 * 96 <> col2
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT 4 + - 65 AS col2 FROM tab1
----
-61
-61
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 20 col0, 72 AS col2 FROM tab2
----
20
72
20
72
20
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1818
SELECT DISTINCT MIN( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1818
SELECT DISTINCT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col2 + + col1 + col0 AS col0 FROM tab2
----
101
74
84

query I rowsort
SELECT ALL + 42 + + col2 AS col0 FROM tab1
----
101
110
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 + - 81 col2 FROM tab1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT - SUM( DISTINCT - col0 ) * + - COUNT( * ) + COUNT( * ) FROM tab1 WHERE + col1 IS NOT NULL
----
-678

skipif mysql # not compatible
query I rowsort label-1822
SELECT - SUM ( DISTINCT - col0 ) * + - COUNT ( * ) + COUNT ( * ) FROM tab1 WHERE + col1 IS NOT NULL
----
-678

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT - COUNT( - 36 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1823
SELECT - COUNT ( - 36 ) AS col2 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - - col1 + col0 col2 FROM tab1
----
149
161
206

query I rowsort
SELECT ALL col2 + - 36 + col2 FROM tab1
----
100
156
82

query I rowsort
SELECT DISTINCT ( - 67 ) AS col1 FROM tab2
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1827
SELECT - MAX( + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1827
SELECT - MAX ( + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1828
SELECT ALL + - CAST( NULL AS SIGNED ), col2 AS col1 FROM tab0 cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-1828
SELECT ALL + - CAST ( NULL AS INTEGER ), col2 AS col1 FROM tab0 cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT ALL COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1829
SELECT ALL COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( col0 ) <> ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 / - + col2 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - col1 * - 18 FROM tab2 AS cor0
----
1206
1386
918

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT DISTINCT - MAX( ALL + col1 ) AS col0 FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-1833
SELECT DISTINCT - MAX ( ALL + col1 ) AS col0 FROM tab2 cor0
----
-77

query I rowsort
SELECT ALL 89 * - + col0 - col2 + + 6 FROM tab1 AS cor0
----
-4629
-7618
-8161

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT NULL > - col0 + - 13
----

query I rowsort
SELECT DISTINCT - 80 * 22 AS col1 FROM tab0 AS cor0
----
-1760

query II rowsort
SELECT col1, - col2 + col1 FROM tab0
----
1
-98
21
11
81
34

onlyif mysql # DIV for integer division: 
query I rowsort label-1838
SELECT DISTINCT 62 DIV - col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT 62 / - col0 FROM tab1
----
-1
0

query I rowsort
SELECT + col1 * + col0 * - 94 FROM tab2
----
-220524
-463232
-472350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 27 AS col2, + 15 col0 FROM tab0
----
27
15

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE - 24 * + col2 >= + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, col1 col1 FROM tab2
----
51
51
67
67
77
77

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 63 IN ( - col0 * - 18, col0, + col2, + 88 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - 81 AS col0, - col0 + - 75 AS col0 FROM tab2
----
-81
-121
-81
-139
-81
-150

query II rowsort
SELECT DISTINCT + - 1, col1 AS col2 FROM tab1 cor0
----
-1
14
-1
47
-1
5

query I rowsort
SELECT ALL + + col2 * - + col0 * col2 FROM tab0 AS cor0
----
-33135
-8700
-950697

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 < - - col0 + + 87 + + - col2 + - + 40
----
51
14
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1848
SELECT col2 DIV - + col2 AS col1 FROM tab1 AS cor0 WHERE NOT col1 + + - col1 IN ( col0 + + - col2 )
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1848
SELECT col2 / - + col2 AS col1 FROM tab1 AS cor0 WHERE NOT col1 + + - col1 IN ( col0 + + - col2 )
----
-1
-1
-1

query I rowsort
SELECT + 91 + ( + 60 ) + - - 3 * + + col0 * - col1 * - col0 AS col1 FROM tab1 AS cor0
----
108526
109393
1167772

query I rowsort
SELECT DISTINCT + 18 * + - col1 * col2 * 51 FROM tab0
----
-192780
-3494826
-90882

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT ALL + COUNT( 46 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1851
SELECT ALL + COUNT ( 46 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - - 6 AS col1 FROM tab2 AS cor0 WHERE NULL < - col1 + ( + col1 ) + + col0 * + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 87 col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 53 + + 87 FROM tab0
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1855
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 77 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + 49 + 17 FROM tab1 AS cor0
----
66

query I rowsort
SELECT - - 90 FROM tab2 cor0
----
90
90
90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 27 * + col2 + 47
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1860
SELECT DISTINCT + ( - COUNT( * ) ) * + CAST( NULL AS SIGNED ) + + 8 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1860
SELECT DISTINCT + ( - COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) + + 8 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT DISTINCT + MIN( DISTINCT - 64 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-64

skipif mysql # not compatible
query I rowsort label-1861
SELECT DISTINCT + MIN ( DISTINCT - 64 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-64

query I rowsort
SELECT ALL + col1 + + - 29 FROM tab0
----
-28
-8
52

query I rowsort
SELECT DISTINCT 63 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1864
SELECT CAST( NULL AS SIGNED ) AS col2, + col2 * col1 col1 FROM tab0 AS cor0
----
NULL
210
NULL
3807
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1864
SELECT CAST ( NULL AS INTEGER ) AS col2, + col2 * col1 col1 FROM tab0 AS cor0
----
NULL
210
NULL
3807
NULL
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1865
SELECT DISTINCT - - COUNT( * ) AS col0, - ( + 60 ) + + 29 FROM tab1 AS cor0
----
3
-31

skipif mysql # not compatible
query II rowsort label-1865
SELECT DISTINCT - - COUNT ( * ) AS col0, - ( + 60 ) + + 29 FROM tab1 AS cor0
----
3
-31

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col2 <> + col2 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( + 95 ) FROM tab0 AS cor0
----
-95
-95
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1868
SELECT ALL - COUNT( * ) * COUNT( * ) DIV - 84 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1868
SELECT ALL - COUNT ( * ) * COUNT ( * ) / - 84 AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - 24
----

query I rowsort
SELECT DISTINCT col2 * - - 10 FROM tab2 AS cor0
----
230
400
580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1871
SELECT ALL + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1871
SELECT ALL + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 60 col2 FROM tab1 AS cor0
----
-3060
-5100
-5460

query II rowsort
SELECT ALL col2 * - 9 AS col0, 32 AS col1 FROM tab1
----
-531
32
-612
32
-864
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT ALL COUNT( - - col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1874
SELECT ALL COUNT ( - - col2 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ALL - ( + 11 ) * + - col1 * + 79 * - + col1 AS col1 FROM tab2 AS cor0
----
-2260269
-3900941
-5152301

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1876
SELECT ALL - col0 - CAST( NULL AS SIGNED ) + - col1 - - 10 * - + col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1876
SELECT ALL - col0 - CAST ( NULL AS INTEGER ) + - col1 - - 10 * - + col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 8 * + col2 FROM tab2
----
-184
-320
-464

query I rowsort
SELECT ALL col2 + 6 * - 29 * - 33 AS col2 FROM tab1
----
5801
5810
5838

query I rowsort
SELECT - col2 + + 83 AS col0 FROM tab2
----
25
43
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 + - 77 col0 FROM tab2 AS cor0
----
-115
-115
-115

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 = + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 + - 51 AS col2 FROM tab0 AS cor0
----
-4
-41
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT + + COUNT( * ) + - - ( COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1883
SELECT + + COUNT ( * ) + - - ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1884
SELECT ALL COUNT( * ) DIV + 38 * - 77 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1884
SELECT ALL COUNT ( * ) / + 38 * - 77 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + 81 * col0 AS col2 FROM tab2 cor0
----
-3726
-5184
-6075

onlyif mysql # DIV for integer division: 
query I rowsort label-1886
SELECT - + col1 + - 80 + + + col1 + - col2 DIV col2 - col0 * + + col2 * - - col1 + col2 AS col1 FROM tab2 AS cor0
----
-197161
-291473
-54016

skipif mysql # not compatible
query I rowsort label-1886
SELECT - + col1 + - 80 + + + col1 + - col2 / col2 - col0 * + + col2 * - - col1 + col2 AS col1 FROM tab2 AS cor0
----
-197161
-291473
-54016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1887
SELECT - 11 FROM tab0 AS cor0 WHERE CAST( - col1 AS SIGNED ) + + col2 IS NOT NULL
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-1887
SELECT - 11 FROM tab0 AS cor0 WHERE CAST ( - col1 AS INTEGER ) + + col2 IS NOT NULL
----
-11
-11
-11

query II rowsort
SELECT DISTINCT + - 9, ( + 62 ) AS col0 FROM tab0 AS cor0
----
-9
62

query III rowsort
SELECT * FROM tab2 WHERE - 99 - - col0 + + - col1 * - col1 IS NULL
----

query I rowsort
SELECT + ( + + 2 ) AS col2 FROM tab0
----
2
2
2

query I rowsort
SELECT ALL - col2 + - 59 AS col1 FROM tab1
----
-118
-127
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT COUNT( ALL ( + 18 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1892
SELECT COUNT ( ALL ( + 18 ) ) FROM tab0
----
3

query I rowsort
SELECT - 96 - - - col0 + col0 FROM tab0
----
-96
-96
-96

query III rowsort
SELECT * FROM tab2 WHERE - col1 BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT + - COUNT( * ) - + COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1895
SELECT + - COUNT ( * ) - + COUNT ( * ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT col0 + - 81 FROM tab0 AS cor0
----
-66
16
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT + MAX( 0 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1897
SELECT + MAX ( 0 ) AS col2 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1898
SELECT col1 DIV - col2 * 42 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1898
SELECT col1 / - col2 * 42 col1 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - 60 IS NOT NULL
----

query II rowsort
SELECT col0 + + - col0 - - col0 + - + col2 AS col0, - 12 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + - 24 IN ( + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 WHERE 55 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1902
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE 55 <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1903
SELECT col1 * + + 39 * - col0 * + CAST( col2 AS SIGNED ) - + col1 - + 97 AS col2, + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-11366714
75
-2104510
46
-7687854
64

skipif mysql # not compatible
query II rowsort label-1903
SELECT col1 * + + 39 * - col0 * + CAST ( col2 AS INTEGER ) - + col1 - + 97 AS col2, + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-11366714
75
-2104510
46
-7687854
64

query I rowsort
SELECT - + ( + + col1 ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1905
SELECT CAST( - col0 AS SIGNED ) * - col1 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-1905
SELECT CAST ( - col0 AS INTEGER ) * - col1 FROM tab1
----
425
4277
714

query II rowsort
SELECT ALL + col1 AS col0, col1 * ( + + col0 ) AS col1 FROM tab1
----
14
714
47
4277
5
425

onlyif mysql # aggregate syntax: 
query II rowsort label-1907
SELECT + 42 AS col2, + COUNT( * ) AS col0 FROM tab2
----
42
3

skipif mysql # not compatible
query II rowsort label-1907
SELECT + 42 AS col2, + COUNT ( * ) AS col0 FROM tab2
----
42
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 > + col1 + + 64 - + col0
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT - MAX( DISTINCT + 11 ) AS col1 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-1909
SELECT - MAX ( DISTINCT + 11 ) AS col1 FROM tab0
----
-11

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 + + 0 IS NOT NULL
----

query II rowsort
SELECT col1 * + col2 AS col1, 15 FROM tab2
----
1173
15
3080
15
3886
15

query I rowsort
SELECT + + col0 FROM tab2 WHERE NOT ( + 56 ) / - 83 * - - col0 + col1 = NULL
----

query II rowsort
SELECT DISTINCT col2, + 19 FROM tab2
----
23
19
40
19
58
19

query I rowsort
SELECT 15 * + ( - + col2 ) FROM tab2
----
-345
-600
-870

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1915
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - 21, col2 * col2 * col2, 23 - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1915
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - 21, col2 * col2 * col2, 23 - + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 82 = - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1917
SELECT DISTINCT + 85 DIV + MIN( + + col1 ) FROM tab0 cor0
----
85

skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT + 85 / + MIN ( + + col1 ) FROM tab0 cor0
----
85

query I rowsort
SELECT - 75 + + + 41 AS col0 FROM tab0 AS cor0
----
-34
-34
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1919
SELECT - col0 + col2 * + 63 * - + 26 * + col1 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1919
SELECT - col0 + col2 * + 63 * - + 26 * + col1 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 92 + - col0 FROM tab0 AS cor0
----
-5
5
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1921
SELECT 12 DIV + 41 * - + col0 + - col1 * 49 + + col0 FROM tab2 AS cor0
----
-2453
-3208
-3709

skipif mysql # not compatible
query I rowsort label-1921
SELECT 12 / + 41 * - + col0 + - col1 * 49 + + col0 FROM tab2 AS cor0
----
-2453
-3208
-3709

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT ALL - - 13 + + COUNT( * ) FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-1922
SELECT ALL - - 13 + + COUNT ( * ) FROM tab0 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT ALL - + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1923
SELECT ALL - + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT DISTINCT ( col1 ) + + + col0 - - col1 AS col2 FROM tab1
----
185
79
95

query I rowsort
SELECT ALL col2 * + 34 AS col0 FROM tab2 AS cor0
----
1360
1972
782

query I rowsort
SELECT col1 AS col1 FROM tab1 cor0 WHERE - 90 IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT - col0 - + col1 + + col0 + - 7 + - + 5 + - col2 FROM tab1 AS cor0
----
-122
-127
-76

query I rowsort
SELECT + + 23 FROM tab1 AS cor0 WHERE + 31 / col1 IS NULL
----

query I rowsort
SELECT col1 * + col1 * + col0 - - + 8 FROM tab2 AS cor0
----
119654
336683
379464

onlyif mysql # DIV for integer division: 
query I rowsort label-1930
SELECT ALL - + 7 DIV + - ( col1 ) AS col2 FROM tab0 AS cor0
----
0
0
7

skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL - + 7 / + - ( col1 ) AS col2 FROM tab0 AS cor0
----
0
0
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1931
SELECT CAST( NULL AS SIGNED ) - col1 + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1931
SELECT CAST ( NULL AS INTEGER ) - col1 + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1932
SELECT DISTINCT - MAX( ALL CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1932
SELECT DISTINCT - MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col0 + - + 57 FROM tab2 AS cor0
----
-103
-121
-132

query I rowsort
SELECT - col2 * + 3 + col0 AS col0 FROM tab0 AS cor0
----
-126
-200
57

query I rowsort
SELECT DISTINCT - 63 + + - 89 * col0 - + col2 FROM tab0
----
-1445
-7816
-8795

query I rowsort
SELECT + 40 + + 57 AS col0 FROM tab0
----
97
97
97

query III rowsort
SELECT * FROM tab2 WHERE + + 52 - 64 >= 99
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col1 + - col0 * + 34 + + col1 col1 FROM tab0
----
-2871
-3201
-495

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1939
SELECT DISTINCT * FROM tab0 WHERE + - CAST( - + 8 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1939
SELECT DISTINCT * FROM tab0 WHERE + - CAST ( - + 8 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1940
SELECT - ( - - col2 ) / + 89 * - + col0 AS col0 FROM tab2 AS cor0 WHERE - 70 + col0 - CAST( NULL AS DECIMAL ) * + 5 BETWEEN + col1 + + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-1940
SELECT - ( - - col2 ) / + 89 * - + col0 AS col0 FROM tab2 AS cor0 WHERE - 70 + col0 - CAST ( NULL AS REAL ) * + 5 BETWEEN + col1 + + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT + MAX( - ( - - col1 ) ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1941
SELECT + MAX ( - ( - - col1 ) ) AS col0 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT DISTINCT MIN( - - col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1942
SELECT DISTINCT MIN ( - - col1 ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 46 * - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT - COUNT( - + col1 ) * - COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-1944
SELECT - COUNT ( - + col1 ) * - COUNT ( * ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT - SUM( ALL - 80 ) AS col0 FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-1945
SELECT - SUM ( ALL - 80 ) AS col0 FROM tab0 AS cor0
----
240

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1946
SELECT + + CAST( col2 AS SIGNED ) AS col2, 63 col1 FROM tab1 AS cor0
----
59
63
68
63
96
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1946
SELECT + + CAST ( col2 AS INTEGER ) AS col2, 63 col1 FROM tab1 AS cor0
----
59
63
68
63
96
63

query I rowsort
SELECT DISTINCT - + 3 AS col1 FROM tab2 WHERE + + 76 <= + + col1
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 66 >= + ( - - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + 65 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT ALL MIN( col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL MIN ( col1 ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT DISTINCT - SUM( + 6 ) FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-1951
SELECT DISTINCT - SUM ( + 6 ) FROM tab1 AS cor0
----
-18

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 30 NOT BETWEEN - + col2 AND ( - ( + 0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1953
SELECT DISTINCT + col0 + - - CAST( NULL AS SIGNED ) + + + col2 + - col0 * - + col1 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1953
SELECT DISTINCT + col0 + - - CAST ( NULL AS INTEGER ) + + + col2 + - col0 * - + col1 AS col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 + - 60, - 61 col2 FROM tab1
----
-111
-61
-145
-61
-151
-61

query I rowsort
SELECT - 16 * - - col0 + 3 + + 57 * + col0 AS col0 FROM tab1 AS cor0
----
2094
3488
3734

query I rowsort
SELECT DISTINCT 96 + 0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT DISTINCT + - 84 * + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL > - col0
----
0

skipif mysql # not compatible
query I rowsort label-1957
SELECT DISTINCT + - 84 * + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL > - col0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * col1 IS NOT NULL
----

query I rowsort
SELECT 72 AS col2 FROM tab0 AS cor0 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT - - col0 AS col2 FROM tab0 AS cor0 WHERE NOT + 85 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < + col0 / - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1962
SELECT + col0 - - col0 + CAST( + col2 AS SIGNED ) FROM tab0
----
184
293
77

skipif mysql # not compatible
query I rowsort label-1962
SELECT + col0 - - col0 + CAST ( + col2 AS INTEGER ) FROM tab0
----
184
293
77

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 * col2 >= + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1964
SELECT ALL col2 * + 59 * - CAST( NULL AS SIGNED ) * - 40 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL col2 * + 59 * - CAST ( NULL AS INTEGER ) * - 40 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 - - 47 * + ( - col2 ) FROM tab0
----
-2194
-383
-4556

onlyif mysql # DIV for integer division: 
query I rowsort label-1966
SELECT DISTINCT col2 DIV - + col2 + col1 * - col2 AS col0 FROM tab0
----
-100
-211
-3808

skipif mysql # not compatible
query I rowsort label-1966
SELECT DISTINCT col2 / - + col2 + col1 * - col2 AS col0 FROM tab0
----
-100
-211
-3808

query I rowsort
SELECT 65 - - - col2 * - + col0 + - - col1 * + 28 FROM tab0
----
1523
3038
9696

query I rowsort
SELECT ALL - col2 + + + col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1969
SELECT ALL + ( CAST( NULL AS SIGNED ) ) col2, col2 - - col2 FROM tab2
----
NULL
116
NULL
46
NULL
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1969
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) col2, col2 - - col2 FROM tab2
----
NULL
116
NULL
46
NULL
80

query I rowsort
SELECT - col0 * + - 8 FROM tab1
----
408
680
728

onlyif mysql # aggregate syntax: 
query II rowsort label-1971
SELECT 49 col2, COUNT( * ) FROM tab0
----
49
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1971
SELECT 49 col2, COUNT ( * ) FROM tab0
----
49
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1972
SELECT + col2, - CAST( + - col1 AS SIGNED ) + + col0 + - 80 FROM tab0 WHERE NOT - col2 IS NULL
----
10
28
47
16
99
18

skipif mysql # not compatible
query II rowsort label-1972
SELECT + col2, - CAST ( + - col1 AS INTEGER ) + + col0 + - 80 FROM tab0 WHERE NOT - col2 IS NULL
----
10
28
47
16
99
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT - MAX( col0 ) * + 78 AS col0 FROM tab0 AS cor0
----
-7566

skipif mysql # not compatible
query I rowsort label-1973
SELECT - MAX ( col0 ) * + 78 AS col0 FROM tab0 AS cor0
----
-7566

query I rowsort
SELECT DISTINCT - + ( 69 ) FROM tab1 AS cor0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1975
SELECT DISTINCT + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1975
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1, col1 AS col0 FROM tab0 cor0
----
1
1
21
21
81
81

query I rowsort
SELECT + col2 * + col0 + 10 AS col1 FROM tab0 AS cor0
----
715
880
9613

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1978
SELECT ALL CAST( NULL AS DECIMAL ) AS col0, 48 FROM tab2 AS cor0 WHERE - 15 IS NOT NULL
----
NULL
48
NULL
48
NULL
48

skipif mysql # not compatible
query II rowsort label-1978
SELECT ALL CAST ( NULL AS REAL ) AS col0, 48 FROM tab2 AS cor0 WHERE - 15 IS NOT NULL
----
NULL
48
NULL
48
NULL
48

query I rowsort
SELECT DISTINCT + 37 * - 73 AS col0 FROM tab2 AS cor0
----
-2701

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT ALL 74 + - - COUNT( * ) FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL 74 + - - COUNT ( * ) FROM tab1 AS cor0
----
77

query I rowsort
SELECT DISTINCT - - 99 FROM tab2 WHERE NOT 42 IS NOT NULL
----

query I rowsort
SELECT ALL 60 + + + col2 AS col0 FROM tab2
----
100
118
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT DISTINCT MIN( + - 25 ) FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-1983
SELECT DISTINCT MIN ( + - 25 ) FROM tab1
----
-25

query I rowsort
SELECT col1 + 30 FROM tab1
----
35
44
77

query I rowsort
SELECT ALL + col0 + + 24 FROM tab0 cor0
----
111
121
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1986
SELECT - - CAST( - - 62 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
113
147
153

skipif mysql # not compatible
query I rowsort label-1986
SELECT - - CAST ( - - 62 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
113
147
153

query I rowsort
SELECT + col0 * 6 AS col2 FROM tab0 AS cor0
----
522
582
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT ALL MIN( DISTINCT col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL MIN ( DISTINCT col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-1989
SELECT - - ( + col2 ) DIV - - col1 AS col0 FROM tab0 AS cor0 WHERE col1 + - - col0 NOT BETWEEN 52 AND + - col2
----
0
0
99

skipif mysql # not compatible
query I rowsort label-1989
SELECT - - ( + col2 ) / - - col1 AS col0 FROM tab0 AS cor0 WHERE col1 + - - col0 NOT BETWEEN 52 AND + - col2
----
0
0
99

query I rowsort
SELECT ALL + col0 + + col1 FROM tab2 cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT + COUNT( * ) - + 56 FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-1991
SELECT + COUNT ( * ) - + 56 FROM tab2 AS cor0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT + 51 - COUNT( * ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-1992
SELECT + 51 - COUNT ( * ) FROM tab2 AS cor0
----
48

query I rowsort
SELECT - col1 + + col0 * + + col1 * col0 AS col1 FROM tab1 AS cor0
----
36120
36400
389160

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT - - 78 + + COUNT( DISTINCT - col0 ) * 7 col2 FROM tab1 cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1994
SELECT - - 78 + + COUNT ( DISTINCT - col0 ) * 7 col2 FROM tab1 cor0
----
99

query I rowsort
SELECT DISTINCT 65 - - - 1 AS col1 FROM tab2 AS cor0
----
64

query I rowsort
SELECT + + col0 + ( - col2 ) AS col2 FROM tab1 cor0
----
-45
23
26

onlyif mysql # DIV for integer division: 
query I rowsort label-1997
SELECT 46 DIV - col1 AS col1 FROM tab2 WHERE - 19 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1997
SELECT 46 / - col1 AS col1 FROM tab2 WHERE - 19 IS NOT NULL
----
0
0
0

query I rowsort
SELECT DISTINCT 67 + + + ( col0 ) - - 83 * 32 FROM tab2
----
2769
2787
2798

onlyif mysql # aggregate syntax: 
query II rowsort label-1999
SELECT DISTINCT - 44 AS col1, COUNT( * ) FROM tab1
----
-44
3

skipif mysql # not compatible
query II rowsort label-1999
SELECT DISTINCT - 44 AS col1, COUNT ( * ) FROM tab1
----
-44
3

query I rowsort
SELECT DISTINCT + col1 * ( + 9 ) FROM tab2
----
459
603
693

onlyif mysql # DIV for integer division: 
query I rowsort label-2001
SELECT ALL 51 DIV - col1 FROM tab1
----
-1
-10
-3

skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL 51 / - col1 FROM tab1
----
-1
-10
-3

query I rowsort
SELECT 44 * - + 66 FROM tab0
----
-2904
-2904
-2904

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT - - MAX( - - 40 ) AS col0 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-2003
SELECT - - MAX ( - - 40 ) AS col0 FROM tab0 AS cor0
----
40

query II rowsort
SELECT ALL - - 94 AS col2, + 73 AS col1 FROM tab2 AS cor0
----
94
73
94
73
94
73

query II rowsort
SELECT + + col1 AS col1, col1 AS col0 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2006
SELECT - - 75 AS col0, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
75
-3

skipif mysql # not compatible
query II rowsort label-2006
SELECT - - 75 AS col0, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
75
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-2007
SELECT - col1, col1 DIV 50 AS col1 FROM tab1 cor0
----
-14
0
-47
0
-5
0

skipif mysql # not compatible
query II rowsort label-2007
SELECT - col1, col1 / 50 AS col1 FROM tab1 cor0
----
-14
0
-47
0
-5
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2008
SELECT ALL CAST( NULL AS SIGNED ) / - 79 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2008
SELECT ALL CAST ( NULL AS INTEGER ) / - 79 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + + col2, 38 AS col0 FROM tab2 AS cor0
----
23
38
40
38
58
38

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 + 81 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2011
SELECT + col1 * col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2011
SELECT + col1 * col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 79 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + + col1 * + col0 * + col2 col0 FROM tab0
----
1589490
856575
931491

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2014
SELECT - COUNT( * ) * + 57 DIV COUNT( * ) AS col2 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-2014
SELECT - COUNT ( * ) * + 57 / COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-57

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT 19 + + ( - ( ( + - COUNT( * ) ) ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
19

skipif mysql # not compatible
query I rowsort label-2016
SELECT 19 + + ( - ( ( + - COUNT ( * ) ) ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
19

query I rowsort
SELECT DISTINCT + 60 + + 96 FROM tab2 AS cor0
----
156

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2019
SELECT + col1 AS col0 FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2019
SELECT + col1 AS col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
1
21
81

query II rowsort
SELECT ALL col1, + 21 FROM tab2
----
51
21
67
21
77
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT - 71 * COUNT( * ) FROM tab0
----
-213

skipif mysql # not compatible
query I rowsort label-2021
SELECT - 71 * COUNT ( * ) FROM tab0
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT - MAX( - col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2022
SELECT - MAX ( - col2 ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL col2 - - - 83 FROM tab0 AS cor0
----
-36
-73
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT - + MAX( ALL - + col0 ) * COUNT( * ) * - 60 FROM tab1 AS cor0
----
-9180

skipif mysql # not compatible
query I rowsort label-2024
SELECT - + MAX ( ALL - + col0 ) * COUNT ( * ) * - 60 FROM tab1 AS cor0
----
-9180

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT DISTINCT + - COUNT( 54 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2025
SELECT DISTINCT + - COUNT ( 54 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT ALL - COUNT( * ) col0 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2026
SELECT ALL - COUNT ( * ) col0 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
-9

query I rowsort
SELECT - col2 + 24 + - - col0 * - - col0 * - - col2 FROM tab2
----
163824
326216
48669

query I rowsort
SELECT DISTINCT + col0 + - - col2 AS col1 FROM tab0
----
196
62
97

query I rowsort
SELECT DISTINCT - + col1 FROM tab2 cor0 WHERE 36 <= + 95
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-2030
SELECT + SUM( - col1 ), + COUNT( * ) col1 FROM tab2 AS cor0
----
-195
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2030
SELECT + SUM ( - col1 ), + COUNT ( * ) col1 FROM tab2 AS cor0
----
-195
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2031
SELECT ALL col0 DIV - col0 - + - 72 * 75 AS col0 FROM tab1 cor0
----
5399
5399
5399

skipif mysql # not compatible
query I rowsort label-2031
SELECT ALL col0 / - col0 - + - 72 * 75 AS col0 FROM tab1 cor0
----
5399
5399
5399

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col2 * + ( - + col2 ) >= + - 56
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2033
SELECT - 30 DIV - col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2033
SELECT - 30 / - col2 FROM tab2 AS cor0
----
0
0
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 67 * col2 * + col0 >= - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2035
SELECT * FROM tab1 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) * + col1 + col0 IN ( - 42, col1, - - 37 * 92, 67 )
----

skipif mysql # not compatible
query III rowsort label-2035
SELECT * FROM tab1 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) * + col1 + col0 IN ( - 42, col1, - - 37 * 92, 67 )
----

query I rowsort
SELECT ( + 95 ) * - 7 FROM tab1
----
-665
-665
-665

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT 16 * + COUNT( * ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-2037
SELECT 16 * + COUNT ( * ) FROM tab0
----
48

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * + 12 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( + - 70 ) AS col1 FROM tab2
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT DISTINCT MIN( ALL + col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2040
SELECT DISTINCT MIN ( ALL + col1 ) AS col2 FROM tab1
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 37, ( + 78 ) + + + 62 + 85 col1 FROM tab0
----
37
225
37
225
37
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2042
SELECT ALL CAST( - col1 AS SIGNED ) AS col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2042
SELECT ALL CAST ( - col1 AS INTEGER ) AS col2 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT DISTINCT + + COUNT( * ) * ( 76 ) * + + COUNT( ALL + col2 ) FROM tab2 AS cor0
----
684

skipif mysql # not compatible
query I rowsort label-2043
SELECT DISTINCT + + COUNT ( * ) * ( 76 ) * + + COUNT ( ALL + col2 ) FROM tab2 AS cor0
----
684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2044
SELECT ALL - ( 46 ) * - CAST( NULL AS SIGNED ) + - - 0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL - ( 46 ) * - CAST ( NULL AS INTEGER ) + - - 0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - 92 AS col2, col0 FROM tab1 AS cor0
----
-92
51
-92
85
-92
91

query I rowsort
SELECT ALL ( - 73 ) AS col1 FROM tab0 AS cor0
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT SUM( DISTINCT + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2047
SELECT SUM ( DISTINCT + col2 ) FROM tab2 AS cor0
----
121

query II rowsort
SELECT DISTINCT col2, 70 FROM tab2
----
23
70
40
70
58
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 + - 35 col1 FROM tab2
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2050
SELECT ALL col1 * - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL col1 * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * 19 AS col2 FROM tab2 AS cor0
----
1216
1425
874

query I rowsort
SELECT DISTINCT + 51 * - 47 FROM tab0 AS cor0
----
-2397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2053
SELECT DISTINCT - - CAST( col2 AS SIGNED ) * + + col2 FROM tab0 AS cor0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-2053
SELECT DISTINCT - - CAST ( col2 AS INTEGER ) * + + col2 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE - + col2 * + col0 IN ( + + col1 + + 72 + col2, 76, 96 )
----

query II rowsort
SELECT DISTINCT - col0 * - - ( - - col1 ) * - col2 + 36, col1 FROM tab1
----
25111
5
290872
47
68580
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 + + - 32 col0 FROM tab2
----
37
37
37

query I rowsort
SELECT ALL 14 + + - col1 * + col2 FROM tab1
----
-1330
-281
-3182

onlyif mysql # DIV for integer division: 
query I rowsort label-2058
SELECT ALL 11 DIV - - 42 + + - 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-2058
SELECT ALL 11 / - - 42 + + - col2 / col2 col2 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + col1, - col2 + - col2, - col0, 95 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 col1 FROM tab2 cor0
----
2601
4489
5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, col0 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2062
SELECT CAST( - col2 AS SIGNED ) - + col1 + - 28 + - - col1 FROM tab2
----
-51
-68
-86

skipif mysql # not compatible
query I rowsort label-2062
SELECT CAST ( - col2 AS INTEGER ) - + col1 + - 28 + - - col1 FROM tab2
----
-51
-68
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT + COUNT( col1 ) * + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2063
SELECT + COUNT ( col1 ) * + COUNT ( * ) FROM tab2 AS cor0
----
9

query II rowsort
SELECT - + col2 AS col0, - col0 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT DISTINCT + + COUNT( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT + + COUNT ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT - SUM( + + 50 ) FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-2066
SELECT - SUM ( + + 50 ) FROM tab0 AS cor0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT + + COUNT( * ) * MAX( col1 ) * + COUNT( * ) + + MAX( - col2 ) + COUNT( * ) FROM tab2 AS cor0
----
673

skipif mysql # not compatible
query I rowsort label-2067
SELECT + + COUNT ( * ) * MAX ( col1 ) * + COUNT ( * ) + + MAX ( - col2 ) + COUNT ( * ) FROM tab2 AS cor0
----
673

query I rowsort
SELECT 27 * - + 33 + - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2069
SELECT DISTINCT - SUM( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2069
SELECT DISTINCT - SUM ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2070
SELECT DISTINCT COUNT( - col1 ) AS col0, SUM( col0 ) * - AVG ( DISTINCT col1 ) / CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2070
SELECT DISTINCT COUNT ( - col1 ) AS col0, SUM ( col0 ) * - AVG ( DISTINCT col1 ) / CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 col2 FROM tab2
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2072
SELECT CAST( + - col2 AS SIGNED ) AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2072
SELECT CAST ( + - col2 AS INTEGER ) AS col1 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT - + col2 + + col2 FROM tab2 AS cor0 WHERE NOT + col0 * + 33 * + col1 * + col0 IS NULL
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT col2 NOT BETWEEN + + col2 AND + - col2 * - - ( + 45 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE + + col0 IN ( + col0, col0 + col1, 17 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 * col1 * + 79 * + 16 * + + 42 FROM tab2 AS cor0
----
124544448
261617664
266767200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + col2 ) col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT + col1 + - + 5 FROM tab0 AS cor0
----
-4
16
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2079
SELECT DISTINCT 14 * + CAST( - - col0 AS SIGNED ) AS col1, col1 * - 66 + col1 AS col0 FROM tab2 cor0
----
1050
-4355
644
-3315
896
-5005

skipif mysql # not compatible
query II rowsort label-2079
SELECT DISTINCT 14 * + CAST ( - - col0 AS INTEGER ) AS col1, col1 * - 66 + col1 AS col0 FROM tab2 cor0
----
1050
-4355
644
-3315
896
-5005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 0 + + col1 col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT ALL - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = - col0 * - + 43 / + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2083
SELECT * FROM tab1 WHERE - col2 >= - CAST( NULL AS SIGNED ) + - - col2 * 67 / ( + col1 ) * - 66
----

skipif mysql # not compatible
query III rowsort label-2083
SELECT * FROM tab1 WHERE - col2 >= - CAST ( NULL AS INTEGER ) + - - col2 * 67 / ( + col1 ) * - 66
----

query I rowsort
SELECT DISTINCT col0 + 54 FROM tab0
----
141
151
69

query II rowsort
SELECT 26, + col0 FROM tab2
----
26
46
26
64
26
75

query I rowsort
SELECT + ( - ( + col1 ) ) AS col2 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2087
SELECT + 96 * - col2 AS col1 FROM tab2 WHERE + 87 + - + CAST( col1 AS SIGNED ) BETWEEN NULL AND - col1
----

skipif mysql # not compatible
query I rowsort label-2087
SELECT + 96 * - col2 AS col1 FROM tab2 WHERE + 87 + - + CAST ( col1 AS INTEGER ) BETWEEN NULL AND - col1
----

query I rowsort
SELECT DISTINCT + col0 + 55 - - col2 + col0 * + col0 * 5 FROM tab0 AS cor0 WHERE NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + col1 col1 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT 22 * - 89 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1958
-1958
-1958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2091
SELECT CAST( - - col2 AS SIGNED ) + - + col1 AS col0 FROM tab1 AS cor0
----
21
54
82

skipif mysql # not compatible
query I rowsort label-2091
SELECT CAST ( - - col2 AS INTEGER ) + - + col1 AS col0 FROM tab1 AS cor0
----
21
54
82

query II rowsort
SELECT DISTINCT 73 AS col2, col0 AS col2 FROM tab1 cor0
----
73
51
73
85
73
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 <> + col1
----

query III rowsort
SELECT * FROM tab0 WHERE - + col2 NOT BETWEEN - + 49 * - col0 AND col2 * 5 + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2095
SELECT DISTINCT + SUM( DISTINCT - CAST( - - ( ( - + 77 ) ) AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2095
SELECT DISTINCT + SUM ( DISTINCT - CAST ( - - ( ( - + 77 ) ) AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
77

query I rowsort
SELECT - col2 - - 40 FROM tab2 cor0 WHERE NOT - 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT COUNT( ALL - + 51 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2097
SELECT COUNT ( ALL - + 51 ) AS col1 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2098
SELECT ALL - MAX( + col1 ) AS col0, MAX( - col2 ) AS col0 FROM tab2 AS cor0
----
-77
-23

skipif mysql # not compatible
query II rowsort label-2098
SELECT ALL - MAX ( + col1 ) AS col0, MAX ( - col2 ) AS col0 FROM tab2 AS cor0
----
-77
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2099
SELECT DISTINCT - COUNT( CAST( col1 AS DECIMAL ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2099
SELECT DISTINCT - COUNT ( CAST ( col1 AS REAL ) ) FROM tab0
----
-3

query I rowsort
SELECT + col1 * - + ( + - 53 ) AS col0 FROM tab1
----
2491
265
742

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT DISTINCT - COUNT( + 92 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT - COUNT ( + 92 ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT - col2 + - col0 * - 74 * + - col0 + - col1 FROM tab1 AS cor0
----
-192584
-534714
-612909

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT ALL - 61 * + 68 + - MAX( + 82 ) FROM tab1
----
-4230

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL - 61 * + 68 + - MAX ( + 82 ) FROM tab1
----
-4230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2105
SELECT DISTINCT col0 * - CAST( col0 AS SIGNED ) FROM tab1 WHERE col0 + + col0 <> col2 * col2 - + 6
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT col0 * - CAST ( col0 AS INTEGER ) FROM tab1 WHERE col0 + + col0 <> col2 * col2 - + 6
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT COUNT( * ) AS col0 FROM tab2 WHERE - col2 BETWEEN ( NULL ) AND ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2106
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE - col2 BETWEEN ( NULL ) AND ( col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2107
SELECT ALL * FROM tab1 WHERE + CAST( col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2107
SELECT ALL * FROM tab1 WHERE + CAST ( col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2108
SELECT ALL col1 DIV col0 + 67 * - col1 FROM tab2
----
-3416
-4489
-5158

skipif mysql # not compatible
query I rowsort label-2108
SELECT ALL col1 / col0 + 67 * - col1 FROM tab2
----
-3416
-4489
-5158

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 + + 84 BETWEEN ( col2 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT DISTINCT 5 + ( - 55 ) * COUNT( * ) AS col0 FROM tab1
----
-160

skipif mysql # not compatible
query I rowsort label-2111
SELECT DISTINCT 5 + ( - 55 ) * COUNT ( * ) AS col0 FROM tab1
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT ALL - 92 * COUNT( - 85 * - ( - col1 ) ) FROM tab2
----
-276

skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL - 92 * COUNT ( - 85 * - ( - col1 ) ) FROM tab2
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT ALL MIN( ALL 54 ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL MIN ( ALL 54 ) FROM tab1
----
54

query I rowsort
SELECT DISTINCT - 98 AS col1 FROM tab1 WHERE NOT ( NULL ) IN ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 * + col2 col0 FROM tab1
----
1947
2244
3168

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + + 69 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE col0 * 95 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 * - 4 col0 FROM tab0
----
-336

query I rowsort
SELECT DISTINCT + col0 + 1 * - col1 FROM tab2 WHERE NOT col0 >= - col2
----

query I rowsort
SELECT ALL - ( + 97 ) FROM tab2
----
-97
-97
-97

query I rowsort
SELECT + ( col0 ) - 15 * + col2 AS col2 FROM tab1
----
-1389
-800
-929

onlyif mysql # DIV for integer division: 
query I rowsort label-2123
SELECT - ( - 93 ) DIV col2 col2 FROM tab0
----
0
1
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2123
SELECT - ( - 93 ) / col2 col2 FROM tab0
----
0
1
9

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT ALL COUNT( col2 ) FROM tab2 WHERE col1 IN ( col1 )
----
3

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL COUNT ( col2 ) FROM tab2 WHERE col1 IN ( col1 )
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col2 + 30 * col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 45 / 78 ) >= 76 - + col2
----
51
14
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2128
SELECT COUNT( * ) * - ( + MAX( + CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2128
SELECT COUNT ( * ) * - ( + MAX ( + CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT col1 * ( - 43 ) AS col2 FROM tab0
----
-3483
-43
-903

query I rowsort
SELECT 11 - col2 FROM tab0 WHERE - 60 <= - col1
----
-88
1

query I rowsort
SELECT col2 * - col2 + 27 AS col1 FROM tab2
----
-1573
-3337
-502

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT + 6 * MAX( ALL - col2 ) AS col1 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-2132
SELECT + 6 * MAX ( ALL - col2 ) AS col1 FROM tab0
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-2133
SELECT DISTINCT - col2 DIV ( - col0 ) col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2133
SELECT DISTINCT - col2 / ( - col0 ) col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 WHERE NOT col0 NOT IN ( + col0 )
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2135
SELECT DISTINCT - col2 - ( + col1 ) * CAST( - col2 * - 47 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-178976
-4752
-9880

skipif mysql # not compatible
query I rowsort label-2135
SELECT DISTINCT - col2 - ( + col1 ) * CAST ( - col2 * - 47 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-178976
-4752
-9880

onlyif mysql # DIV for integer division: 
query I rowsort label-2136
SELECT ALL col1 DIV col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2136
SELECT ALL col1 / col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT DISTINCT 8 + + COUNT( * ) FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-2137
SELECT DISTINCT 8 + + COUNT ( * ) FROM tab1 AS cor0
----
11

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 86 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT DISTINCT - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2139
SELECT DISTINCT - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( col1 ) + + ( - 60 ) > 31
----

query I rowsort
SELECT DISTINCT 24 AS col2 FROM tab0 cor0 WHERE ( NULL ) NOT IN ( col2 * 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT ALL + + SUM( col2 ) * + 34 AS col2 FROM tab0 AS cor0
----
5304

skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL + + SUM ( col2 ) * + 34 AS col2 FROM tab0 AS cor0
----
5304

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT DISTINCT - COUNT( * ) * - 64 FROM tab0 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-2143
SELECT DISTINCT - COUNT ( * ) * - 64 FROM tab0 AS cor0
----
192

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 - + 10 > col1 - 28
----
87
21
10
97
1
99

query I rowsort
SELECT ALL - col2 * - 9 FROM tab0 AS cor0
----
423
891
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2146
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT 60 > - CAST( - ( + 4 ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2146
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT 60 > - CAST ( - ( + 4 ) AS INTEGER )
----

query I rowsort
SELECT DISTINCT + + col1 * 83 FROM tab2 AS cor0
----
4233
5561
6391

query I rowsort
SELECT col1 / 71 + + ( 72 ) / col0 FROM tab2 WHERE NOT - col1 NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT ALL SUM( + - col2 ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL SUM ( + - col2 ) AS col2 FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT DISTINCT - COUNT( * ) * + 38 FROM tab0 WHERE NOT col2 NOT BETWEEN + col0 * col1 AND col1
----
0

skipif mysql # not compatible
query I rowsort label-2150
SELECT DISTINCT - COUNT ( * ) * + 38 FROM tab0 WHERE NOT col2 NOT BETWEEN + col0 * col1 AND col1
----
0

query I rowsort
SELECT col1 * - 80 AS col2 FROM tab2
----
-4080
-5360
-6160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 * 65 col1 FROM tab0 WHERE NOT NULL NOT IN ( 53 )
----

query I rowsort
SELECT ALL + col0 + - 10 * col2 FROM tab2
----
-184
-336
-505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2154
SELECT 18 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2154
SELECT 18 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - - col0 FROM tab0 AS cor0
----
225
7569
9409

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL <> - col1 * - 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT DISTINCT - SUM( + col0 ) col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2157
SELECT DISTINCT - SUM ( + col0 ) col0 FROM tab2 AS cor0
----
-185

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 88 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab2 AS cor0 WHERE col0 + col1 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + ( col0 ) FROM tab2 WHERE col2 + col2 * 59 NOT BETWEEN col0 / + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT DISTINCT MIN( DISTINCT + col1 ) + 71 * 30 AS col2 FROM tab1
----
2135

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT MIN ( DISTINCT + col1 ) + 71 * 30 AS col2 FROM tab1
----
2135

query I rowsort
SELECT 96 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT - COUNT( * ) AS col1 FROM tab1, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2163
SELECT - COUNT ( * ) AS col1 FROM tab1, tab0 AS cor0
----
-9

query I rowsort
SELECT DISTINCT 3 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT + 53 * + COUNT( DISTINCT - 62 ) + COUNT( * ) * + 43 AS col2 FROM tab0 cor0
----
182

skipif mysql # not compatible
query I rowsort label-2165
SELECT + 53 * + COUNT ( DISTINCT - 62 ) + COUNT ( * ) * + 43 AS col2 FROM tab0 cor0
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT + + 29 + - COUNT( + + col1 ) AS col2 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-2166
SELECT + + 29 + - COUNT ( + + col1 ) AS col2 FROM tab0 AS cor0
----
26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 <> - col1 - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - 53 AS col1 FROM tab0 AS cor0
----
-53

query I rowsort
SELECT + 42 + col0 * 14 FROM tab1 AS cor0 WHERE + col0 >= NULL
----

query I rowsort
SELECT ALL ( + 45 ) AS col0 FROM tab1 AS cor0
----
45
45
45

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 63 NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT ALL - ( - + MAX( - 70 ) ) AS col0 FROM tab1 cor0
----
-70

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL - ( - + MAX ( - 70 ) ) AS col0 FROM tab1 cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE ( - - ( + col2 ) * col0 ) BETWEEN NULL AND - col1 * + col1 + ( - 15 + + col0 * + 86 ) * 97
----
0

skipif mysql # not compatible
query I rowsort label-2174
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE ( - - ( + col2 ) * col0 ) BETWEEN NULL AND - col1 * + col1 + ( - 15 + + col0 * + 86 ) * 97
----
0

query III rowsort
SELECT * FROM tab0 WHERE - col1 BETWEEN NULL AND - 45
----

query II rowsort
SELECT DISTINCT + 77 * col1, + col0 FROM tab1
----
1078
51
3619
91
385
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2177
SELECT ALL - 44 + col0 DIV - - col0 col0 FROM tab0
----
-43
-43
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2177
SELECT ALL - 44 + col0 / - - col0 col0 FROM tab0
----
-43
-43
-43

query I rowsort
SELECT ALL ( - col0 ) * + 43 + - - col2 AS col0 FROM tab2
----
-1955
-2712
-3167

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT MAX( ALL - col0 ) * + MAX( ALL - 32 ) FROM tab1
----
1632

skipif mysql # not compatible
query I rowsort label-2179
SELECT MAX ( ALL - col0 ) * + MAX ( ALL - 32 ) FROM tab1
----
1632

onlyif mysql # DIV for integer division: 
query I rowsort label-2180
SELECT - col0 DIV - col1 - 60 + col1 AS col1 FROM tab2
----
-9
17
8

skipif mysql # not compatible
query I rowsort label-2180
SELECT - col0 / - col1 - 60 + col1 AS col1 FROM tab2
----
-9
17
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2181
SELECT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) / + + col1 * - 8 NOT BETWEEN ( 59 ) AND NULL AND 72 <= + col1
----

skipif mysql # not compatible
query III rowsort label-2181
SELECT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) / + + col1 * - 8 NOT BETWEEN ( 59 ) AND NULL AND 72 <= + col1
----

query I rowsort
SELECT DISTINCT + col2 - + col0 AS col1 FROM tab0
----
-77
2
32

query I rowsort
SELECT col1 - - col1 * + col1 + - 93 FROM tab2
----
2559
4463
5913

query I rowsort
SELECT + col2 * 64 - - col2 FROM tab0
----
3055
6435
650

onlyif mysql # DIV for integer division: 
query I rowsort label-2185
SELECT DISTINCT + col0 DIV 54 + - 48 AS col2 FROM tab0
----
-47
-48

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT + col0 / 54 + - 48 AS col2 FROM tab0
----
-47
-48

query I rowsort
SELECT DISTINCT + 55 - 14 AS col2 FROM tab2 AS cor0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2187
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + ( - CAST( NULL AS SIGNED ) ) BETWEEN col0 AND - col1 / - col0
----

skipif mysql # not compatible
query III rowsort label-2187
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + ( - CAST ( NULL AS INTEGER ) ) BETWEEN col0 AND - col1 / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 20 < - - 52 - + - 62
----
0

skipif mysql # not compatible
query I rowsort label-2188
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 20 < - - 52 - + - 62
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 - + col1 * + + col0 * 48 = + 52
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT col1 * - 11 * - + 24 IS NULL
----
-110
-115
-64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( - col0 )
----

query I rowsort
SELECT DISTINCT - 12 * - + col1 AS col2 FROM tab1 AS cor0
----
168
564
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2193
SELECT ALL + COUNT( ALL + col1 ) DIV + 98 col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2193
SELECT ALL + COUNT ( ALL + col1 ) / + 98 col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 * + 52 col1 FROM tab1 AS cor0
----
-2236

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2195
SELECT ALL ( 59 ) DIV - COUNT( * ) FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL ( 59 ) / - COUNT ( * ) FROM tab0 AS cor0
----
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 * + col1 col1 FROM tab0 AS cor0
----
11
231
891

onlyif mysql # DIV for integer division: 
query I rowsort label-2197
SELECT DISTINCT + col1 DIV - 76 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2197
SELECT DISTINCT + col1 / - 76 FROM tab0
----
-1
0

query II rowsort
SELECT col0, + col2 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT ( + 86 ) AS col0 FROM tab1
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT DISTINCT + SUM( - - 15 ) + + COUNT( * ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-2200
SELECT DISTINCT + SUM ( - - 15 ) + + COUNT ( * ) FROM tab2
----
48

query II rowsort
SELECT ALL - 57 AS col2, - 91 FROM tab1
----
-57
-91
-57
-91
-57
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 32 col2 FROM tab1
----
-27
-36
-64

query I rowsort
SELECT DISTINCT + col1 + + + ( + col0 ) + + - col1 FROM tab0
----
15
87
97

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( - col1 ) BETWEEN NULL AND 36 / - + 76 * 59 )
----

query I rowsort
SELECT + ( - - col2 ) + + 14 + col2 FROM tab2 AS cor0
----
130
60
94

query I rowsort
SELECT + col0 + + - 24 AS col1 FROM tab2 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT - - COUNT( * ) + + - 14 FROM tab0 cor0
----
-11

skipif mysql # not compatible
query I rowsort label-2207
SELECT - - COUNT ( * ) + + - 14 FROM tab0 cor0
----
-11

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * + col2 <> - ( - col0 ) * - 27 * + 30
----

query I rowsort
SELECT + + col0 AS col2 FROM tab0 AS cor0 WHERE col1 > - + 80
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2210
SELECT ALL - MIN( ALL CAST( NULL AS SIGNED ) ) / - + ( + + 39 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2210
SELECT ALL - MIN ( ALL CAST ( NULL AS INTEGER ) ) / - + ( + + 39 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2211
SELECT + + 29 DIV + 82, + col1 FROM tab1 AS cor0
----
0
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-2211
SELECT + + 29 / + 82, + col1 FROM tab1 AS cor0
----
0
14
0
47
0
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( - col0 ) * + col2 * - - 68 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - 70 + + col1, col1 FROM tab0
----
-49
21
-69
1
11
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT ALL + 38 - MIN( + + ( + + col2 ) ) AS col2 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2215
SELECT ALL + 38 - MIN ( + + ( + + col2 ) ) AS col2 FROM tab1 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT ALL + COUNT( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL + COUNT ( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL - - col0 AS col1, 87 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
51
87
85
87
91
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT - + COUNT( + col2 ) + - + 75 AS col2 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-2218
SELECT - + COUNT ( + col2 ) + - + 75 AS col2 FROM tab1 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT ALL - ( + SUM( - 18 ) ) FROM tab1 AS cor0 WHERE NOT ( NOT ( - + col2 ) + 9 + + col0 * 19 IN ( col1 * - col1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2219
SELECT ALL - ( + SUM ( - 18 ) ) FROM tab1 AS cor0 WHERE NOT ( NOT ( - + col2 ) + 9 + + col0 * 19 IN ( col1 * - col1 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT DISTINCT - 69 * - + COUNT( * ) FROM tab2 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-2220
SELECT DISTINCT - 69 * - + COUNT ( * ) FROM tab2 AS cor0
----
207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2221
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2221
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col2 + + - col1 FROM tab1
----
21
54
82

query II rowsort
SELECT ALL 38, col0 FROM tab1
----
38
51
38
85
38
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT ( + COUNT( * ) ) + - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2224
SELECT ( + COUNT ( * ) ) + - COUNT ( * ) AS col0 FROM tab2
----
0

query II rowsort
SELECT DISTINCT col0 * - - col0 + 86 * - col0 AS col1, - col2 FROM tab0
----
-1065
-47
1067
-99
87
-10

query I rowsort
SELECT DISTINCT col0 + col0 * 23 FROM tab2
----
1104
1536
1800

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2227
SELECT DISTINCT * FROM tab1 WHERE ( - CAST( NULL AS SIGNED ) ) BETWEEN - col1 * + - col1 * + + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2227
SELECT DISTINCT * FROM tab1 WHERE ( - CAST ( NULL AS INTEGER ) ) BETWEEN - col1 * + - col1 * + + col2 AND NULL
----

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + - col1 AS col0 FROM tab0 WHERE NULL > col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 95 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT - SUM( ALL + col1 ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2231
SELECT - SUM ( ALL + col1 ) AS col1 FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT MAX( col2 ) FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-2232
SELECT MAX ( col2 ) FROM tab0 cor0
----
99

query I rowsort
SELECT ALL + col1 * - + ( + col2 ) FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT - ( + - 86 ) FROM tab1 AS cor0
----
86
86
86

query I rowsort
SELECT - col1 * col2 * - col1 FROM tab1 cor0
----
1475
150212
18816

query I rowsort
SELECT - 23 + col2 - + ( + 62 ) AS col0 FROM tab2 AS cor0
----
-27
-45
-62

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT col1 + 75 IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT DISTINCT + MIN( ALL - col2 ) col2 FROM tab1
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2238
SELECT DISTINCT + MIN ( ALL - col2 ) col2 FROM tab1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2239
SELECT DISTINCT 59 + - + CAST( NULL AS SIGNED ) + ( 65 ) + + + ( - AVG ( + 36 ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2239
SELECT DISTINCT 59 + - + CAST ( NULL AS INTEGER ) + ( 65 ) + + + ( - AVG ( + 36 ) ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + 32 + + 59 FROM tab2
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2241
SELECT CAST( NULL AS SIGNED ) * col0 * - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2241
SELECT CAST ( NULL AS INTEGER ) * col0 * - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col2, + ( + col2 ) FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - + ( - col1 ) NOT BETWEEN NULL AND + col1 * + 64 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT + MIN( DISTINCT col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2244
SELECT + MIN ( DISTINCT col1 ) AS col2 FROM tab1
----
5

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NULL = ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + - ( + + col0 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE 80 + + 4 + col1 * + 28 + + 80 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 75 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2249
SELECT CAST( + col1 AS SIGNED ) * - + col2 * + 3 * col0 FROM tab0 cor0
----
-171315
-28809
-54810

skipif mysql # not compatible
query I rowsort label-2249
SELECT CAST ( + col1 AS INTEGER ) * - + col2 * + 3 * col0 FROM tab0 cor0
----
-171315
-28809
-54810

query I rowsort
SELECT 88 * - + col0 + + - ( - 4 ) FROM tab2 AS cor0
----
-4044
-5628
-6596

query I rowsort
SELECT ALL ( + ( + col1 ) ) - col2 AS col2 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT + + col2 AS col1 FROM tab2 cor0 WHERE - col2 >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 + - 40 * 35 FROM tab2
----
-1342
-1360
-1377

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT DISTINCT COUNT( * ) - + + 24 AS col2 FROM tab2, tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2255
SELECT DISTINCT COUNT ( * ) - + + 24 AS col2 FROM tab2, tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT - COUNT( 88 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2256
SELECT - COUNT ( 88 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT + col1 * ( + 72 ) FROM tab1
----
1008
3384
360

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT ALL MAX( 28 ) AS col2 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL MAX ( 28 ) AS col2 FROM tab2
----
28

onlyif mysql # DIV for integer division: 
query II rowsort label-2259
SELECT + 17 * + + col1 + - col0, + col1 DIV - + 56 AS col2 FROM tab0 AS cor0
----
-80
0
1362
-1
270
0

skipif mysql # not compatible
query II rowsort label-2259
SELECT + 17 * + + col1 + - col0, + col1 / - + 56 AS col2 FROM tab0 AS cor0
----
-80
0
1362
-1
270
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 43 col0, - 63 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
18 values hashing to 1f68b06a1e1d7ea4a7fc383308e1004d

query II rowsort
SELECT DISTINCT + col0, + col0 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT - 64 * - + COUNT( * ) * + - 0 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2262
SELECT - 64 * - + COUNT ( * ) * + - 0 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT DISTINCT COUNT( ALL + 25 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2263
SELECT DISTINCT COUNT ( ALL + 25 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT COUNT( DISTINCT - col2 ) * + + ( - 37 ) FROM tab1 WHERE NOT NULL NOT BETWEEN 13 / - 12 AND + + col1 AND col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2264
SELECT COUNT ( DISTINCT - col2 ) * + + ( - 37 ) FROM tab1 WHERE NOT NULL NOT BETWEEN 13 / - 12 AND + + col1 AND col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT ALL MAX( ALL + 38 ) AS col0 FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-2265
SELECT ALL MAX ( ALL + 38 ) AS col0 FROM tab1
----
38

query I rowsort
SELECT DISTINCT 9 * 26 * - col1 AS col2 FROM tab2 AS cor0
----
-11934
-15678
-18018

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT ALL + + 27 + - 73 + - COUNT( * ) FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-2267
SELECT ALL + + 27 + - 73 + - COUNT ( * ) FROM tab0 AS cor0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-2268
SELECT DISTINCT - + col0 DIV + col2 + + 48 + - col0 * - col2 FROM tab2 AS cor0
----
1104
2607
4397

skipif mysql # not compatible
query I rowsort label-2268
SELECT DISTINCT - + col0 / + col2 + + 48 + - col0 * - col2 FROM tab2 AS cor0
----
1104
2607
4397

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE ( col1 * - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT ( col1 ) * col2 AS col2 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT + 64 + + + col1 AS col0 FROM tab1
----
111
69
78

onlyif mysql # DIV for integer division: 
query I rowsort label-2272
SELECT ALL + 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-2272
SELECT ALL + col2 / + col2 col2 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT DISTINCT MIN( DISTINCT + 54 ) FROM tab0 cor0
----
54

skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT MIN ( DISTINCT + 54 ) FROM tab0 cor0
----
54

query I rowsort
SELECT ALL 33 * - 17 + + ( + col2 ) AS col1 FROM tab1
----
-465
-493
-502

query I rowsort
SELECT - 77 + 48 AS col0 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2276
SELECT DISTINCT CAST( NULL AS SIGNED ) + ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2276
SELECT DISTINCT CAST ( NULL AS INTEGER ) + ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col1 - - col1 + + 67 FROM tab1 AS cor0
----
161
77
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT DISTINCT + SUM( + - col2 ) / + 19 FROM tab2 AS cor0 WHERE NULL BETWEEN - 61 AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2278
SELECT DISTINCT + SUM ( + - col2 ) / + 19 FROM tab2 AS cor0 WHERE NULL BETWEEN - 61 AND + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT DISTINCT 58 + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
58

skipif mysql # not compatible
query I rowsort label-2279
SELECT DISTINCT 58 + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
58

query I rowsort
SELECT - 83 + - 62 AS col1 FROM tab1 AS cor0
----
-145
-145
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT - 58 + + MIN( ALL + col2 ) + 64 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-2281
SELECT - 58 + + MIN ( ALL + col2 ) + 64 FROM tab0 AS cor0
----
16

query II rowsort
SELECT - - 13 AS col0, col0 AS col2 FROM tab2 AS cor0
----
13
46
13
64
13
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + ( + col2 ) col1 FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query II rowsort label-2284
SELECT DISTINCT 33, + COUNT( * ) * + 77 AS col0 FROM tab0
----
33
231

skipif mysql # not compatible
query II rowsort label-2284
SELECT DISTINCT 33, + COUNT ( * ) * + 77 AS col0 FROM tab0
----
33
231

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = + col1 * - + col2
----

query I rowsort
SELECT DISTINCT - ( + 23 ) AS col2 FROM tab2
----
-23

query I rowsort
SELECT ( ( + - col2 ) ) FROM tab1
----
-59
-68
-96

query I rowsort
SELECT - ( - - 24 ) AS col2 FROM tab1 WHERE NOT col2 * 23 IS NULL
----
-24
-24
-24

query I rowsort
SELECT ALL - - 91 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + + col0 AS col1 FROM tab1 cor0 WHERE NOT - ( + col2 ) IS NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2291
SELECT DISTINCT + + col1 DIV col1 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2291
SELECT DISTINCT + + col1 / col1 AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT + + MAX( DISTINCT + - col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2292
SELECT + + MAX ( DISTINCT + - col0 ) AS col2 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT ALL MAX( 96 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL MAX ( 96 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT + - 70 AS col1 FROM tab1 AS cor0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT COUNT( ALL - + col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2295
SELECT COUNT ( ALL - + col2 ) FROM tab0
----
3

query I rowsort
SELECT ALL - 10 * - col0 * - - col0 * col2 + - + col1 FROM tab1 WHERE NOT - col1 + - col1 + col1 + - col0 * col1 + - col2 * - col1 IS NULL
----
2496946
4262745
5631033

onlyif mysql # aggregate syntax: 
query II rowsort label-2297
SELECT DISTINCT MAX( DISTINCT - + 19 ) col2, COUNT( * ) AS col0 FROM tab1 AS cor0
----
-19
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2297
SELECT DISTINCT MAX ( DISTINCT - + 19 ) col2, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-19
3

query I rowsort
SELECT - - col2 + - + col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + col0 + - col0 + col0 FROM tab1 AS cor0
----
51
85
91

query II rowsort
SELECT DISTINCT - ( col2 ) AS col2, 83 FROM tab2 AS cor0
----
-23
83
-40
83
-58
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT DISTINCT + MAX( ALL + 69 ) AS col0 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2301
SELECT DISTINCT + MAX ( ALL + 69 ) AS col0 FROM tab0 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT - ( 85 ) + + 45 + + MAX( DISTINCT - 60 ) * - 46 * + 10 FROM tab0 AS cor0
----
27560

skipif mysql # not compatible
query I rowsort label-2302
SELECT - ( 85 ) + + 45 + + MAX ( DISTINCT - 60 ) * - 46 * + 10 FROM tab0 AS cor0
----
27560

onlyif mysql # aggregate syntax: 
query II rowsort label-2303
SELECT ALL COUNT( DISTINCT - col1 ) AS col2, MIN( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
3
-96

skipif mysql # not compatible
query II rowsort label-2303
SELECT ALL COUNT ( DISTINCT - col1 ) AS col2, MIN ( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
3
-96

query I rowsort
SELECT ALL col1 + + 86 AS col0 FROM tab0
----
107
167
87

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE - col0 >= + 10
----

query I rowsort
SELECT - 48 FROM tab2 WHERE 93 NOT IN ( + col2 + - + 56 )
----
-48
-48
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2307
SELECT ALL + 1 * CAST( NULL AS SIGNED ) + - col1 * + - col0 + - + ( + - 67 ) + ( col0 ) * - + 83 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL + 1 * CAST ( NULL AS INTEGER ) + - col1 * + - col0 + - + ( + - 67 ) + ( col0 ) * - + 83 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 47 * 53 AS col1 FROM tab2
----
2491
2491
2491

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT ALL SUM( + 47 ) * + 89 + COUNT( * ) * - COUNT( * ) AS col0 FROM tab1
----
12540

skipif mysql # not compatible
query I rowsort label-2309
SELECT ALL SUM ( + 47 ) * + 89 + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1
----
12540

query I rowsort
SELECT DISTINCT + 21 * - + 90 + + 37 + - col0 * - 46 AS col2 FROM tab0
----
-1163
2149
2609

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 26 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT ALL - + MAX( - col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2312
SELECT ALL - + MAX ( - col1 ) AS col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT - 54 AS col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT - 79 + + + COUNT( * ) + + + 25 AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2314
SELECT - 79 + + + COUNT ( * ) + + + 25 AS col1 FROM tab2
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 44 * - col2 * - - col1 * + 26 > 76 * ( 28 ) + - 71 * - 45
----

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2316
SELECT ALL - + ( ( col1 ) ) DIV - col2 AS col2, CAST( NULL AS DECIMAL ) + + col1 AS col0 FROM tab0 AS cor0
----
0
NULL
1
NULL
2
NULL

skipif mysql # not compatible
query II rowsort label-2316
SELECT ALL - + ( ( col1 ) ) / - col2 AS col2, CAST ( NULL AS REAL ) + + col1 AS col0 FROM tab0 AS cor0
----
0
NULL
1
NULL
2
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2317
SELECT 11 col1 FROM tab2 AS cor0 WHERE NOT + CAST( + + col0 AS SIGNED ) * + col1 > NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2317
SELECT 11 col1 FROM tab2 AS cor0 WHERE NOT + CAST ( + + col0 AS INTEGER ) * + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT + MAX( ALL - ( col2 ) ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2318
SELECT + MAX ( ALL - ( col2 ) ) FROM tab0 AS cor0
----
-10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 < + - col1 + col0 + - + col0 + 96 * ( + col0 )
----

query I rowsort
SELECT - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + 23 <= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2321
SELECT ALL + - col2 * + col1 * col1 DIV + ( col1 ), 15 AS col1 FROM tab0 AS cor0
----
-210
15
-3807
15
-99
15

skipif mysql # not compatible
query II rowsort label-2321
SELECT ALL + - col2 * + col1 * col1 / + ( col1 ), 15 AS col1 FROM tab0 AS cor0
----
-210
15
-3807
15
-99
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 3 * - + col0 col2 FROM tab2 AS cor0
----
-138
-192
-225

onlyif mysql # DIV for integer division: 
query I rowsort label-2323
SELECT DISTINCT 71 DIV + 85 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2323
SELECT DISTINCT 71 / + 85 AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2324
SELECT col0 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) NOT BETWEEN 17 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2324
SELECT col0 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN 17 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 / + - 24 IS NOT NULL
----

query I rowsort
SELECT 99 * - - 50 FROM tab1
----
4950
4950
4950

query I rowsort
SELECT DISTINCT + 4 * col2 AS col1 FROM tab0
----
188
396
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + + col1 ) col1 FROM tab2
----
51
67
77

query I rowsort
SELECT ( col0 ) AS col0 FROM tab0 WHERE NOT + col1 * + ( col2 ) - + + 69 * col1 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2330
SELECT DISTINCT - 77 DIV 77 * + COUNT( * ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2330
SELECT DISTINCT - 77 / 77 * + COUNT ( * ) col2 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + 72 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL 86 + + col0 + + - 50 - col0 + + 46 * + col1 * + - 93 AS col1 FROM tab0 AS cor0
----
-346482
-4242
-89802

query I rowsort
SELECT ALL + + col0 + col0 FROM tab0 AS cor0 WHERE NULL <= 70 * - 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT COUNT( ALL + - col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2334
SELECT COUNT ( ALL + - col0 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2335
SELECT - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT NULL > + 83
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2337
SELECT + + ( + MIN( DISTINCT - col0 ) ) / CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2337
SELECT + + ( + MIN ( DISTINCT - col0 ) ) / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL 71, col2 AS col0 FROM tab0 AS cor0
----
71
10
71
47
71
99

query II rowsort
SELECT - + col0, + col1 AS col2 FROM tab2 cor0
----
-46
51
-64
77
-75
67

query II rowsort
SELECT DISTINCT + + col1, + col1 AS col2 FROM tab2 AS cor0
----
51
51
67
67
77
77

query II rowsort
SELECT ALL + col2 AS col2, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT ALL ( - col2 ) + + 49 FROM tab2 AS cor0
----
-9
26
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT COUNT( * ) + - ( + COUNT( * ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2343
SELECT COUNT ( * ) + - ( + COUNT ( * ) ) FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 + - col2 * col1 col0 FROM tab0 AS cor0
----
-173
-3770
-62

query I rowsort
SELECT + col1 + + 36 FROM tab2 AS cor0
----
103
113
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - - 12 col1 FROM tab1 cor0
----
108
71
80

query II rowsort
SELECT DISTINCT + col0 + - col1, col2 + col2 * col2 AS col0 FROM tab0
----
-66
2256
66
110
96
9900

onlyif mysql # DIV for integer division: 
query I rowsort label-2348
SELECT + col1 + - 76 DIV + col0 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-2348
SELECT + col1 + - 76 / + col0 FROM tab2
----
50
66
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2349
SELECT DISTINCT - col2 + - col2 DIV - 47 FROM tab1
----
-58
-67
-94

skipif mysql # not compatible
query I rowsort label-2349
SELECT DISTINCT - col2 + - col2 / - 47 FROM tab1
----
-58
-67
-94

query I rowsort
SELECT col1 * col1 + + col0 + col1 FROM tab1
----
115
2347
261

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + ( + ( + - 73 ) ) NOT BETWEEN NULL AND + 19
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2352
SELECT DISTINCT + 77 + CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
128
162
168

skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT + 77 + CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
128
162
168

query I rowsort
SELECT ALL col1 + ( ( - + col1 ) ) AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2354
SELECT DISTINCT CAST( + 91 AS SIGNED ) col0 FROM tab2
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2354
SELECT DISTINCT CAST ( + 91 AS INTEGER ) col0 FROM tab2
----
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2355
SELECT DISTINCT - + 31 * - + 4 + + + CAST( + + col0 AS SIGNED ) DIV + col1 FROM tab1 AS cor0
----
125
127
141

skipif mysql # not compatible
query I rowsort label-2355
SELECT DISTINCT - + 31 * - + 4 + + + CAST ( + + col0 AS INTEGER ) / + col1 FROM tab1 AS cor0
----
125
127
141

query I rowsort
SELECT + + 20 * col1 AS col1 FROM tab1 AS cor0
----
100
280
940

query I rowsort
SELECT ALL - AVG ( DISTINCT + + col0 ) AS col2 FROM tab0 WHERE NOT NULL = + col2
----
NULL

query II rowsort
SELECT DISTINCT + col0, + col0 AS col1 FROM tab1 AS cor0
----
51
51
85
85
91
91

query II rowsort
SELECT ALL + 55, col0 AS col2 FROM tab0 AS cor0
----
55
15
55
87
55
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, col0 col2 FROM tab2 cor0
----
46
46
64
64
75
75

query II rowsort
SELECT DISTINCT + + 14, + col0 FROM tab0 AS cor0
----
14
15
14
87
14
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 IN ( - 65 + - + col2, col0, + 40, + 57 )
----

query II rowsort
SELECT ALL 41, col1 FROM tab0 AS cor0
----
41
1
41
21
41
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2364
SELECT + COUNT( ALL + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2364
SELECT + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2365
SELECT DISTINCT + CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2365
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT DISTINCT + 5 * + COUNT( * ) FROM tab1 cor0
----
15

skipif mysql # not compatible
query I rowsort label-2366
SELECT DISTINCT + 5 * + COUNT ( * ) FROM tab1 cor0
----
15

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 43 * + 59 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT + + COUNT( * ) * + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2368
SELECT + + COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2369
SELECT DISTINCT + 35 * - + 98 + + 85, SUM( DISTINCT 43 ) col2 FROM tab1 AS cor0
----
-3345
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2369
SELECT DISTINCT + 35 * - + 98 + + 85, SUM ( DISTINCT 43 ) col2 FROM tab1 AS cor0
----
-3345
43

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2370
SELECT * FROM tab1 cor0 WHERE NOT - CAST( - col0 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2370
SELECT * FROM tab1 cor0 WHERE NOT - CAST ( - col0 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 4 * col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 * + 64 IS NOT NULL
----

query II rowsort
SELECT ALL + col1 AS col1, 29 FROM tab2 WHERE NOT - 58 + + 45 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 34 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT DISTINCT + 18 * - 67 * COUNT( * ) AS col1 FROM tab1, tab1 AS cor0
----
-10854

skipif mysql # not compatible
query I rowsort label-2375
SELECT DISTINCT + 18 * - 67 * COUNT ( * ) AS col1 FROM tab1, tab1 AS cor0
----
-10854

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2376
SELECT 68 * MIN( ALL + + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2376
SELECT 68 * MIN ( ALL + + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT COUNT( * ) * - 18 AS col1 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-2377
SELECT COUNT ( * ) * - 18 AS col1 FROM tab2
----
-54

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT + + MAX( ALL - 67 ) * + COUNT( * ) * 79 FROM tab0 AS cor0
----
-15879

skipif mysql # not compatible
query I rowsort label-2379
SELECT + + MAX ( ALL - 67 ) * + COUNT ( * ) * 79 FROM tab0 AS cor0
----
-15879

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT DISTINCT + COUNT( * ) * ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2380
SELECT DISTINCT + COUNT ( * ) * ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
9

query I rowsort
SELECT - 42 + - 48 AS col2 FROM tab2 AS cor0
----
-90
-90
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-2382
SELECT DISTINCT - col0 DIV 75 AS col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2382
SELECT DISTINCT - col0 / 75 AS col1 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT - ( + col0 ) + + + col1 FROM tab1 AS cor0
----
-37
-44
-80

query II rowsort
SELECT + col1 * col0 AS col0, + col1 FROM tab2 AS cor0 WHERE NULL IN ( + col1, ( + col1 ) * + 67 * col1 + + col2, + - 18 - 42 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col2 AND + - col1 / col0 * + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2387
SELECT ALL 55 DIV col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL 55 / col2 FROM tab2
----
0
1
2

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT - col2 / - - ( - + 36 ) + col0 < NULL
----

query II rowsort
SELECT + col2 AS col0, ( - + 10 ) FROM tab2
----
23
-10
40
-10
58
-10

query I rowsort
SELECT + - col2 FROM tab1 WHERE + col0 * + col2 IS NULL
----

query I rowsort
SELECT 89 - + - col2 FROM tab2
----
112
129
147

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - col2 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT ALL - COUNT( * ) - + - COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2393
SELECT ALL - COUNT ( * ) - + - COUNT ( * ) AS col0 FROM tab1
----
0

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 49 IS NULL
----

query I rowsort
SELECT + ( + + 90 ) FROM tab0
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT ALL + + ( - SUM( - + 11 ) ) * MAX( + 25 ) - COUNT( * ) AS col2 FROM tab0 AS cor0
----
822

skipif mysql # not compatible
query I rowsort label-2396
SELECT ALL + + ( - SUM ( - + 11 ) ) * MAX ( + 25 ) - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
822

query I rowsort
SELECT ALL + + col0 * + - ( + col2 ) FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT - MIN( col0 ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-2398
SELECT - MIN ( col0 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2399
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + col2 + + col0 AS col1 FROM tab2 AS cor0 WHERE col1 * 87 > NULL
----

skipif mysql # not compatible
query I rowsort label-2399
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + col2 + + col0 AS col1 FROM tab2 AS cor0 WHERE col1 * 87 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 55, 5 + + - col0 col0 FROM tab1
----
55
-46
55
-80
55
-86

query I rowsort
SELECT ALL ( col1 ) AS col0 FROM tab0 WHERE NOT - 76 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 63 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT + MAX( ALL col0 ) col1 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2403
SELECT + MAX ( ALL col0 ) col1 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT DISTINCT COUNT( * ) * - + 33 AS col2 FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-2404
SELECT DISTINCT COUNT ( * ) * - + 33 AS col2 FROM tab2
----
-99

query I rowsort
SELECT 9 + + col0 * - col1 FROM tab0 WHERE NOT NULL <= col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2406
SELECT ALL - COUNT( * ) * + MAX( - + col1 ) FROM tab0 AS cor0 WHERE NOT ( NOT + col2 IN ( - col2 * - - col1, CAST( NULL AS SIGNED ) + - col2, + CAST( NULL AS SIGNED ), - 74 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL - COUNT ( * ) * + MAX ( - + col1 ) FROM tab0 AS cor0 WHERE NOT ( NOT + col2 IN ( - col2 * - - col1, CAST ( NULL AS INTEGER ) + - col2, + CAST ( NULL AS INTEGER ), - 74 ) )
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( col2 ) <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT - SUM( DISTINCT - 87 ) FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-2408
SELECT - SUM ( DISTINCT - 87 ) FROM tab1 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT DISTINCT + ( 30 ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-2409
SELECT DISTINCT + ( 30 ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 + col0 col0 FROM tab1 AS cor0
----
130
164
170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - ( - ( col1 ) ) col0 FROM tab0 cor0
----
-11
-34
98

query I rowsort
SELECT ALL + - 86 AS col1 FROM tab0 cor0
----
-86
-86
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2413
SELECT - col1 - col2 + - + ( - col1 ) + - + CAST( col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
-110
-115
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2413
SELECT - col1 - col2 + - + ( - col1 ) + - + CAST ( col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT - col2 * + col2 - + 7 AS col0 FROM tab2 AS cor0
----
-1607
-3371
-536

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT ALL - COUNT( - - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2415
SELECT ALL - COUNT ( - - col0 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - 78 + - col2 AS col0 FROM tab0 AS cor0
----
-125
-177
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2417
SELECT col0 / - col1 + + CAST( NULL AS SIGNED ) + + - col2 * - 32 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2417
SELECT col0 / - col1 + + CAST ( NULL AS INTEGER ) + + - col2 * - 32 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2418
SELECT - 11 + CAST( - - col0 AS SIGNED ) FROM tab0
----
4
76
86

skipif mysql # not compatible
query I rowsort label-2418
SELECT - 11 + CAST ( - - col0 AS INTEGER ) FROM tab0
----
4
76
86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2419
SELECT * FROM tab1 WHERE + + CAST( - + col2 AS SIGNED ) + - - col1 >= - col1 * - col0
----

skipif mysql # not compatible
query III rowsort label-2419
SELECT * FROM tab1 WHERE + + CAST ( - + col2 AS INTEGER ) + - - col1 >= - col1 * - col0
----

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE - 46 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2421
SELECT DISTINCT + - col0 AS col0 FROM tab1 WHERE + col1 + - 28 / - - ( col0 ) + - CAST( NULL AS SIGNED ) > + col0
----

skipif mysql # not compatible
query I rowsort label-2421
SELECT DISTINCT + - col0 AS col0 FROM tab1 WHERE + col1 + - 28 / - - ( col0 ) + - CAST ( NULL AS INTEGER ) > + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT MAX( DISTINCT - - col0 ) * - - COUNT( * ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-2422
SELECT MAX ( DISTINCT - - col0 ) * - - COUNT ( * ) FROM tab2
----
225

query II rowsort
SELECT 36, + col2 * + - col0 AS col1 FROM tab0
----
36
-705
36
-870
36
-9603

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NOT 42 >= - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT + ( + + COUNT( * ) ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2425
SELECT + ( + + COUNT ( * ) ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT ALL - - MIN( + + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2426
SELECT ALL - - MIN ( + + col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT - col0 * - - col1 * - col0 FROM tab2 AS cor0
----
107916
315392
376875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2428
SELECT MAX( - + CAST( NULL AS SIGNED ) ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2428
SELECT MAX ( - + CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 col0 FROM tab2 AS cor0
----
-54
-54
-54

query I rowsort
SELECT DISTINCT - - 68 AS col2 FROM tab0 AS cor0
----
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 2 = 29
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 73 FROM tab1 WHERE NOT NULL IS NOT NULL
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2433
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 49 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2433
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 49 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2434
SELECT ALL - col0 * + col1 + col0 - - 33 DIV - + col2 * col1 FROM tab1
----
-340
-4186
-663

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL - col0 * + col1 + col0 - - 33 / - + col2 * col1 FROM tab1
----
-340
-4186
-663

query I rowsort
SELECT DISTINCT - col2 * + + 96 FROM tab0
----
-4512
-9504
-960

query I rowsort
SELECT - 88 * col2 FROM tab1
----
-5192
-5984
-8448

query I rowsort
SELECT DISTINCT 76 * + col0 * - + 3 FROM tab2
----
-10488
-14592
-17100

query I rowsort
SELECT - ( + col1 ) FROM tab0 WHERE NOT col0 + - 52 NOT IN ( + 29, 18 )
----

query I rowsort
SELECT - - 80 * - 10 FROM tab2 AS cor0
----
-800
-800
-800

onlyif mysql # DIV for integer division: 
query II rowsort label-2440
SELECT - col1 DIV + col0, col2 AS col1 FROM tab1 cor0
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-2440
SELECT - col1 / + col0, col2 AS col1 FROM tab1 cor0
----
0
59
0
68
0
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2441
SELECT + - col0 * - - CAST( NULL AS SIGNED ) / + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2441
SELECT + - col0 * - - CAST ( NULL AS INTEGER ) / + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 / - - col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 51 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 93 - + - 11 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 88 * + col2 AS col1 FROM tab2 AS cor0
----
2024
3520
5104

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2447
SELECT DISTINCT + COUNT( * ) AS col2, COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2447
SELECT DISTINCT + COUNT ( * ) AS col2, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT - 42 * + COUNT( - col1 ) AS col0 FROM tab2 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-2448
SELECT - 42 * + COUNT ( - col1 ) AS col0 FROM tab2 AS cor0
----
-126

query I rowsort
SELECT ALL - col1 * - 84 + + 88 FROM tab0
----
172
1852
6892

query II rowsort
SELECT + ( - col2 ) - col1 * col1, - col1 AS col1 FROM tab0
----
-100
-1
-451
-21
-6608
-81

query II rowsort
SELECT + col1 - - 9 AS col1, col2 FROM tab1
----
14
59
23
96
56
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2452
SELECT DISTINCT - col1 + col0 DIV - col0 + + col0 AS col2 FROM tab2
----
-14
-6
7

skipif mysql # not compatible
query I rowsort label-2452
SELECT DISTINCT - col1 + col0 / - col0 + + col0 AS col2 FROM tab2
----
-14
-6
7

query I rowsort
SELECT ( - 16 ) - col1 FROM tab0
----
-17
-37
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 + - col2 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT + ( + + MAX( DISTINCT + col2 ) ) col1 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2455
SELECT + ( + + MAX ( DISTINCT + col2 ) ) col1 FROM tab0
----
99

onlyif mysql # DIV for integer division: 
query II rowsort label-2456
SELECT ALL + col1 DIV - + col0, col1 * - + col0 AS col2 FROM tab1
----
0
-425
0
-4277
0
-714

skipif mysql # not compatible
query II rowsort label-2456
SELECT ALL + col1 / - + col0, col1 * - + col0 AS col2 FROM tab1
----
0
-425
0
-4277
0
-714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2457
SELECT DISTINCT - 32 DIV + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2457
SELECT DISTINCT - 32 / + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT ALL - MAX( - col1 ) AS col0 FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL - MAX ( - col1 ) AS col0 FROM tab2 cor0
----
51

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + ( + 36 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2460
SELECT DISTINCT - col2 DIV - - col0 AS col2 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-2460
SELECT DISTINCT - col2 / - - col0 AS col2 FROM tab0
----
-1
-3
0

query I rowsort
SELECT ALL - ( - 35 ) AS col0 FROM tab0
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT MAX( DISTINCT + 77 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-2462
SELECT MAX ( DISTINCT + 77 ) FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT 76 * - COUNT( * ) FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-2463
SELECT 76 * - COUNT ( * ) FROM tab1
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2464
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2465
SELECT DISTINCT - AVG ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2465
SELECT DISTINCT - AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 47 + col1 * ( + 86 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT DISTINCT MIN( 90 ) FROM tab0 cor0
----
90

skipif mysql # not compatible
query I rowsort label-2467
SELECT DISTINCT MIN ( 90 ) FROM tab0 cor0
----
90

query I rowsort
SELECT ALL + + col0 + - 82 FROM tab1 AS cor0
----
-31
3
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT DISTINCT - ( + - ( + MIN( ALL - col1 ) ) ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2469
SELECT DISTINCT - ( + - ( + MIN ( ALL - col1 ) ) ) AS col1 FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2470
SELECT col0 * + CAST( NULL AS SIGNED ) * - + 21 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2470
SELECT col0 * + CAST ( NULL AS INTEGER ) * - + 21 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 86 + - col2 * + col1 FROM tab0
----
-124
-13
-3721

query I rowsort
SELECT 4 * - + col0 * - col2 FROM tab0
----
2820
3480
38412

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col1 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2474
SELECT ALL CAST( + - col2 AS SIGNED ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2474
SELECT ALL CAST ( + - col2 AS INTEGER ) FROM tab2
----
-23
-40
-58

query I rowsort
SELECT - col1 + - 96 AS col2 FROM tab0 AS cor0
----
-117
-177
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT DISTINCT + MIN( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT + MIN ( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT COUNT( * ) * - + 85 AS col0 FROM tab1 cor0
----
-255

skipif mysql # not compatible
query I rowsort label-2477
SELECT COUNT ( * ) * - + 85 AS col0 FROM tab1 cor0
----
-255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2478
SELECT - col0 * - col1 + CAST( - col1 AS SIGNED ) + col1 FROM tab1 AS cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-2478
SELECT - col0 * - col1 + CAST ( - col1 AS INTEGER ) + col1 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT ALL MAX( DISTINCT + col2 ) + + 37 AS col0 FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL MAX ( DISTINCT + col2 ) + + 37 AS col0 FROM tab2 AS cor0
----
95

query III rowsort
SELECT * FROM tab0 WHERE - col2 + col2 + + + ( col1 ) <= + col0 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE - - 14 * + + col0 IS NULL
----

query I rowsort
SELECT ALL + + 70 - + col1 FROM tab0 cor0
----
-11
49
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT ALL - SUM( DISTINCT - + col1 ) * + 54 FROM tab0 AS cor0
----
5562

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL - SUM ( DISTINCT - + col1 ) * + 54 FROM tab0 AS cor0
----
5562

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT 34 + - - COUNT( * ) FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-2484
SELECT 34 + - - COUNT ( * ) FROM tab2 AS cor0
----
37

query I rowsort
SELECT + 37 + + 30 FROM tab1
----
67
67
67

query I rowsort
SELECT ALL - col0 * + col2 + + + col2 * - ( - 20 ) FROM tab2 WHERE NOT + - 69 / + col0 < + col2
----

query I rowsort
SELECT DISTINCT - col0 * - - 25 FROM tab2
----
-1150
-1600
-1875

onlyif mysql # DIV for integer division: 
query I rowsort label-2488
SELECT ALL 43 DIV - - col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2488
SELECT ALL 43 / - - col2 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT - COUNT( * ) * + + 96 AS col0 FROM tab0
----
-288

skipif mysql # not compatible
query I rowsort label-2489
SELECT - COUNT ( * ) * + + 96 AS col0 FROM tab0
----
-288

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 13 * + col0 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2, + col2 col0 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # DIV for integer division: 
query II rowsort label-2492
SELECT - col0 AS col2, ( + col2 ) DIV - col2 AS col2 FROM tab0 AS cor0
----
-15
-1
-87
-1
-97
-1

skipif mysql # not compatible
query II rowsort label-2492
SELECT - col0 AS col2, ( + col2 ) / - col2 AS col2 FROM tab0 AS cor0
----
-15
-1
-87
-1
-97
-1

query II rowsort
SELECT ALL - col1 * + col2 - - 58 AS col1, + 57 FROM tab0 AS cor0
----
-152
57
-3749
57
-41
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 90 col1, col2 / 83 FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT - MAX( ALL + + 83 ) FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-2495
SELECT - MAX ( ALL + + 83 ) FROM tab2 AS cor0
----
-83

query I rowsort
SELECT DISTINCT - + 42 * - 35 FROM tab1 AS cor0
----
1470

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 32 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 23 * - col0 AS col2 FROM tab0
----
-2001
-2231
-345

onlyif mysql # DIV for integer division: 
query I rowsort label-2499
SELECT ALL col0 DIV + + col2 AS col0 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL col0 / + + col2 AS col0 FROM tab2
----
1
1
2

query I rowsort
SELECT ALL - - ( - 53 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT - COUNT( * ) + - 12 AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2501
SELECT - COUNT ( * ) + - 12 AS col1 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE - col2 * col0 + + 92 * - - col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2502
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE - col2 * col0 + + 92 * - - col0 > NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2503
SELECT - + col0 + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2503
SELECT - + col0 + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 31 * + 7 AS col2 FROM tab1 AS cor0
----
-217

query I rowsort
SELECT + 24 + - ( + + col1 ) FROM tab1 AS cor0
----
-23
10
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2506
SELECT - 39 / - 8 + + - CAST( NULL AS SIGNED ) + + 2 + + 36 * + 71 * + - col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2506
SELECT - 39 / - 8 + + - CAST ( NULL AS INTEGER ) + + 2 + + 36 * + 71 * + - col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2507
SELECT + + col1 + CAST( NULL AS SIGNED ) + col0 * col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2507
SELECT + + col1 + CAST ( NULL AS INTEGER ) + col0 * col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2508
SELECT DISTINCT 78 * - col1 + col0 + col1 - CAST( NULL AS SIGNED ) / - - 26 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT 78 * - col1 + col0 + col1 - CAST ( NULL AS INTEGER ) / - - 26 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT - ( + COUNT( * ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2509
SELECT - ( + COUNT ( * ) ) AS col1 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab0 WHERE + - 97 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * + + 67 FROM tab2
----
1541
2680
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2512
SELECT - CAST( - - col0 AS SIGNED ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2512
SELECT - CAST ( - - col0 AS INTEGER ) FROM tab2
----
-46
-64
-75

query I rowsort
SELECT col0 / + - col2 FROM tab1 WHERE - - col2 / - col2 >= ( + 21 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT + MAX( ALL + col0 ) FROM tab2 AS cor0 WHERE col1 <> - 38
----
75

skipif mysql # not compatible
query I rowsort label-2514
SELECT + MAX ( ALL + col0 ) FROM tab2 AS cor0 WHERE col1 <> - 38
----
75

query I rowsort
SELECT - col2 + 89 + - 18 FROM tab0
----
-28
24
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 col1 FROM tab1 WHERE 81 + + - ( 79 ) IS NULL
----

query I rowsort
SELECT DISTINCT 68 + 69 AS col0 FROM tab0
----
137

query II rowsort
SELECT + 35, col2 AS col0 FROM tab1 cor0
----
35
59
35
68
35
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT ALL - 87 - - ( COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL - 87 - - ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-84

query II rowsort
SELECT - col0 AS col2, 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 DISTINCT + 71 col2 FROM tab0 cor0
----
71

query I rowsort
SELECT - col1 * col0 * 21 FROM tab2 AS cor0
----
-103488
-105525
-49266

query I rowsort
SELECT + col0 * + + 8 * + + 81 AS col0 FROM tab2
----
29808
41472
48600

query I rowsort
SELECT ALL col2 * + ( 77 ) FROM tab0
----
3619
7623
770

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT ALL SUM( - col0 ) col1 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2525
SELECT ALL SUM ( - col0 ) col1 FROM tab1
----
-227

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = 46 - col2 + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 41 col0 FROM tab1 cor0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2528
SELECT ( + 66 ) AS col0, + CAST( NULL AS SIGNED ) * - col0 col0 FROM tab2 AS cor0
----
66
NULL
66
NULL
66
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2528
SELECT ( + 66 ) AS col0, + CAST ( NULL AS INTEGER ) * - col0 col0 FROM tab2 AS cor0
----
66
NULL
66
NULL
66
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2529
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( + + ( + col1 ) AS SIGNED ) + + col0 NOT BETWEEN 66 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2529
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( + + ( + col1 ) AS INTEGER ) + + col0 NOT BETWEEN 66 AND NULL
----

query I rowsort
SELECT + col1 * + + col1 * + 47 * - col2 AS col0 FROM tab1
----
-69325
-7059964
-884352

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT DISTINCT + 0 * - - COUNT( * ) FROM tab1 WHERE NOT + - col1 * + col1 + + col1 / 41 - - col1 - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT + 0 * - - COUNT ( * ) FROM tab1 WHERE NOT + - col1 * + col1 + + col1 / 41 - - col1 - col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT - COUNT( * ) * - 89 FROM tab1
----
267

skipif mysql # not compatible
query I rowsort label-2532
SELECT - COUNT ( * ) * - 89 FROM tab1
----
267

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE col1 > + 81
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2534
SELECT ALL - 74 * + + col2 + + CAST( + 17 AS SIGNED ) * - col0 * col2 FROM tab2 AS cor0
----
-19688
-46480
-78242

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL - 74 * + + col2 + + CAST ( + 17 AS INTEGER ) * - col0 * col2 FROM tab2 AS cor0
----
-19688
-46480
-78242

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2535
SELECT * FROM tab1 AS cor0 WHERE + col2 * - - CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND + - col0
----

skipif mysql # not compatible
query III rowsort label-2535
SELECT * FROM tab1 AS cor0 WHERE + col2 * - - CAST ( NULL AS REAL ) NOT BETWEEN NULL AND + - col0
----

query II rowsort
SELECT ALL + col0, col2 FROM tab1 cor0
----
51
96
85
59
91
68

query I rowsort
SELECT ALL col2 + - - 55 FROM tab0 AS cor0
----
102
154
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2538
SELECT + col0 * + col1 + col1 + col1 DIV + 20 AS col1 FROM tab0 AS cor0
----
1300
1849
98

skipif mysql # not compatible
query I rowsort label-2538
SELECT + col0 * + col1 + col1 + col1 / + 20 AS col1 FROM tab0 AS cor0
----
1300
1849
98

query I rowsort
SELECT ALL + + col0 * - - col1 AS col0 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2540
SELECT DISTINCT CAST( NULL AS SIGNED ) + + AVG ( ALL + + col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2540
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + AVG ( ALL + + col2 ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 + - + col2 FROM tab0
----
-98
11
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 * - col1 col1 FROM tab2
----
-1150
-3040
-3828

onlyif mysql # DIV for integer division: 
query I rowsort label-2543
SELECT col1 DIV + col1 + + 7 AS col0 FROM tab2
----
8
8
8

skipif mysql # not compatible
query I rowsort label-2543
SELECT col1 / + col1 + + 7 AS col0 FROM tab2
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT DISTINCT + - MAX( DISTINCT + 47 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2544
SELECT DISTINCT + - MAX ( DISTINCT + 47 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - - 20 BETWEEN NULL AND 21 * 24
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 + - + 11 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 53 AS col1 FROM tab1 AS cor0
----
53

query I rowsort
SELECT + + ( + + col1 ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT ALL - + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL - + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2550
SELECT - CAST( NULL AS SIGNED ) - col1 + + 82 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2550
SELECT - CAST ( NULL AS INTEGER ) - col1 + + 82 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col0 AS col0 FROM tab2 AS cor0 WHERE ( - - col1 ) + - col0 >= + ( col2 ) + + - col2
----
46
64

onlyif mysql # DIV for integer division: 
query I rowsort label-2552
SELECT col1 * + col2 + - + col1 + - - col2 DIV col2 * + col1 FROM tab0 AS cor0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-2552
SELECT col1 * + col2 + - + col1 + - - col2 / col2 * + col1 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT 91 * + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-2553
SELECT 91 * + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-273

query I rowsort
SELECT 19 AS col0 FROM tab0 cor0
----
19
19
19

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 8 * 29 AS col0 FROM tab1 AS cor0
----
232
232
232

query II rowsort
SELECT DISTINCT - col2 AS col1, 39 AS col1 FROM tab1
----
-59
39
-68
39
-96
39

query I rowsort
SELECT DISTINCT ( - 50 ) FROM tab2
----
-50

query I rowsort
SELECT DISTINCT + ( + 71 ) FROM tab2
----
71

query I rowsort
SELECT ALL - 30 * - + 6 FROM tab1
----
180
180
180

query II rowsort
SELECT 99 AS col1, - ( - col2 ) AS col2 FROM tab2
----
99
23
99
40
99
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT DISTINCT SUM( + 51 ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-2562
SELECT DISTINCT SUM ( + 51 ) FROM tab2 AS cor0
----
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, - 92 AS col0 FROM tab0 AS cor0
----
15
-92
87
-92
97
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT - ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2564
SELECT - ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT DISTINCT - 24 + - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-15

skipif mysql # not compatible
query I rowsort label-2565
SELECT DISTINCT - 24 + - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2566
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 93 * - + CAST( NULL AS SIGNED ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

skipif mysql # not compatible
query IIIIII rowsort label-2566
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 93 * - + CAST ( NULL AS INTEGER ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT + - 61 + + COUNT( * ) FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2567
SELECT + - 61 + + COUNT ( * ) FROM tab0 AS cor0
----
-58

query I rowsort
SELECT - col0 + - col1 + - 52 FROM tab0 AS cor0
----
-148
-150
-160

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - ( - + col2 ) NOT BETWEEN NULL AND - col0 * - - col1 * + col2 + - 45 - - - 20
----

query I rowsort
SELECT + col2 * - 92 + - col2 FROM tab1 cor0
----
-5487
-6324
-8928

query I rowsort
SELECT ALL - + 84 AS col2 FROM tab0 AS cor0
----
-84
-84
-84

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( - 20 ) AND + col0
----

query I rowsort
SELECT DISTINCT col0 * - 85 * - - 17 * - col1 + - ( - + col1 ) AS col0 FROM tab0 AS cor0
----
140166
1755756
2640036

query I rowsort
SELECT ALL + + 46 + ( + + 54 ) FROM tab1 AS cor0
----
100
100
100

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT DISTINCT COUNT( ALL + 61 ) FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2575
SELECT DISTINCT COUNT ( ALL + 61 ) FROM tab1, tab2 AS cor0
----
9

query II rowsort
SELECT DISTINCT - col2 + col1 + col2 * + col2 AS col1, - col2 * - col1 - + col1 * col2 + + + col2 + - - 7 FROM tab2
----
1637
47
3373
65
557
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT DISTINCT 90 - COUNT( * ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT 90 - COUNT ( * ) FROM tab1
----
87

query I rowsort
SELECT + 69 - + - col1 AS col0 FROM tab1
----
116
74
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 2 + - 17 col0 FROM tab1
----
-15
-15
-15

query I rowsort
SELECT - 0 - + 37 FROM tab2
----
-37
-37
-37

query I rowsort
SELECT col2 + - + col2 + - 30 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT ALL - - MIN( - col0 ) + 76 FROM tab1 AS cor0 WHERE NOT + 87 IS NULL
----
-15

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL - - MIN ( - col0 ) + 76 FROM tab1 AS cor0 WHERE NOT + 87 IS NULL
----
-15

query I rowsort
SELECT ALL + - col1 - + col1 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT + 12 * COUNT( * ) AS col0 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-2585
SELECT + 12 * COUNT ( * ) AS col0 FROM tab2
----
36

query III rowsort
SELECT * FROM tab2 WHERE 6 >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT ALL - COUNT( ALL 12 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2588
SELECT ALL - COUNT ( ALL 12 ) AS col1 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2589
SELECT ALL CAST( NULL AS SIGNED ) * 42 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL CAST ( NULL AS INTEGER ) * 42 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col0 ) col2 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2591
SELECT ALL + 12 * col1 AS col0 FROM tab1 WHERE NOT ( + 96 - col2 / - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
168
564
60

skipif mysql # not compatible
query I rowsort label-2591
SELECT ALL + 12 * col1 AS col0 FROM tab1 WHERE NOT ( + 96 - col2 / - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
168
564
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 col1 FROM tab2
----
36
36
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2593
SELECT + ( 50 ) AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN col0 * col0 AND ( + CAST( NULL AS SIGNED ) * + col2 )
----

skipif mysql # not compatible
query I rowsort label-2593
SELECT + ( 50 ) AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN col0 * col0 AND ( + CAST ( NULL AS INTEGER ) * + col2 )
----

query I rowsort
SELECT col2 - 50 FROM tab0
----
-3
-40
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 + + 21 col1 FROM tab1
----
4917
5036
6209

query I rowsort
SELECT + 64 * + AVG ( ALL 68 * + 60 ) + - 99 FROM tab1 WHERE ( col2 * + 90 ) NOT BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE 34 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 = - 32 * col0 + col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) <= - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 10 + 41 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 51 + - col1 * col1 AS col2 FROM tab0
----
-390
-6510
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2602
SELECT col1 * 84 + - 59 DIV 37 AS col1 FROM tab0
----
1763
6803
83

skipif mysql # not compatible
query I rowsort label-2602
SELECT col1 * 84 + - 59 / 37 AS col1 FROM tab0
----
1763
6803
83

query I rowsort
SELECT col0 * - 96 + + col2 FROM tab0
----
-1393
-8342
-9213

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT - MAX( ALL col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-2604
SELECT - MAX ( ALL col1 ) AS col0 FROM tab1
----
-47

query III rowsort
SELECT * FROM tab1 WHERE NOT 31 + 49 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 77 * col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 20 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT - COUNT( + ( 14 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2608
SELECT - COUNT ( + ( 14 ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT MAX( + col1 ) AS col0 FROM tab1 cor0 WHERE NOT 3 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2609
SELECT MAX ( + col1 ) AS col0 FROM tab1 cor0 WHERE NOT 3 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2610
SELECT ( col0 ) DIV + 8 + - 61 * + col0 FROM tab0 AS cor0
----
-5297
-5905
-914

skipif mysql # not compatible
query I rowsort label-2610
SELECT ( col0 ) / + 8 + - 61 * + col0 FROM tab0 AS cor0
----
-5297
-5905
-914

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT DISTINCT MIN( ALL col0 ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-2611
SELECT DISTINCT MIN ( ALL col0 ) FROM tab2 cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT + COUNT( * ) * + 92 AS col2 FROM tab1 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-2612
SELECT + COUNT ( * ) * + 92 AS col2 FROM tab1 AS cor0
----
276

query I rowsort
SELECT 40 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 )
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2614
SELECT ALL + + 0 DIV COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL + + 0 / COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - ( col2 ) + 20 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col2 * - col1 AND ( col0 - - 25 )
----

query I rowsort
SELECT ALL col2 * + ( + col1 ) AS col1 FROM tab2 cor0
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 76 col1 FROM tab1 AS cor0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2618
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE + ( CAST( NULL AS SIGNED ) ) IS NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2618
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE + ( CAST ( NULL AS INTEGER ) ) IS NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2619
SELECT ALL 85 DIV col2 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
0
1
8

skipif mysql # not compatible
query I rowsort label-2619
SELECT ALL 85 / col2 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
0
1
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2620
SELECT DISTINCT COUNT( * ) + 15 DIV COUNT( * ) AS col0 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-2620
SELECT DISTINCT COUNT ( * ) + 15 / COUNT ( * ) AS col0 FROM tab2 AS cor0
----
8

query I rowsort
SELECT + col2 + + 10 - 7 FROM tab1
----
62
71
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2622
SELECT MIN( col1 ) * + 54 FROM tab1 WHERE CAST( NULL AS SIGNED ) = col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2622
SELECT MIN ( col1 ) * + 54 FROM tab1 WHERE CAST ( NULL AS INTEGER ) = col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT 62 + - 52 - SUM( DISTINCT - col2 ) * + 48 AS col1 FROM tab0
----
7498

skipif mysql # not compatible
query I rowsort label-2623
SELECT 62 + - 52 - SUM ( DISTINCT - col2 ) * + 48 AS col1 FROM tab0
----
7498

query I rowsort
SELECT ALL col2 + - - col2 AS col0 FROM tab1
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT ALL COUNT( * ) * - ( COUNT( * ) ) FROM tab0 WHERE ( NULL ) IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL COUNT ( * ) * - ( COUNT ( * ) ) FROM tab0 WHERE ( NULL ) IS NULL
----
-9

query I rowsort
SELECT ALL - col1 * - - col0 - + 83 AS col0 FROM tab0
----
-1298
-180
-1910

onlyif mysql # DIV for integer division: 
query I rowsort label-2627
SELECT DISTINCT + col0 DIV col0 * - col1 + - 45 * 6 FROM tab1
----
-275
-284
-317

skipif mysql # not compatible
query I rowsort label-2627
SELECT DISTINCT + col0 / col0 * - col1 + - 45 * 6 FROM tab1
----
-275
-284
-317

query I rowsort
SELECT - col1 FROM tab2 WHERE ( NULL ) IS NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - ( 94 ) + ( col1 - 2 ) AS col0 FROM tab0
----
-15
-75
-95

query I rowsort
SELECT ALL + 95 * col1 - col2 AS col0 FROM tab1
----
1234
416
4397

onlyif mysql # DIV for integer division: 
query I rowsort label-2631
SELECT DISTINCT col1 DIV col1 + + 6 AS col0 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-2631
SELECT DISTINCT col1 / col1 + + 6 AS col0 FROM tab2
----
7

query I rowsort
SELECT ALL 60 / - col2 AS col0 FROM tab1 WHERE col1 + - 35 * + col0 IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT ALL - COUNT( * ) * ( - 24 * COUNT( * ) ) col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2633
SELECT ALL - COUNT ( * ) * ( - 24 * COUNT ( * ) ) col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
216

query III rowsort
SELECT * FROM tab2 WHERE - col0 * - 58 + - col0 NOT BETWEEN - col0 AND + 39
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE 62 + - col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 83 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT + MAX( ALL col1 ) - - 78 FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-2637
SELECT + MAX ( ALL col1 ) - - 78 FROM tab0 AS cor0
----
159

query I rowsort
SELECT - 33 * - 8 + - 27 * + 45 FROM tab2 AS cor0 WHERE + col1 - col2 > col0 * + col2
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE NOT + 41 NOT BETWEEN + 72 AND ( NULL )
----

query I rowsort
SELECT - col0 * - col1 * - 65 AS col1 FROM tab0 AS cor0
----
-118755
-6305
-78975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2641
SELECT col2 / 29 - + col0 AS col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND - CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2641
SELECT col2 / 29 - + col0 AS col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND - CAST ( col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT DISTINCT COUNT( + col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2642
SELECT DISTINCT COUNT ( + col1 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + + 40 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
40

query I rowsort
SELECT ALL + col2 * 30 AS col2 FROM tab2
----
1200
1740
690

query I rowsort
SELECT ALL 28 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query II rowsort
SELECT DISTINCT 61 AS col0, + col1 FROM tab1 AS cor0
----
61
14
61
47
61
5

query II rowsort
SELECT - col0 AS col0, + col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 * + col2 = - ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, col1 col2 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2651
SELECT ALL CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 + + 2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col0 AS col2, col0 * + ( col2 ) FROM tab2 AS cor0
----
-46
1058
-64
2560
-75
4350

query II rowsort
SELECT ALL - col1 AS col1, col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 32 BETWEEN NULL AND col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 * - - col0 * + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2657
SELECT + ( - COUNT( - CAST( 68 AS SIGNED ) ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2657
SELECT + ( - COUNT ( - CAST ( 68 AS INTEGER ) ) ) AS col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( col2 ) >= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT ( col0 ), + col0 FROM tab1
----
51
51
85
85
91
91

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 + + col0 ) NOT BETWEEN 87 AND ( NULL )
----

query I rowsort
SELECT ALL + 67 * col1 * - + col2 AS col0 FROM tab0
----
-14070
-255069
-6633

query I rowsort
SELECT DISTINCT - col1 + + col2 + - - 96 FROM tab2
----
59
68
87

query I rowsort
SELECT - col2 * + - 9 FROM tab1
----
531
612
864

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + + 51 ) > col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2665
SELECT 8 DIV COUNT( * ) AS col1 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-2665
SELECT 8 / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
2

query I rowsort
SELECT 91 * 79 + + col1 AS col1 FROM tab2
----
7240
7256
7266

query I rowsort
SELECT + 28 FROM tab0 WHERE NULL NOT IN ( 17, 1 )
----

query I rowsort
SELECT - + col1 - + - col1 FROM tab2 WHERE - 57 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2669
SELECT 94 DIV + - col0 + + col0 AS col1 FROM tab0
----
86
9
97

skipif mysql # not compatible
query I rowsort label-2669
SELECT 94 / + - col0 + + col0 AS col1 FROM tab0
----
86
9
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * ( - 91 ) + col1 * - 45 > ( 13 + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 + - - col1 AS col2 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT - - 30 AS col0 FROM tab2 cor0
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT COUNT( + col0 ) * - - ( 14 ) FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-2673
SELECT COUNT ( + col0 ) * - - ( 14 ) FROM tab2 AS cor0
----
42

query I rowsort
SELECT DISTINCT + 44 FROM tab2 cor0
----
44

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT ALL + SUM( col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2676
SELECT ALL + SUM ( col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT 16 * + 0 FROM tab0 WHERE + 88 * - - col0 IN ( + - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 col1 FROM tab0 WHERE + ( + - col0 ) IN ( + 37 )
----

query I rowsort
SELECT DISTINCT - col1 * col2 * 94 + 96 AS col1 FROM tab2
----
-110166
-289424
-365188

query I rowsort
SELECT + 43 - + col0 * col2 - + - 24 FROM tab0
----
-638
-803
-9536

query I rowsort
SELECT + 61 - col1 FROM tab0
----
-20
40
60

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 BETWEEN - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2684
SELECT ALL + 30 DIV - col2 AS col0 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL + 30 / - col2 AS col0 FROM tab0
----
-3
0
0

query I rowsort
SELECT + 1 * - col2 * col2 FROM tab2
----
-1600
-3364
-529

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > + + col1
----

query I rowsort
SELECT ( col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 >= - col2
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT ALL + 58 FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( + col2 ) IS NULL )
----

query I rowsort
SELECT - col0 * col0 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL col0 / + - col2 + - + ( - 35 ) * 83 + - 98 + col1 FROM tab0 AS cor0 WHERE + 43 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 ) <> ( ( + col2 ) + + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= 31
----

query I rowsort
SELECT DISTINCT col2 * - 78 FROM tab2
----
-1794
-3120
-4524

query I rowsort
SELECT ALL col0 + - col2 - ( + col1 ) AS col1 FROM tab2
----
-28
-50
-53

query I rowsort
SELECT + 26 AS col2 FROM tab1 WHERE NOT ( - col0 ) IS NULL
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT DISTINCT - 1 + + 54 - - - COUNT( * ) FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-2698
SELECT DISTINCT - 1 + + 54 - - - COUNT ( * ) FROM tab1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2699
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL IN ( col1, + col2, - - 41 )
----

skipif mysql # not compatible
query I rowsort label-2699
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL IN ( col1, + col2, - - 41 )
----

query I rowsort
SELECT DISTINCT + 99 * - 56 + - ( + AVG ( DISTINCT - ( - col1 ) ) ) FROM tab0 WHERE NOT 30 + - col2 - + 16 * + ( 13 ) IS NOT NULL OR NOT NULL NOT IN ( - 53 )
----
NULL

query I rowsort
SELECT + col1 + + col1 * - 46 FROM tab1
----
-2115
-225
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1, col0 - col0 col0 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2703
SELECT ALL col2 DIV - - col1 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2703
SELECT ALL col2 / - - col1 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 91 + + col2 AS col2 FROM tab1 AS cor0
----
-23
-32
5

query I rowsort
SELECT ALL - - 14 + col0 + col2 AS col0 FROM tab0 AS cor0
----
111
210
76

query II rowsort
SELECT DISTINCT col2 AS col0, - col0 FROM tab2 WHERE + 76 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2707
SELECT ALL + 95 - - COUNT( * ) AS col1, 66 AS col1 FROM tab0
----
98
66

skipif mysql # not compatible
query II rowsort label-2707
SELECT ALL + 95 - - COUNT ( * ) AS col1, 66 AS col1 FROM tab0
----
98
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2708
SELECT ALL - ( + + 2 ) - - MAX( ALL + 98 ) DIV + 41 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL - ( + + 2 ) - - MAX ( ALL + 98 ) / + 41 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 22 + + 73 FROM tab1 cor0
----
51
51
51

query I rowsort
SELECT ALL - 85 AS col1 FROM tab0 cor0
----
-85
-85
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2711
SELECT + + COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2711
SELECT + + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - 61 + + col2 + + ( - 88 ) FROM tab0 AS cor0
----
-102
-139
-50

query I rowsort
SELECT + col0 + + col2 AS col1 FROM tab0 cor0 WHERE col1 + + 81 - - 76 * 1 <= col1
----

query II rowsort
SELECT DISTINCT 97 * - col0 * 77 * + col0, + col1 AS col1 FROM tab2 AS cor0
----
-15804404
51
-30593024
77
-42013125
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2715
SELECT - ( + + CAST( - col2 AS SIGNED ) ) + + col1 col1 FROM tab0 AS cor0
----
100
128
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2715
SELECT - ( + + CAST ( - col2 AS INTEGER ) ) + + col1 col1 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT ALL - col1 * col0 * col2 * - 36 + 19 + + col2 * - + col1 AS col2 FROM tab2 AS cor0
----
10488333
1941334
7093259

query I rowsort
SELECT DISTINCT - - col0 * + - 26 AS col2 FROM tab2 AS cor0
----
-1196
-1664
-1950

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 95 * + - ( + ( + col0 ) ) <= col0
----

query I rowsort
SELECT DISTINCT + + col2 + + ( - 55 ) FROM tab1 AS cor0
----
13
4
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT ALL - + SUM( ALL col2 ) FROM tab1 WHERE NOT NULL >= col1 + + 99 * 18
----
NULL

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL - + SUM ( ALL col2 ) FROM tab1 WHERE NOT NULL >= col1 + + 99 * 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT + 53 + - MIN( + col0 ) col1 FROM tab0
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2721
SELECT + 53 + - MIN ( + col0 ) col1 FROM tab0
----
38

query I rowsort
SELECT - col2 + + ( - 35 ) - - 10 + - - col0 * + col0 * - - col1 FROM tab2
----
107868
315327
376792

onlyif mysql # aggregate syntax: 
query II rowsort label-2723
SELECT ALL - COUNT( * ) AS col0, 72 * MAX( DISTINCT - 97 ) AS col0 FROM tab1
----
-3
-6984

skipif mysql # not compatible
query II rowsort label-2723
SELECT ALL - COUNT ( * ) AS col0, 72 * MAX ( DISTINCT - 97 ) AS col0 FROM tab1
----
-3
-6984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2724
SELECT + col0 + + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2724
SELECT + col0 + + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 67 + - col2 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( - ( 13 ) ) FROM tab1
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT DISTINCT COUNT( + 7 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2727
SELECT DISTINCT COUNT ( + 7 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2728
SELECT DISTINCT - + COUNT( * ) AS col0, - 68 + + MAX( DISTINCT + col1 ) + + - 35 * COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
-3
-306

skipif mysql # not compatible
query II rowsort label-2728
SELECT DISTINCT - + COUNT ( * ) AS col0, - 68 + + MAX ( DISTINCT + col1 ) + + - 35 * COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
-3
-306

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 72 col2 FROM tab1 AS cor0
----
-72

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( + col1 NOT BETWEEN NULL AND - col0 - + - col1 * + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT DISTINCT + 78 * + + COUNT( * ) * - 67 AS col2 FROM tab0 AS cor0
----
-15678

skipif mysql # not compatible
query I rowsort label-2731
SELECT DISTINCT + 78 * + + COUNT ( * ) * - 67 AS col2 FROM tab0 AS cor0
----
-15678

query I rowsort
SELECT - + col0 * + - ( + col0 ) FROM tab2 AS cor0
----
2116
4096
5625

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - ( ( + + col0 ) ) * - col0 / col1 * - + 3, col1 * + 7 )
----

query I rowsort
SELECT 42 + + + col2 FROM tab0 AS cor0
----
141
52
89

query I rowsort
SELECT + + 87 + + + col1 * + col0 * + col2 AS col1 FROM tab1 AS cor0
----
25162
290923
68631

query I rowsort
SELECT + + 72 + - col2 AS col2 FROM tab2 AS cor0
----
14
32
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT COUNT( * ) * + + COUNT( * ) * COUNT( * ) AS col2 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-2737
SELECT COUNT ( * ) * + + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 * - + col1 col1 FROM tab0
----
1743
6723
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT ALL + SUM( 52 ) + - 42 FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL + SUM ( 52 ) + - 42 FROM tab1
----
114

query I rowsort
SELECT ALL - 82 * col2 AS col0 FROM tab2 AS cor0
----
-1886
-3280
-4756

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 >= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 20 * 65 FROM tab1 AS cor0
----
1300

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2743
SELECT col0 + + col0 * ( col1 ) / CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2743
SELECT col0 + + col0 * ( col1 ) / CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( - - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 74 * - col2 + + 97 FROM tab2
----
-1605
-2863
-4195

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 >= ( + + col1 )
----
97
1
99

query II rowsort
SELECT + col2, ( 97 ) FROM tab0 AS cor0
----
10
97
47
97
99
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 5 BETWEEN NULL AND - 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT + - COUNT( * ) FROM tab2 AS cor0 WHERE 75 / - col1 IN ( - 71, + 38 + - + col0, + - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2749
SELECT + - COUNT ( * ) FROM tab2 AS cor0 WHERE 75 / - col1 IN ( - 71, + 38 + - + col0, + - col1 )
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT NULL IN ( - 16 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2751
SELECT ALL + - 87 DIV - COUNT( ALL - + col0 ) AS col0 FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL + - 87 / - COUNT ( ALL - + col0 ) AS col0 FROM tab1 AS cor0
----
29

query II rowsort
SELECT DISTINCT col0 AS col2, + 92 - - col2 FROM tab1 AS cor0
----
51
188
85
151
91
160

onlyif mysql # DIV for integer division: 
query I rowsort label-2753
SELECT col1 DIV - + 51 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2753
SELECT col1 / - + 51 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 < + 85
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT - SUM( + 67 ) FROM tab0
----
-201

skipif mysql # not compatible
query I rowsort label-2755
SELECT - SUM ( + 67 ) FROM tab0
----
-201

onlyif mysql # DIV for integer division: 
query I rowsort label-2756
SELECT col2 DIV - + ( + + col2 ) AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2756
SELECT col2 / - + ( + + col2 ) AS col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT - col0 * - 57 * - 51 AS col0 FROM tab1
----
-148257
-247095
-264537

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT NULL BETWEEN + - col2 AND ( NULL )
----

query I rowsort
SELECT ( - col0 ) * + - col0 - - col0 + + col1 * + 35 FROM tab0
----
3075
8391
9541

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 / - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 * - - col1 AS col1 FROM tab2 cor0
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2762
SELECT DISTINCT - col0 AS col0, CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-2762
SELECT DISTINCT - col0 AS col0, CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
NULL
-85
NULL
-91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT + MAX( DISTINCT col1 ) + - 23 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
58

skipif mysql # not compatible
query I rowsort label-2763
SELECT + MAX ( DISTINCT col1 ) + - 23 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT ALL - COUNT( * ) * - 24 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL - COUNT ( * ) * - 24 FROM tab0 AS cor0
----
72

query I rowsort
SELECT ALL + - 52 + col0 FROM tab2 AS cor0
----
-6
12
23

query II rowsort
SELECT + col1 AS col0, - col2 AS col0 FROM tab0
----
1
-99
21
-10
81
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2767
SELECT ALL - COUNT( * ) + + + 26 * MAX( CAST( - 50 AS SIGNED ) ) + + 82 FROM tab1
----
-1221

skipif mysql # not compatible
query I rowsort label-2767
SELECT ALL - COUNT ( * ) + + + 26 * MAX ( CAST ( - 50 AS INTEGER ) ) + + 82 FROM tab1
----
-1221

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, + col2 AS col1 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT DISTINCT col2 * + - 58 AS col1 FROM tab2
----
-1334
-2320
-3364

query I rowsort
SELECT ( 30 ) + col1 AS col0 FROM tab2
----
107
81
97

query I rowsort
SELECT 94 + col1 + + 27 FROM tab0
----
122
142
202

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2772
SELECT ALL CAST( col2 AS SIGNED ) * + 53 FROM tab1
----
3127
3604
5088

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL CAST ( col2 AS INTEGER ) * + 53 FROM tab1
----
3127
3604
5088

query I rowsort
SELECT ALL - col1 + - col0 + - 99 AS col2 FROM tab1
----
-164
-189
-237

query I rowsort
SELECT DISTINCT 94 * - + col2 * col1 * col1 FROM tab0
----
-28986498
-414540
-9306

query II rowsort
SELECT DISTINCT - col1, col0 + - col0 AS col2 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - - 75 NOT BETWEEN ( NULL ) AND - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT DISTINCT + + SUM( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2777
SELECT DISTINCT + + SUM ( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT ALL - MIN( 30 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-30

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL - MIN ( 30 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-30

query I rowsort
SELECT + 14 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT ALL 78 - col2 * - 76 FROM tab1 AS cor0
----
4562
5246
7374

query I rowsort
SELECT + col0 * col0 + + + col0 FROM tab2 AS cor0
----
2162
4160
5700

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2782
SELECT DISTINCT - + CAST( - CAST( col0 AS SIGNED ) AS SIGNED ) AS col0, + col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

skipif mysql # not compatible
query II rowsort label-2782
SELECT DISTINCT - + CAST ( - CAST ( col0 AS INTEGER ) AS INTEGER ) AS col0, + col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT - col1 * - - ( - 27 ) AS col0 FROM tab2 AS cor0
----
1377
1809
2079

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT + COUNT( * ) * - ( - + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2784
SELECT + COUNT ( * ) * - ( - + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT + ( - 26 ) AS col1 FROM tab1 AS cor0
----
-26

query I rowsort
SELECT - 21 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL col1 * + col0 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
425
4277
714

query I rowsort
SELECT DISTINCT col2 * - - 79 FROM tab2
----
1817
3160
4582

onlyif mysql # DIV for integer division: 
query I rowsort label-2789
SELECT DISTINCT - 90 DIV + col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-2789
SELECT DISTINCT - 90 / + col0 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2790
SELECT 85 DIV - COUNT( * ) AS col0 FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-2790
SELECT 85 / - COUNT ( * ) AS col0 FROM tab2
----
-28

query II rowsort
SELECT DISTINCT + col0 AS col2, - col2 * - col0 + - 30 AS col0 FROM tab2 AS cor0
----
46
1028
64
2530
75
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT ALL MAX( - - 39 ) col0 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2792
SELECT ALL MAX ( - - 39 ) col0 FROM tab1 AS cor0
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + - 87 col1 FROM tab2 AS cor0
----
-4002
-5568
-6525

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT DISTINCT - ( + + COUNT( * ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2794
SELECT DISTINCT - ( + + COUNT ( * ) ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT - 13 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT ALL + col0 * ( - col0 ) AS col1 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT 21 + + - 24 AS col0 FROM tab0 AS cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT - 25 + - MAX( ALL - 4 ) - - COUNT( * ) * + - COUNT( * ) FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2798
SELECT - 25 + - MAX ( ALL - 4 ) - - COUNT ( * ) * + - COUNT ( * ) FROM tab2 AS cor0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-2799
SELECT + 30 + + 93 DIV - col1 FROM tab2 AS cor0
----
29
29
29

skipif mysql # not compatible
query I rowsort label-2799
SELECT + 30 + + 93 / - col1 FROM tab2 AS cor0
----
29
29
29

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE ( NULL ) = - 92
----

query I rowsort
SELECT ALL 72 + col2 + + col1 - 9 AS col2 FROM tab2
----
137
180
188

query I rowsort
SELECT DISTINCT 90 + - col0 FROM tab2
----
15
26
44

query III rowsort
SELECT * FROM tab2 WHERE + - col1 * - - 70 NOT IN ( col2, - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - - 99 ) AS col2 FROM tab0
----
99
99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2805
SELECT DISTINCT - 63 - - + col0 + - 46 DIV - + col1 FROM tab2
----
-17
1
12

skipif mysql # not compatible
query I rowsort label-2805
SELECT DISTINCT - 63 - - + col0 + - 46 / - + col1 FROM tab2
----
-17
1
12

onlyif mysql # aggregate syntax: 
query II rowsort label-2806
SELECT DISTINCT + + MAX( col1 ) * 27 + COUNT( * ) + COUNT( * ), 9 AS col1 FROM tab1 AS cor0
----
1275
9

skipif mysql # not compatible
query II rowsort label-2806
SELECT DISTINCT + + MAX ( col1 ) * 27 + COUNT ( * ) + COUNT ( * ), 9 AS col1 FROM tab1 AS cor0
----
1275
9

query I rowsort
SELECT ALL col2 + - - col1 AS col1 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col0 + + 70 NOT BETWEEN col2 AND - 22
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 78 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT 45 + - COUNT( * ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-2811
SELECT 45 + - COUNT ( * ) FROM tab2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2812
SELECT ( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2812
SELECT ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + + 34 + - col1 FROM tab2
----
-3
25
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT ALL COUNT( * ) + - 80 col1 FROM tab0, tab2 AS cor0
----
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2814
SELECT ALL COUNT ( * ) + - 80 col1 FROM tab0, tab2 AS cor0
----
-71

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 + + - col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2816
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 85 * - col2 AS col2 FROM tab0 cor0
----
3995
8415
850

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT ALL + - MAX( - + 39 ) FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-2818
SELECT ALL + - MAX ( - + 39 ) FROM tab0 AS cor0
----
39

query I rowsort
SELECT DISTINCT - col0 * - 34 AS col1 FROM tab0 AS cor0
----
2958
3298
510

query II rowsort
SELECT ALL - col1, col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query III rowsort
SELECT * FROM tab0 WHERE NOT 31 = + col1 / - + 26 + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT ALL COUNT( - col2 ) * - + ( - COUNT( * ) ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL COUNT ( - col2 ) * - + ( - COUNT ( * ) ) AS col2 FROM tab0
----
9

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT - - 44 >= 30 * + 1
----

query I rowsort
SELECT + col1 * - 97 AS col1 FROM tab0
----
-2037
-7857
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2825
SELECT - 9 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2825
SELECT - 9 / col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + 7 col0, - 91 FROM tab2
----
357
-91
469
-91
539
-91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2828
SELECT - 76 DIV - COUNT( * ) FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-2828
SELECT - 76 / - COUNT ( * ) FROM tab2
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2829
SELECT DISTINCT + COUNT( * ) DIV + COUNT( DISTINCT + + col0 ) col2 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2829
SELECT DISTINCT + COUNT ( * ) / + COUNT ( DISTINCT + + col0 ) col2 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT COUNT( * ) + - - 95 * + COUNT( - ( + + col2 ) ) AS col0 FROM tab1 WHERE NOT col0 * - - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2830
SELECT COUNT ( * ) + - - 95 * + COUNT ( - ( + + col2 ) ) AS col0 FROM tab1 WHERE NOT col0 * - - col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT - SUM( col0 ) col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2831
SELECT - SUM ( col0 ) col0 FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT + + MIN( + 46 ) AS col0 FROM tab0 cor0
----
46

skipif mysql # not compatible
query I rowsort label-2832
SELECT + + MIN ( + 46 ) AS col0 FROM tab0 cor0
----
46

query II rowsort
SELECT DISTINCT + col2 + - ( - col2 ), col2 * - + 97 - col2 * col2 AS col2 FROM tab2
----
116
-8990
46
-2760
80
-5480

onlyif mysql # aggregate syntax: 
query II rowsort label-2834
SELECT MIN( DISTINCT ( + 52 ) ) col2, COUNT( * ) AS col0 FROM tab1
----
52
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2834
SELECT MIN ( DISTINCT ( + 52 ) ) col2, COUNT ( * ) AS col0 FROM tab1
----
52
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2835
SELECT ALL + - COUNT( * ), - 9 AS col0 FROM tab1 cor0
----
-3
-9

skipif mysql # not compatible
query II rowsort label-2835
SELECT ALL + - COUNT ( * ), - 9 AS col0 FROM tab1 cor0
----
-3
-9

query II rowsort
SELECT + + col0 AS col0, + ( - 52 ) AS col1 FROM tab1 AS cor0
----
51
-52
85
-52
91
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2837
SELECT DISTINCT + + CAST( NULL AS SIGNED ) col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2837
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) col0 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2838
SELECT DISTINCT + + COUNT( * ) AS col2, - SUM( ALL + + 59 ) FROM tab0 AS cor0
----
3
-177

skipif mysql # not compatible
query II rowsort label-2838
SELECT DISTINCT + + COUNT ( * ) AS col2, - SUM ( ALL + + 59 ) FROM tab0 AS cor0
----
3
-177

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT DISTINCT + + col1, - col0 + col0 + + 71 FROM tab0 AS cor0
----
1
71
21
71
81
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2841
SELECT ALL - - ( - CAST( + + 15 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL - - ( - CAST ( + + 15 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-15
-15
-15

query II rowsort
SELECT DISTINCT 23, + col2 FROM tab2 AS cor0
----
23
23
23
40
23
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2843
SELECT + + col2 + col1 - - - col1 DIV 18 AS col1 FROM tab0 AS cor0
----
100
124
30

skipif mysql # not compatible
query I rowsort label-2843
SELECT + + col2 + col1 - - - col1 / 18 AS col1 FROM tab0 AS cor0
----
100
124
30

query I rowsort
SELECT - col1 + + - col2 * + + 59 FROM tab2 AS cor0
----
-1408
-2437
-3489

query I rowsort
SELECT + col1 + + + 39 FROM tab1
----
44
53
86

query I rowsort
SELECT DISTINCT - 29 + - 96 FROM tab0
----
-125

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2847
SELECT DISTINCT * FROM tab1 WHERE - col0 * col2 + - ( + 80 ) / - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2847
SELECT DISTINCT * FROM tab1 WHERE - col0 * col2 + - ( + 80 ) / - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2848
SELECT ALL + 46 - - MAX( + - col1 ) + - CAST( NULL AS DECIMAL ) * - MIN( col1 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL + 46 - - MAX ( + - col1 ) + - CAST ( NULL AS REAL ) * - MIN ( col1 ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + col1 + - col1 * - col0 FROM tab0
----
1296
1848
98

query I rowsort
SELECT DISTINCT + 14 - - col0 * col0 AS col2 FROM tab0 WHERE ( + - 21 ) <> + col1 * col1 + - col2 + - + col1 + + + ( - 56 )
----
239
7583
9423

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + + 58 - - col0 * - 86 AS col2 FROM tab0 AS cor0
----
-1232
-7424
-8284

onlyif mysql # aggregate syntax: 
query II rowsort label-2853
SELECT - COUNT( * ) - - COUNT( * ), + COUNT( * ) AS col2 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-2853
SELECT - COUNT ( * ) - - COUNT ( * ), + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * + col2 * + 73 * + - col0 * + - col2 + + col1 <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + 45 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT ALL 55 * + + 31 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a579d007e26a964d72481e89bbe105ae

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT ALL ( + + COUNT( * ) ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2858
SELECT ALL ( + + COUNT ( * ) ) col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT COUNT( ALL 70 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2859
SELECT COUNT ( ALL 70 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 27 - col2 - col0 / + col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2861
SELECT DISTINCT - 98 DIV + col2 AS col0 FROM tab0 AS cor0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT - 98 / + col2 AS col0 FROM tab0 AS cor0
----
-2
-9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT ALL 76 * - 0 * + + MAX( ALL - col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2862
SELECT ALL 76 * - 0 * + + MAX ( ALL - col1 ) FROM tab0 AS cor0
----
0

query II rowsort
SELECT ALL col1, + col0 + + - col0 AS col2 FROM tab2
----
51
0
67
0
77
0

query II rowsort
SELECT DISTINCT + 85 AS col2, + col1 * 61 FROM tab1
----
85
2867
85
305
85
854

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT ALL MAX( + - col0 ) * + + ( + + 17 ) AS col0 FROM tab2
----
-782

skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL MAX ( + - col0 ) * + + ( + + 17 ) AS col0 FROM tab2
----
-782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2866
SELECT ALL - + ( - - col2 ) * col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT + + col0 > + 2
----

skipif mysql # not compatible
query I rowsort label-2866
SELECT ALL - + ( - - col2 ) * col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT + + col0 > + 2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2867
SELECT - col2 DIV - col1 * + col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2867
SELECT - col2 / - col1 * + col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT - 85 * - col0 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2869
SELECT + 24 DIV - COUNT( * ) AS col2 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-2869
SELECT + 24 / - COUNT ( * ) AS col2 FROM tab0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2870
SELECT MAX( + 81 ) * CAST( - 5 AS SIGNED ) col1 FROM tab1
----
-405

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2870
SELECT MAX ( + 81 ) * CAST ( - 5 AS INTEGER ) col1 FROM tab1
----
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT DISTINCT + 84 + - ( + COUNT( * ) ) col0 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2871
SELECT DISTINCT + 84 + - ( + COUNT ( * ) ) col0 FROM tab1 AS cor0
----
81

query I rowsort
SELECT ALL + + 37 FROM tab1 WHERE NOT 64 IS NULL
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT ALL - COUNT( * ) * + COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2873
SELECT ALL - COUNT ( * ) * + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + ( + - col0 ) * col2 * + ( + 78 ) NOT BETWEEN col0 AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2875
SELECT 8 * col0 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2875
SELECT 8 * col0 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT + 58 + - MIN( DISTINCT + + col1 ) FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-2876
SELECT + 58 + - MIN ( DISTINCT + + col1 ) FROM tab0
----
57

query I rowsort
SELECT - 10 + 94 + - col2 AS col2 FROM tab2 AS cor0
----
26
44
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2878
SELECT ALL + COUNT( DISTINCT - 54 ) - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 WHERE NOT - col1 NOT IN ( - + 10 - col1, col1, 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL + COUNT ( DISTINCT - 54 ) - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 WHERE NOT - col1 NOT IN ( - + 10 - col1, col1, 78 )
----
NULL

query I rowsort
SELECT + + 29 * + col2 FROM tab1 cor0
----
1711
1972
2784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2880
SELECT DISTINCT + COUNT( * ) DIV + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2880
SELECT DISTINCT + COUNT ( * ) / + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL ( - + col0 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-46
-64
-75

query I rowsort
SELECT - col0 FROM tab2 WHERE NULL IN ( - col0, - col1, + - 43 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT ALL COUNT( * ) + + 31 + + + COUNT( * ) FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-2883
SELECT ALL COUNT ( * ) + + 31 + + + COUNT ( * ) FROM tab0
----
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2884
SELECT CAST( NULL AS DECIMAL ) * col1 - - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2884
SELECT CAST ( NULL AS REAL ) * col1 - - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( - col2 ) - + + 91 AS col2 FROM tab1
----
-150
-159
-187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2886
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2886
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT DISTINCT 64 - SUM( + ( col1 ) ) * + - COUNT( * ) + + COUNT( + 43 ) AS col0 FROM tab1
----
265

skipif mysql # not compatible
query I rowsort label-2887
SELECT DISTINCT 64 - SUM ( + ( col1 ) ) * + - COUNT ( * ) + + COUNT ( + 43 ) AS col0 FROM tab1
----
265

onlyif mysql # DIV for integer division: 
query II rowsort label-2888
SELECT ALL - col2 * col0 - - + col1 AS col2, + col2 DIV - 12 - col0 FROM tab1
----
-4882
-59
-5010
-89
-6141
-96

skipif mysql # not compatible
query II rowsort label-2888
SELECT ALL - col2 * col0 - - + col1 AS col2, + col2 / - 12 - col0 FROM tab1
----
-4882
-59
-5010
-89
-6141
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2889
SELECT ALL col0 - - + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL col0 - - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 40 AS col1 FROM tab0 cor0 WHERE NULL >= - col1 * + 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT COUNT( * ) * + + COUNT( * ) * 76 AS col1 FROM tab2 cor0 WHERE NOT ( col2 * + + col2 + - 74 ) IS NULL
----
684

skipif mysql # not compatible
query I rowsort label-2891
SELECT COUNT ( * ) * + + COUNT ( * ) * 76 AS col1 FROM tab2 cor0 WHERE NOT ( col2 * + + col2 + - 74 ) IS NULL
----
684

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT ALL + 21 * + + COUNT( * ) FROM tab1 cor0
----
63

skipif mysql # not compatible
query I rowsort label-2892
SELECT ALL + 21 * + + COUNT ( * ) FROM tab1 cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT DISTINCT - MAX( DISTINCT col2 ) * - + 58 AS col1 FROM tab0
----
5742

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT - MAX ( DISTINCT col2 ) * - + 58 AS col1 FROM tab0
----
5742

query I rowsort
SELECT + col1 * + 81 * col1 FROM tab2
----
210681
363609
480249

query I rowsort
SELECT - col2 * - + 4 FROM tab0
----
188
396
40

query I rowsort
SELECT ( + 39 ) FROM tab0 cor0
----
39
39
39

query II rowsort
SELECT ALL - col2 * + - col2 AS col1, - col0 + + - ( - ( + - col2 ) ) + 91 FROM tab1 AS cor0
----
3481
-53
4624
-68
9216
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2898
SELECT DISTINCT + SUM( DISTINCT - 52 ) FROM tab0 AS cor0 WHERE - col2 >= + CAST( col0 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2898
SELECT DISTINCT + SUM ( DISTINCT - 52 ) FROM tab0 AS cor0 WHERE - col2 >= + CAST ( col0 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE col0 + - 59 IS NULL
----

query I rowsort
SELECT - - 39 AS col0 FROM tab2 cor0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT 57 * - COUNT( ALL + ( - 17 ) ) FROM tab1
----
-171

skipif mysql # not compatible
query I rowsort label-2901
SELECT 57 * - COUNT ( ALL + ( - 17 ) ) FROM tab1
----
-171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2902
SELECT + CAST( ( COUNT( * ) ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2902
SELECT + CAST ( ( COUNT ( * ) ) AS INTEGER ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT + col2 + 94 AS col1 FROM tab2
----
117
134
152

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT 28 * + + COUNT( * ) * COUNT( * ) FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-2904
SELECT 28 * + + COUNT ( * ) * COUNT ( * ) FROM tab2
----
252

onlyif mysql # DIV for integer division: 
query I rowsort label-2905
SELECT col2 DIV ( - - 31 ) FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2905
SELECT col2 / ( - - 31 ) FROM tab1
----
1
2
3

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 WHERE NOT + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 97 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab0 AS cor0 WHERE NOT - col1 / col1 * + col2 IS NULL
----
10
47
99

query I rowsort
SELECT ALL - - ( - + col0 ) * + 47 + + col1 FROM tab1 AS cor0
----
-2383
-3990
-4230

onlyif mysql # DIV for integer division: 
query I rowsort label-2910
SELECT ALL + 66 DIV - col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL + 66 / - col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2911
SELECT ALL 18 DIV - col1 FROM tab0 AS cor0
----
-18
0
0

skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL 18 / - col1 FROM tab0 AS cor0
----
-18
0
0

query I rowsort
SELECT ALL - + 47 + - 87 + - - ( - col0 ) AS col1 FROM tab2 AS cor0
----
-180
-198
-209

onlyif mysql # DIV for integer division: 
query I rowsort label-2913
SELECT DISTINCT + col2 DIV 26 + + col2 * + col1 FROM tab0 AS cor0
----
102
210
3808

skipif mysql # not compatible
query I rowsort label-2913
SELECT DISTINCT + col2 / 26 + + col2 * + col1 FROM tab0 AS cor0
----
102
210
3808

query I rowsort
SELECT DISTINCT col2 + - 22 FROM tab1
----
37
46
74

query I rowsort
SELECT + + 26 FROM tab0 cor0 WHERE ( - col2 - + 93 IS NOT NULL )
----
26
26
26

onlyif mysql # DIV for integer division: 
query I rowsort label-2916
SELECT DISTINCT col0 DIV - col1 col2 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2916
SELECT DISTINCT col0 / - col1 col2 FROM tab1 AS cor0
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT SUM( ALL ( - col2 ) ) + + + 54 col1 FROM tab1
----
-169

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2917
SELECT SUM ( ALL ( - col2 ) ) + + + 54 col1 FROM tab1
----
-169

onlyif mysql # aggregate syntax: 
query II rowsort label-2918
SELECT ALL 17 * + COUNT( * ) + - 52, SUM( DISTINCT - col2 ) AS col1 FROM tab1
----
-1
-223

skipif mysql # not compatible
query II rowsort label-2918
SELECT ALL 17 * + COUNT ( * ) + - 52, SUM ( DISTINCT - col2 ) AS col1 FROM tab1
----
-1
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 23 col2 FROM tab0
----
122
33
70

onlyif mysql # DIV for integer division: 
query I rowsort label-2920
SELECT DISTINCT 8 - + - col2 DIV col2 * + col0 FROM tab2
----
54
72
83

skipif mysql # not compatible
query I rowsort label-2920
SELECT DISTINCT 8 - + - col2 / col2 * + col0 FROM tab2
----
54
72
83

query I rowsort
SELECT - + col2 * - col2 FROM tab1 AS cor0 WHERE + 85 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT ALL - SUM( DISTINCT + 16 ) AS col2 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL - SUM ( DISTINCT + 16 ) AS col2 FROM tab1 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-2923
SELECT + 10 * 69, ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
690
-3

skipif mysql # not compatible
query II rowsort label-2923
SELECT + 10 * 69, ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
690
-3

query I rowsort
SELECT + - col0 * + col0 - + 14 AS col2 FROM tab0 AS cor0
----
-239
-7583
-9423

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT COUNT( * ) - - 88 + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
88

skipif mysql # not compatible
query I rowsort label-2925
SELECT COUNT ( * ) - - 88 + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
88

query I rowsort
SELECT DISTINCT 19 AS col0 FROM tab2 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT - - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2927
SELECT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query II rowsort
SELECT ALL 28 AS col2, col0 AS col2 FROM tab1
----
28
51
28
85
28
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2929
SELECT DISTINCT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) * + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2929
SELECT DISTINCT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) * + col2 IS NOT NULL
----

query I rowsort
SELECT ( - 59 ) FROM tab2
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT + MIN( 16 ) FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-2931
SELECT + MIN ( 16 ) FROM tab1 AS cor0
----
16

query I rowsort
SELECT DISTINCT + 2 * - 65 FROM tab0 AS cor0
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT ALL + + COUNT( 0 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( - + col1 ) * - 88 + 15 NOT BETWEEN NULL AND - + 93
----
0

skipif mysql # not compatible
query I rowsort label-2933
SELECT ALL + + COUNT ( 0 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( - + col1 ) * - 88 + 15 NOT BETWEEN NULL AND - + 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT - COUNT( * ) FROM tab2 cor0 WHERE NOT 56 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2934
SELECT - COUNT ( * ) FROM tab2 cor0 WHERE NOT 56 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT - COUNT( DISTINCT - 65 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2935
SELECT - COUNT ( DISTINCT - 65 ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2936
SELECT DISTINCT + + CAST( - 55 AS SIGNED ) FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT + + CAST ( - 55 AS INTEGER ) FROM tab0 AS cor0
----
-55

query I rowsort
SELECT ALL - - ( - 53 ) + 30 + - col2 AS col0 FROM tab2 AS cor0
----
-46
-63
-81

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 = 18
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 + col0 + - ( + - col0 ) * + - ( - + col0 ) FROM tab1
----
2638
7305
8325

query I rowsort
SELECT DISTINCT col1 * + - ( - - 96 ) AS col1 FROM tab0
----
-2016
-7776
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT ALL - MIN( 50 ) FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL - MIN ( 50 ) FROM tab2
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2942
SELECT ( CAST( - col1 AS SIGNED ) ) FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2942
SELECT ( CAST ( - col1 AS INTEGER ) ) FROM tab1
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 WHERE col0 + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * + 79 AS col1 FROM tab1
----
4029
6715
7189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2945
SELECT ALL - - 51 * - - 14 - + + CAST( - + col0 AS SIGNED ) + + 49 * + col1 * + col0 * - + ( - 32 ) + - col2 AS col0 FROM tab1 AS cor0
----
1120221
667140
6707073

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL - - 51 * - - 14 - + + CAST ( - + col0 AS INTEGER ) + + 49 * + col1 * + col0 * - + ( - 32 ) + - col2 AS col0 FROM tab1 AS cor0
----
1120221
667140
6707073

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2946
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT - + 20 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT ALL 5 * - col2 * + col1 * + 52 + + 36 AS col0 FROM tab1
----
-349404
-76664
-830924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2949
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2949
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + col1 FROM tab1
----
NULL

query I rowsort
SELECT col2 + + 74 * col0 * + ( - col0 ) * col2 * - col0 AS col2 FROM tab2
----
165665895
1810687558
775946280

query I rowsort
SELECT ALL 98 + + col0 FROM tab0
----
113
185
195

query I rowsort
SELECT DISTINCT + + col0 - 94 AS col1 FROM tab2 AS cor0
----
-19
-30
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT ALL + 24 - COUNT( * ) FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL + 24 - COUNT ( * ) FROM tab1 AS cor0
----
21

query I rowsort
SELECT - 71 AS col2 FROM tab0 cor0
----
-71
-71
-71

query I rowsort
SELECT - 59 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 23 * + 27 - - - col2 FROM tab0 AS cor0
----
522
574
611

query I rowsort
SELECT DISTINCT col2 * - - 1 FROM tab1 cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2958
SELECT + 6 - + + CAST( + - col0 AS SIGNED ) FROM tab1
----
57
91
97

skipif mysql # not compatible
query I rowsort label-2958
SELECT + 6 - + + CAST ( + - col0 AS INTEGER ) FROM tab1
----
57
91
97

query I rowsort
SELECT DISTINCT 84 + - - col2 AS col0 FROM tab0
----
131
183
94

query I rowsort
SELECT - col2 * - - 10 FROM tab1
----
-590
-680
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + 75 col1, + ( + - col0 ) * + col2 AS col2, + + 53 col1 FROM tab0
----
9 values hashing to 761e6edb23644417bfcbf9372e586bda

onlyif mysql # DIV for integer division: 
query I rowsort label-2962
SELECT DISTINCT + col2 DIV - col0 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-2962
SELECT DISTINCT + col2 / - col0 AS col1 FROM tab1
----
-1
0

query II rowsort
SELECT col2 AS col1, - col2 AS col0 FROM tab1
----
59
-59
68
-68
96
-96

query I rowsort
SELECT + 25 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
25
25
25

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 80 BETWEEN - col1 AND NULL
----

query I rowsort
SELECT DISTINCT col0 * - col2 * - col1 AS col1 FROM tab0 AS cor0
----
18270
57105
9603

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query III rowsort label-2968
SELECT - - 65, COUNT( * ) col2, - - 39 AS col0 FROM tab2 AS cor0
----
65
3
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2968
SELECT - - 65, COUNT ( * ) col2, - - 39 AS col0 FROM tab2 AS cor0
----
65
3
39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2969
SELECT ALL MAX( DISTINCT - - CAST( NULL AS DECIMAL ) ), 98 * + 0 AS col0 FROM tab2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2969
SELECT ALL MAX ( DISTINCT - - CAST ( NULL AS REAL ) ), 98 * + 0 AS col0 FROM tab2
----
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2970
SELECT SUM( ALL - col0 ) AS col2, + COUNT( * ) FROM tab2
----
-185
3

skipif mysql # not compatible
query II rowsort label-2970
SELECT SUM ( ALL - col0 ) AS col2, + COUNT ( * ) FROM tab2
----
-185
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT ALL - + COUNT( * ) * COUNT( * ) * - 76 - + 79 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
6077

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2971
SELECT ALL - + COUNT ( * ) * COUNT ( * ) * - 76 - + 79 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
6077

query I rowsort
SELECT 33 * - col1 * + col1 FROM tab0 AS cor0
----
-14553
-216513
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 12 col1 FROM tab0 AS cor0
----
12

query I rowsort
SELECT 15 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
15
15
15

query II rowsort
SELECT - ( + - col1 ) AS col1, col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL - ( 35 ) FROM tab2 cor0
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT ALL - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE 53 / 21 * + - col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE 53 / 21 * + - col2 IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-2978
SELECT col1 col2, - col2 DIV + - 74 AS col2 FROM tab2
----
51
0
67
0
77
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2978
SELECT col1 col2, - col2 / + - 74 AS col2 FROM tab2
----
51
0
67
0
77
0

query I rowsort
SELECT - ( - - col1 ) AS col0 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT col2 + - 28 FROM tab1
----
31
40
68

query I rowsort
SELECT ALL 75 + - 34 FROM tab2
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT + COUNT( * ) FROM tab1 WHERE - + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2982
SELECT + COUNT ( * ) FROM tab1 WHERE - + col2 IS NOT NULL
----
3

query I rowsort
SELECT ALL 19 * + + 44 + 92 AS col0 FROM tab0
----
928
928
928

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> 63
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 0 AND - ( - 58 )
----

query II rowsort
SELECT - col2, 46 AS col0 FROM tab0 AS cor0
----
-10
46
-47
46
-99
46

query I rowsort
SELECT ALL + + 55 * + + col1 + - col2 - col2 FROM tab0 cor0
----
-143
1135
4361

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2988
SELECT - CAST( + COUNT( * ) AS SIGNED ) + COUNT( * ) col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2988
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) + COUNT ( * ) col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT MIN( DISTINCT - col1 ) + COUNT( * ) - - 2 AS col1 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2989
SELECT MIN ( DISTINCT - col1 ) + COUNT ( * ) - - 2 AS col1 FROM tab2 AS cor0
----
-72

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= + 21 / - col0
----

query I rowsort
SELECT ALL + + 56 * - + col1 * col1 AS col0 FROM tab0 AS cor0
----
-24696
-367416
-56

query I rowsort
SELECT DISTINCT - 29 * + col0 - col0 * col0 + + 70 + + 81 * 92 AS col1 FROM tab2 AS cor0
----
-278
1570
4072

query I rowsort
SELECT DISTINCT - col2 * + + 68 AS col1 FROM tab1
----
-4012
-4624
-6528

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT - SUM( 16 ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-2995
SELECT - SUM ( 16 ) FROM tab1
----
-48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2996
SELECT DISTINCT + 20 DIV - CAST( + AVG ( - col2 ) AS SIGNED ) * CAST( - - 79 AS SIGNED ) col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2996
SELECT DISTINCT + 20 / - CAST ( + AVG ( - col2 ) AS INTEGER ) * CAST ( - - 79 AS INTEGER ) col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 10 / - 80 <= col0 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT - + MIN( + col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2998
SELECT - + MIN ( + col1 ) FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2999
SELECT DISTINCT + + COUNT( * ) DIV + 11 * 78 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT + + COUNT ( * ) / + 11 * 78 FROM tab0 AS cor0
----
0

query II rowsort
SELECT DISTINCT 32, 99 AS col1 FROM tab2
----
32
99

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE ( - - col1 ) IS NULL
----

query I rowsort
SELECT - 43 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT ALL - SUM( + col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL - SUM ( + col1 ) FROM tab2
----
-195

query I rowsort
SELECT - col1 * - col0 * col2 AS col2 FROM tab2
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT - 53 * + + COUNT( * ) + + COUNT( * ) + - - 34 FROM tab1
----
-122

skipif mysql # not compatible
query I rowsort label-3005
SELECT - 53 * + + COUNT ( * ) + + COUNT ( * ) + - - 34 FROM tab1
----
-122

query I rowsort
SELECT col2 + ( + - col1 ) AS col0 FROM tab0 AS cor0
----
-11
-34
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - - col2 - 89 * - col1
----

query I rowsort
SELECT - + 79 + + - col1 AS col2 FROM tab1 AS cor0
----
-126
-84
-93

query II rowsort
SELECT - col0, 54 AS col0 FROM tab0 AS cor0
----
-15
54
-87
54
-97
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3010
SELECT - 75 DIV 92 * - + col1 * - - col1 * + + 43 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3010
SELECT - 75 / 92 * - + col1 * - - col1 * + + 43 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * 17 + + 92 FROM tab1 AS cor0
----
1095
1248
1724

query I rowsort
SELECT ALL - 42 FROM tab1 WHERE NOT ( 74 IS NULL )
----
-42
-42
-42

query III rowsort
SELECT * FROM tab0 WHERE col2 * - ( - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 + - col1 - col2 + - - 84 * + 19 AS col0 FROM tab2 AS cor0
----
1396
1415
1476

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3015
SELECT - CAST( + AVG ( ALL + col2 ) AS SIGNED ) AS col1 FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-3015
SELECT - CAST ( + AVG ( ALL + col2 ) AS INTEGER ) AS col1 FROM tab2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT DISTINCT 58 - ( - COUNT( ALL + - col1 ) ) AS col2 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-3016
SELECT DISTINCT 58 - ( - COUNT ( ALL + - col1 ) ) AS col2 FROM tab2
----
61

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query I rowsort
SELECT + ( - - col0 ) AS col2 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT ALL - 50 + + MAX( + col2 ) col0 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3019
SELECT ALL - 50 + + MAX ( + col2 ) col0 FROM tab1 AS cor0
----
46

query I rowsort
SELECT DISTINCT col0 - - col1 * col0 * - col1 FROM tab0 AS cor0
----
-38280
-98400
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3021
SELECT ALL + SUM( ALL + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT DISTINCT + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL <> 84 + + col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL <> 84 + + col2 ) )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + col0 col1 FROM tab0 cor0
----
240
7656
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * - col0 col2 FROM tab0 AS cor0 WHERE NOT - ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT DISTINCT 79 * - COUNT( * ) AS col0 FROM tab0
----
-237

skipif mysql # not compatible
query I rowsort label-3025
SELECT DISTINCT 79 * - COUNT ( * ) AS col0 FROM tab0
----
-237

query III rowsort
SELECT * FROM tab0 WHERE NOT + 64 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT COUNT( * ) * + 5 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3027
SELECT COUNT ( * ) * + 5 FROM tab0
----
15

query I rowsort
SELECT - col2 * - col1 * col0 FROM tab2
----
197120
291450
53958

query II rowsort
SELECT DISTINCT ( + col1 ), ( + col0 ) + col0 + ( 86 ) AS col2 FROM tab1
----
14
188
47
268
5
256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3030
SELECT DISTINCT + CAST( - col2 AS SIGNED ) / + col0 * - col2 * col1 AS col1 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3030
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) / + col0 * - col2 * col1 AS col1 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + 63 AS col2 FROM tab1
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT ALL COUNT( - 54 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL COUNT ( - 54 ) AS col0 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 30 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3034
SELECT - 23 DIV - - col2 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3034
SELECT - 23 / - - col2 AS col2 FROM tab2
----
-1
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3035
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + SUM( DISTINCT + 58 ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + SUM ( DISTINCT + 58 ) AS col1 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3036
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

query I rowsort
SELECT ALL ( - + 81 ) AS col1 FROM tab2
----
-81
-81
-81

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 - - - 42 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 * col2 * + col0 FROM tab0 AS cor0
----
-10575
-75690
-931491

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 74 NOT BETWEEN - col0 * + ( + col0 ) + 51 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT ALL + MIN( col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL + MIN ( col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3043
SELECT DISTINCT 74 DIV + col0 FROM tab0 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-3043
SELECT DISTINCT 74 / + col0 FROM tab0 AS cor0
----
0
4

query I rowsort
SELECT 26 + - + col0 + - 52 FROM tab0 AS cor0
----
-113
-123
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3045
SELECT DISTINCT CAST( - col1 AS SIGNED ) * + col1 * - col0 + - + 62 AS col2 FROM tab1
----
200957
2063
9934

skipif mysql # not compatible
query I rowsort label-3045
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * + col1 * - col0 + - + 62 AS col2 FROM tab1
----
200957
2063
9934

query I rowsort
SELECT ALL col0 + col2 * 51 AS col2 FROM tab0
----
2412
5146
597

query II rowsort
SELECT DISTINCT + col0 - col0, + col0 AS col0 FROM tab2
----
0
46
0
64
0
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 48 col2 FROM tab0 cor0
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT 4 * COUNT( * ) - + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3049
SELECT 4 * COUNT ( * ) - + COUNT ( * ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT ALL MIN( DISTINCT - - col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL MIN ( DISTINCT - - col1 ) AS col2 FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3051
SELECT DISTINCT 79 * + CAST( NULL AS SIGNED ) * + + 54 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3051
SELECT DISTINCT 79 * + CAST ( NULL AS INTEGER ) * + + 54 FROM tab2 cor0
----
NULL

query II rowsort
SELECT + 64 * + - col2 AS col2, + col2 * col1 + 89 * - 11 FROM tab0 AS cor0
----
-3008
2828
-6336
-880
-640
-769

query I rowsort
SELECT - + 70 AS col2 FROM tab0 AS cor0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col0 * col2 + + + 50 - - 40 NOT IN ( + 60, + ( - col2 ) + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col0 * col2 + + + 50 - - 40 NOT IN ( + 60, + ( - col2 ) + - col2 )
----
0

query I rowsort
SELECT ALL col0 * + + 11 AS col0 FROM tab2
----
506
704
825

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN - ( col1 ) * - col0 AND 76 / - 73
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 = 43
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT + COUNT( ALL 44 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3058
SELECT + COUNT ( ALL 44 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT DISTINCT + COUNT( ALL - 84 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3059
SELECT DISTINCT + COUNT ( ALL - 84 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 79 AS col1 FROM tab0 cor0
----
-79
-79
-79

query II rowsort
SELECT col1, - 12 FROM tab0 AS cor0
----
1
-12
21
-12
81
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3062
SELECT COUNT( * ) + 48 FROM tab0 WHERE ( 57 / col2 + col2 / col2 ) >= + 47 + 70 * - CAST( col1 + col2 * col1 AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-3062
SELECT COUNT ( * ) + 48 FROM tab0 WHERE ( 57 / col2 + col2 / col2 ) >= + 47 + 70 * - CAST ( col1 + col2 * col1 AS INTEGER )
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3063
SELECT - ( + col1 ) AS col0 FROM tab1 WHERE col0 - + col1 >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3063
SELECT - ( + col1 ) AS col0 FROM tab1 WHERE col0 - + col1 >= - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3064
SELECT - col1 + - col2 DIV - col2 AS col0 FROM tab1
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-3064
SELECT - col1 + - col2 / - col2 AS col0 FROM tab1
----
-13
-4
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT - COUNT( * ) * + 32 AS col2 FROM tab2 WHERE NOT ( col0 * - col0 ) IS NULL
----
-96

skipif mysql # not compatible
query I rowsort label-3065
SELECT - COUNT ( * ) * + 32 AS col2 FROM tab2 WHERE NOT ( col0 * - col0 ) IS NULL
----
-96

query III rowsort
SELECT * FROM tab2 WHERE - 51 / col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT + COUNT( * ) * 93 AS col2 FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-3067
SELECT + COUNT ( * ) * 93 AS col2 FROM tab2
----
279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3068
SELECT + COUNT( * ) + 47 DIV - 94 FROM tab1 WHERE NOT ( NULL ) NOT IN ( - 47 )
----
0

skipif mysql # not compatible
query I rowsort label-3068
SELECT + COUNT ( * ) + 47 / - 94 FROM tab1 WHERE NOT ( NULL ) NOT IN ( - 47 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3069
SELECT DISTINCT col0 - - col2 DIV col2 AS col0 FROM tab0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT col0 - - col2 / col2 AS col0 FROM tab0
----
16
88
98

query III rowsort
SELECT * FROM tab1 WHERE - 42 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 NOT BETWEEN ( - col0 * 42 ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col1 ) NOT BETWEEN 92 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT SUM( DISTINCT 32 ) * COUNT( * ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-3074
SELECT SUM ( DISTINCT 32 ) * COUNT ( * ) FROM tab2
----
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col1 + 21 * 28 ) < ( - col0 )
----

query I rowsort
SELECT DISTINCT col2 * - col2 + + col0 AS col1 FROM tab0
----
-13
-2194
-9704

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT DISTINCT ( COUNT( DISTINCT - col0 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT ( COUNT ( DISTINCT - col0 ) ) AS col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT col2 * 54 FROM tab1
----
3186
3672
5184

query I rowsort
SELECT - col0 + 82 FROM tab0
----
-15
-5
67

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 + col1 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 40 AS col1 FROM tab2 WHERE NOT 21 * col2 >= 57
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3082
SELECT col1 DIV 66 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3082
SELECT col1 / 66 AS col1 FROM tab2
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) - - 4 col2 FROM tab1
----
-1
-10
-43

query I rowsort
SELECT col2 * - col0 AS col1 FROM tab0 WHERE NOT col1 + col2 IN ( 22 )
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( 21 - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3086
SELECT - 52 DIV 36 col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3086
SELECT - 52 / 36 col1 FROM tab2
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3087
SELECT 12 DIV col0 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3087
SELECT 12 / col0 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT DISTINCT 80 * ( COUNT( * ) ) - - 2 * + COUNT( * ) FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT 80 * ( COUNT ( * ) ) - - 2 * + COUNT ( * ) FROM tab0
----
246

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( + col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT ALL SUM( - col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL SUM ( - col0 ) AS col2 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( - 35 / + col0 )
----

query I rowsort
SELECT ALL 86 * col0 - - col2 AS col0 FROM tab1 AS cor0
----
4482
7369
7894

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT ALL COUNT( * ) + + 44 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
53

skipif mysql # not compatible
query I rowsort label-3093
SELECT ALL COUNT ( * ) + + 44 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT - SUM( 59 ) FROM tab0
----
-177

skipif mysql # not compatible
query I rowsort label-3094
SELECT - SUM ( 59 ) FROM tab0
----
-177

query I rowsort
SELECT DISTINCT 14 AS col1 FROM tab2 WHERE NULL <= NULL
----

query I rowsort
SELECT 47 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3097
SELECT ALL SUM( DISTINCT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL SUM ( DISTINCT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3098
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( CAST( + col1 AS SIGNED ) / + 93 ) = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3098
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( CAST ( + col1 AS INTEGER ) / + 93 ) = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col0 / col1 + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - 10 AS col0 FROM tab1 AS cor0
----
-140
-470
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT DISTINCT + MAX( ALL - col1 ) * + 73 FROM tab1
----
-365

skipif mysql # not compatible
query I rowsort label-3101
SELECT DISTINCT + MAX ( ALL - col1 ) * + 73 FROM tab1
----
-365

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT ( + COUNT( * ) ) * COUNT( * ) col2 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3102
SELECT ( + COUNT ( * ) ) * COUNT ( * ) col2 FROM tab1
----
9

query I rowsort
SELECT + 52 * col0 * - col1 FROM tab1
----
-22100
-222404
-37128

query III rowsort
SELECT * FROM tab1 WHERE NOT - 2 + - col1 NOT BETWEEN + col0 AND + col0 + col0
----

query I rowsort
SELECT 73 * 33 FROM tab2
----
2409
2409
2409

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 58 AS col1 FROM tab1 WHERE NOT - col1 BETWEEN - 98 + 40 AND ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3108
SELECT DISTINCT + CAST( - ( - col2 ) AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3108
SELECT DISTINCT + CAST ( - ( - col2 ) AS INTEGER ) FROM tab2
----
23
40
58

query I rowsort
SELECT col1 + 20 * col2 FROM tab1
----
1185
1407
1934

query I rowsort
SELECT DISTINCT col0 * + ( + col1 ) AS col1 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 34 / - col0 NOT BETWEEN - col0 AND + col2 * + 46
----
3

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 34 / - col0 NOT BETWEEN - col0 AND + col2 * + 46
----
3

query I rowsort
SELECT DISTINCT + 92 * - col0 * col1 FROM tab1 AS cor0
----
-39100
-393484
-65688

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT ALL 32 - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 * col2 - + col2 IS NULL
----
29

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL 32 - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 * col2 - + col2 IS NULL
----
29

query I rowsort
SELECT + - 17 AS col2 FROM tab0 cor0
----
-17
-17
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3115
SELECT + COUNT( * ) * - CAST( 76 AS SIGNED ) * + COUNT( * ) FROM tab2
----
-684

skipif mysql # not compatible
query I rowsort label-3115
SELECT + COUNT ( * ) * - CAST ( 76 AS INTEGER ) * + COUNT ( * ) FROM tab2
----
-684

query I rowsort
SELECT ALL 38 * 47 * - 82 + + col0 FROM tab2
----
-146377
-146388
-146406

query III rowsort
SELECT * FROM tab2 WHERE + col0 - + col2 > ( + 20 )
----
46
51
23
64
77
40

query I rowsort
SELECT DISTINCT - 48 * + + 80 AS col1 FROM tab1
----
-3840

query I rowsort
SELECT DISTINCT - col0 * 19 FROM tab2 WHERE NULL <= + ( - 18 )
----

query I rowsort
SELECT DISTINCT + col1 * + ( - col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT + COUNT( * ) * + + SUM( 41 ) + 9 FROM tab2 AS cor0
----
378

skipif mysql # not compatible
query I rowsort label-3121
SELECT + COUNT ( * ) * + + SUM ( 41 ) + 9 FROM tab2 AS cor0
----
378

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT DISTINCT 52 * - - COUNT( - 60 ) + 38 FROM tab2 cor0
----
194

skipif mysql # not compatible
query I rowsort label-3122
SELECT DISTINCT 52 * - - COUNT ( - 60 ) + 38 FROM tab2 cor0
----
194

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE ( 31 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3125
SELECT 24 DIV + - 79 * + col2 + col1 AS col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3125
SELECT 24 / + - 79 * + col2 + col1 AS col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3126
SELECT - col1 * col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3126
SELECT - col1 * col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + col0 + + 93 AS col1 FROM tab0 AS cor0
----
159
189
27

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL OR - col1 + col0 NOT BETWEEN ( - col0 ) AND - col1 / - col1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3129
SELECT - CAST( NULL AS SIGNED ) + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3129
SELECT - CAST ( NULL AS INTEGER ) + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + + 34 * + ( ( col2 ) ) FROM tab1
----
2065
2380
3360

query I rowsort
SELECT col2 + - - col1 FROM tab0
----
100
128
31

onlyif mysql # DIV for integer division: 
query I rowsort label-3132
SELECT ALL 90 + - 21 DIV - 3 + + col1 * - 65 FROM tab1
----
-228
-2958
-813

skipif mysql # not compatible
query I rowsort label-3132
SELECT ALL 90 + - 21 / - 3 + + col1 * - 65 FROM tab1
----
-228
-2958
-813

query I rowsort
SELECT 54 + 46 AS col1 FROM tab2
----
100
100
100

query I rowsort
SELECT DISTINCT - 48 * + col0 + + + col0 AS col2 FROM tab0
----
-4089
-4559
-705

query III rowsort
SELECT * FROM tab2 WHERE - ( col1 ) + 41 < + 67
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - - col2 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT DISTINCT COUNT( + - col0 ) + + 2 AS col2 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-3137
SELECT DISTINCT COUNT ( + - col0 ) + + 2 AS col2 FROM tab0
----
5

query I rowsort
SELECT ALL + 70 - - col2 AS col1 FROM tab1
----
129
138
166

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3139
SELECT ALL * FROM tab1 WHERE - - CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-3139
SELECT ALL * FROM tab1 WHERE - - CAST ( NULL AS INTEGER ) < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col0 + col2 + - col0 IS NULL
----

query I rowsort
SELECT ALL + - 26 + + - col1 AS col0 FROM tab0 AS cor0
----
-107
-27
-47

query I rowsort
SELECT ALL col0 * + - col2 - + col1 AS col2 FROM tab2 cor0
----
-1109
-2637
-4417

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 - + col1 col2 FROM tab2 AS cor0
----
-28
-37
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + ( + 85 ) * col0 FROM tab2 AS cor0
----
3910
5440
6375

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3146
SELECT ALL * FROM tab0 cor0 WHERE NOT 84 * + CAST( NULL AS DECIMAL ) + + - col0 + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3146
SELECT ALL * FROM tab0 cor0 WHERE NOT 84 * + CAST ( NULL AS REAL ) + + - col0 + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3147
SELECT + + MAX( ALL + CAST( NULL AS DECIMAL ) ), - 86 * + COUNT( DISTINCT 92 ) + 38 AS col2 FROM tab1 AS cor0
----
NULL
-48

skipif mysql # not compatible
query II rowsort label-3147
SELECT + + MAX ( ALL + CAST ( NULL AS REAL ) ), - 86 * + COUNT ( DISTINCT 92 ) + 38 AS col2 FROM tab1 AS cor0
----
NULL
-48

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( + 76 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
76

query I rowsort
SELECT col0 + col0 FROM tab2 AS cor0 WHERE NOT col2 * - 42 IS NULL
----
128
150
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3151
SELECT - MIN( DISTINCT + 66 ) DIV + COUNT( - - ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-3151
SELECT - MIN ( DISTINCT + 66 ) / + COUNT ( - - ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
-22

query II rowsort
SELECT DISTINCT 13 AS col2, + 75 AS col2 FROM tab0 AS cor0
----
13
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 26 col0 FROM tab2 AS cor0
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT DISTINCT + + COUNT( - 80 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT + + COUNT ( - 80 ) AS col0 FROM tab2 cor0
----
3

query I rowsort
SELECT + col0 * col2 + ( + - col0 ) FROM tab2 AS cor0
----
1012
2496
4275

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3156
SELECT DISTINCT * FROM tab0 WHERE ( - col0 / + + col2 ) NOT BETWEEN ( - ( + CAST( NULL AS DECIMAL ) ) ) AND + col1
----

skipif mysql # not compatible
query III rowsort label-3156
SELECT DISTINCT * FROM tab0 WHERE ( - col0 / + + col2 ) NOT BETWEEN ( - ( + CAST ( NULL AS REAL ) ) ) AND + col1
----

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT col1 NOT IN ( + col2 )
----

query I rowsort
SELECT + 91 * - col2 + col1 FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
-4196
-889
-9008

query I rowsort
SELECT 42 * - col1 AS col2 FROM tab2
----
-2142
-2814
-3234

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, col2 + + col2 col2 FROM tab1
----
-59
118
-68
136
-96
192

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT + COUNT( * ) * + 48 * - - 7 FROM tab0 AS cor0
----
1008

skipif mysql # not compatible
query I rowsort label-3162
SELECT + COUNT ( * ) * + 48 * - - 7 FROM tab0 AS cor0
----
1008

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3163
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col2 + CAST( NULL AS SIGNED ) * - col0 ) > 97
----

skipif mysql # not compatible
query III rowsort label-3163
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col2 + CAST ( NULL AS INTEGER ) * - col0 ) > 97
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3164
SELECT - - COUNT( * ) DIV + MIN( ALL + - col1 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3164
SELECT - - COUNT ( * ) / + MIN ( ALL + - col1 ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3165
SELECT - col1 FROM tab1 AS cor0 WHERE ( col1 - - CAST( - + col2 AS SIGNED ) ) IS NOT NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3165
SELECT - col1 FROM tab1 AS cor0 WHERE ( col1 - - CAST ( - + col2 AS INTEGER ) ) IS NOT NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3166
SELECT DISTINCT - COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT DISTINCT - COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col2 + ( - - col2 ) NOT BETWEEN NULL AND + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + 39 * + col0 + + col1 - + - 19 + + ( + col2 ) AS col1 FROM tab1 AS cor0
----
2118
3398
3683

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 35 * + col1 * 3 + + 50 + + col2 + + col2 IN ( - ( - col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT + COUNT( * ) col1 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN col0 AND NULL
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3170
SELECT + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN col0 AND NULL
----
1

query I rowsort
SELECT col1 - - 45 FROM tab2
----
112
122
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3172
SELECT * FROM tab1 WHERE + + col0 * - CAST( + - col1 AS SIGNED ) BETWEEN ( NULL ) AND - 3
----

skipif mysql # not compatible
query III rowsort label-3172
SELECT * FROM tab1 WHERE + + col0 * - CAST ( + - col1 AS INTEGER ) BETWEEN ( NULL ) AND - 3
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3173
SELECT - COUNT( * ) * + COUNT( * ) * - 98 AS col1 FROM tab0 WHERE ( + - 32 - CAST( NULL AS DECIMAL ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3173
SELECT - COUNT ( * ) * + COUNT ( * ) * - 98 AS col1 FROM tab0 WHERE ( + - 32 - CAST ( NULL AS REAL ) ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - - col2 col1 FROM tab0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT SUM( DISTINCT - 39 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3175
SELECT SUM ( DISTINCT - 39 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + 9 + col1 FROM tab1
----
14
23
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3177
SELECT + CAST( NULL AS SIGNED ) - - 23 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3177
SELECT + CAST ( NULL AS INTEGER ) - - 23 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * 56 AS col0 FROM tab1
----
-3304
-3808
-5376

onlyif mysql # DIV for integer division: 
query I rowsort label-3179
SELECT + col2 + + - col1 DIV col1 FROM tab2
----
22
39
57

skipif mysql # not compatible
query I rowsort label-3179
SELECT + col2 + + - col1 / col1 FROM tab2
----
22
39
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3180
SELECT CAST( NULL AS SIGNED ) + 62 * - - col2 + + 74 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3180
SELECT CAST ( NULL AS INTEGER ) + 62 * - - col2 + + 74 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 33 + col1 * 90 * + col0 + - + 11 AS col2 FROM tab0
----
109372
164452
8752

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT + + MAX( ALL - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3182
SELECT + + MAX ( ALL - col1 ) FROM tab2 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + 2 ) col2 FROM tab2 AS cor0
----
-2
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2, 24 col1 FROM tab1 AS cor0
----
59
24
68
24
96
24

query I rowsort
SELECT ALL - - 56 AS col1 FROM tab2 cor0
----
56
56
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3186
SELECT DISTINCT + 88 DIV - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-3186
SELECT DISTINCT + 88 / - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-29

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( NOT + 76 / - col1 * + 11 * 84 NOT IN ( + col2 - - col2 * - col2 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3188
SELECT COUNT( * ) DIV + - 77 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3188
SELECT COUNT ( * ) / + - 77 AS col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3189
SELECT + col0 DIV - + col2 + - - col0 - + col1 * + col2, col1 FROM tab1 AS cor0
----
-1293
14
-211
5
-3106
47

skipif mysql # not compatible
query II rowsort label-3189
SELECT + col0 / - + col2 + - - col0 - + col1 * + col2, col1 FROM tab1 AS cor0
----
-1293
14
-211
5
-3106
47

query I rowsort
SELECT ALL ( - col1 ) * 37 + col2 AS col0 FROM tab2 AS cor0
----
-1864
-2421
-2809

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT ALL + COUNT( * ) * - COUNT( * ) * + + COUNT( * ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3191
SELECT ALL + COUNT ( * ) * - COUNT ( * ) * + + COUNT ( * ) FROM tab1 AS cor0
----
-27

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 24 AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3193
SELECT + AVG ( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3193
SELECT + AVG ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 98 col0 FROM tab1
----
51
84
93

query I rowsort
SELECT DISTINCT col1 * + 80 * - + col0 + - 88 + col1 FROM tab1
----
-34083
-342201
-57194

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT 14 * - + COUNT( * ) col2 FROM tab2
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3196
SELECT 14 * - + COUNT ( * ) col2 FROM tab2
----
-42

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col1 AND + - 44
----

query I rowsort
SELECT col0 * + 21 * - col0 FROM tab1
----
-151725
-173901
-54621

onlyif mysql # DIV for integer division: 
query I rowsort label-3199
SELECT + col1 DIV - + 43 FROM tab1 WHERE NOT - + ( + + 43 ) IS NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3199
SELECT + col1 / - + 43 FROM tab1 WHERE NOT - + ( + + 43 ) IS NULL
----
-1
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3200
SELECT DISTINCT ( - + COUNT( * ) ) + - COUNT( * ) AS col1, 43 + - 47 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0
-4

skipif mysql # not compatible
query II rowsort label-3200
SELECT DISTINCT ( - + COUNT ( * ) ) + - COUNT ( * ) AS col1, 43 + - 47 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0
-4

query I rowsort
SELECT col0 + 25 * - col0 AS col0 FROM tab1
----
-1224
-2040
-2184

query I rowsort
SELECT - col0 + + 50 FROM tab2
----
-14
-25
4

query I rowsort
SELECT ALL ( + - col0 ) + - - col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3204
SELECT + + ( + + 94 ) DIV COUNT( * ) AS col1, - 24 AS col0 FROM tab2 cor0
----
31
-24

skipif mysql # not compatible
query II rowsort label-3204
SELECT + + ( + + 94 ) / COUNT ( * ) AS col1, - 24 AS col0 FROM tab2 cor0
----
31
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3205
SELECT + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT + ( ( - 53 ) ) FROM tab2
----
-53
-53
-53

query II rowsort
SELECT - col1 AS col2, col1 * + - col1 FROM tab2
----
-51
-2601
-67
-4489
-77
-5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 - - col2 col2 FROM tab1 WHERE 22 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3209
SELECT DISTINCT - CAST( 67 AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-67

skipif mysql # not compatible
query I rowsort label-3209
SELECT DISTINCT - CAST ( 67 AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, + col1 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT col2 - col1 + - 44 AS col1 FROM tab1
----
-23
10
38

query I rowsort
SELECT + 80 + 23 * + col2 FROM tab2 AS cor0
----
1000
1414
609

query I rowsort
SELECT ALL col1 * + + ( + + col1 ) FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3214
SELECT + col1 + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3214
SELECT + col1 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 39 * 59 * - 6 + - - 34 FROM tab2 cor0
----
-13772
-13772
-13772

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 41 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + - 57 AS col2 FROM tab2
----
-115
-80
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT DISTINCT SUM( 26 ) FROM tab1, tab2 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-3218
SELECT DISTINCT SUM ( 26 ) FROM tab1, tab2 AS cor0
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT + ( + + MAX( DISTINCT - 28 ) ) AS col0 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-3219
SELECT + ( + + MAX ( DISTINCT - 28 ) ) AS col0 FROM tab0 AS cor0
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-3220
SELECT ALL + - 36 * - col1 + - 64 DIV - col0 AS col1 FROM tab0 AS cor0
----
2920
36
756

skipif mysql # not compatible
query I rowsort label-3220
SELECT ALL + - 36 * - col1 + - 64 / - col0 AS col1 FROM tab0 AS cor0
----
2920
36
756

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 49 BETWEEN NULL AND 81 - - col0 + - + 8 * + col1
----
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3222
SELECT ALL - CAST( col0 AS SIGNED ) * + col0 col1 FROM tab0 AS cor0
----
-225
-7569
-9409

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3222
SELECT ALL - CAST ( col0 AS INTEGER ) * + col0 col1 FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT - col2 * col0 * - col2 AS col1 FROM tab0
----
33135
8700
950697

query I rowsort
SELECT DISTINCT - - col0 * - - ( col0 ) FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3225
SELECT + - CAST( + 46 AS SIGNED ) + + ( - - 34 ) FROM tab1 AS cor0
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-3225
SELECT + - CAST ( + 46 AS INTEGER ) + + ( - - 34 ) FROM tab1 AS cor0
----
-12
-12
-12

query II rowsort
SELECT + 23 AS col1, col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT ALL COUNT( DISTINCT + + col2 ) * - - 37 + + 72 FROM tab1 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL COUNT ( DISTINCT + + col2 ) * - - 37 + + 72 FROM tab1 AS cor0
----
183

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 + - - col2 NOT IN ( - - col0, + ( - + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT MAX( + - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3229
SELECT MAX ( + - col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3230
SELECT col2 col1 FROM tab2 cor0 WHERE NOT NULL IN ( - 5, + 80 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3230
SELECT col2 col1 FROM tab2 cor0 WHERE NOT NULL IN ( - 5, + 80 * CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 54 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT DISTINCT + COUNT( * ) + MIN( ALL ( - col2 ) ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT + COUNT ( * ) + MIN ( ALL ( - col2 ) ) FROM tab0
----
-96

query III rowsort
SELECT * FROM tab1 WHERE + - 95 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 10 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * + 29 col1, - col0 + + 4 AS col1 FROM tab2
----
1334
-42
1856
-60
2175
-71

query I rowsort
SELECT - ( + 17 ) * + 99 + col0 FROM tab1 WHERE + 47 <= - ( - - 17 ) / + - ( - col1 ) + + - ( + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT - MAX( ALL - + 89 ) FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-3238
SELECT - MAX ( ALL - + 89 ) FROM tab0
----
89

query I rowsort
SELECT ALL + col1 * + col2 * + 3 AS col1 FROM tab2
----
11658
3519
9240

query I rowsort
SELECT DISTINCT + 55 * + col1 FROM tab1 AS cor0
----
2585
275
770

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 92 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query III rowsort
SELECT * FROM tab0 WHERE col2 <= - - col0
----
87
21
10

query II rowsort
SELECT 6, - col0 AS col1 FROM tab1
----
6
-51
6
-85
6
-91

query I rowsort
SELECT DISTINCT + + col1 - - - col0 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT ALL 63 - col2 * col2 FROM tab1 AS cor0
----
-3418
-4561
-9153

query II rowsort
SELECT ALL - col1 AS col0, - col2 * col2 AS col1 FROM tab2 AS cor0
----
-51
-529
-67
-3364
-77
-1600

onlyif mysql # DIV for integer division: 
query II rowsort label-3247
SELECT DISTINCT + 49 col2, + col0 DIV - - 61 AS col2 FROM tab1
----
49
0
49
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3247
SELECT DISTINCT + 49 col2, + col0 / - - 61 AS col2 FROM tab1
----
49
0
49
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3248
SELECT ALL ( col1 ) DIV + 5 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1
2
9

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL ( col1 ) / + 5 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1
2
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3249
SELECT ALL + CAST( NULL AS SIGNED ) * + 70 + col1 + + col1 * + col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL + CAST ( NULL AS INTEGER ) * + 70 + col1 + + col1 * + col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 * + + ( + 62 ) FROM tab1
----
2914
310
868

query II rowsort
SELECT ALL + 89, col0 FROM tab0
----
89
15
89
87
89
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3252
SELECT + COUNT( * ) AS col1, + ( + 61 ) FROM tab0
----
3
61

skipif mysql # not compatible
query II rowsort label-3252
SELECT + COUNT ( * ) AS col1, + ( + 61 ) FROM tab0
----
3
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT SUM( ALL 94 ) AS col0 FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-3253
SELECT SUM ( ALL 94 ) AS col0 FROM tab0
----
282

query I rowsort
SELECT + 59 * + col0 FROM tab1
----
3009
5015
5369

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col2 col2 FROM tab2
----
51
23
67
58
77
40

query II rowsort
SELECT DISTINCT + col1, 36 * col2 FROM tab1 cor0
----
14
3456
47
2448
5
2124

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT ALL 78 * - COUNT( * ) FROM tab0
----
-234

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL 78 * - COUNT ( * ) FROM tab0
----
-234

query I rowsort
SELECT DISTINCT - ( 2 ) FROM tab2 AS cor0
----
-2

query I rowsort
SELECT ALL 81 * col2 FROM tab1 AS cor0
----
4779
5508
7776

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( + col0 ) AND - ( - + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3262
SELECT DISTINCT 96 * 52 + + col0 col1 FROM tab1 AS cor0 WHERE NOT + col0 * + col2 BETWEEN - CAST( NULL AS SIGNED ) AND + + col2
----
5043
5077
5083

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3262
SELECT DISTINCT 96 * 52 + + col0 col1 FROM tab1 AS cor0 WHERE NOT + col0 * + col2 BETWEEN - CAST ( NULL AS INTEGER ) AND + + col2
----
5043
5077
5083

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 45 IS NULL
----

query I rowsort
SELECT DISTINCT + 28 * - col0 FROM tab0 AS cor0
----
-2436
-2716
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT - COUNT( * ) * COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3265
SELECT - COUNT ( * ) * COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3266
SELECT ALL col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 66 + - col1 AS col0 FROM tab0
----
-147
-67
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3268
SELECT - ( + ( - col2 ) ) + + - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3268
SELECT - ( + ( - col2 ) ) + + - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + + + 81 FROM tab2
----
127
145
156

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE + + ( + 98 ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT col1 + - - 8 AS col1 FROM tab0
----
29
89
9

query I rowsort
SELECT ALL - 54 - + ( + 23 ) AS col0 FROM tab0
----
-77
-77
-77

query I rowsort
SELECT ALL + - ( + 94 ) + - col2 FROM tab0 AS cor0
----
-104
-141
-193

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 68 NOT IN ( + - col2, col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 + 96 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT + COUNT( + - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3276
SELECT + COUNT ( + - col2 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL ( + 47 ) + + col0 FROM tab2 AS cor0
----
111
122
93

query I rowsort
SELECT 69 * + + col1 AS col0 FROM tab2 AS cor0
----
3519
4623
5313

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT ALL - SUM( + + 56 ) AS col1 FROM tab0 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL - SUM ( + + 56 ) AS col1 FROM tab0 AS cor0
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT DISTINCT - 8 * - SUM( col1 ) + 93 AS col2 FROM tab1 AS cor0
----
621

skipif mysql # not compatible
query I rowsort label-3280
SELECT DISTINCT - 8 * - SUM ( col1 ) + 93 AS col2 FROM tab1 AS cor0
----
621

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT - COUNT( * ) + + - SUM( + 60 ) AS col2 FROM tab1 AS cor0 WHERE col1 BETWEEN ( NULL ) AND 83
----
NULL

skipif mysql # not compatible
query I rowsort label-3281
SELECT - COUNT ( * ) + + - SUM ( + 60 ) AS col2 FROM tab1 AS cor0 WHERE col1 BETWEEN ( NULL ) AND 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT - COUNT( * ) + 79 AS col0 FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-3282
SELECT - COUNT ( * ) + 79 AS col0 FROM tab1 AS cor0
----
76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3283
SELECT DISTINCT - + 71 DIV - - col0 AS col2, 78 + - - CAST( NULL AS SIGNED ) * - col0 FROM tab0 AS cor0
----
-4
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-3283
SELECT DISTINCT - + 71 / - - col0 AS col2, 78 + - - CAST ( NULL AS INTEGER ) * - col0 FROM tab0 AS cor0
----
-4
NULL
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3284
SELECT DISTINCT - CAST( + - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3284
SELECT DISTINCT - CAST ( + - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 90 col0 FROM tab0 AS cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT - + SUM( DISTINCT - 25 ) AS col0 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-3286
SELECT - + SUM ( DISTINCT - 25 ) AS col0 FROM tab1 AS cor0
----
25

query I rowsort
SELECT DISTINCT - + 87 FROM tab0 AS cor0 WHERE NOT 72 IS NULL
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-3288
SELECT 77 DIV 44 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3288
SELECT 77 / 44 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3289
SELECT DISTINCT + 48 DIV - + COUNT( * ) FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-3289
SELECT DISTINCT + 48 / - + COUNT ( * ) FROM tab1
----
-16

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3290
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) * ( - CAST( + col1 AS SIGNED ) ) + - ( - ( col0 ) ) IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3290
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) * ( - CAST ( + col1 AS INTEGER ) ) + - ( - ( col0 ) ) IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT + - COUNT( DISTINCT col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3291
SELECT + - COUNT ( DISTINCT col0 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT - ( - - 86 ) + - SUM( ALL + - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
141

skipif mysql # not compatible
query I rowsort label-3292
SELECT - ( - - 86 ) + - SUM ( ALL + - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
141

query I rowsort
SELECT col0 AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3294
SELECT ALL - 89 AS col0, + COUNT( * ) FROM tab1
----
-89
3

skipif mysql # not compatible
query II rowsort label-3294
SELECT ALL - 89 AS col0, + COUNT ( * ) FROM tab1
----
-89
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 * 88 * - 33 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + + col1 AS col2, col2 * + + 13 FROM tab0 AS cor0
----
1
1287
21
130
81
611

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3297
SELECT + 13 + col0 + + col0 * col0 * + - col0 * - - col0 + CAST( - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-52200586
-6765233
-68574925

skipif mysql # not compatible
query I rowsort label-3297
SELECT + 13 + col0 + + col0 * col0 * + - col0 * - - col0 + CAST ( - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-52200586
-6765233
-68574925

onlyif mysql # DIV for integer division: 
query I rowsort label-3298
SELECT - + col1 DIV - + 68 + - col0 * + - col2 FROM tab0 AS cor0
----
706
870
9603

skipif mysql # not compatible
query I rowsort label-3298
SELECT - + col1 / - + 68 + - col0 * + - col2 FROM tab0 AS cor0
----
706
870
9603

query II rowsort
SELECT DISTINCT 36, + 23 * + 36 AS col0 FROM tab2 AS cor0
----
36
828

query II rowsort
SELECT DISTINCT + + col2 AS col2, - col1 AS col0 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 96 IS NOT NULL
----

query I rowsort
SELECT ALL 8 + - col1 AS col2 FROM tab0 cor0
----
-13
-73
7

query II rowsort
SELECT DISTINCT 62 + - ( + + col0 ), col0 AS col1 FROM tab1
----
-23
85
-29
91
11
51

query II rowsort
SELECT + col0 - + ( - + col1 ), - ( + 94 ) AS col2 FROM tab2
----
141
-94
142
-94
97
-94

query I rowsort
SELECT col0 + - col2 + + 68 FROM tab2 AS cor0
----
85
91
92

query I rowsort
SELECT ALL ( - ( + col2 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3307
SELECT - 12 - + - MIN( DISTINCT - - col2 ) AS col0 FROM tab2 WHERE NOT + col2 IS NOT NULL OR NOT ( NULL ) NOT IN ( + col1, CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3307
SELECT - 12 - + - MIN ( DISTINCT - - col2 ) AS col0 FROM tab2 WHERE NOT + col2 IS NOT NULL OR NOT ( NULL ) NOT IN ( + col1, CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - col1 + + 49 AS col1 FROM tab1
----
2
35
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, - ( - + col2 ) FROM tab2 AS cor0
----
23
23
40
40
58
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 < - col2 + + - col0
----

query I rowsort
SELECT ALL 36 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3312
SELECT ALL - col2 AS col0, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-3312
SELECT ALL - col2 AS col0, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT DISTINCT ( - + 1 ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL - - 4 AS col1 FROM tab0 cor0
----
4
4
4

query I rowsort
SELECT DISTINCT + col0 * + + 70 - + 3 + - col1 - 15 - - col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
3634
5986
6373

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3316
SELECT col2 DIV - ( - - CAST( ( + col1 ) AS SIGNED ) ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3316
SELECT col2 / - ( - - CAST ( ( + col1 ) AS INTEGER ) ) AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3317
SELECT ALL col2 / - - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL col2 / - - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3318
SELECT DISTINCT + COUNT( * ) DIV - 94 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3318
SELECT DISTINCT + COUNT ( * ) / - 94 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( - 49 + - + col2 + + col1 * ( + col1 ) ) > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT ALL COUNT( + col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3320
SELECT ALL COUNT ( + col1 ) AS col2 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + - 8 )
----

query I rowsort
SELECT ( - ( - col2 ) ) FROM tab2
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 - col0 IS NULL
----

query I rowsort
SELECT - 64 AS col0 FROM tab1 cor0
----
-64
-64
-64

query I rowsort
SELECT DISTINCT + col0 * col1 FROM tab0 cor0 WHERE + 75 NOT IN ( + col2 + + 29 * - col1, + 95 * - col1, col1 )
----
1215
1827
97

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 IN ( - col2 + - col1, 11 )
----

query III rowsort
SELECT * FROM tab2 WHERE col1 * + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + 9 FROM tab1 cor0
----
-9
-9
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 1 < NULL
----

query I rowsort
SELECT col0 + + ( - 90 ) + - 15 AS col1 FROM tab0 AS cor0
----
-18
-8
-90

query I rowsort
SELECT DISTINCT - + col2 AS col0 FROM tab1 AS cor0 WHERE NOT + 93 NOT BETWEEN + col1 * col1 / + + col0 AND NULL
----

query I rowsort
SELECT col2 + - 67 + ( - col1 ) AS col0 FROM tab0
----
-101
-78
31

query I rowsort
SELECT col2 + + + 92 FROM tab1
----
151
160
188

query I rowsort
SELECT 24 * - col1 + + - 51 FROM tab1
----
-1179
-171
-387

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT - - COUNT( * ) - + 16 + + COUNT( * ) FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3335
SELECT - - COUNT ( * ) - + 16 + + COUNT ( * ) FROM tab2 AS cor0
----
-10

query I rowsort
SELECT ALL + 70 * 61 + col0 AS col2 FROM tab2 AS cor0
----
4316
4334
4345

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT + COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3337
SELECT + COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT DISTINCT MIN( ( - + col2 ) ) * - 81 AS col2 FROM tab1
----
7776

skipif mysql # not compatible
query I rowsort label-3338
SELECT DISTINCT MIN ( ( - + col2 ) ) * - 81 AS col2 FROM tab1
----
7776

query I rowsort
SELECT ALL col2 * - 1 AS col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL 21 AS col2 FROM tab2
----
21
21
21

query I rowsort
SELECT ALL + 70 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT + ( ( + - col0 ) ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE 19 * col1 - + col0 * col1 + + + 73 + + + 48 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE 19 * col1 - + col0 * col1 + + + 73 + + + 48 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col2 ) col0 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 7 = ( col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT DISTINCT + COUNT( * ) * + ( + MAX( - - col1 ) ) AS col2 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-3347
SELECT DISTINCT + COUNT ( * ) * + ( + MAX ( - - col1 ) ) AS col2 FROM tab0 AS cor0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT COUNT( ALL col1 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3348
SELECT COUNT ( ALL col1 ) col1 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3349
SELECT ALL col1 DIV - 30 + col0 AS col2 FROM tab2 AS cor0
----
45
62
73

skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL col1 / - 30 + col0 AS col2 FROM tab2 AS cor0
----
45
62
73

query II rowsort
SELECT 26, 13 AS col1 FROM tab0 WHERE NOT + col0 IS NULL
----
26
13
26
13
26
13

query II rowsort
SELECT ALL 0, col0 FROM tab0
----
0
15
0
87
0
97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3352
SELECT ALL * FROM tab2 WHERE NOT CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3352
SELECT ALL * FROM tab2 WHERE NOT CAST ( NULL AS REAL ) IS NULL
----

query II rowsort
SELECT 8, + col0 AS col0 FROM tab1
----
8
51
8
85
8
91

query II rowsort
SELECT DISTINCT + col1, col2 AS col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT ALL - + col2 * + 67 FROM tab0 AS cor0
----
-3149
-6633
-670

onlyif mysql # aggregate syntax: 
query II rowsort label-3356
SELECT ALL + 21 col1, COUNT( * ) * - + 11 col0 FROM tab1 AS cor0
----
21
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3356
SELECT ALL + 21 col1, COUNT ( * ) * - + 11 col0 FROM tab1 AS cor0
----
21
-33

query I rowsort
SELECT DISTINCT + col2 + - col1 + - 80 * col0 * + ( - 64 ) - col2 FROM tab2
----
235469
327603
383933

query I rowsort
SELECT DISTINCT col2 + - 76 AS col2 FROM tab1
----
-17
-8
20

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 + 52 - col0 * + 3 = - 68
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 66 + + col0 * - ( + ( + 50 ) ) > - ( + col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3361
SELECT * FROM tab0 AS cor0 WHERE - 31 BETWEEN NULL AND + col1 * - + 10 + - col0 - - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3361
SELECT * FROM tab0 AS cor0 WHERE - 31 BETWEEN NULL AND + col1 * - + 10 + - col0 - - CAST ( NULL AS REAL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3362
SELECT - ( col1 ) DIV 26 DIV + 40 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3362
SELECT - ( col1 ) / 26 / + 40 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT + 62 * - - COUNT( * ) FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-3363
SELECT + 62 * - - COUNT ( * ) FROM tab2 AS cor0
----
186

onlyif mysql # aggregate syntax: 
query II rowsort label-3364
SELECT ALL - MAX( + 2 ), - 2 AS col0 FROM tab0 cor0
----
-2
-2

skipif mysql # not compatible
query II rowsort label-3364
SELECT ALL - MAX ( + 2 ), - 2 AS col0 FROM tab0 cor0
----
-2
-2

query I rowsort
SELECT DISTINCT col0 * - ( + 52 ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN - col2 AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3366
SELECT + col1 DIV - + 60 - 98 AS col1 FROM tab1
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-3366
SELECT + col1 / - + 60 - 98 AS col1 FROM tab1
----
-98
-98
-98

query I rowsort
SELECT - + col2 FROM tab2 WHERE col0 <> NULL
----

query I rowsort
SELECT col0 * - - col0 AS col0 FROM tab1 WHERE ( + col1 ) <> + 99 * col1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT DISTINCT COUNT( * ) * + 49 + - - 31 FROM tab1
----
178

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT COUNT ( * ) * + 49 + - - 31 FROM tab1
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT ALL + COUNT( * ) - ( + COUNT( * ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL + COUNT ( * ) - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT DISTINCT ( + MAX( 90 ) ) AS col0 FROM tab2 cor0
----
90

skipif mysql # not compatible
query I rowsort label-3371
SELECT DISTINCT ( + MAX ( 90 ) ) AS col0 FROM tab2 cor0
----
90

query II rowsort
SELECT 59 AS col0, + col2 AS col0 FROM tab0
----
59
10
59
47
59
99

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col2 + 62
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3374
SELECT - - CAST( - col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3374
SELECT - - CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3375
SELECT DISTINCT + - CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT + - CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT ALL - - COUNT( * ) * 68 FROM tab2 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-3376
SELECT ALL - - COUNT ( * ) * 68 FROM tab2 AS cor0
----
204

query I rowsort
SELECT DISTINCT + 19 * + 32 * + 82 FROM tab1 AS cor0
----
49856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * col0, 95 + + 25 col0 FROM tab2
----
2346
120
4928
120
5025
120

query I rowsort
SELECT - col2 * - col1 * + - col1 FROM tab0
----
-308367
-4410
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT + COUNT( * ) * + SUM( DISTINCT col1 ) AS col2 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-3380
SELECT + COUNT ( * ) * + SUM ( DISTINCT col1 ) AS col2 FROM tab1
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT MAX( ALL + 3 ) + + 98 AS col1 FROM tab2
----
101

skipif mysql # not compatible
query I rowsort label-3381
SELECT MAX ( ALL + 3 ) + + 98 AS col1 FROM tab2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT DISTINCT COUNT( ALL + 15 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT COUNT ( ALL + 15 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3383
SELECT - 5 + - - COUNT( * ) AS col2, COUNT( * ) AS col1 FROM tab1
----
-2
3

skipif mysql # not compatible
query II rowsort label-3383
SELECT - 5 + - - COUNT ( * ) AS col2, COUNT ( * ) AS col1 FROM tab1
----
-2
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3384
SELECT DISTINCT - + 1 DIV - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3384
SELECT DISTINCT - + 1 / - col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT ALL + 5 * + - 98 FROM tab2 AS cor0
----
-490
-490
-490

query I rowsort
SELECT + 78 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT + ( - ( - - 88 ) ) FROM tab2
----
-88
-88
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT - - SUM( ALL + col0 ) FROM tab1 cor0 WHERE col1 * - col1 - col0 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3389
SELECT - - SUM ( ALL + col0 ) FROM tab1 cor0 WHERE col1 * - col1 - col0 <> NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 - + - 30 AS col0 FROM tab0 AS cor0
----
111
31
51

query I rowsort
SELECT ALL - + col0 + 97 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
22
33
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + + col0 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3393
SELECT DISTINCT + 41 * - CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + col0 * + 89 * - - 56 < + ( - 28 ) * - 7 + + ( + col2 ) * ( - col0 )
----
123

skipif mysql # not compatible
query I rowsort label-3393
SELECT DISTINCT + 41 * - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + col0 * + 89 * - - 56 < + ( - 28 ) * - 7 + + ( + col2 ) * ( - col0 )
----
123

query I rowsort
SELECT ALL + - 73 + 84 AS col0 FROM tab0 AS cor0
----
11
11
11

query I rowsort
SELECT ALL 36 * - col1 + 17 FROM tab0
----
-19
-2899
-739

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - ( 84 ) = - + col2
----

query II rowsort
SELECT ALL 66 + col1 AS col0, - col1 + - + col0 AS col0 FROM tab2
----
117
-97
133
-142
143
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT ALL + SUM( ALL - - 26 ) * + 58 AS col2 FROM tab0 AS cor0
----
4524

skipif mysql # not compatible
query I rowsort label-3398
SELECT ALL + SUM ( ALL - - 26 ) * + 58 AS col2 FROM tab0 AS cor0
----
4524

query I rowsort
SELECT ALL 3 + + + 64 - + 35 AS col1 FROM tab2 cor0 WHERE ( NULL ) BETWEEN NULL AND col0 + + col0
----

query I rowsort
SELECT DISTINCT + - 86 AS col1 FROM tab2 AS cor0
----
-86

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL + - col2 + 4 FROM tab0 WHERE NOT col2 < NULL
----

query II rowsort
SELECT DISTINCT + 37 AS col1, + col1 AS col2 FROM tab1 AS cor0
----
37
14
37
47
37
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT - MAX( ALL - col0 ) AS col1 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-3404
SELECT - MAX ( ALL - col0 ) AS col1 FROM tab1 cor0
----
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - 92 / + 68 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - 75 AND NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col1, - 53 FROM tab0 AS cor0
----
15
-53
87
-53
97
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT ALL + ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL + ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3409
SELECT ALL - 84 + - CAST( + CAST( - 65 AS SIGNED ) AS SIGNED ) - - + col0 - 72 FROM tab1
----
-40
-6
0

skipif mysql # not compatible
query I rowsort label-3409
SELECT ALL - 84 + - CAST ( + CAST ( - 65 AS INTEGER ) AS INTEGER ) - - + col0 - 72 FROM tab1
----
-40
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col1, - col0 col2 FROM tab0
----
15
-15
87
-87
97
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 >= + - 48 / 4 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0 * + col1, ( col2 ) FROM tab2
----
2346
23
4928
40
5025
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3413
SELECT col0 AS col0 FROM tab2 WHERE + 45 <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3413
SELECT col0 AS col0 FROM tab2 WHERE + 45 <= - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col2 * - - col0 AS col1 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query II rowsort label-3415
SELECT ALL - col0 DIV - col1 AS col1, col0 * - 70 FROM tab2 AS cor0
----
0
-3220
0
-4480
1
-5250

skipif mysql # not compatible
query II rowsort label-3415
SELECT ALL - col0 / - col1 AS col1, col0 * - 70 FROM tab2 AS cor0
----
0
-3220
0
-4480
1
-5250

query I rowsort
SELECT + 68 * - + col1 AS col1 FROM tab2 AS cor0
----
-3468
-4556
-5236

query III rowsort
SELECT + col2, - 19 * - ( - col1 ) AS col0, 66 AS col0 FROM tab1 AS cor0
----
9 values hashing to c21554c220ec8a2558919ef535dcd087

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * + - col1, + 25 + - 88 * - 81 + + 81 + + 27 * - - 72 + ( + 52 ) col1 FROM tab2 AS cor0
----
2346
9230
4928
9230
5025
9230

query II rowsort
SELECT DISTINCT - - ( - + col2 ) AS col1, + col2 AS col0 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT ALL COUNT( - col0 ) FROM tab1 AS cor0 WHERE ( NOT - 11 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL COUNT ( - col0 ) FROM tab1 AS cor0 WHERE ( NOT - 11 IS NOT NULL )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3422
SELECT DISTINCT - 47 - + col0 / CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3422
SELECT DISTINCT - 47 - + col0 / CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 66 col1 FROM tab2 AS cor0
----
-66

query I rowsort
SELECT ALL + + col0 * col2 * - - col2 FROM tab2 AS cor0 WHERE NOT col0 + + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3425
SELECT ALL SUM( ALL col2 ), + 89 AS col1 FROM tab1 AS cor0
----
223
89

skipif mysql # not compatible
query II rowsort label-3425
SELECT ALL SUM ( ALL col2 ), + 89 AS col1 FROM tab1 AS cor0
----
223
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT ALL - MIN( ALL - col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL - MIN ( ALL - col0 ) FROM tab1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3427
SELECT ALL 94 DIV 16 + COUNT( DISTINCT col2 ) AS col1 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL 94 / 16 + COUNT ( DISTINCT col2 ) AS col1 FROM tab0
----
8

query II rowsort
SELECT DISTINCT col1, + col2 - + ( - - 6 ) FROM tab0
----
1
93
21
4
81
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT + COUNT( * ) - + - 88 AS col2 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-3429
SELECT + COUNT ( * ) - + - 88 AS col2 FROM tab0
----
91

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT + col2 <= + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3431
SELECT col1 DIV + + 79 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3431
SELECT col1 / + + 79 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3432
SELECT ALL + CAST( NULL AS DECIMAL ), - COUNT( * ) + - + MIN( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3432
SELECT ALL + CAST ( NULL AS REAL ), - COUNT ( * ) + - + MIN ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab1
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3433
SELECT - 14 - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3433
SELECT - 14 - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col0 * - - ( + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 col1 FROM tab1 AS cor0
----
54
54
54

query II rowsort
SELECT DISTINCT + col2 AS col2, + col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT DISTINCT SUM( - 0 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3437
SELECT DISTINCT SUM ( - 0 ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + 10 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT 34 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3441
SELECT ALL - CAST( - - col1 AS SIGNED ) FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL - CAST ( - - col1 AS INTEGER ) FROM tab0 cor0
----
-1
-21
-81

query II rowsort
SELECT ALL + ( + 72 ) AS col1, + ( - 13 ) AS col2 FROM tab2 AS cor0
----
72
-13
72
-13
72
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT - - SUM( ALL - col2 ) AS col2 FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3443
SELECT - - SUM ( ALL - col2 ) AS col2 FROM tab2 cor0
----
-121

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3445
SELECT ALL - col0 DIV + col0 + col0 + 94 * + 35 * col1 AS col1 FROM tab0 AS cor0
----
266504
3386
69176

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL - col0 / + col0 + col0 + 94 * + 35 * col1 AS col1 FROM tab0 AS cor0
----
266504
3386
69176

query I rowsort
SELECT ALL 67 + + col1 AS col1 FROM tab2
----
118
134
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3447
SELECT DISTINCT col2 + - CAST( - - col1 AS SIGNED ) AS col0 FROM tab1
----
21
54
82

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT col2 + - CAST ( - - col1 AS INTEGER ) AS col0 FROM tab1
----
21
54
82

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 55 / - 44 - + col1 - 83 * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab1 WHERE col2 + - ( - col2 ) + - + 57 * + col1 - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT ALL - ( + MAX( - + col0 ) ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL - ( + MAX ( - + col0 ) ) AS col0 FROM tab1
----
51

query II rowsort
SELECT - col2 + + ( - col1 ) AS col1, col2 FROM tab2
----
-117
40
-125
58
-74
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT DISTINCT MAX( col1 ) + - 23 AS col2 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT MAX ( col1 ) + - 23 AS col2 FROM tab1
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3453
SELECT - col0 + - col0 DIV - + ( + col1 ) FROM tab1
----
-48
-68
-90

skipif mysql # not compatible
query I rowsort label-3453
SELECT - col0 + - col0 / - + ( + col1 ) FROM tab1
----
-48
-68
-90

query I rowsort
SELECT DISTINCT col2 * 67 AS col0 FROM tab0
----
3149
6633
670

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT COUNT( * ) + + - 97 * - COUNT( * ) * 98 FROM tab0
----
28521

skipif mysql # not compatible
query I rowsort label-3455
SELECT COUNT ( * ) + + - 97 * - COUNT ( * ) * 98 FROM tab0
----
28521

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 IN ( + col1 / - - col1, - ( - + 10 ) + - + 17, + 85 * + col0 )
----

query I rowsort
SELECT DISTINCT - - 11 + 66 AS col1 FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL + 28 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT ALL col0 * - col0 * 14 AS col1 FROM tab0
----
-105966
-131726
-3150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3460
SELECT 81 - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT 81 - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - 12 - - 45 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE + + 58 * col0 / ( - 30 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT ALL - - COUNT( * ) - + 64 FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL - - COUNT ( * ) - + 64 FROM tab2 AS cor0
----
-61

query I rowsort
SELECT + col0 + 22 AS col1 FROM tab0 AS cor0
----
109
119
37

query I rowsort
SELECT DISTINCT 96 - + col1 AS col2 FROM tab1 AS cor0
----
49
82
91

query I rowsort
SELECT + + 21 + + + col2 FROM tab0 AS cor0
----
120
31
68

query I rowsort
SELECT ALL - 10 * + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 29 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col1, 86 * + 73 AS col2 FROM tab2 AS cor0
----
51
6278
67
6278
77
6278

query I rowsort
SELECT ALL - col2 * + - 41 * col2 FROM tab1 AS cor0
----
142721
189584
377856

onlyif mysql # DIV for integer division: 
query I rowsort label-3471
SELECT ALL 85 DIV + 49 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL 85 / + 49 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE NOT - col0 IS NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3473
SELECT ALL + 72 DIV 58 * + + 58 * col0 * + col0 FROM tab0
----
13050
439002
545722

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL + 72 / 58 * + + 58 * col0 * + col0 FROM tab0
----
13050
439002
545722

query I rowsort
SELECT - - ( + - col1 ) + ( + col2 ) FROM tab2 WHERE NOT - ( + - col2 ) / - - col2 * - + 77 IS NULL
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3475
SELECT - + CAST( NULL AS SIGNED ) / + - col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3475
SELECT - + CAST ( NULL AS INTEGER ) / + - col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3476
SELECT DISTINCT CAST( 3 AS SIGNED ) AS col0, col1 FROM tab2
----
3
51
3
67
3
77

skipif mysql # not compatible
query II rowsort label-3476
SELECT DISTINCT CAST ( 3 AS INTEGER ) AS col0, col1 FROM tab2
----
3
51
3
67
3
77

query I rowsort
SELECT ALL + 41 AS col2 FROM tab2
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT ALL + + COUNT( * ) + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL + + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-3479
SELECT - 71 DIV - - col1 + + col1 + + col2 * + + col0 AS col2 FROM tab0 cor0
----
786
888
9533

skipif mysql # not compatible
query I rowsort label-3479
SELECT - 71 / - - col1 + + col1 + + col2 * + + col0 AS col2 FROM tab0 cor0
----
786
888
9533

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3480
SELECT - CAST( - + MIN( - col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3480
SELECT - CAST ( - + MIN ( - col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-58

query II rowsort
SELECT - 47, - col1 AS col1 FROM tab1 AS cor0
----
-47
-14
-47
-47
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3482
SELECT MAX( + + col1 ) DIV + + 42 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3482
SELECT MAX ( + + col1 ) / + + 42 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT DISTINCT + - COUNT( * ) + 68 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-3483
SELECT DISTINCT + - COUNT ( * ) + 68 FROM tab0 AS cor0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3484
SELECT DISTINCT + + col1 + + col1 + - CAST( CAST( - col2 AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
124
162
69

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT + + col1 + + col1 + - CAST ( CAST ( - col2 AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
124
162
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2 col0, col1 FROM tab0 WHERE NULL BETWEEN NULL AND + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col2 - 4 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col0 + 26 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * - col0 + - col1 AS col2 FROM tab2
----
-2167
-4173
-5692

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT ALL - SUM( ALL - col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL - SUM ( ALL - col0 ) AS col1 FROM tab1
----
227

query I rowsort
SELECT ALL - 12 + + + col0 FROM tab1
----
39
73
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT MAX( ALL + 7 ) FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-3491
SELECT MAX ( ALL + 7 ) FROM tab0
----
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3492
SELECT ( + + CAST( NULL AS DECIMAL ) ) - - AVG ( - + col1 ) + ( - 4 ) / COUNT( * ) * + 79 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT ( + + CAST ( NULL AS REAL ) ) - - AVG ( - + col1 ) + ( - 4 ) / COUNT ( * ) * + 79 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT DISTINCT + COUNT( * ) - COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3493
SELECT DISTINCT + COUNT ( * ) - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT + MAX( + col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3494
SELECT + MAX ( + col2 ) AS col0 FROM tab1
----
96

query I rowsort
SELECT DISTINCT - 56 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3496
SELECT CAST( NULL AS SIGNED ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3496
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + col1 + - 44 AS col2 FROM tab1 AS cor0
----
-30
-39
3

query I rowsort
SELECT DISTINCT col2 * - + ( - + 17 ) AS col0 FROM tab0 AS cor0
----
1683
170
799

query I rowsort
SELECT ( + 59 ) FROM tab1 AS cor0
----
59
59
59

query I rowsort
SELECT DISTINCT - + 33 * + + col1 AS col1 FROM tab2 AS cor0
----
-1683
-2211
-2541

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 75 AND NULL
----

query I rowsort
SELECT DISTINCT + 39 * + 35 AS col2 FROM tab1 AS cor0
----
1365

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT DISTINCT - COUNT( ALL - 54 ) * - SUM( 46 ) AS col0 FROM tab1 AS cor0
----
414

skipif mysql # not compatible
query I rowsort label-3503
SELECT DISTINCT - COUNT ( ALL - 54 ) * - SUM ( 46 ) AS col0 FROM tab1 AS cor0
----
414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3504
SELECT DISTINCT + - SUM( ALL - - 39 ) * - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT + - SUM ( ALL - - 39 ) * - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, col2 * + 19 + 23 col0 FROM tab2
----
51
460
67
1125
77
783

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT + COUNT( DISTINCT - ( - 72 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3506
SELECT + COUNT ( DISTINCT - ( - 72 ) ) FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 2, + col2 - col0 col1 FROM tab2
----
-2
-17
-2
-23
-2
-24

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 48 / + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( col2 ) * - ( - - col0 ) + - col0 AS col2 FROM tab1 AS cor0
----
-4947
-5100
-6279

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT + MIN( col2 ) col2 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3510
SELECT + MIN ( col2 ) col2 FROM tab1
----
59

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> - + col1 + - col1
----

query I rowsort
SELECT DISTINCT + + 2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
2

query II rowsort
SELECT + 35 * - col2 AS col1, - 95 * + col0 FROM tab1
----
-2065
-8075
-2380
-8645
-3360
-4845

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= + col2 + + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3515
SELECT DISTINCT + col2 * - CAST( - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-3515
SELECT DISTINCT + col2 * - CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT 54 + - 13 AS col2 FROM tab2 AS cor0
----
41
41
41

query I rowsort
SELECT ( - - col1 ) * - 36 + - + col0 FROM tab1 AS cor0
----
-1783
-265
-555

query I rowsort
SELECT ALL + - col1 + col1 + + col1 * col0 AS col2 FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3519
SELECT + col0 + + 53 + CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3519
SELECT + col0 + + 53 + CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 col1 FROM tab0 cor0
----
86

query I rowsort
SELECT + col1 * 47 + ( + col1 ) FROM tab1
----
2256
240
672

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT DISTINCT COUNT( * ) * + + 32 * - 74 + + COUNT( * ) * - - ( + 86 ) FROM tab2
----
-6846

skipif mysql # not compatible
query I rowsort label-3522
SELECT DISTINCT COUNT ( * ) * + + 32 * - 74 + + COUNT ( * ) * - - ( + 86 ) FROM tab2
----
-6846

query I rowsort
SELECT ALL col2 + - - 32 + col2 * ( - + 74 ) * + 75 * + 74 FROM tab1
----
-24231209
-27927500
-39427072

query I rowsort
SELECT - - col2 FROM tab2 WHERE + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT COUNT( ALL - 68 ) + 34 AS col1 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-3525
SELECT COUNT ( ALL - 68 ) + 34 AS col1 FROM tab2
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 29 ) + col2 + - col0 col0 FROM tab2
----
-46
-52
-53

query I rowsort
SELECT DISTINCT + col2 * 51 FROM tab1
----
3009
3468
4896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 col1 FROM tab2
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT DISTINCT MAX( 10 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3529
SELECT DISTINCT MAX ( 10 ) FROM tab0 AS cor0
----
10

query II rowsort
SELECT ALL col0 AS col1, col2 * col0 AS col2 FROM tab2 AS cor0
----
46
1058
64
2560
75
4350

query II rowsort
SELECT col2 + + col2, + col1 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
116
67
46
51
80
77

query I rowsort
SELECT ALL col1 - - + col1 * + 19 * 61 AS col1 FROM tab2 AS cor0
----
59160
77720
89320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3533
SELECT + COUNT( * ) DIV + 67 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3533
SELECT + COUNT ( * ) / + 67 FROM tab0
----
0

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3535
SELECT + ( + col0 ) DIV - col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3535
SELECT + ( + col0 ) / - col0 FROM tab1
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3536
SELECT - col1 DIV ( + col2 ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3536
SELECT - col1 / ( + col2 ) AS col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3537
SELECT - col2 DIV + 88 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3537
SELECT - col2 / + 88 AS col2 FROM tab0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3538
SELECT - CAST( NULL AS SIGNED ) / - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3538
SELECT - CAST ( NULL AS INTEGER ) / - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3539
SELECT + 76 DIV col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3539
SELECT + 76 / col1 FROM tab2
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * col1 col2 FROM tab1
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3541
SELECT * FROM tab0 WHERE ( + 38 + CAST( col2 AS SIGNED ) ) <> ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3541
SELECT * FROM tab0 WHERE ( + 38 + CAST ( col2 AS INTEGER ) ) <> ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 65 - col0 AS col2 FROM tab2
----
-10
1
19

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE NOT 14 * col1 IS NOT NULL
----

query I rowsort
SELECT ( + 96 ) FROM tab0
----
96
96
96

query I rowsort
SELECT ALL 74 FROM tab2 WHERE NOT + col2 + - col2 > ( - col1 )
----

query I rowsort
SELECT - 57 * - 9 FROM tab2 WHERE ( - ( col0 ) * col0 ) IS NOT NULL
----
513
513
513

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT ( ( COUNT( * ) ) ) FROM tab2 WHERE NOT NULL NOT IN ( 16 )
----
0

skipif mysql # not compatible
query I rowsort label-3547
SELECT ( ( COUNT ( * ) ) ) FROM tab2 WHERE NOT NULL NOT IN ( 16 )
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 ) IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3549
SELECT ALL ( MAX( ALL + CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL ( MAX ( ALL + CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT ALL + MIN( ALL - ( - 66 ) ) FROM tab2 WHERE NOT + col0 IN ( - col1 )
----
66

skipif mysql # not compatible
query I rowsort label-3550
SELECT ALL + MIN ( ALL - ( - 66 ) ) FROM tab2 WHERE NOT + col0 IN ( - col1 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT MAX( + col2 ) col1 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3551
SELECT MAX ( + col2 ) col1 FROM tab2
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3552
SELECT DISTINCT 44 DIV MIN( col2 * + col1 ) + + 30 * 95 AS col2 FROM tab1 WHERE NULL IS NULL
----
2850

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT 44 / MIN ( col2 * + col1 ) + + 30 * 95 AS col2 FROM tab1 WHERE NULL IS NULL
----
2850

query III rowsort
SELECT * FROM tab0 WHERE ( 36 * - ( col2 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * col1 + 79 AS col1 FROM tab1
----
1423
3275
374

query I rowsort
SELECT ALL col1 / col2 FROM tab2 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT ALL col2 * + 12 AS col1 FROM tab1 AS cor0
----
1152
708
816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3557
SELECT + CAST( + ( CAST( + col1 AS SIGNED ) ) AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3557
SELECT + CAST ( + ( CAST ( + col1 AS INTEGER ) ) AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3558
SELECT * FROM tab2 WHERE NOT ( - CAST( 90 AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3558
SELECT * FROM tab2 WHERE NOT ( - CAST ( 90 AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT ALL COUNT( ALL - col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL COUNT ( ALL - col0 ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3560
SELECT 1 DIV col1 + col0 AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3560
SELECT 1 / col1 + col0 AS col1 FROM tab1
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 col2 FROM tab1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3562
SELECT - CAST( + col0 AS SIGNED ) + + CAST( ( + col2 ) - col1 AS SIGNED ) FROM tab1 AS cor0
----
-31
-70
31

skipif mysql # not compatible
query I rowsort label-3562
SELECT - CAST ( + col0 AS INTEGER ) + + CAST ( ( + col2 ) - col1 AS INTEGER ) FROM tab1 AS cor0
----
-31
-70
31

query I rowsort
SELECT DISTINCT + - col1 * - ( + ( - col0 ) + - col2 * ( - 15 ) ) FROM tab0 AS cor0
----
1323
1388
55890

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + 66 = NULL
----

query I rowsort
SELECT ALL 51 * + 87 FROM tab0 AS cor0
----
4437
4437
4437

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT - COUNT( * ) * ( 9 ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3566
SELECT - COUNT ( * ) * ( 9 ) FROM tab2 AS cor0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3567
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( col0 * col0 + col2 * + CAST( - col1 AS DECIMAL ) ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3567
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( col0 * col0 + col2 * + CAST ( - col1 AS REAL ) ) IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( + 6 * + col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT ALL + + 75 * + ( + COUNT( 14 ) + - 45 ) FROM tab2 AS cor0
----
-3150

skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL + + 75 * + ( + COUNT ( 14 ) + - 45 ) FROM tab2 AS cor0
----
-3150

query I rowsort
SELECT ALL 39 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
39
39
39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3571
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / AVG ( col1 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT + CAST ( NULL AS REAL ) / AVG ( col1 ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 80 * col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3572
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 80 * col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( - col0 * col0 ) NOT IN ( - col1 / col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( 55 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) < col2 * + 3 + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 col0 FROM tab0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3577
SELECT DISTINCT 55 + col2 DIV col1 AS col1 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-3577
SELECT DISTINCT 55 + col2 / col1 AS col1 FROM tab2
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-3578
SELECT DISTINCT + col2 DIV col0 + - 98 FROM tab2
----
-98

skipif mysql # not compatible
query I rowsort label-3578
SELECT DISTINCT + col2 / col0 + - 98 FROM tab2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT - COUNT( * ) FROM tab2 WHERE NULL = - col1
----
0

skipif mysql # not compatible
query I rowsort label-3579
SELECT - COUNT ( * ) FROM tab2 WHERE NULL = - col1
----
0

query I rowsort
SELECT + col0 * + 26 - + col1 FROM tab2
----
1145
1587
1883

query I rowsort
SELECT ALL col2 * 11 + - col1 FROM tab1
----
1042
644
701

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT DISTINCT COUNT( * ) + 56 AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3582
SELECT DISTINCT COUNT ( * ) + 56 AS col2 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT ALL - MAX( + 63 ) * 85 + - 75 FROM tab0
----
-5430

skipif mysql # not compatible
query I rowsort label-3583
SELECT ALL - MAX ( + 63 ) * 85 + - 75 FROM tab0
----
-5430

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT ALL 90 - + MAX( ALL col0 ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL 90 - + MAX ( ALL col0 ) FROM tab2
----
15

query I rowsort
SELECT + col2 + + - col1 AS col2 FROM tab1
----
21
54
82

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + col2 + + col0 AND 12
----

query I rowsort
SELECT - ( + col1 ) + + col1 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 56 - + col1 * col2 FROM tab2
----
-1117
-3024
-3830

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0 * + ( 77 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 58 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3591
SELECT * FROM tab2 cor0 WHERE ( col0 ) NOT BETWEEN ( + col1 * CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3591
SELECT * FROM tab2 cor0 WHERE ( col0 ) NOT BETWEEN ( + col1 * CAST ( NULL AS INTEGER ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT DISTINCT + 4 - + + SUM( 9 ) AS col1 FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3592
SELECT DISTINCT + 4 - + + SUM ( 9 ) AS col1 FROM tab2 cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT ALL - - 10 - - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
19

skipif mysql # not compatible
query I rowsort label-3593
SELECT ALL - - 10 - - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
19

query II rowsort
SELECT col1, 62 AS col2 FROM tab2
----
51
62
67
62
77
62

query I rowsort
SELECT + + 86 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col1 > ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3597
SELECT col2 DIV col1 * + 12 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3597
SELECT col2 / col1 * + 12 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE NOT NULL < - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3600
SELECT DISTINCT - CAST( NULL AS SIGNED ), col2 col0 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-3600
SELECT DISTINCT - CAST ( NULL AS INTEGER ), col2 col0 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN col1 * + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT DISTINCT + - ( + MIN( ALL + ( + col0 ) ) ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3602
SELECT DISTINCT + - ( + MIN ( ALL + ( + col0 ) ) ) FROM tab1 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3603
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3603
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT col2 AS col1, + col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL OR NOT NULL IS NULL
----

query II rowsort
SELECT - - col1, + col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + col2, ( - col0 ) col2 FROM tab2
----
1600
-64
3364
-75
529
-46

query I rowsort
SELECT + 43 FROM tab0 WHERE NOT ( NULL ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT MIN( + + ( + + 52 ) ) AS col0 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-3609
SELECT MIN ( + + ( + + 52 ) ) AS col0 FROM tab1
----
52

query III rowsort
SELECT * FROM tab1 WHERE NOT - + ( - - col2 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT ( - 62 ) * + COUNT( * ) col2 FROM tab2
----
-186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3611
SELECT ( - 62 ) * + COUNT ( * ) col2 FROM tab2
----
-186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3612
SELECT CAST( NULL AS SIGNED ) + SUM( ALL + col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3612
SELECT CAST ( NULL AS INTEGER ) + SUM ( ALL + col0 ) FROM tab2
----
NULL

query I rowsort
SELECT ALL 95 * col2 FROM tab2
----
2185
3800
5510

query I rowsort
SELECT DISTINCT - 43 AS col1 FROM tab2 WHERE NOT ( NULL ) <= ( col0 * + col1 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( ( + col0 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT DISTINCT - COUNT( DISTINCT 91 ) * - 77 - - 82 col1 FROM tab2 AS cor0
----
159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3616
SELECT DISTINCT - COUNT ( DISTINCT 91 ) * - 77 - - 82 col1 FROM tab2 AS cor0
----
159

query I rowsort
SELECT DISTINCT + col2 * 41 + + ( - 69 ) * col2 AS col2 FROM tab0 cor0
----
-1316
-2772
-280

query I rowsort
SELECT ALL + 73 * - - 5 AS col1 FROM tab1
----
365
365
365

query III rowsort
SELECT * FROM tab1 WHERE col0 * col1 NOT IN ( - 6 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3620
SELECT * FROM tab0 WHERE ( + 91 * - CAST( + col1 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3620
SELECT * FROM tab0 WHERE ( + 91 * - CAST ( + col1 AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT DISTINCT + SUM( - - col0 ) AS col2 FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-3621
SELECT DISTINCT + SUM ( - - col0 ) AS col2 FROM tab1 cor0
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 64 col1 FROM tab2 AS cor0
----
104
122
87

query I rowsort
SELECT ALL 0 * col2 AS col0 FROM tab1 AS cor0 WHERE NOT 18 * + col1 > 67
----

query II rowsort
SELECT - col0 + + col1 * + col2, + col2 AS col2 FROM tab1 AS cor0
----
1293
96
210
59
3105
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3625
SELECT ALL + + col0 * 31 + col1 + ( + col1 ) DIV col0 AS col2 FROM tab1 AS cor0
----
1595
2640
2868

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL + + col0 * 31 + col1 + ( + col1 ) / col0 AS col2 FROM tab1 AS cor0
----
1595
2640
2868

onlyif mysql # DIV for integer division: 
query I rowsort label-3626
SELECT DISTINCT 66 + ( - 54 ) * + + 2 - - col0 DIV - + col0 FROM tab0
----
-43

skipif mysql # not compatible
query I rowsort label-3626
SELECT DISTINCT 66 + ( - 54 ) * + + 2 - - col0 / - + col0 FROM tab0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3627
SELECT ALL CAST( + col1 AS SIGNED ) AS col0 FROM tab2 WHERE col1 * + col0 * - - col2 * + + ( col0 ) > ( 13 )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3627
SELECT ALL CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 WHERE col1 * + col0 * - - col2 * + + ( col0 ) > ( 13 )
----
51
67
77

query III rowsort
SELECT * FROM tab2 WHERE + 56 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 NOT BETWEEN - 53 AND NULL
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3630
SELECT DISTINCT - 34 + + 5 FROM tab1, tab2 AS cor0 WHERE 92 IS NOT NULL OR NOT + CAST( NULL AS SIGNED ) IS NULL
----
-29

skipif mysql # not compatible
query I rowsort label-3630
SELECT DISTINCT - 34 + + 5 FROM tab1, tab2 AS cor0 WHERE 92 IS NOT NULL OR NOT + CAST ( NULL AS INTEGER ) IS NULL
----
-29

query I rowsort
SELECT DISTINCT + 55 * col0 + + col2 FROM tab1
----
2901
4734
5073

query I rowsort
SELECT + ( 68 ) AS col2 FROM tab2
----
68
68
68

query I rowsort
SELECT - - ( 18 ) FROM tab1 AS cor0
----
18
18
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3634
SELECT - + CAST( MIN( DISTINCT + + col0 ) AS SIGNED ) * ( 67 ) FROM tab2 AS cor0
----
-3082

skipif mysql # not compatible
query I rowsort label-3634
SELECT - + CAST ( MIN ( DISTINCT + + col0 ) AS INTEGER ) * ( 67 ) FROM tab2 AS cor0
----
-3082

query I rowsort
SELECT + ( + + col2 ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT SUM( DISTINCT - - col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3636
SELECT SUM ( DISTINCT - - col0 ) FROM tab1 AS cor0
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3637
SELECT DISTINCT - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 WHERE NOT ( + col2 ) BETWEEN 39 AND ( - 22 + - 86 * + col2 * 52 - + 66 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3637
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 WHERE NOT ( + col2 ) BETWEEN 39 AND ( - 22 + - 86 * + col2 * 52 - + 66 )
----
NULL

query I rowsort
SELECT + ( 32 ) FROM tab0 AS cor0
----
32
32
32

query II rowsort
SELECT DISTINCT 18, col2 AS col0 FROM tab0 AS cor0
----
18
10
18
47
18
99

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 82 * - col0 <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT ALL - 10 * - 97 * COUNT( - col1 ) AS col2 FROM tab0
----
2910

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL - 10 * - 97 * COUNT ( - col1 ) AS col2 FROM tab0
----
2910

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3642
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL NOT IN ( + CAST( NULL AS SIGNED ) / + col1 ) ) )
----

skipif mysql # not compatible
query III rowsort label-3642
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL NOT IN ( + CAST ( NULL AS INTEGER ) / + col1 ) ) )
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 cor0 WHERE - 23 + + col0 = ( + 43 * + col1 + - col0 )
----

query I rowsort
SELECT DISTINCT - 73 * + 55 * + + ( - 53 ) FROM tab1 AS cor0
----
212795

query I rowsort
SELECT DISTINCT col0 FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( + col0, col0 )
----

query I rowsort
SELECT + col2 + + 35 AS col2 FROM tab0 WHERE NOT - - 24 + + + 47 + + col0 <> + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT + COUNT( DISTINCT + + 22 ) * - - ( - + 29 ) FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-3647
SELECT + COUNT ( DISTINCT + + 22 ) * - - ( - + 29 ) FROM tab2
----
-29

query II rowsort
SELECT DISTINCT - col2 * - col1 + - 62 AS col1, 36 AS col0 FROM tab2
----
1111
36
3018
36
3824
36

query I rowsort
SELECT + - col0 - col0 * - 97 FROM tab2 WHERE NOT NULL BETWEEN NULL AND - col1 * + 93
----

query II rowsort
SELECT ALL - col0 * col1 + - 63 AS col0, - col1 + + - ( col2 ) + col0 AS col0 FROM tab1
----
-4340
-24
-488
21
-777
-59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 90 * - 96 = 9
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * + 23 FROM tab1
----
1173
1955
2093

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + - 98 ) IS NOT NULL
----

query I rowsort
SELECT - ( + 64 ) AS col2 FROM tab2
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT - MAX( - col1 ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-3655
SELECT - MAX ( - col1 ) FROM tab2 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT ALL - ( - MIN( DISTINCT + col1 ) ) + + 1 FROM tab1 cor0 WHERE NOT ( col1 + + col2 ) IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL - ( - MIN ( DISTINCT + col1 ) ) + + 1 FROM tab1 cor0 WHERE NOT ( col1 + + col2 ) IS NULL
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT ALL - + COUNT( * ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL - + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3658
SELECT - - 17 DIV 79 + - - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3658
SELECT - - 17 / 79 + - - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - + 3 ) <> col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 94 + + + col1 * - - col1 FROM tab2
----
2695
4583
6023

query I rowsort
SELECT - col0 * - - 80 * - + col2 * col1 + col1 AS col2 FROM tab2 AS cor0
----
15769677
23316067
4316691

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 43 * + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 = + col1 + ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
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-3664
SELECT ALL + - COUNT ( * ) col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT - 17 + + - 3 + + col0 AS col1 FROM tab2
----
26
44
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3666
SELECT + 45 - CAST( COUNT( ALL + 89 ) AS SIGNED ) col0 FROM tab2
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3666
SELECT + 45 - CAST ( COUNT ( ALL + 89 ) AS INTEGER ) col0 FROM tab2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT ALL 24 + + ( + - COUNT( * ) ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-3667
SELECT ALL 24 + + ( + - COUNT ( * ) ) FROM tab1
----
21

query I rowsort
SELECT ALL ( + 31 ) - ( - - col2 ) * + 37 FROM tab0
----
-1708
-339
-3632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3669
SELECT + 11 + + ( CAST( NULL AS SIGNED ) ) + - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3669
SELECT + 11 + + ( CAST ( NULL AS INTEGER ) ) + - col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3670
SELECT CAST( col2 AS SIGNED ) FROM tab2 WHERE NULL IS NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3670
SELECT CAST ( col2 AS INTEGER ) FROM tab2 WHERE NULL IS NULL
----
23
40
58

query II rowsort
SELECT col2 AS col1, - 16 FROM tab0
----
10
-16
47
-16
99
-16

query I rowsort
SELECT ALL - 21 * + col1 AS col2 FROM tab2
----
-1071
-1407
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE - 92 + 69 > + 12
----
0

skipif mysql # not compatible
query I rowsort label-3673
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE - 92 + 69 > + 12
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT ALL MAX( - 99 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL MAX ( - 99 ) FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3675
SELECT * FROM tab0 cor0 WHERE NOT col0 * + + ( CAST( NULL AS DECIMAL ) ) * - 41 / 16 + - col1 + col1 + - - col2 + + col1 + col0 * - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3675
SELECT * FROM tab0 cor0 WHERE NOT col0 * + + ( CAST ( NULL AS REAL ) ) * - 41 / 16 + - col1 + col1 + - - col2 + + col1 + col0 * - col0 IS NULL
----

query I rowsort
SELECT ALL - 50 * + col0 AS col0 FROM tab1 AS cor0
----
-2550
-4250
-4550

query I rowsort
SELECT + col1 * - + 95 FROM tab2 cor0
----
-4845
-6365
-7315

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1, + ( col1 ) * - col1 AS col2 FROM tab0
----
1
-1
21
-441
81
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT DISTINCT - MAX( + - 1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3680
SELECT DISTINCT - MAX ( + - 1 ) AS col1 FROM tab0
----
1

query II rowsort
SELECT ALL + col0 AS col0, col0 * + 10 + + col1 AS col1 FROM tab1 AS cor0
----
51
524
85
855
91
957

query II rowsort
SELECT DISTINCT - 47 AS col2, - col0 AS col1 FROM tab1 AS cor0
----
-47
-51
-47
-85
-47
-91

query II rowsort
SELECT DISTINCT + - col1 * ( + + 28 ) + col1 AS col0, + col1 FROM tab0 AS cor0
----
-2187
81
-27
1
-567
21

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * + col0 + - ( + col2 ) > + - 52
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3685
SELECT ALL CAST( col2 AS SIGNED ) * - col0 + - 37 FROM tab0 cor0
----
-742
-907
-9640

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL CAST ( col2 AS INTEGER ) * - col0 + - 37 FROM tab0 cor0
----
-742
-907
-9640

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT + COUNT( * ) * - - 18 * - 31 AS col1 FROM tab1 AS cor0
----
-1674

skipif mysql # not compatible
query I rowsort label-3686
SELECT + COUNT ( * ) * - - 18 * - 31 AS col1 FROM tab1 AS cor0
----
-1674

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT MAX( ALL - 86 ) AS col0 FROM tab1 cor0
----
-86

skipif mysql # not compatible
query I rowsort label-3687
SELECT MAX ( ALL - 86 ) AS col0 FROM tab1 cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT ALL + + 51 + - COUNT( * ) col0 FROM tab1 cor0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3688
SELECT ALL + + 51 + - COUNT ( * ) col0 FROM tab1 cor0
----
48

query I rowsort
SELECT ALL + 36 AS col0 FROM tab0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT ( + ( - COUNT( DISTINCT + 49 ) ) ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3690
SELECT ( + ( - COUNT ( DISTINCT + 49 ) ) ) FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT - COUNT( ALL - col1 ) + - COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-3691
SELECT - COUNT ( ALL - col1 ) + - COUNT ( * ) FROM tab2
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 81 + - + 50 col2, + col0 AS col0 FROM tab0
----
31
15
31
87
31
97

query III rowsort
SELECT * FROM tab0 WHERE + ( col2 ) / - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + - - 18 + 28 AS col0 FROM tab2
----
113
123
97

onlyif mysql # DIV for integer division: 
query II rowsort label-3695
SELECT DISTINCT + col0 + col2, col0 * - - ( - ( 35 ) ) * + + ( col0 ) DIV - col0 col2 FROM tab2
----
104
2240
133
2625
69
1610

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3695
SELECT DISTINCT + col0 + col2, col0 * - - ( - ( 35 ) ) * + + ( col0 ) / - col0 col2 FROM tab2
----
104
2240
133
2625
69
1610

query I rowsort
SELECT DISTINCT - ( ( - col2 ) ) FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3697
SELECT + ( - 61 ) / + ( + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3697
SELECT + ( - 61 ) / + ( + CAST ( NULL AS REAL ) ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3698
SELECT DISTINCT - 11 + - - 99 * - + CAST( - col2 AS SIGNED ) AS col2 FROM tab1
----
5830
6721
9493

skipif mysql # not compatible
query I rowsort label-3698
SELECT DISTINCT - 11 + - - 99 * - + CAST ( - col2 AS INTEGER ) AS col2 FROM tab1
----
5830
6721
9493

query I rowsort
SELECT DISTINCT + - col1 - col0 AS col1 FROM tab1 AS cor0
----
-138
-65
-90

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3701
SELECT - col2 + + + 81 + + CAST( NULL AS SIGNED ) / 62 + - - ( + + col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3701
SELECT - col2 + + + 81 + + CAST ( NULL AS INTEGER ) / 62 + - - ( + + col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 + + + col2 AS col1 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT 99 FROM tab0 AS cor0 WHERE col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT ALL - SUM( ALL - 70 ) FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-3704
SELECT ALL - SUM ( ALL - 70 ) FROM tab1 AS cor0
----
210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3705
SELECT DISTINCT 74 + + CAST( + 78 AS SIGNED ), COUNT( * ) col1 FROM tab1 AS cor0
----
152
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3705
SELECT DISTINCT 74 + + CAST ( + 78 AS INTEGER ), COUNT ( * ) col1 FROM tab1 AS cor0
----
152
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT COUNT( + 98 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3706
SELECT COUNT ( + 98 ) AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE - col1 NOT IN ( - 44 )
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT ( + - MIN( DISTINCT + 86 ) ) FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-3709
SELECT ( + - MIN ( DISTINCT + 86 ) ) FROM tab1
----
-86

query I rowsort
SELECT ALL col2 * + 55 FROM tab0
----
2585
5445
550

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3711
SELECT CAST( NULL AS DECIMAL ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3711
SELECT CAST ( NULL AS REAL ) col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3712
SELECT - - MAX( 86 ) * COUNT( + - col2 ) + - 48 col1, - 40 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
210
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3712
SELECT - - MAX ( 86 ) * COUNT ( + - col2 ) + - 48 col1, - 40 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
210
-40

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE ( - col2 + + col2 ) IN ( - 38, + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3714
SELECT DISTINCT + COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3714
SELECT DISTINCT + COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE NULL <> NULL
----
NULL

query I rowsort
SELECT DISTINCT + ( col1 ) * - + col2 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3716
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST( 38 AS SIGNED ) IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif mysql # not compatible
query IIIIII rowsort label-3716
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST ( 38 AS INTEGER ) IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT ALL + - 58 * + 65 FROM tab2 AS cor0
----
-3770
-3770
-3770

query I rowsort
SELECT - - 7 * + 48 FROM tab1 AS cor0
----
336
336
336

query I rowsort
SELECT ALL + + 61 * + col2 AS col1 FROM tab1 AS cor0
----
3599
4148
5856

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT ALL + COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL + COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
-9

query II rowsort
SELECT DISTINCT col1 * - - ( + col2 ) + 85 + - col0 AS col2, 33 + - col2 AS col0 FROM tab0 AS cor0
----
208
23
3877
-14
87
-66

query I rowsort
SELECT DISTINCT col2 * + - col1 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT ALL COUNT( * ) + 62 AS col0 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL COUNT ( * ) + 62 AS col0 FROM tab0 AS cor0
----
65

query I rowsort
SELECT 77 AS col2 FROM tab0 cor0 WHERE NOT col2 NOT IN ( + - col1, + 56 )
----

query I rowsort
SELECT - 41 * - col1 FROM tab0 cor0
----
3321
41
861

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 WHERE + 19 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3727
SELECT CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3727
SELECT CAST ( NULL AS REAL ) * - COUNT ( * ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE col0 <> - col0
----
14
47
5

query I rowsort
SELECT ALL + col0 * ( - + 3 ) * - col0 FROM tab2
----
12288
16875
6348

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3730
SELECT DISTINCT + + CAST( - col0 AS SIGNED ) + col2 + 86 / 30 * + col1 * - col0 AS col1 FROM tab0 WHERE - + 77 * CAST( + col2 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-3730
SELECT DISTINCT + + CAST ( - col0 AS INTEGER ) + col2 + 86 / 30 * + col1 * - col0 AS col1 FROM tab0 WHERE - + 77 * CAST ( + col2 AS INTEGER ) < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 74 > + 65
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT DISTINCT MAX( - 4 ) FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT MAX ( - 4 ) FROM tab0 AS cor0
----
-4

query II rowsort
SELECT + ( + col1 ) AS col1, col1 AS col0 FROM tab2
----
51
51
67
67
77
77

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 * + + col1 NOT BETWEEN + 93 * - col2 + - col0 * - col0 AND NULL
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT + ( - + 96 ) - - col2 * - col1 AS col2 FROM tab2 AS cor0
----
-1269
-3176
-3982

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 39
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3737
SELECT ALL - 13 + - CAST( NULL AS SIGNED ) - - + col2 * - col2 * col0 * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL - 13 + - CAST ( NULL AS INTEGER ) - - + col2 * - col2 * col0 * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 49 - - col2 * - col2 FROM tab2 cor0
----
-1551
-3315
-480

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( col2, 23, + 6, - col0 )
----

query I rowsort
SELECT ALL col2 * - 25 AS col1 FROM tab0 AS cor0
----
-1175
-2475
-250

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT - + ( + col2 ) * - ( + col1 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT DISTINCT MIN( DISTINCT + - 91 ) FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT MIN ( DISTINCT + - 91 ) FROM tab0
----
-91

query II rowsort
SELECT + col1 AS col1, col1 AS col0 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT COUNT( * ) * + + COUNT( * ) * + COUNT( - - 95 ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-3744
SELECT COUNT ( * ) * + + COUNT ( * ) * + COUNT ( - - 95 ) FROM tab2
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-3745
SELECT ALL COUNT( * ) AS col1, 48 FROM tab2
----
3
48

skipif mysql # not compatible
query II rowsort label-3745
SELECT ALL COUNT ( * ) AS col1, 48 FROM tab2
----
3
48

onlyif mysql # aggregate syntax: 
query II rowsort label-3746
SELECT COUNT( * ) AS col0, 17 * - + 86 FROM tab0
----
3
-1462

skipif mysql # not compatible
query II rowsort label-3746
SELECT COUNT ( * ) AS col0, 17 * - + 86 FROM tab0
----
3
-1462

query I rowsort
SELECT + 49 * - col1 AS col2 FROM tab1
----
-2303
-245
-686

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT MAX( + 94 ) FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
94

skipif mysql # not compatible
query I rowsort label-3748
SELECT MAX ( + 94 ) FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
94

query I rowsort
SELECT ALL 79 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col2 * + - 61 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col2 = - + 86
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3752
SELECT - ( CAST( - col1 AS SIGNED ) ) DIV 36 - 91 FROM tab2 AS cor0
----
-89
-90
-90

skipif mysql # not compatible
query I rowsort label-3752
SELECT - ( CAST ( - col1 AS INTEGER ) ) / 36 - 91 FROM tab2 AS cor0
----
-89
-90
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3753
SELECT DISTINCT - - 90 / CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT - - 90 / CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3754
SELECT ALL col1 DIV - 37 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL col1 / - 37 FROM tab2 AS cor0
----
-1
-1
-2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NOT NULL < col2 ) )
----

query I rowsort
SELECT 29 FROM tab1 AS cor0 WHERE NULL IS NULL
----
29
29
29

query I rowsort
SELECT + col2 * col1 + - + 83 FROM tab1
----
1261
212
3113

query I rowsort
SELECT DISTINCT col1 + 39 FROM tab2
----
106
116
90

query I rowsort
SELECT ALL - col1 + col2 AS col0 FROM tab2 WHERE + - col2 IN ( - - 70, + 0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT ALL COUNT( * ) + + - ( + 74 ) FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL COUNT ( * ) + + - ( + 74 ) FROM tab2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT 69 + + COUNT( * ) + MAX( DISTINCT + 64 ) AS col0 FROM tab0
----
136

skipif mysql # not compatible
query I rowsort label-3761
SELECT 69 + + COUNT ( * ) + MAX ( DISTINCT + 64 ) AS col0 FROM tab0
----
136

query II rowsort
SELECT DISTINCT - col1 + - + col0 + + col1, col1 FROM tab1
----
-51
14
-85
5
-91
47

query I rowsort
SELECT ALL - col2 * col1 * + col1 + - + ( + - 97 ) AS col0 FROM tab1
----
-1378
-150115
-18719

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3764
SELECT - 76 DIV 36 * - COUNT( * ) + + 98 AS col1 FROM tab0
----
104

skipif mysql # not compatible
query I rowsort label-3764
SELECT - 76 / 36 * - COUNT ( * ) + + 98 AS col1 FROM tab0
----
104

query I rowsort
SELECT DISTINCT 61 * + - col0 FROM tab0
----
-5307
-5917
-915

query I rowsort
SELECT ALL - col1 + - 80 + + col2 + - - 74 + + col1 FROM tab1
----
53
62
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3767
SELECT ALL 89 / CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3767
SELECT ALL 89 / CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - + col2 + - 98 FROM tab0
----
-198
-2307
-9899

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN NULL AND - col0 * + col2
----

query I rowsort
SELECT DISTINCT 46 * 34 AS col0 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
1564

query I rowsort
SELECT ALL 22 - - + 63 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3772
SELECT ALL CAST( + 66 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
66
66
66

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL CAST ( + 66 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT - + MAX( DISTINCT 57 ) FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-3773
SELECT - + MAX ( DISTINCT 57 ) FROM tab0 AS cor0
----
-57

query II rowsort
SELECT - - col1, col1 AS col0 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3776
SELECT DISTINCT + 79, COUNT( * ) AS col1 FROM tab1 AS cor0
----
79
3

skipif mysql # not compatible
query II rowsort label-3776
SELECT DISTINCT + 79, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
79
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT + - SUM( DISTINCT + - 31 ) AS col1 FROM tab2 cor0
----
31

skipif mysql # not compatible
query I rowsort label-3777
SELECT + - SUM ( DISTINCT + - 31 ) AS col1 FROM tab2 cor0
----
31

query I rowsort
SELECT col1 * 39 AS col1 FROM tab0 AS cor0
----
3159
39
819

query I rowsort
SELECT DISTINCT - ( - 2 ) AS col1 FROM tab0 AS cor0
----
2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 43 + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 * - ( - + 42 ) * col1 * - 41 NOT BETWEEN NULL AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3782
SELECT DISTINCT - COUNT( * ) col0, + 38 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3782
SELECT DISTINCT - COUNT ( * ) col0, + 38 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9
38

query I rowsort
SELECT ALL ( col0 ) * - + 99 + - 41 FROM tab0
----
-1526
-8654
-9644

query I rowsort
SELECT ALL ( - 35 ) * + col1 FROM tab2 AS cor0
----
-1785
-2345
-2695

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT DISTINCT - COUNT( * ) + - 49 AS col0 FROM tab1 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( 63 )
----
-49

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT - COUNT ( * ) + - 49 AS col0 FROM tab1 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( 63 )
----
-49

query II rowsort
SELECT col1 AS col2, ( - col1 ) FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 82 * + ( + col1 ) * + - 73 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT + - MIN( - - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3788
SELECT + - MIN ( - - col1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3789
SELECT DISTINCT + col2 * - CAST( NULL AS DECIMAL ) + + - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT + col2 * - CAST ( NULL AS REAL ) + + - col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3790
SELECT ALL + COUNT( * ) + + ( + + CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL + COUNT ( * ) + + ( + + CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

query I rowsort
SELECT + col2 FROM tab0 WHERE NULL <> ( - ( + - col1 ) / - 34 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT COUNT( * ) + + 96 AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-3792
SELECT COUNT ( * ) + + 96 AS col1 FROM tab0
----
99

query I rowsort
SELECT ALL - 49 * col0 - col2 AS col2 FROM tab1
----
-2595
-4224
-4527

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 NOT IN ( + - 71 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT col0 IS NOT NULL ) OR NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 * ( - col1 ) FROM tab2 WHERE NOT + + col2 * - 76 IS NULL
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT ALL - 74 * 16 + - 0 * + ( - 40 ) * - - COUNT( * ) + 84 col1 FROM tab1
----
-1100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3797
SELECT ALL - 74 * 16 + - 0 * + ( - 40 ) * - - COUNT ( * ) + 84 col1 FROM tab1
----
-1100

query I rowsort
SELECT ALL + - col0 AS col2 FROM tab1 WHERE NOT + col2 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3799
SELECT DISTINCT MIN( - - col0 ) DIV + - 44 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT MIN ( - - col0 ) / + - 44 FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 61 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3801
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) >= - + CAST( 74 AS SIGNED ) + - 71 * + 91 * + 83 + 23
----

skipif mysql # not compatible
query III rowsort label-3801
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) >= - + CAST ( 74 AS INTEGER ) + - 71 * + 91 * + 83 + 23
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3802
SELECT + CAST( SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3802
SELECT + CAST ( SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS REAL ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 NOT IN ( + col1 + + 32 * + - col1, + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3804
SELECT - - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3804
SELECT - - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3805
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) + - - 7 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3805
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - - 7 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col0 AS col2, 65 FROM tab0 AS cor0
----
-15
65
-87
65
-97
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT DISTINCT 80 * - + MIN( ALL - col1 ) FROM tab1 AS cor0
----
3760

skipif mysql # not compatible
query I rowsort label-3807
SELECT DISTINCT 80 * - + MIN ( ALL - col1 ) FROM tab1 AS cor0
----
3760

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3808
SELECT - CAST( col2 AS SIGNED ) DIV + col0 AS col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-3808
SELECT - CAST ( col2 AS INTEGER ) / + col0 AS col0 FROM tab0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT MAX( + - 17 ) FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-3809
SELECT MAX ( + - 17 ) FROM tab1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT COUNT( * ) * + + 91 FROM tab2
----
273

skipif mysql # not compatible
query I rowsort label-3810
SELECT COUNT ( * ) * + + 91 FROM tab2
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT SUM( - + col0 ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-3811
SELECT SUM ( - + col0 ) AS col2 FROM tab2
----
-185

query I rowsort
SELECT - 91 * - col0 * + col2 AS col2 FROM tab2
----
232960
395850
96278

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 98, + col2 col2 FROM tab0
----
98
10
98
47
98
99

query II rowsort
SELECT ALL 52, + col0 FROM tab1
----
52
51
52
85
52
91

query III rowsort
SELECT * FROM tab0 WHERE NOT - 1 NOT IN ( col0 + - ( + 99 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE NOT + col2 / col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3816
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col2 / col2 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3817
SELECT DISTINCT 63 DIV - col1 FROM tab0
----
-3
-63
0

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT 63 / - col1 FROM tab0
----
-3
-63
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3818
SELECT + col1 DIV - 57 col1 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3818
SELECT + col1 / - 57 col1 FROM tab2 cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 93 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1395
8091
9021

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT ALL + + COUNT( * ) + + 75 col2 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3820
SELECT ALL + + COUNT ( * ) + + 75 col2 FROM tab2 AS cor0
----
78

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 BETWEEN + - col0 AND + col2 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT DISTINCT + MAX( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT + MAX ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
47

query I rowsort
SELECT DISTINCT - ( + + col2 ) FROM tab0 AS cor0 WHERE 42 + + col2 - - 55 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT + ( + MIN( + - col1 ) ) + - 86 col1 FROM tab1 AS cor0
----
-133

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3824
SELECT + ( + MIN ( + - col1 ) ) + - 86 col1 FROM tab1 AS cor0
----
-133

query I rowsort
SELECT col0 + 7 + - ( col1 ) + + col1 FROM tab2
----
53
71
82

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3827
SELECT + 64 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3827
SELECT + 64 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT - ( + + COUNT( * ) ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3828
SELECT - ( + + COUNT ( * ) ) col1 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + col0 + + + 62 FROM tab0
----
149
159
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3830
SELECT ALL + col2 FROM tab2 WHERE - + col1 + col1 NOT IN ( - - ( 32 ) DIV 53 )
----

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL + col2 FROM tab2 WHERE - + col1 + col1 NOT IN ( - - ( 32 ) / 53 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3831
SELECT - 46 - CAST( - 45 AS SIGNED ) + col1 DIV + - col0 + col0 AS col1, 22 FROM tab1 AS cor0
----
50
22
84
22
90
22

skipif mysql # not compatible
query II rowsort label-3831
SELECT - 46 - CAST ( - 45 AS INTEGER ) + col1 / + - col0 + col0 AS col1, 22 FROM tab1 AS cor0
----
50
22
84
22
90
22

query I rowsort
SELECT + col1 - + - 90 AS col1 FROM tab0 AS cor0
----
111
171
91

query I rowsort
SELECT DISTINCT + col1 * - - 40 AS col1 FROM tab1 AS cor0
----
1880
200
560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 * - - col2 col2 FROM tab1
----
-205379
-314432
-884736

query III rowsort
SELECT ALL * FROM tab2 WHERE + 12 < - 68
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3836
SELECT - - CAST( - + 64 AS SIGNED ) FROM tab2 AS cor0
----
-64
-64
-64

skipif mysql # not compatible
query I rowsort label-3836
SELECT - - CAST ( - + 64 AS INTEGER ) FROM tab2 AS cor0
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT DISTINCT SUM( - 31 ) FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT SUM ( - 31 ) FROM tab1 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT COUNT( ALL + + col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3838
SELECT COUNT ( ALL + + col2 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - 92 AS col2 FROM tab1 AS cor0
----
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 18 * - 52 col1, col1 AS col2 FROM tab2 AS cor0
----
936
51
936
67
936
77

query I rowsort
SELECT DISTINCT + col0 * + 78 FROM tab2 AS cor0
----
3588
4992
5850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3842
SELECT CAST( + COUNT( DISTINCT col2 ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3842
SELECT CAST ( + COUNT ( DISTINCT col2 ) AS INTEGER ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3843
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT col2 <> + col1 * - - 19 * 66 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - 33 col0 FROM tab1 WHERE NOT - + ( - - col1 ) IS NULL
----
18
52
58

query I rowsort
SELECT ALL + col0 * + 37 + col2 FROM tab1
----
1983
3204
3435

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT ALL - MIN( + - col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL - MIN ( + - col0 ) FROM tab2
----
75

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT - - col2 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( + col2, col1 + + col2, + + col0 + + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3849
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( + col2, col1 + + col2, + + col0 + + + col0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3850
SELECT ALL col2 DIV 51 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3850
SELECT ALL col2 / 51 AS col0 FROM tab2
----
0
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3851
SELECT - CAST( NULL AS DECIMAL ) / - 36 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3851
SELECT - CAST ( NULL AS REAL ) / - 36 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 27 * + ( + col0 ) FROM tab0 AS cor0
----
-2349
-2619
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT DISTINCT - SUM( ALL + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3853
SELECT DISTINCT - SUM ( ALL + col2 ) FROM tab2 AS cor0
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * + col1 col0 FROM tab1 AS cor0
----
-425
-4277
-714

query II rowsort
SELECT ALL - col1 * + 35 AS col2, col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + - 22 AS col1 FROM tab1
----
29
63
69

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + ( + col2 ) AND - 48 + col1
----

query I rowsort
SELECT DISTINCT + col0 + - 98 * + - col0 * 51 FROM tab1
----
254949
424915
454909

query I rowsort
SELECT ALL + + 38 * + col1 FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3860
SELECT + col2 DIV + CAST( - - 28 AS SIGNED ) + + col0 FROM tab0 AS cor0
----
100
16
87

skipif mysql # not compatible
query I rowsort label-3860
SELECT + col2 / + CAST ( - - 28 AS INTEGER ) + + col0 FROM tab0 AS cor0
----
100
16
87

query I rowsort
SELECT - ( 55 ) AS col0 FROM tab1 AS cor0
----
-55
-55
-55

query I rowsort
SELECT ( + 67 ) AS col0 FROM tab2 cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT ALL MAX( ALL - + col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3863
SELECT ALL MAX ( ALL - + col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT - + ( ( + + col1 ) ) * + col0 AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL - col1 + - col2 * - col2 FROM tab0
----
2128
79
9800

query I rowsort
SELECT DISTINCT + col0 + - 31 * + + col0 * 42 FROM tab0
----
-113187
-126197
-19515

query I rowsort
SELECT DISTINCT col1 * col2 + - + col2 AS col1 FROM tab2
----
1150
3040
3828

query II rowsort
SELECT DISTINCT - ( + col1 ) AS col0, ( - + 86 ) AS col2 FROM tab0 WHERE NOT - col2 IS NULL
----
-1
-86
-21
-86
-81
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT + 12 - + SUM( DISTINCT col1 ) + - + 95 col0 FROM tab2
----
-278

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3869
SELECT + 12 - + SUM ( DISTINCT col1 ) + - + 95 col0 FROM tab2
----
-278

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT ALL - COUNT( * ) + + 16 AS col1 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL - COUNT ( * ) + + 16 AS col1 FROM tab2
----
13

query I rowsort
SELECT ALL - col1 - + ( col1 ) + - + col2 AS col2 FROM tab1
----
-124
-162
-69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3873
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND CAST( NULL AS SIGNED ) * - + col2 * + 88
----

skipif mysql # not compatible
query III rowsort label-3873
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND CAST ( NULL AS INTEGER ) * - + col2 * + 88
----

query II rowsort
SELECT DISTINCT col2 + - col1 AS col1, col2 AS col1 FROM tab1
----
21
68
54
59
82
96

query I rowsort
SELECT ALL col2 + - ( + - col1 ) FROM tab1
----
110
115
64

query I rowsort
SELECT 30 + - + 99 AS col2 FROM tab2
----
-69
-69
-69

query I rowsort
SELECT + - 79 AS col2 FROM tab0 AS cor0 WHERE NOT col0 <> - + col1 + + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 90 col0 FROM tab0 cor0
----
90

query I rowsort
SELECT + 45 * col2 FROM tab0
----
2115
4455
450

query III rowsort
SELECT * FROM tab2 WHERE NOT 22 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3881
SELECT - CAST( NULL AS SIGNED ), col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-3881
SELECT - CAST ( NULL AS INTEGER ), col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT DISTINCT + 30 * + 30 AS col1 FROM tab2
----
900

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT ALL SUM( col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL SUM ( col1 ) FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT ALL + MIN( DISTINCT 33 ) AS col1 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL + MIN ( DISTINCT 33 ) AS col1 FROM tab1 AS cor0
----
33

query II rowsort
SELECT ALL - ( - 63 ), 34 / + 74 FROM tab0 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT ALL - - 67 * + + col0 FROM tab2 AS cor0
----
3082
4288
5025

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN - + col1 AND NULL
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE + col1 = - - 67
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3890
SELECT ALL + CAST( - 84 AS SIGNED ) FROM tab0 cor0
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL + CAST ( - 84 AS INTEGER ) FROM tab0 cor0
----
-84
-84
-84

query II rowsort
SELECT 90, + 72 * 50 AS col2 FROM tab1 AS cor0
----
90
3600
90
3600
90
3600

onlyif mysql # DIV for integer division: 
query I rowsort label-3892
SELECT DISTINCT + col0 DIV - col0 col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3892
SELECT DISTINCT + col0 / - col0 col0 FROM tab1 AS cor0
----
-1

query II rowsort
SELECT - col1 + - - ( - 59 ) - col1 AS col0, + 16 AS col0 FROM tab2
----
-161
16
-193
16
-213
16

onlyif mysql # DIV for integer division: 
query I rowsort label-3894
SELECT DISTINCT 94 DIV + + col2 + - 58 FROM tab1 AS cor0
----
-57
-58

skipif mysql # not compatible
query I rowsort label-3894
SELECT DISTINCT 94 / + + col2 + - 58 FROM tab1 AS cor0
----
-57
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * col1 AS col1, col1 col2 FROM tab2 AS cor0
----
-1173
51
-3080
77
-3886
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3896
SELECT ALL + - CAST( NULL AS SIGNED ) / ( + SUM( 86 ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL + - CAST ( NULL AS INTEGER ) / ( + SUM ( 86 ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 11 < - + 56 * + col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT - 67 * + + MAX( DISTINCT + col2 ) FROM tab0 AS cor0
----
-6633

skipif mysql # not compatible
query I rowsort label-3898
SELECT - 67 * + + MAX ( DISTINCT + col2 ) FROM tab0 AS cor0
----
-6633

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3899
SELECT ALL + CAST( + + 6 AS SIGNED ) * + 94 + COUNT( * ) AS col1 FROM tab0
----
567

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL + CAST ( + + 6 AS INTEGER ) * + 94 + COUNT ( * ) AS col1 FROM tab0
----
567

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3900
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) + col1 <> - col1
----

skipif mysql # not compatible
query III rowsort label-3900
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) + col1 <> - col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-3901
SELECT 56 * col2 + - ( col0 ) - - 99 AS col0, - col2 DIV + 84 + - + col1 col0, CAST( - - col2 AS SIGNED ) - - 4 FROM tab1 AS cor0
----
9 values hashing to f8254197716abbb9fbe8b4782f615f46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3901
SELECT 56 * col2 + - ( col0 ) - - 99 AS col0, - col2 / + 84 + - + col1 col0, CAST ( - - col2 AS INTEGER ) - - 4 FROM tab1 AS cor0
----
9 values hashing to f8254197716abbb9fbe8b4782f615f46

query I rowsort
SELECT - - 87 + + + col0 FROM tab1 AS cor0
----
138
172
178

query I rowsort
SELECT ALL - + ( 40 ) FROM tab1 AS cor0
----
-40
-40
-40

query I rowsort
SELECT ALL + + 31 FROM tab0 AS cor0
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT - - 98 + - COUNT( * ) FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-3905
SELECT - - 98 + - COUNT ( * ) FROM tab1 AS cor0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT DISTINCT + - MIN( - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3906
SELECT DISTINCT + - MIN ( - col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3907
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + col2 * 32 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3907
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - + col2 * 32 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 < col2
----

query II rowsort
SELECT ALL + col1, + col2 AS col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3910
SELECT DISTINCT CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab2, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3910
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab2, tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3911
SELECT COUNT( * ) / + CAST( NULL AS DECIMAL ) * + CAST( + COUNT( * ) AS DECIMAL ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3911
SELECT COUNT ( * ) / + CAST ( NULL AS REAL ) * + CAST ( + COUNT ( * ) AS REAL ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - ( + 23 ) FROM tab0 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT DISTINCT - COUNT( ALL + 45 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3913
SELECT DISTINCT - COUNT ( ALL + 45 ) FROM tab1 cor0
----
-3

query I rowsort
SELECT + + 33 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3915
SELECT * FROM tab0 WHERE NOT - + CAST( NULL AS SIGNED ) >= + - col2 * + - col2 * col1 * - - col0 / - col1 * + + 14 * + col1 * - 34
----

skipif mysql # not compatible
query III rowsort label-3915
SELECT * FROM tab0 WHERE NOT - + CAST ( NULL AS INTEGER ) >= + - col2 * + - col2 * col1 * - - col0 / - col1 * + + 14 * + col1 * - 34
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 50 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT DISTINCT ( + COUNT( * ) ) * + COUNT( * ) * + + 75 AS col2 FROM tab1 AS cor0
----
675

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT ( + COUNT ( * ) ) * + COUNT ( * ) * + + 75 AS col2 FROM tab1 AS cor0
----
675

query I rowsort
SELECT DISTINCT - col2 * + col1 * col2 * - col0 FROM tab1 AS cor0
----
1479425
19776848
6580224

onlyif mysql # DIV for integer division: 
query II rowsort label-3919
SELECT DISTINCT 32 DIV - col0 AS col2, 94 FROM tab0 AS cor0
----
-2
94
0
94

skipif mysql # not compatible
query II rowsort label-3919
SELECT DISTINCT 32 / - col0 AS col2, 94 FROM tab0 AS cor0
----
-2
94
0
94

onlyif mysql # aggregate syntax: 
query II rowsort label-3920
SELECT MAX( ALL col0 ) AS col1, - COUNT( * ) + + + COUNT( * ) AS col2 FROM tab1 cor0
----
91
0

skipif mysql # not compatible
query II rowsort label-3920
SELECT MAX ( ALL col0 ) AS col1, - COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab1 cor0
----
91
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3921
SELECT ALL + + CAST( - col1 AS DECIMAL ) FROM tab0 WHERE NOT - 67 * + + 79 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL + + CAST ( - col1 AS REAL ) FROM tab0 WHERE NOT - 67 * + + 79 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col1, col2 col1 FROM tab2
----
-23
23
-40
40
-58
58

query I rowsort
SELECT DISTINCT col2 + - col2 * + col0 - + - ( + 72 ) FROM tab2
----
-2448
-4220
-963

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT 91 * - COUNT( * ) AS col0 FROM tab0
----
-273

skipif mysql # not compatible
query I rowsort label-3924
SELECT 91 * - COUNT ( * ) AS col0 FROM tab0
----
-273

query I rowsort
SELECT 60 * - col1 + col2 FROM tab2 cor0 WHERE col0 * + col1 * + col2 * + 13 IS NULL
----

query I rowsort
SELECT - 48 + + - col2 AS col0 FROM tab2 cor0
----
-106
-71
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3927
SELECT - MAX( ALL - 87 ) DIV 31 + 27 FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-3927
SELECT - MAX ( ALL - 87 ) / 31 + 27 FROM tab0
----
29

query I rowsort
SELECT ALL - + 38 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT DISTINCT - ( + - COUNT( * ) ) * COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-729

skipif mysql # not compatible
query I rowsort label-3929
SELECT DISTINCT - ( + - COUNT ( * ) ) * COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-729

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT ALL 13 + - COUNT( * ) AS col0 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL 13 + - COUNT ( * ) AS col0 FROM tab2
----
10

query I rowsort
SELECT + 13 * col2 * + col0 AS col2 FROM tab1 AS cor0
----
63648
65195
80444

query I rowsort
SELECT ALL ( + 9 ) FROM tab1 AS cor0 WHERE ( - - col2 ) * 80 + - 73 IS NOT NULL
----
9
9
9

query II rowsort
SELECT col2 * + col1, col2 AS col0 FROM tab0 cor0
----
210
10
3807
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT ALL - + SUM( col2 ) - SUM( DISTINCT col2 ) FROM tab0 AS cor0
----
-312

skipif mysql # not compatible
query I rowsort label-3934
SELECT ALL - + SUM ( col2 ) - SUM ( DISTINCT col2 ) FROM tab0 AS cor0
----
-312

query I rowsort
SELECT + 3 * 63 FROM tab2 AS cor0 WHERE NULL IS NULL
----
189
189
189

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 31 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 84 FROM tab0 WHERE col2 > NULL
----

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT + 58 + - - ( - 21 ) - - col0 > NULL
----

query II rowsort
SELECT ALL - col0 AS col0, col0 FROM tab0
----
-15
15
-87
87
-97
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3940
SELECT ( - - COUNT( * ) ) * + CAST( NULL AS SIGNED ) * 74 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3940
SELECT ( - - COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) * 74 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT ( + 51 ) FROM tab0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT 54 * + MIN( DISTINCT + - col1 ) AS col2 FROM tab2
----
-4158

skipif mysql # not compatible
query I rowsort label-3942
SELECT 54 * + MIN ( DISTINCT + - col1 ) AS col2 FROM tab2
----
-4158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + col1 col0 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT MIN( DISTINCT - col1 ) col0 FROM tab1
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3944
SELECT MIN ( DISTINCT - col1 ) col0 FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT DISTINCT + COUNT( ( col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3945
SELECT DISTINCT + COUNT ( ( col0 ) ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT col2 * - + 2 * - col1 AS col1 FROM tab0
----
198
420
7614

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - 16 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT - MAX( - 77 ) FROM tab0 cor0
----
77

skipif mysql # not compatible
query I rowsort label-3948
SELECT - MAX ( - 77 ) FROM tab0 cor0
----
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col2 / col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL + - 44 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT ALL - + SUM( - + col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL - + SUM ( - + col2 ) AS col0 FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3952
SELECT ALL 91 * + 42 AS col2, CAST( NULL AS DECIMAL ) - - col0 AS col0 FROM tab2 cor0
----
3822
NULL
3822
NULL
3822
NULL

skipif mysql # not compatible
query II rowsort label-3952
SELECT ALL 91 * + 42 AS col2, CAST ( NULL AS REAL ) - - col0 AS col0 FROM tab2 cor0
----
3822
NULL
3822
NULL
3822
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3953
SELECT ALL + + 95, MAX( ALL + - col0 ) AS col0 FROM tab2 cor0
----
95
-46

skipif mysql # not compatible
query II rowsort label-3953
SELECT ALL + + 95, MAX ( ALL + - col0 ) AS col0 FROM tab2 cor0
----
95
-46

query I rowsort
SELECT DISTINCT col0 + + 94 + ( + col0 ) * col0 * 57 * col2 AS col0 FROM tab0 AS cor0
----
4314511
53095178
602884

onlyif mysql # aggregate syntax: 
query II rowsort label-3955
SELECT + + 23 * - 38 + + COUNT( ALL + col2 ) AS col0, + 84 FROM tab1 AS cor0
----
-871
84

skipif mysql # not compatible
query II rowsort label-3955
SELECT + + 23 * - 38 + + COUNT ( ALL + col2 ) AS col0, + 84 FROM tab1 AS cor0
----
-871
84

query I rowsort
SELECT col0 + col0 + - col1 * + 67 AS col0 FROM tab1
----
-165
-2967
-836

query I rowsort
SELECT col1 + - col2 * + col1 + + col0 FROM tab2
----
-1076
-2939
-3744

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT DISTINCT + - COUNT( * ) FROM tab1 WHERE NULL > 56 + - col1
----
0

skipif mysql # not compatible
query I rowsort label-3958
SELECT DISTINCT + - COUNT ( * ) FROM tab1 WHERE NULL > 56 + - col1
----
0

query III rowsort
SELECT * FROM tab1 WHERE + col0 * - col2 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3960
SELECT COUNT( * ) + - COUNT( * ) DIV - + MIN( - col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3960
SELECT COUNT ( * ) + - COUNT ( * ) / - + MIN ( - col1 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3961
SELECT DISTINCT ( + - 34 ), COUNT( * ) AS col0 FROM tab1
----
-34
3

skipif mysql # not compatible
query II rowsort label-3961
SELECT DISTINCT ( + - 34 ), COUNT ( * ) AS col0 FROM tab1
----
-34
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3962
SELECT DISTINCT 77 + + MIN( - col2 ), ( - 57 ) AS col1 FROM tab2
----
19
-57

skipif mysql # not compatible
query II rowsort label-3962
SELECT DISTINCT 77 + + MIN ( - col2 ), ( - 57 ) AS col1 FROM tab2
----
19
-57

query I rowsort
SELECT ALL - - 41 FROM tab2 cor0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT + COUNT( * ) * + - 78 * 95 FROM tab2 AS cor0
----
-22230

skipif mysql # not compatible
query I rowsort label-3964
SELECT + COUNT ( * ) * + - 78 * 95 FROM tab2 AS cor0
----
-22230

query I rowsort
SELECT 18 * + col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT DISTINCT + COUNT( + 60 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3966
SELECT DISTINCT + COUNT ( + 60 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - col2 * + - ( + col0 ) - ( col0 ) AS col1 FROM tab0
----
690
783
9506

query I rowsort
SELECT - + 80 * + + 65 + + - 92 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 01eaf2c390e1961cb52278b8d90da8b5

query I rowsort
SELECT ALL - col0 + - 32 + col0 * + col0 FROM tab0 AS cor0
----
178
7450
9280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3970
SELECT + 31 * + col2 + - + col0 + + + col0 + - CAST( 22 AS SIGNED ) * col0 FROM tab0 AS cor0
----
-1604
1127
935

skipif mysql # not compatible
query I rowsort label-3970
SELECT + 31 * + col2 + - + col0 + + + col0 + - CAST ( 22 AS INTEGER ) * col0 FROM tab0 AS cor0
----
-1604
1127
935

query I rowsort
SELECT + col0 * - + 44 FROM tab2 AS cor0
----
-2024
-2816
-3300

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT ALL MIN( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL MIN ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT - col1 * - col0 * - 27 * + 55 AS col1 FROM tab0 AS cor0
----
-144045
-1804275
-2713095

query I rowsort
SELECT - ( + 55 ) AS col1 FROM tab1 AS cor0
----
-55
-55
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3975
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3975
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - col0
----

query II rowsort
SELECT 96 AS col0, col0 FROM tab1 AS cor0
----
96
51
96
85
96
91

query I rowsort
SELECT ALL - + col1 * - ( - 12 ) FROM tab1 AS cor0
----
-168
-564
-60

query II rowsort
SELECT ALL col0 * - col2, 42 AS col1 FROM tab1
----
-4896
42
-5015
42
-6188
42

query I rowsort
SELECT 43 * + - ( - + col0 ) FROM tab0
----
3741
4171
645

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT COUNT( * ) * 6 * + COUNT( * ) col0 FROM tab1
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3981
SELECT COUNT ( * ) * 6 * + COUNT ( * ) col0 FROM tab1
----
54

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = - col0
----

query I rowsort
SELECT DISTINCT col1 * - 56 * - + col1 FROM tab2
----
145656
251384
332024

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - col2 / - - 19 / - 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT - ( - SUM( - col1 ) ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-3985
SELECT - ( - SUM ( - col1 ) ) AS col2 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT DISTINCT - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL > - col0
----
0

skipif mysql # not compatible
query I rowsort label-3986
SELECT DISTINCT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL > - col0
----
0

query I rowsort
SELECT ALL - + col0 * + 67 AS col2 FROM tab2 AS cor0
----
-3082
-4288
-5025

query II rowsort
SELECT - - ( + + col1 ) AS col0, col1 AS col0 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3989
SELECT DISTINCT 68 DIV - 74 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3989
SELECT DISTINCT 68 / - 74 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT + 96 - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
87

skipif mysql # not compatible
query I rowsort label-3990
SELECT + 96 - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT 20 + + COUNT( * ) FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-3991
SELECT 20 + + COUNT ( * ) FROM tab0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 24 * + - 2 col1 FROM tab0 AS cor0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3993
SELECT - + CAST( - - 24 AS SIGNED ) col0 FROM tab0 AS cor0
----
-24
-24
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3993
SELECT - + CAST ( - - 24 AS INTEGER ) col0 FROM tab0 AS cor0
----
-24
-24
-24

query I rowsort
SELECT ALL + 14 AS col2 FROM tab2 AS cor0
----
14
14
14

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 58 * col2 NOT BETWEEN 89 AND - + col2 + + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT + + MAX( ALL - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3996
SELECT + + MAX ( ALL - col1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL + col0 + + + col1 + + 84 FROM tab1 AS cor0
----
149
174
222

query I rowsort
SELECT - col0 + - col2 FROM tab0 WHERE + + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 1 + + ( - + 50 ) FROM tab2
----
-49
-49
-49

query II rowsort
SELECT ALL + 98 AS col2, 25 AS col1 FROM tab1
----
98
25
98
25
98
25

query I rowsort
SELECT col2 / - col0 + col0 FROM tab1 WHERE + 88 + + 0 - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( ( + 59 ) ) FROM tab1
----
59
59
59

onlyif mysql # aggregate syntax: 
query II rowsort label-4003
SELECT + 89 AS col0, + COUNT( * ) FROM tab1
----
89
3

skipif mysql # not compatible
query II rowsort label-4003
SELECT + 89 AS col0, + COUNT ( * ) FROM tab1
----
89
3

query I rowsort
SELECT ALL col2 + - - 38 + + col2 * + - col1 FROM tab1
----
-1210
-198
-3090

query III rowsort
SELECT * FROM tab0 WHERE + col0 / - col1 * + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT MIN( ALL + - col0 ) + COUNT( * ) FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-4006
SELECT MIN ( ALL + - col0 ) + COUNT ( * ) FROM tab1
----
-88

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 WHERE NOT 94 * col2 IS NOT NULL AND NOT col0 NOT BETWEEN + 5 AND + col2 - col1
----

query I rowsort
SELECT + col0 + - 8 FROM tab2 AS cor0
----
38
56
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT + + COUNT( col1 ) + + COUNT( * ) col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4009
SELECT + + COUNT ( col1 ) + + COUNT ( * ) col2 FROM tab2 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + - + 16 + - 58 NOT BETWEEN - col2 + col2 AND col1
----

query I rowsort
SELECT DISTINCT + - 0 - col1 * + + col2 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT + 22 + - - SUM( ALL + 94 ) AS col0 FROM tab2 AS cor0
----
304

skipif mysql # not compatible
query I rowsort label-4012
SELECT + 22 + - - SUM ( ALL + 94 ) AS col0 FROM tab2 AS cor0
----
304

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 65 - + 10 - + 75 * - + 72 = ( col1 - + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE + ( + - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4015
SELECT ALL - CAST( 6 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL - CAST ( 6 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT DISTINCT 22 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4017
SELECT ALL + + CAST( - - MAX( DISTINCT ( + - col1 ) ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL + + CAST ( - - MAX ( DISTINCT ( + - col1 ) ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4018
SELECT ALL - - CAST( - CAST( + 12 AS SIGNED ) AS SIGNED ) * + COUNT( * ) col0 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4018
SELECT ALL - - CAST ( - CAST ( + 12 AS INTEGER ) AS INTEGER ) * + COUNT ( * ) col0 FROM tab0 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT + COUNT( * ) * 38 FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-4019
SELECT + COUNT ( * ) * 38 FROM tab1
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-4020
SELECT ALL 6 * 95 DIV + col2 AS col1 FROM tab1
----
5
8
9

skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL 6 * 95 / + col2 AS col1 FROM tab1
----
5
8
9

query I rowsort
SELECT + col1 * - 15 AS col0 FROM tab1
----
-210
-705
-75

query II rowsort
SELECT DISTINCT col2 AS col1, + col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4023
SELECT col2 DIV + 57 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4023
SELECT col2 / + 57 AS col2 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT ALL MIN( + - 48 ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL MIN ( + - 48 ) FROM tab1
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4025
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-4025
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 * col0 * col2 + + 24 * + col1 col1 FROM tab2 cor0
----
-101402
-246472
-420342

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN col0 + - + col1 * - + 26 AND + 54 + col2
----

query I rowsort
SELECT ALL col2 * - + col2 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT - SUM( - col0 ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-4029
SELECT - SUM ( - col0 ) AS col0 FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT ALL COUNT( * ) * COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4031
SELECT ALL + CAST( - 93 AS DECIMAL ) AS col1 FROM tab1 WHERE NOT - CAST( + 96 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4031
SELECT ALL + CAST ( - 93 AS REAL ) AS col1 FROM tab1 WHERE NOT - CAST ( + 96 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT - ( COUNT( * ) ) - + COUNT( * ) * + ( + COUNT( * ) ) AS col0 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-4032
SELECT - ( COUNT ( * ) ) - + COUNT ( * ) * + ( + COUNT ( * ) ) AS col0 FROM tab1
----
-12

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 4 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4034
SELECT CAST( - MIN( ALL - col0 ) AS SIGNED ) - - 49 FROM tab1
----
140

skipif mysql # not compatible
query I rowsort label-4034
SELECT CAST ( - MIN ( ALL - col0 ) AS INTEGER ) - - 49 FROM tab1
----
140

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( 81 ) ) IS NOT NULL
----

query I rowsort
SELECT - col0 * 38 AS col0 FROM tab0 WHERE col1 * + 3 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT DISTINCT 98 * COUNT( * ) FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-4037
SELECT DISTINCT 98 * COUNT ( * ) FROM tab0
----
294

query I rowsort
SELECT DISTINCT - 26 FROM tab1 WHERE NOT NULL IN ( 21 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT - MAX( ALL + 10 ) * COUNT( + col1 ) AS col0 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-4039
SELECT - MAX ( ALL + 10 ) * COUNT ( + col1 ) AS col0 FROM tab1
----
-30

query I rowsort
SELECT - col0 * - ( - 86 ) AS col1 FROM tab0
----
-1290
-7482
-8342

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT - col0 * col2 <> ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4041
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col0 * col2 <> ( - col1 )
----
0

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT - col0 * col0 >= col1
----
15
87
97

query I rowsort
SELECT ALL + col1 * col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT 18 * + COUNT( * ) col0 FROM tab2
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4044
SELECT 18 * + COUNT ( * ) col0 FROM tab2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT DISTINCT SUM( 31 ) AS col0 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-4045
SELECT DISTINCT SUM ( 31 ) AS col0 FROM tab2
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4046
SELECT DISTINCT col1 + + col1 DIV col1 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT col1 + + col1 / col1 FROM tab1
----
15
48
6

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 * col1 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT DISTINCT - COUNT( * ) * 10 FROM tab2 WHERE NOT + 75 * + col2 IS NULL
----
-30

skipif mysql # not compatible
query I rowsort label-4048
SELECT DISTINCT - COUNT ( * ) * 10 FROM tab2 WHERE NOT + 75 * + col2 IS NULL
----
-30

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = ( - 80 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4050
SELECT DISTINCT 68 - col1 AS col2 FROM tab2 WHERE NOT col0 - CAST( col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4050
SELECT DISTINCT 68 - col1 AS col2 FROM tab2 WHERE NOT col0 - CAST ( col1 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + ( col1 ) FROM tab2 WHERE NOT NULL = 25
----

query I rowsort
SELECT DISTINCT - col0 * - ( col1 ) AS col1 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT 35 AS col1 FROM tab2 WHERE NULL IS NULL
----
35
35
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4054
SELECT DISTINCT COUNT( * ) DIV 89 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT COUNT ( * ) / 89 AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL col2 * + col2 FROM tab1 WHERE NOT ( col1 ) BETWEEN NULL AND 54
----

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( + col1 ) + + ( + col1 ) IN ( col2 * + col0 )
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < - col2
----

query I rowsort
SELECT col1 - + col0 * - col2 AS col1 FROM tab2 cor0
----
1109
2637
4417

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT + MAX( 26 ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-4059
SELECT + MAX ( 26 ) FROM tab2
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4060
SELECT 25 DIV + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1
----
2

skipif mysql # not compatible
query I rowsort label-4060
SELECT 25 / + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4061
SELECT - - col2 DIV 69 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4061
SELECT - - col2 / 69 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT SUM( DISTINCT col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4062
SELECT SUM ( DISTINCT col1 ) FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT DISTINCT - COUNT( DISTINCT - 13 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT - COUNT ( DISTINCT - 13 ) FROM tab1 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN + col2 AND ( NULL )
----

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE - 84 BETWEEN - 5 + 11 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4066
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE ( - col0 + - col0 ) = ( + CAST( col1 AS SIGNED ) + + col2 )
----

skipif mysql # not compatible
query I rowsort label-4066
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE ( - col0 + - col0 ) = ( + CAST ( col1 AS INTEGER ) + + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4067
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4067
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - 75 * - 37 FROM tab2 AS cor0
----
2775
2775
2775

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4069
SELECT ALL CAST( NULL AS DECIMAL ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL CAST ( NULL AS REAL ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4070
SELECT DISTINCT col2 * - 89 AS col1 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) <> ( col0 * + col2 )
----

skipif mysql # not compatible
query I rowsort label-4070
SELECT DISTINCT col2 * - 89 AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) <> ( col0 * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4071
SELECT + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4071
SELECT + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col1 + + 9 * 4 ) <= col0 / + col1 - col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT - COUNT( * ) * - SUM( + ( + 58 ) ) FROM tab0
----
522

skipif mysql # not compatible
query I rowsort label-4073
SELECT - COUNT ( * ) * - SUM ( + ( + 58 ) ) FROM tab0
----
522

query I rowsort
SELECT + 82 * col0 FROM tab0 WHERE NOT col0 IS NULL
----
1230
7134
7954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 * col1 - - col2 col2 FROM tab1 WHERE NOT col0 * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4076
SELECT DISTINCT CAST( NULL AS SIGNED ) / col1 FROM tab1 WHERE NOT ( 77 ) NOT BETWEEN + 98 * - col1 AND CAST( NULL AS SIGNED ) + + col2
----

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col1 FROM tab1 WHERE NOT ( 77 ) NOT BETWEEN + 98 * - col1 AND CAST ( NULL AS INTEGER ) + + col2
----

query I rowsort
SELECT ALL 0 FROM tab0 WHERE NOT - col2 + col2 NOT BETWEEN + col1 AND col1
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col1 NOT BETWEEN + col1 * + col1 + - 69 AND col0
----
85
5
59

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( 39 ) > + ( col0 )
----
10
99

query I rowsort
SELECT DISTINCT - col1 + - + col2 + 16 FROM tab1 AS cor0
----
-48
-94
-99

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT - - 38 * - ( - + 51 ) FROM tab0 AS cor0
----
1938

onlyif mysql # DIV for integer division: 
query I rowsort label-4083
SELECT ALL col1 DIV + 22 AS col1 FROM tab2 AS cor0
----
2
3
3

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL col1 / + 22 AS col1 FROM tab2 AS cor0
----
2
3
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 <> ( + 33 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( - 46 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4086
SELECT + col1 col1, col1 DIV + + col0 FROM tab2 AS cor0
----
51
1
67
0
77
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4086
SELECT + col1 col1, col1 / + + col0 FROM tab2 AS cor0
----
51
1
67
0
77
1

query II rowsort
SELECT - col2, - col1 AS col2 FROM tab2 cor0
----
-23
-51
-40
-77
-58
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-4088
SELECT ALL + col2 DIV 18 + + col2 AS col1 FROM tab0 AS cor0
----
10
104
49

skipif mysql # not compatible
query I rowsort label-4088
SELECT ALL + col2 / 18 + + col2 AS col1 FROM tab0 AS cor0
----
10
104
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4089
SELECT ALL - CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL - CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IN ( + 3 / col0 / col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT ALL - 2 + - + COUNT( * ) FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL - 2 + - + COUNT ( * ) FROM tab2
----
-5

query I rowsort
SELECT 79 FROM tab1 WHERE ( - col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + + + col1 AS col1 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT 96 + - - 56 * - 71 AS col1 FROM tab2
----
-3880
-3880
-3880

onlyif mysql # aggregate syntax: 
query II rowsort label-4095
SELECT ALL + COUNT( * ) - + 77 AS col2, COUNT( * ) col0 FROM tab2
----
-74
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4095
SELECT ALL + COUNT ( * ) - + 77 AS col2, COUNT ( * ) col0 FROM tab2
----
-74
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4096
SELECT col1 / + CAST( NULL AS DECIMAL ) + + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4096
SELECT col1 / + CAST ( NULL AS REAL ) + + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT + COUNT( col2 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4097
SELECT + COUNT ( col2 ) col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT DISTINCT - - MIN( DISTINCT + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT - - MIN ( DISTINCT + col2 ) FROM tab2 AS cor0
----
23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 60 + - col0 NOT IN ( - col2 * col0 + - ( col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4100
SELECT - + ( + col1 ) DIV + col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4100
SELECT - + ( + col1 ) / + col0 FROM tab2 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, col2 col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT DISTINCT - 7 * col1 AS col2 FROM tab1 cor0
----
-329
-35
-98

query II rowsort
SELECT ALL 76 AS col0, + col2 + - - ( - col2 ) AS col0 FROM tab0 AS cor0
----
76
0
76
0
76
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT ALL + + ( + 11 ) * + COUNT( * ) * + 61 AS col1 FROM tab0 AS cor0
----
2013

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL + + ( + 11 ) * + COUNT ( * ) * + 61 AS col1 FROM tab0 AS cor0
----
2013

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT + 20 * - MAX( + + 73 ) AS col2 FROM tab0
----
-1460

skipif mysql # not compatible
query I rowsort label-4106
SELECT + 20 * - MAX ( + + 73 ) AS col2 FROM tab0
----
-1460

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT SUM( + - col1 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4107
SELECT SUM ( + - col1 ) AS col1 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT COUNT( * ) + + + COUNT( * ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-4108
SELECT COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab1
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 42 col0 FROM tab2
----
1932
2688
3150

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col1 ) <> 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT ( NOT ( + 16 * + - col2 - 91 ) NOT BETWEEN ( - col0 * col0 - ( col2 ) * + col2 ) AND col0 * + col1 - - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4111
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( NOT ( + 16 * + - col2 - 91 ) NOT BETWEEN ( - col0 * col0 - ( col2 ) * + col2 ) AND col0 * + col1 - - col1 )
----
0

query I rowsort
SELECT ALL - col1 * + - 47 FROM tab0 AS cor0
----
3807
47
987

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - + col2 * col1 + 51 + + + col0 * 73 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT ALL COUNT( ALL + col0 ) AS col0 FROM tab1 AS cor0 WHERE col1 - + + ( - - col2 ) BETWEEN ( NULL ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL COUNT ( ALL + col0 ) AS col0 FROM tab1 AS cor0 WHERE col1 - + + ( - - col2 ) BETWEEN ( NULL ) AND ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4115
SELECT - + ( + 53 ) AS col1, - COUNT( * ) FROM tab1 AS cor0
----
-53
-3

skipif mysql # not compatible
query II rowsort label-4115
SELECT - + ( + 53 ) AS col1, - COUNT ( * ) FROM tab1 AS cor0
----
-53
-3

query I rowsort
SELECT DISTINCT col1 + - col1 - - 16 FROM tab2 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT DISTINCT 44 * + COUNT( * ) + + 85 FROM tab2
----
217

skipif mysql # not compatible
query I rowsort label-4117
SELECT DISTINCT 44 * + COUNT ( * ) + + 85 FROM tab2
----
217

onlyif mysql # aggregate syntax: 
query II rowsort label-4118
SELECT + MAX( ALL + - 75 ) AS col2, 25 FROM tab2
----
-75
25

skipif mysql # not compatible
query II rowsort label-4118
SELECT + MAX ( ALL + - 75 ) AS col2, 25 FROM tab2
----
-75
25

query I rowsort
SELECT DISTINCT - 30 * + col0 AS col0 FROM tab2
----
-1380
-1920
-2250

onlyif mysql # DIV for integer division: 
query I rowsort label-4120
SELECT DISTINCT - col0 + - col0 + - - 0 DIV 56 * + col2 * + 13 AS col2 FROM tab2 AS cor0
----
-128
-150
-92

skipif mysql # not compatible
query I rowsort label-4120
SELECT DISTINCT - col0 + - col0 + - - 0 / 56 * + col2 * + 13 AS col2 FROM tab2 AS cor0
----
-128
-150
-92

query I rowsort
SELECT col0 + - - col2 AS col0 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT + MAX( col2 ) FROM tab0 cor0 WHERE ( NOT ( - col2 + col2 + + col1 ) NOT BETWEEN NULL AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4122
SELECT + MAX ( col2 ) FROM tab0 cor0 WHERE ( NOT ( - col2 + col2 + + col1 ) NOT BETWEEN NULL AND NULL )
----
NULL

query I rowsort
SELECT ALL 18 + + - 17 AS col2 FROM tab0
----
1
1
1

query III rowsort
SELECT * FROM tab0 WHERE - - col2 - - col0 + + col0 + - 69 + - + 17 + + col0 * + col2 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT 96 * - COUNT( * ) FROM tab0
----
-288

skipif mysql # not compatible
query I rowsort label-4125
SELECT 96 * - COUNT ( * ) FROM tab0
----
-288

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + - col2 ) <> col1 * - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT DISTINCT COUNT( * ) + + + 64 - + 49 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT COUNT ( * ) + + + 64 - + 49 FROM tab2
----
18

query I rowsort
SELECT DISTINCT + 14 * 68 FROM tab0
----
952

query I rowsort
SELECT col0 FROM tab1 WHERE ( - + col1 - + + col2 ) > + 86 * + + 70
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col0, 91 col2 FROM tab0
----
15
91
87
91
97
91

query III rowsort
SELECT ALL col2 + col1 + - + col1, col2 AS col0, + + col1 FROM tab1
----
9 values hashing to cd741e22fa35c6dfa847666b4267b499

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE - col0 * - - col1 <= - col0
----
-14
-47
-5

query I rowsort
SELECT ALL - col1 - + - 70 AS col2 FROM tab0
----
-11
49
69

query I rowsort
SELECT + col0 FROM tab1 WHERE ( NULL ) IS NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4135
SELECT ALL - + col0 DIV - 73 col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4135
SELECT ALL - + col0 / - 73 col0 FROM tab2 AS cor0
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > ( 47 - + 8 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( + col0 * - + 69 * + col0 / - 48 ) <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 <= col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT ALL + MIN( ALL + - col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4140
SELECT ALL + MIN ( ALL + - col0 ) AS col1 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT col2 * + col1 + - col1 AS col1 FROM tab2 AS cor0
----
1122
3003
3819

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4142
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT + SUM( ALL 9 ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4143
SELECT + SUM ( ALL 9 ) FROM tab0 AS cor0
----
27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4144
SELECT ALL col2 * - col2 + CAST( ( col1 ) AS SIGNED ) DIV 92 AS col1 FROM tab0 AS cor0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-4144
SELECT ALL col2 * - col2 + CAST ( ( col1 ) AS INTEGER ) / 92 AS col1 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT - 20 * - ( - - col2 ) + - - 69 + - + col0 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = ( col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 / - col1 * + 44 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col2 * 12 AS col1 FROM tab1 AS cor0
----
-1152
-708
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT DISTINCT MAX( ALL - + col0 ) + - COUNT( ALL 96 ) AS col1 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT MAX ( ALL - + col0 ) + - COUNT ( ALL 96 ) AS col1 FROM tab1 AS cor0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4150
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN ( NULL ) AND + 73
----

skipif mysql # not compatible
query III rowsort label-4150
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN ( NULL ) AND + 73
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 95 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col0 NOT BETWEEN + ( 92 ) AND 48 + + - 55
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + - 6 * 6 AS col1 FROM tab2
----
10
28
39

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, - col0 * col1 col0 FROM tab2
----
51
-2346
67
-5025
77
-4928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab0 WHERE ( + col2 ) <> - col1
----
15
87
97

query I rowsort
SELECT + 80 * + + 85 AS col0 FROM tab2 AS cor0
----
6800
6800
6800

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 IS NULL AND - col0 BETWEEN NULL AND - 29 * - - col2 * - + col0 * + 20 + - 14
----

query I rowsort
SELECT ALL - - ( + - 41 ) FROM tab0 AS cor0
----
-41
-41
-41

query I rowsort
SELECT DISTINCT + col1 * - - 21 AS col2 FROM tab2 AS cor0
----
1071
1407
1617

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4161
SELECT + CAST( NULL AS DECIMAL ) - - ( + 1 ) AS col1, + col0 AS col1 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-4161
SELECT + CAST ( NULL AS REAL ) - - ( + 1 ) AS col1, + col0 AS col1 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT ALL 15 * - + col1 FROM tab1
----
-210
-705
-75

query III rowsort
SELECT * FROM tab0 WHERE - 47 IS NULL
----

query I rowsort
SELECT ( - - col1 ) + col0 AS col0 FROM tab0
----
108
96
98

query I rowsort
SELECT + 35 + col2 AS col1 FROM tab1
----
103
131
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 48 col1, - 38 FROM tab2, tab0 cor0
----
18 values hashing to 38f19d7618b877b14da03ca1bdecda78

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT SUM( ALL - 80 ) col0 FROM tab0
----
-240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4167
SELECT SUM ( ALL - 80 ) col0 FROM tab0
----
-240

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 <> ( NULL )
----

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT - - col2 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT + COUNT( DISTINCT + 84 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-4170
SELECT + COUNT ( DISTINCT + 84 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * 57 + + 97 col2, 63 AS col1 FROM tab0 AS cor0
----
5056
63
5626
63
952
63

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < + col0 + - ( + 24 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 BETWEEN NULL AND + 45
----

query I rowsort
SELECT DISTINCT + 7 * ( - col2 ) FROM tab0 AS cor0
----
-329
-693
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4175
SELECT DISTINCT CAST( 28 AS DECIMAL ) FROM tab0 AS cor0 WHERE + col1 IN ( - col2, 20 * + - col2, CAST( NULL AS DECIMAL ), col1 + - col2 )
----

skipif mysql # not compatible
query I rowsort label-4175
SELECT DISTINCT CAST ( 28 AS REAL ) FROM tab0 AS cor0 WHERE + col1 IN ( - col2, 20 * + - col2, CAST ( NULL AS REAL ), col1 + - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * - - col2 BETWEEN 75 AND 43
----

query I rowsort
SELECT - 7 FROM tab1 WHERE NOT ( + - 88 ) <= - col0
----
-7

query I rowsort
SELECT ALL 6 + - - col2 FROM tab0
----
105
16
53

query I rowsort
SELECT DISTINCT + col2 + - col1 * - col2 AS col0 FROM tab0
----
198
220
3854

query I rowsort
SELECT - 8 + + 89 AS col2 FROM tab1
----
81
81
81

query I rowsort
SELECT 87 + - 50 FROM tab0
----
37
37
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4182
SELECT col2 DIV + 29 AS col2 FROM tab0 WHERE NULL IS NULL
----
0
1
3

skipif mysql # not compatible
query I rowsort label-4182
SELECT col2 / + 29 AS col2 FROM tab0 WHERE NULL IS NULL
----
0
1
3

query I rowsort
SELECT - col0 + col1 * - - col1 AS col1 FROM tab0
----
-96
354
6546

query I rowsort
SELECT DISTINCT 7 + + col2 AS col2 FROM tab0
----
106
17
54

query I rowsort
SELECT DISTINCT + + 98 FROM tab2 cor0
----
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + + 88 > NULL
----

query I rowsort
SELECT - AVG ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE ( NULL ) <> - - col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1 WHERE - 50 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query II rowsort
SELECT + col0 * col2 + + + col1 AS col0, ( + col2 ) AS col2 FROM tab1 cor0
----
4910
96
5020
59
6235
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT DISTINCT + 33 - COUNT( * ) FROM tab0 cor0
----
30

skipif mysql # not compatible
query I rowsort label-4191
SELECT DISTINCT + 33 - COUNT ( * ) FROM tab0 cor0
----
30

query I rowsort
SELECT 70 + + col1 * - + col2 FROM tab2 AS cor0
----
-1103
-3010
-3816

query I rowsort
SELECT - col1 + + col2 * + 14 AS col1 FROM tab2 AS cor0
----
271
483
745

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4194
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 * + + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 * + + CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT ALL + ( 36 ) FROM tab2 cor0
----
36
36
36

query II rowsort
SELECT col1 AS col0, col1 * + - 9 FROM tab2 AS cor0
----
51
-459
67
-603
77
-693

onlyif mysql # aggregate syntax: 
query II rowsort label-4197
SELECT ALL - - 74 + - - ( 29 ), COUNT( * ) AS col2 FROM tab0 AS cor0
----
103
3

skipif mysql # not compatible
query II rowsort label-4197
SELECT ALL - - 74 + - - ( 29 ), COUNT ( * ) AS col2 FROM tab0 AS cor0
----
103
3

query I rowsort
SELECT + col0 * + - 99 FROM tab1 cor0
----
-5049
-8415
-9009

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4199
SELECT ALL col2 * + 57 - + col1 DIV CAST( + col1 AS SIGNED ) * + col1 * - + col2 AS col0 FROM tab0 AS cor0
----
5742
6486
780

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL col2 * + 57 - + col1 / CAST ( + col1 AS INTEGER ) * + col1 * - + col2 AS col0 FROM tab0 AS cor0
----
5742
6486
780

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 * + col0 IS NULL
----

query II rowsort
SELECT DISTINCT - 16 AS col1, + col2 AS col1 FROM tab0
----
-16
10
-16
47
-16
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4202
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( col2 * + + CAST( - - 96 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4202
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( col2 * + + CAST ( - - 96 AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4203
SELECT ALL + CAST( NULL AS DECIMAL ) * - - 79 / - + MAX( ALL + CAST( - col2 AS DECIMAL ) ) * + COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL + CAST ( NULL AS REAL ) * - - 79 / - + MAX ( ALL + CAST ( - col2 AS REAL ) ) * + COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 58 AS col0 FROM tab0 cor0
----
58
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 50 col0, col2 * - 58 AS col2 FROM tab2 cor0
----
50
-1334
50
-2320
50
-3364

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT ALL 12 * - COUNT( * ) FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL 12 * - COUNT ( * ) FROM tab2 AS cor0
----
-36

query II rowsort
SELECT - - col1, + 15 AS col2 FROM tab2 AS cor0
----
51
15
67
15
77
15

query II rowsort
SELECT + col1, + col1 * col2 * + 31 AS col0 FROM tab1 AS cor0
----
14
41664
47
99076
5
9145

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT - ( - COUNT( * ) ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4209
SELECT - ( - COUNT ( * ) ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4210
SELECT ALL - col1 * 5 DIV 11 - CAST( + col1 AS SIGNED ) DIV + + ( + + col1 ) FROM tab1 AS cor0
----
-22
-3
-7

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL - col1 * 5 / 11 - CAST ( + col1 AS INTEGER ) / + + ( + + col1 ) FROM tab1 AS cor0
----
-22
-3
-7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + 76 * + - col2 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT + COUNT( * ) FROM tab2 WHERE NOT - - 39 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4212
SELECT + COUNT ( * ) FROM tab2 WHERE NOT - - 39 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4213
SELECT ALL + - CAST( NULL AS SIGNED ) * - + col1 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL + - CAST ( NULL AS INTEGER ) * - + col1 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4214
SELECT - 53 DIV col1 * + 71 FROM tab2 AS cor0
----
-71
0
0

skipif mysql # not compatible
query I rowsort label-4214
SELECT - 53 / col1 * + 71 FROM tab2 AS cor0
----
-71
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 11 <> col2 + + + 27
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 23 * ( col2 ) * + - col2 + + col1 AS col0 FROM tab2 AS cor0
----
-12116
-36723
-77305

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT MIN( - ( col2 ) ) col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4217
SELECT MIN ( - ( col2 ) ) col2 FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4218
SELECT MAX( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4218
SELECT MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4219
SELECT DISTINCT 57 DIV - 48 - - 84 * 43 AS col1, - COUNT( * ) + COUNT( * ) FROM tab2 WHERE 65 * - - col0 + + col2 IN ( - 31, CAST( NULL AS SIGNED ), col2, - col0, + 98 )
----
3611
0

skipif mysql # not compatible
query II rowsort label-4219
SELECT DISTINCT 57 / - 48 - - 84 * 43 AS col1, - COUNT ( * ) + COUNT ( * ) FROM tab2 WHERE 65 * - - col0 + + col2 IN ( - 31, CAST ( NULL AS INTEGER ), col2, - col0, + 98 )
----
3611
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4220
SELECT ALL - MAX( + + col1 ) + COUNT( * ) AS col2, CAST( - COUNT( * ) AS SIGNED ) FROM tab1
----
-44
-3

skipif mysql # not compatible
query II rowsort label-4220
SELECT ALL - MAX ( + + col1 ) + COUNT ( * ) AS col2, CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1
----
-44
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 80 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT + MAX( DISTINCT ( + 29 ) ) FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-4222
SELECT + MAX ( DISTINCT ( + 29 ) ) FROM tab2
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - col0 ) col1 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4224
SELECT ALL MIN( - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL MIN ( - CAST ( NULL AS REAL ) ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 99 - - - col1 FROM tab1 AS cor0
----
52
85
94

query II rowsort
SELECT DISTINCT - col1, col2 AS col0 FROM tab1 cor0
----
-14
96
-47
68
-5
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4227
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 13 FROM tab0 AS cor0 WHERE NOT ( NOT col2 - + + ( + 3 ) + - col1 <= - + col2 ) OR col2 = + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4227
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 13 FROM tab0 AS cor0 WHERE NOT ( NOT col2 - + + ( + 3 ) + - col1 <= - + col2 ) OR col2 = + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT DISTINCT - ( COUNT( DISTINCT - col2 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4228
SELECT DISTINCT - ( COUNT ( DISTINCT - col2 ) ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT ALL - col1 + - 94 AS col2, - col1 AS col1 FROM tab1
----
-108
-14
-141
-47
-99
-5

query I rowsort
SELECT col1 * - 65 AS col2 FROM tab1
----
-3055
-325
-910

query I rowsort
SELECT - + col2 - - - col2 AS col0 FROM tab1 AS cor0
----
-118
-136
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + col1 * + col2 col0 FROM tab1 AS cor0
----
-1395
-3287
-380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4233
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - 36 - MIN( ALL + + col0 ) + + + MAX( DISTINCT - col0 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - 36 - MIN ( ALL + + col0 ) + + + MAX ( DISTINCT - col0 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT ALL - ( - ( - COUNT( * ) ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL - ( - ( - COUNT ( * ) ) ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT DISTINCT 39 * - MAX( DISTINCT - + col0 ) + - ( 36 ) FROM tab2 AS cor0
----
1758

skipif mysql # not compatible
query I rowsort label-4235
SELECT DISTINCT 39 * - MAX ( DISTINCT - + col0 ) + - ( 36 ) FROM tab2 AS cor0
----
1758

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT COUNT( * ) FROM tab0 cor0 WHERE NOT ( ( NULL IS NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-4236
SELECT COUNT ( * ) FROM tab0 cor0 WHERE NOT ( ( NULL IS NULL ) )
----
0

query I rowsort
SELECT + + 5 + - - col0 * + - 87 AS col0 FROM tab0 WHERE NOT - + 58 IS NULL
----
-1300
-7564
-8434

query I rowsort
SELECT + 43 * col1 AS col0 FROM tab0
----
3483
43
903

onlyif mysql # DIV for integer division: 
query I rowsort label-4239
SELECT - 61 DIV - col0 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-4239
SELECT - 61 / - col0 FROM tab0
----
0
0
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT COUNT( * ) * - + 85 FROM tab1
----
-255

skipif mysql # not compatible
query I rowsort label-4240
SELECT COUNT ( * ) * - + 85 FROM tab1
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT DISTINCT COUNT( col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT COUNT ( col0 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4242
SELECT CAST( NULL AS SIGNED ) * - - 49 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4242
SELECT CAST ( NULL AS INTEGER ) * - - 49 col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4243
SELECT CAST( + - 33 AS SIGNED ) AS col1 FROM tab0
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-4243
SELECT CAST ( + - 33 AS INTEGER ) AS col1 FROM tab0
----
-33
-33
-33

query I rowsort
SELECT DISTINCT 89 * + col2 AS col1 FROM tab0
----
4183
8811
890

query II rowsort
SELECT col0, - col1 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT ALL + - SUM( - col2 ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL + - SUM ( - col2 ) AS col2 FROM tab2 AS cor0
----
121

query I rowsort
SELECT ALL col0 * + 22 FROM tab1 AS cor0
----
1122
1870
2002

onlyif mysql # aggregate syntax: 
query II rowsort label-4248
SELECT + 75 col0, SUM( col0 ) AS col0 FROM tab0 AS cor0
----
75
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4248
SELECT + 75 col0, SUM ( col0 ) AS col0 FROM tab0 AS cor0
----
75
199

query I rowsort
SELECT DISTINCT + 27 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT ALL MIN( ALL ( + + 3 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL MIN ( ALL ( + + 3 ) ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT col1 * 20 * + 99 * col0 * + - 65 FROM tab0 cor0
----
-12483900
-156370500
-235134900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4252
SELECT ALL - 13 DIV - + MIN( DISTINCT + 96 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL - 13 / - + MIN ( DISTINCT + 96 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - ( + + col1 ) FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT ALL - 5 * col2 + + col1 FROM tab0 AS cor0
----
-154
-29
-494

query I rowsort
SELECT DISTINCT - 40 * + col1 * - + 39 AS col2 FROM tab1 AS cor0
----
21840
73320
7800

query I rowsort
SELECT col1 * + - col0 + - - ( - col0 ) FROM tab1
----
-4368
-510
-765

query III rowsort
SELECT * FROM tab2 WHERE + col0 + col2 * + - col0 > NULL
----

query I rowsort
SELECT col1 * col2 + - 50 AS col1 FROM tab1
----
1294
245
3146

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT ALL COUNT( * ) * + COUNT( * ) + + 56 col0 FROM tab2
----
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4259
SELECT ALL COUNT ( * ) * + COUNT ( * ) + + 56 col0 FROM tab2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT ALL COUNT( * ) * - + 53 + - - 55 AS col2 FROM tab0 WHERE - - 42 IS NOT NULL
----
-104

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL COUNT ( * ) * - + 53 + - - 55 AS col2 FROM tab0 WHERE - - 42 IS NOT NULL
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4261
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT + 32 * - ( COUNT( * ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-4262
SELECT + 32 * - ( COUNT ( * ) ) FROM tab1
----
-96

query I rowsort
SELECT DISTINCT + 68 * - 69 * + ( - col0 ) FROM tab2
----
215832
300288
351900

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT ALL + MAX( ALL 15 ) col0 FROM tab0 cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4264
SELECT ALL + MAX ( ALL 15 ) col0 FROM tab0 cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4265
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( CAST( NULL AS SIGNED ) / + + col0 * + + col2, - 5, col2 / 45, + 46 )
----

skipif mysql # not compatible
query III rowsort label-4265
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( CAST ( NULL AS INTEGER ) / + + col0 * + + col2, - 5, col2 / 45, + 46 )
----

query I rowsort
SELECT + col1 - + 50 AS col2 FROM tab1 AS cor0
----
-3
-36
-45

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NOT NULL = + - 24
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 * - ( + + col1 ) * + + 79 > - col0
----

query II rowsort
SELECT + col1 + 4 * col1 AS col1, - col2 FROM tab1
----
235
-68
25
-59
70
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT ALL COUNT( * ) + 50 AS col1 FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL COUNT ( * ) + 50 AS col1 FROM tab1
----
53

onlyif mysql # DIV for integer division: 
query II rowsort label-4271
SELECT + - col1 AS col0, - col1 DIV col2 FROM tab0 cor0
----
-1
0
-21
-2
-81
-1

skipif mysql # not compatible
query II rowsort label-4271
SELECT + - col1 AS col0, - col1 / col2 FROM tab0 cor0
----
-1
0
-21
-2
-81
-1

query I rowsort
SELECT DISTINCT + 0 * ( 24 ) * - col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT ALL + - COUNT( DISTINCT - 74 ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL + - COUNT ( DISTINCT - 74 ) AS col2 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT - - MAX( DISTINCT + col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-4274
SELECT - - MAX ( DISTINCT + col1 ) FROM tab1 cor0
----
47

query II rowsort
SELECT - - col1, + col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT + + MIN( ALL + - 47 ) AS col1 FROM tab2 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4276
SELECT + + MIN ( ALL + - 47 ) AS col1 FROM tab2 cor0
----
-47

query I rowsort
SELECT + ( - 60 ) FROM tab0 AS cor0
----
-60
-60
-60

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( NULL ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT DISTINCT - COUNT( ALL - 83 ) FROM tab2 WHERE NOT + col2 / - - 89 + col1 + - 52 <> - + col0
----
0

skipif mysql # not compatible
query I rowsort label-4279
SELECT DISTINCT - COUNT ( ALL - 83 ) FROM tab2 WHERE NOT + col2 / - - 89 + col1 + - 52 <> - + col0
----
0

query I rowsort
SELECT 49 * - col2 FROM tab2
----
-1127
-1960
-2842

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT ALL - 0 FROM tab2 cor0 WHERE 96 IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT ALL - COUNT( * ) * + 79 AS col1 FROM tab2 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-4283
SELECT ALL - COUNT ( * ) * + 79 AS col1 FROM tab2 AS cor0
----
-237

query I rowsort
SELECT DISTINCT - + col2 * + col2 AS col1 FROM tab2 AS cor0 WHERE + ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT DISTINCT - COUNT( DISTINCT + 42 ) + COUNT( * ) * 76 FROM tab2
----
227

skipif mysql # not compatible
query I rowsort label-4285
SELECT DISTINCT - COUNT ( DISTINCT + 42 ) + COUNT ( * ) * 76 FROM tab2
----
227

query III rowsort
SELECT * FROM tab2 WHERE col1 + + + 37 > + col2 * - - col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4287
SELECT DISTINCT - + col2 * - col2 + - - 52 - + 47 DIV + col2, 14 AS col0 FROM tab2 AS cor0
----
1651
14
3416
14
579
14

skipif mysql # not compatible
query II rowsort label-4287
SELECT DISTINCT - + col2 * - col2 + - - 52 - + 47 / + col2, 14 AS col0 FROM tab2 AS cor0
----
1651
14
3416
14
579
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4288
SELECT - - 45 DIV - 49 + + 48 FROM tab2 AS cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-4288
SELECT - - 45 / - 49 + + 48 FROM tab2 AS cor0
----
48
48
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4289
SELECT ALL - COUNT( * ), 13 AS col0 FROM tab1 AS cor0
----
-3
13

skipif mysql # not compatible
query II rowsort label-4289
SELECT ALL - COUNT ( * ), 13 AS col0 FROM tab1 AS cor0
----
-3
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4290
SELECT + 99 DIV + COUNT( * ) AS col2 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-4290
SELECT + 99 / + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 75, + col2 + + col2 col2 FROM tab0 AS cor0
----
75
198
75
20
75
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT MIN( ALL + 18 ) * COUNT( * ) - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-4292
SELECT MIN ( ALL + 18 ) * COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
57

query I rowsort
SELECT DISTINCT - ( - + col1 ) AS col0 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT ALL COUNT( * ) + - COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4295
SELECT DISTINCT 57 * + - col0 * + CAST( + col2 AS SIGNED ) + col2 AS col2 FROM tab2
----
-145880
-247892
-60283

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT 57 * + - col0 * + CAST ( + col2 AS INTEGER ) + col2 AS col2 FROM tab2
----
-145880
-247892
-60283

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4296
SELECT col2 + + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4296
SELECT col2 + + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL = - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT DISTINCT + COUNT( * ) + + 62 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-4298
SELECT DISTINCT + COUNT ( * ) + + 62 FROM tab2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4299
SELECT ALL 63 FROM tab2 WHERE - col1 <> + ( - col2 ) + + CAST( - 57 AS SIGNED ) + - 68 * + col1
----
63
63
63

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL 63 FROM tab2 WHERE - col1 <> + ( - col2 ) + + CAST ( - 57 AS INTEGER ) + - 68 * + col1
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT 48 + - + COUNT( * ) AS col0 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-4300
SELECT 48 + - + COUNT ( * ) AS col0 FROM tab0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT SUM( ALL + - ( + ( col2 ) ) ) + + MAX( ALL - col1 ) FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-4301
SELECT SUM ( ALL + - ( + ( col2 ) ) ) + + MAX ( ALL - col1 ) FROM tab1
----
-228

query I rowsort
SELECT - 11 * + + col0 + col2 FROM tab2
----
-483
-664
-767

onlyif mysql # DIV for integer division: 
query I rowsort label-4303
SELECT - col2 DIV - col0 + + 58 - - + 67 * col1 FROM tab2 AS cor0
----
3475
4547
5217

skipif mysql # not compatible
query I rowsort label-4303
SELECT - col2 / - col0 + + 58 - - + 67 * col1 FROM tab2 AS cor0
----
3475
4547
5217

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4304
SELECT ALL - - CAST( - 41 AS SIGNED ) AS col2, col0 AS col0 FROM tab1 cor0
----
-41
51
-41
85
-41
91

skipif mysql # not compatible
query II rowsort label-4304
SELECT ALL - - CAST ( - 41 AS INTEGER ) AS col2, col0 AS col0 FROM tab1 cor0
----
-41
51
-41
85
-41
91

onlyif mysql # DIV for integer division: 
query II rowsort label-4305
SELECT DISTINCT + col1 DIV col0 AS col1, 88 FROM tab2
----
0
88
1
88

skipif mysql # not compatible
query II rowsort label-4305
SELECT DISTINCT + col1 / col0 AS col1, 88 FROM tab2
----
0
88
1
88

query I rowsort
SELECT - - ( - 38 ) AS col0 FROM tab1 AS cor0
----
-38
-38
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-4307
SELECT ALL - col2 DIV - + col0 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL - col2 / - + col0 AS col2 FROM tab1 AS cor0
----
0
0
1

query II rowsort
SELECT ALL 52 AS col2, - col0 * - 89 * - col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
52
-37825
52
-380653
52
-63546

query I rowsort
SELECT DISTINCT - - 76 AS col0 FROM tab2 AS cor0
----
76

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + + 18 < col2
----

query II rowsort
SELECT ALL - 88 AS col0, 60 FROM tab2
----
-88
60
-88
60
-88
60

query I rowsort
SELECT DISTINCT + 26 AS col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT + COUNT( * ) * + 41 AS col1 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-4314
SELECT + COUNT ( * ) * + 41 AS col1 FROM tab2
----
123

query I rowsort
SELECT col0 * - - 51 FROM tab2
----
2346
3264
3825

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT DISTINCT + SUM( DISTINCT + 39 ) FROM tab1 cor0
----
39

skipif mysql # not compatible
query I rowsort label-4316
SELECT DISTINCT + SUM ( DISTINCT + 39 ) FROM tab1 cor0
----
39

query I rowsort
SELECT DISTINCT ( - - col0 ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT - + COUNT( * ) * - + 92 FROM tab2 cor0
----
276

skipif mysql # not compatible
query I rowsort label-4318
SELECT - + COUNT ( * ) * - + 92 FROM tab2 cor0
----
276

query II rowsort
SELECT DISTINCT + col1 AS col1, col0 AS col2 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT DISTINCT + 45 + + 63 + + 1 FROM tab1 AS cor0
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4321
SELECT - SUM( - col1 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4321
SELECT - SUM ( - col1 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( 56, + col2 * - col2, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT ALL 55 + COUNT( * ) - + 52 AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL 55 + COUNT ( * ) - + 52 AS col2 FROM tab0
----
6

query I rowsort
SELECT ALL ( col0 ) * + 65 * - col0 - + - col1 AS col0 FROM tab1
----
-169051
-469620
-538218

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT DISTINCT SUM( ALL - 7 ) AS col0 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-4325
SELECT DISTINCT SUM ( ALL - 7 ) AS col0 FROM tab0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4326
SELECT ALL - - CAST( + 21 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
21
21
21

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL - - CAST ( + 21 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT + - 45 + - MIN( + 59 ) FROM tab1 AS cor0
----
-104

skipif mysql # not compatible
query I rowsort label-4327
SELECT + - 45 + - MIN ( + 59 ) FROM tab1 AS cor0
----
-104

query I rowsort
SELECT + ( - 45 ) + - ( col1 ) AS col1 FROM tab1
----
-50
-59
-92

query I rowsort
SELECT + 73 FROM tab0 WHERE + + 73 IS NULL
----

query I rowsort
SELECT ALL + 7 AS col1 FROM tab0 AS cor0 WHERE NOT ( - + 33 ) * 68 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT + MAX( col1 ) * + + 45 AS col1 FROM tab2 cor0
----
3465

skipif mysql # not compatible
query I rowsort label-4331
SELECT + MAX ( col1 ) * + + 45 AS col1 FROM tab2 cor0
----
3465

query I rowsort
SELECT DISTINCT + col2 * + - 72 FROM tab0
----
-3384
-7128
-720

query I rowsort
SELECT + 73 * - col2 AS col1 FROM tab0
----
-3431
-7227
-730

onlyif mysql # DIV for integer division: 
query I rowsort label-4334
SELECT ALL - col0 DIV col0 * + col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL - col0 / col0 * + col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 AS cor0 WHERE col0 * + 96 - 0 <> + - col2 * col1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT ALL COUNT( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4336
SELECT ALL COUNT ( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT DISTINCT 62 * + COUNT( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT 62 * + COUNT ( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
186

query I rowsort
SELECT + + col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > 18
----

query I rowsort
SELECT ALL - + col0 * - - col0 - + 27 * + 92 FROM tab0 AS cor0
----
-10053
-11893
-2709

onlyif mysql # aggregate syntax: 
query II rowsort label-4340
SELECT - 56, COUNT( * ) col2 FROM tab2 AS cor0
----
-56
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4340
SELECT - 56, COUNT ( * ) col2 FROM tab2 AS cor0
----
-56
3

query II rowsort
SELECT + col2 AS col0, - col1 + + - col1 + + col2 FROM tab2 AS cor0
----
23
-79
40
-114
58
-76

query I rowsort
SELECT DISTINCT 92 + - 45 * + + col1 AS col2 FROM tab0
----
-3553
-853
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT MIN( 50 ) FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-4343
SELECT MIN ( 50 ) FROM tab2
----
50

query I rowsort
SELECT + col0 - + - col2 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
196
62
97

query I rowsort
SELECT ALL ( + 56 ) FROM tab1
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT + COUNT( * ) * + + MIN( ALL - col2 ) AS col1 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-4346
SELECT + COUNT ( * ) * + + MIN ( ALL - col2 ) AS col1 FROM tab1
----
-288

onlyif mysql # DIV for integer division: 
query II rowsort label-4347
SELECT DISTINCT col2 DIV + col0 col1, col2 FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4347
SELECT DISTINCT col2 / + col0 col1, col2 FROM tab2
----
0
23
0
40
0
58

query I rowsort
SELECT ALL - 39 * + + 36 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT ALL 78 * + COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
234

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL 78 * + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
234

query II rowsort
SELECT DISTINCT + 21 * + + col1 + col1 AS col1, 11 * col2 FROM tab0
----
1782
517
22
1089
462
110

query I rowsort
SELECT DISTINCT + col0 + col2 - ( + col2 ) FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4352
SELECT + 84 AS col2, col1 * - - CAST( NULL AS SIGNED ) * 38 FROM tab1 AS cor0
----
84
NULL
84
NULL
84
NULL

skipif mysql # not compatible
query II rowsort label-4352
SELECT + 84 AS col2, col1 * - - CAST ( NULL AS INTEGER ) * 38 FROM tab1 AS cor0
----
84
NULL
84
NULL
84
NULL

query I rowsort
SELECT ALL + + 53 AS col2 FROM tab1 AS cor0
----
53
53
53

onlyif mysql # aggregate syntax: 
query II rowsort label-4354
SELECT ALL - + 20, + 61 * - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-20
183

skipif mysql # not compatible
query II rowsort label-4354
SELECT ALL - + 20, + 61 * - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-20
183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + 87 + - col2 * + + 96 * 40 col0 FROM tab1 AS cor0
----
-231693
-267036
-376992

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT 62 * + COUNT( * ) FROM tab0 cor0
----
186

skipif mysql # not compatible
query I rowsort label-4356
SELECT 62 * + COUNT ( * ) FROM tab0 cor0
----
186

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4357
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) > ( - 67 )
----

skipif mysql # not compatible
query III rowsort label-4357
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) > ( - 67 )
----

query I rowsort
SELECT DISTINCT + 97 * + col2 / 13 - col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT - - 10, col1 AS col2 FROM tab1 AS cor0
----
10
14
10
47
10
5

query I rowsort
SELECT - 71 + col2 FROM tab1
----
-12
-3
25

query I rowsort
SELECT DISTINCT + col1 - - ( + col2 ) AS col0 FROM tab1
----
110
115
64

query I rowsort
SELECT + col0 * - 14 + col1 + - col1 * - col0 - col0 FROM tab0
----
-1357
1071
543

query I rowsort
SELECT + col1 / col2 AS col2 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT ALL + col1 - - 84 + - 66 + + 1 AS col0 FROM tab0
----
100
20
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT - COUNT( DISTINCT - 85 ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4365
SELECT - COUNT ( DISTINCT - 85 ) AS col1 FROM tab2
----
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) < + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 7 col1, + col1 + + + col0 AS col0 FROM tab0 AS cor0
----
-7
108
-7
96
-7
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + ( + 71 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL = col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 69 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT ALL - 13 * 29 * + - 78 + 77 + ( + 86 ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
29572

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL - 13 * 29 * + - 78 + 77 + ( + 86 ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
29572

query II rowsort
SELECT DISTINCT - - col1 AS col0, col0 AS col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT DISTINCT + - 39 * 60 + + 26 - + SUM( DISTINCT col2 ) * + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-1645

skipif mysql # not compatible
query I rowsort label-4374
SELECT DISTINCT + - 39 * 60 + + 26 - + SUM ( DISTINCT col2 ) * + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-1645

onlyif mysql # DIV for integer division: 
query I rowsort label-4375
SELECT ALL 31 DIV - - col0 - 88 + col1 * - col0 + - col0 + + col0 - - col0 * - col0 FROM tab1 AS cor0
----
-12646
-3403
-7738

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL 31 / - - col0 - 88 + col1 * - col0 + - col0 + + col0 - - col0 * - col0 FROM tab1 AS cor0
----
-12646
-3403
-7738

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4376
SELECT DISTINCT + MAX( CAST( NULL AS DECIMAL ) ) * + ( + 18 ) FROM tab1 AS cor0 WHERE + 66 + + col2 + ( - CAST( NULL AS SIGNED ) ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT + MAX ( CAST ( NULL AS REAL ) ) * + ( + 18 ) FROM tab1 AS cor0 WHERE + 66 + + col2 + ( - CAST ( NULL AS INTEGER ) ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 22 + - ( col2 ) AS col0 FROM tab2
----
-1
-18
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-4378
SELECT ( - 12 ) DIV - col1 + 6 DIV + col0 FROM tab0
----
0
0
12

skipif mysql # not compatible
query I rowsort label-4378
SELECT ( - 12 ) / - col1 + 6 / + col0 FROM tab0
----
0
0
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4379
SELECT ALL + col1 + - col0 * col2 / CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL + col1 + - col0 * col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + - col2 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT - COUNT( * ) * 17 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-4381
SELECT - COUNT ( * ) * 17 FROM tab2
----
-51

query I rowsort
SELECT ALL col0 * - + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4383
SELECT + - col1 / - 60 + + CAST( NULL AS SIGNED ) AS col1, col2 FROM tab1 AS cor0 WHERE - 5 > + col1 / col2 * + col1 * + + col0 * + 61 + 47
----

skipif mysql # not compatible
query II rowsort label-4383
SELECT + - col1 / - 60 + + CAST ( NULL AS INTEGER ) AS col1, col2 FROM tab1 AS cor0 WHERE - 5 > + col1 / col2 * + col1 * + + col0 * + 61 + 47
----

query I rowsort
SELECT DISTINCT + - 39 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4385
SELECT DISTINCT + - COUNT( DISTINCT col2 ), - ( + COUNT( ALL CAST( col2 AS SIGNED ) ) ) AS col0 FROM tab2 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-4385
SELECT DISTINCT + - COUNT ( DISTINCT col2 ), - ( + COUNT ( ALL CAST ( col2 AS INTEGER ) ) ) AS col0 FROM tab2 AS cor0
----
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 - - - col2 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 + + col2 * - 25 FROM tab0 AS cor0
----
-1094
-229
-2474

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT - ( col1 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - - 29 AND + + col0 / - col2 + + col2
----

query II rowsort
SELECT - col0 + + - col1 * + 29 AS col1, - 23 * 52 + + col1 AS col1 FROM tab1 AS cor0
----
-1454
-1149
-230
-1191
-457
-1182

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT + ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE ( NOT ( NULL IS NOT NULL ) )
----
3

skipif mysql # not compatible
query I rowsort label-4391
SELECT + ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE ( NOT ( NULL IS NOT NULL ) )
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4392
SELECT + 8 DIV + 6 - col0 AS col2, + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-14
81
-86
21
-96
1

skipif mysql # not compatible
query II rowsort label-4392
SELECT + 8 / + 6 - col0 AS col2, + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-14
81
-86
21
-96
1

query I rowsort
SELECT - + col1 * - 91 AS col0 FROM tab2 AS cor0
----
4641
6097
7007

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 83 col0 FROM tab2 AS cor0
----
83
83
83

query I rowsort
SELECT 50 * col2 FROM tab1
----
2950
3400
4800

query I rowsort
SELECT DISTINCT - ( 30 ) FROM tab0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4397
SELECT ALL + CAST( - 40 AS SIGNED ) FROM tab2 WHERE NULL IS NULL
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL + CAST ( - 40 AS INTEGER ) FROM tab2 WHERE NULL IS NULL
----
-40
-40
-40

query I rowsort
SELECT DISTINCT + - col1 FROM tab1 WHERE 67 <> col1 + - col0 OR NOT + col0 + col2 < + col1
----
-14
-47
-5

query II rowsort
SELECT ALL + 57 AS col0, col0 + - + col0 FROM tab0 AS cor0
----
57
0
57
0
57
0

query II rowsort
SELECT - col0 AS col1, + col0 AS col1 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) = - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT + COUNT( ALL + + col0 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4402
SELECT + COUNT ( ALL + + col0 ) AS col0 FROM tab2 cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4403
SELECT ALL - 44, - col2 * col2 DIV + - 99 AS col2 FROM tab2 AS cor0
----
-44
16
-44
33
-44
5

skipif mysql # not compatible
query II rowsort label-4403
SELECT ALL - 44, - col2 * col2 / + - 99 AS col2 FROM tab2 AS cor0
----
-44
16
-44
33
-44
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4404
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + - CAST( - col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4404
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + - CAST ( - col2 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 <= NULL
----

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT col1 - 25 IS NOT NULL
----

query II rowsort
SELECT - 83 * + 44, 28 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 39607913e760ff82b86f2e86e8bbd625

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT DISTINCT - 95 * + 48 + + + COUNT( * ) FROM tab1 AS cor0
----
-4557

skipif mysql # not compatible
query I rowsort label-4408
SELECT DISTINCT - 95 * + 48 + + + COUNT ( * ) FROM tab1 AS cor0
----
-4557

query II rowsort
SELECT ALL col1 * - + 50, + col0 FROM tab2 AS cor0
----
-2550
46
-3350
75
-3850
64

query I rowsort
SELECT ALL + - col0 + col0 * - col0 FROM tab1 cor0
----
-2652
-7310
-8372

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT - SUM( ALL ( ( + col2 ) ) ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-4412
SELECT - SUM ( ALL ( ( + col2 ) ) ) AS col0 FROM tab0
----
-156

query I rowsort
SELECT DISTINCT + 49 * + col0 * - + col0 FROM tab2
----
-103684
-200704
-275625

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT col0 + - - col1 AS col2 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT COUNT( * ) + + COUNT( * ) - 79 col2 FROM tab0
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4416
SELECT COUNT ( * ) + + COUNT ( * ) - 79 col2 FROM tab0
----
-73

query I rowsort
SELECT - col1 + + 19 AS col1 FROM tab0
----
-2
-62
18

query I rowsort
SELECT 33 * - col1 AS col2 FROM tab0 AS cor0 WHERE col0 * col0 NOT IN ( col0 )
----
-2673
-33
-693

query I rowsort
SELECT - 21 * - + col1 + - 54 FROM tab2 cor0
----
1017
1353
1563

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + + col1 + + col2 ) BETWEEN ( NULL ) AND + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT MAX( ALL 27 ) AS col1 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-4421
SELECT MAX ( ALL 27 ) AS col1 FROM tab2
----
27

query I rowsort
SELECT + col1 AS col1 FROM tab1 cor0 WHERE - col2 - - col0 = + col1 + + 38
----

query I rowsort
SELECT ALL + + 18 - - + col1 FROM tab0 AS cor0
----
19
39
99

query I rowsort
SELECT - - col1 - - - 4 FROM tab2 AS cor0
----
47
63
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4425
SELECT DISTINCT + 82 - + - 44 + - MAX( DISTINCT + CAST( NULL AS SIGNED ) ), MAX( - - col2 ) col0 FROM tab0 AS cor0
----
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4425
SELECT DISTINCT + 82 - + - 44 + - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ), MAX ( - - col2 ) col0 FROM tab0 AS cor0
----
NULL
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4426
SELECT - CAST( - + col1 AS SIGNED ) * - col0 + + + col1 FROM tab0
----
-1134
-1806
-96

skipif mysql # not compatible
query I rowsort label-4426
SELECT - CAST ( - + col1 AS INTEGER ) * - col0 + + + col1 FROM tab0
----
-1134
-1806
-96

query I rowsort
SELECT ALL 87 AS col1 FROM tab0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL <= + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4429
SELECT - CAST( NULL AS SIGNED ) * + COUNT( ALL col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4429
SELECT - CAST ( NULL AS INTEGER ) * + COUNT ( ALL col2 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT SUM( - col1 ) col2 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4430
SELECT SUM ( - col1 ) col2 FROM tab1
----
-66

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 * - 86 BETWEEN + col2 * col1 * + 21 * col2 * - col2 + col2 AND NULL
----

query I rowsort
SELECT DISTINCT 64 AS col1 FROM tab0 cor0
----
64

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT + col2 - + col0 <= col2
----

query II rowsort
SELECT DISTINCT - col1 AS col2, + col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 79 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 + + + col2 AS col1 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # DIV for integer division: 
query I rowsort label-4437
SELECT + 32 DIV - col2 * - + col1 + 90 DIV + col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4437
SELECT + 32 / - col2 * - + col1 + 90 / + col2 FROM tab1
----
0
1
1

query I rowsort
SELECT + 1 + - 59 AS col0 FROM tab0
----
-58
-58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4439
SELECT DISTINCT col2 * col1 AS col0, + ( CAST( col2 AS SIGNED ) ) FROM tab0
----
210
10
3807
47
99
99

skipif mysql # not compatible
query II rowsort label-4439
SELECT DISTINCT col2 * col1 AS col0, + ( CAST ( col2 AS INTEGER ) ) FROM tab0
----
210
10
3807
47
99
99

query I rowsort
SELECT + ( + col1 ) AS col0 FROM tab1 WHERE - + col2 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4441
SELECT DISTINCT - 14 * + 6 DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-4441
SELECT DISTINCT - 14 * + 6 / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-28

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 - + 4 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4443
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL + 7 AS col1 FROM tab2 cor0
----
7
7
7

query I rowsort
SELECT + col1 - + - col1 AS col1 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT + col1 + - - col0 FROM tab1
----
138
65
90

query I rowsort
SELECT ALL - 65 + col2 AS col0 FROM tab1
----
-6
3
31

query I rowsort
SELECT DISTINCT - + col2 + - col2 FROM tab1 WHERE NOT NULL BETWEEN + 43 * + col0 AND col0 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4449
SELECT ALL col0 - 57 DIV - col0 FROM tab1 cor0
----
52
85
91

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL col0 - 57 / - col0 FROM tab1 cor0
----
52
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( - - col0 ) + + col1 + + 88 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4451
SELECT CAST( col0 AS SIGNED ) * - 7 - + 62 * col0 * + col0 col1 FROM tab1 AS cor0
----
-161619
-448545
-514059

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4451
SELECT CAST ( col0 AS INTEGER ) * - 7 - + 62 * col0 * + col0 col1 FROM tab1 AS cor0
----
-161619
-448545
-514059

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4452
SELECT + col1, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-4452
SELECT + col1, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT + - ( - 11 ) FROM tab2 AS cor0
----
11
11
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col0 * + col1 col0 FROM tab0 AS cor0
----
-158949
-18225
-9409

query I rowsort
SELECT + col0 * - 85 * + + col0 AS col1 FROM tab2 AS cor0
----
-179860
-348160
-478125

query I rowsort
SELECT col0 * - + col2 AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT 35 * - ( + 32 ) FROM tab2
----
-1120
-1120
-1120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + AVG ( ALL + - col2 ) col1 FROM tab2 WHERE NOT - col0 + + col0 <> + ( 7 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4459
SELECT DISTINCT - 86 * - 66 * - - COUNT( ALL - 84 ) * COUNT( * ) / - CAST( NULL AS SIGNED ) AS col2, COUNT( * ) AS col1 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4459
SELECT DISTINCT - 86 * - 66 * - - COUNT ( ALL - 84 ) * COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) AS col1 FROM tab2
----
NULL
3

query I rowsort
SELECT ALL + col1 * + - col1 * col1 AS col1 FROM tab2
----
-132651
-300763
-456533

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 64 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > col1 - 4 + + + col1 * - col2
----

query I rowsort
SELECT + + ( + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT 27 * + 25 + + 76 IS NOT NULL
----

query II rowsort
SELECT + + col0 AS col0, 53 FROM tab1 AS cor0
----
51
53
85
53
91
53

query II rowsort
SELECT + col2, + col2 * col0 AS col0 FROM tab0 cor0
----
10
870
47
705
99
9603

query I rowsort
SELECT - col2 + - col1 + + col2 * + - col0 FROM tab2
----
-1132
-2677
-4475

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT - MIN( + + col0 ) * + 32 FROM tab2 AS cor0
----
-1472

skipif mysql # not compatible
query I rowsort label-4467
SELECT - MIN ( + + col0 ) * + 32 FROM tab2 AS cor0
----
-1472

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 >= + - 50 * - + 3 + col1 - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT DISTINCT + MAX( - col2 ) col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4469
SELECT DISTINCT + MAX ( - col2 ) col2 FROM tab2 AS cor0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-4470
SELECT col2 DIV 75 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-4470
SELECT col2 / 75 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT + 24 * - 3 + - MIN( - + 55 ) AS col2 FROM tab1 WHERE ( col2 ) BETWEEN + + 48 AND + col1 + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4471
SELECT + 24 * - 3 + - MIN ( - + 55 ) AS col2 FROM tab1 WHERE ( col2 ) BETWEEN + + 48 AND + col1 + - col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4472
SELECT * FROM tab1 WHERE + + col1 BETWEEN - ( - 3 ) * 81 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4472
SELECT * FROM tab1 WHERE + + col1 BETWEEN - ( - 3 ) * 81 AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - + col2 FROM tab2 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4474
SELECT - + 37 * - 21 * - CAST( NULL AS SIGNED ) + + ( col2 ) + + col0 + col0 FROM tab1 WHERE - col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4474
SELECT - + 37 * - 21 * - CAST ( NULL AS INTEGER ) + + ( col2 ) + + col0 + col0 FROM tab1 WHERE - col1 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4475
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT 64 - COUNT( * ) AS col2 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-4476
SELECT 64 - COUNT ( * ) AS col2 FROM tab0
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-4477
SELECT ( ( - 42 ) ) DIV + col1 FROM tab1
----
-3
-8
0

skipif mysql # not compatible
query I rowsort label-4477
SELECT ( ( - 42 ) ) / + col1 FROM tab1
----
-3
-8
0

query I rowsort
SELECT 72 + ( col1 ) FROM tab1 WHERE NOT + col1 = col2
----
119
77
86

query I rowsort
SELECT ALL ( + 70 ) AS col1 FROM tab1
----
70
70
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4480
SELECT col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT - col1 = col2 - 90
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4480
SELECT col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT - col1 = col2 - 90
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 25 + - col0 FROM tab0
----
-112
-122
-40

query I rowsort
SELECT DISTINCT 85 + col1 AS col1 FROM tab0
----
106
166
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT DISTINCT + 54 * - COUNT( * ) AS col0 FROM tab2 WHERE col0 - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4483
SELECT DISTINCT + 54 * - COUNT ( * ) AS col0 FROM tab2 WHERE col0 - col1 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 / - col2 ) >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4485
SELECT ALL * FROM tab2 WHERE + 71 = ( - col2 + CAST( 61 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4485
SELECT ALL * FROM tab2 WHERE + 71 = ( - col2 + CAST ( 61 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4486
SELECT + col0 - + CAST( col1 AS SIGNED ) AS col0 FROM tab0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-4486
SELECT + col0 - + CAST ( col1 AS INTEGER ) AS col0 FROM tab0
----
-66
66
96

query III rowsort
SELECT * FROM tab2 WHERE - 48 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 - 65 <= col1 + 16
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 35 ) < ( col1 - 39 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 85 + + 57 FROM tab1 WHERE NOT ( NULL ) <= 52 * col2 - - 61
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4491
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - CAST( NULL AS SIGNED ) * - col0
----

skipif mysql # not compatible
query III rowsort label-4491
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - CAST ( NULL AS INTEGER ) * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT + 23 + COUNT( * ) FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-4492
SELECT + 23 + COUNT ( * ) FROM tab1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT - COUNT( * ) + + MAX( - col2 ) * 85 FROM tab0
----
-853

skipif mysql # not compatible
query I rowsort label-4493
SELECT - COUNT ( * ) + + MAX ( - col2 ) * 85 FROM tab0
----
-853

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT + SUM( ALL - col2 ) col0 FROM tab2
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4494
SELECT + SUM ( ALL - col2 ) col0 FROM tab2
----
-121

query I rowsort
SELECT - ( - 90 ) FROM tab2
----
90
90
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4496
SELECT DISTINCT + 27 + 68 DIV col2 FROM tab1
----
27
28

skipif mysql # not compatible
query I rowsort label-4496
SELECT DISTINCT + 27 + 68 / col2 FROM tab1
----
27
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT DISTINCT 70 * - MIN( DISTINCT ( + ( + col0 ) ) ) FROM tab2 AS cor0
----
-3220

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT 70 * - MIN ( DISTINCT ( + ( + col0 ) ) ) FROM tab2 AS cor0
----
-3220

query I rowsort
SELECT DISTINCT + col1 * 95 + col2 * + col2 FROM tab0 AS cor0
----
2095
9896
9904

query I rowsort
SELECT ALL 35 AS col2 FROM tab2 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT + 37 * MAX( DISTINCT col2 ) FROM tab2
----
2146

skipif mysql # not compatible
query I rowsort label-4500
SELECT + 37 * MAX ( DISTINCT col2 ) FROM tab2
----
2146

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL >= - col0 * - 45 + col2
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE 87 >= ( col2 + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 + + 79 AS col1 FROM tab1 AS cor0
----
138
147
175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4504
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( CAST( NULL AS SIGNED ) + 3 ) IN ( - col0 - col1 / ( col2 / + CAST( NULL AS DECIMAL ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4504
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) + 3 ) IN ( - col0 - col1 / ( col2 / + CAST ( NULL AS REAL ) ) )
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col0 AND - col0
----

query I rowsort
SELECT + col2 + - 4 FROM tab0 AS cor0
----
43
6
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4507
SELECT ALL + col2 * 29 + ( col2 + + CAST( + col1 AS SIGNED ) * + 91 ) FROM tab0 AS cor0
----
2211
3061
8781

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL + col2 * 29 + ( col2 + + CAST ( + col1 AS INTEGER ) * + 91 ) FROM tab0 AS cor0
----
2211
3061
8781

query I rowsort
SELECT 48 + - 27 FROM tab2 AS cor0
----
21
21
21

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + col2 + 80 )
----

query I rowsort
SELECT DISTINCT - 26 + - 6 FROM tab1
----
-32

query I rowsort
SELECT - 76 + - col0 - - col1 * + col1 AS col2 FROM tab2
----
2479
4338
5789

query I rowsort
SELECT ALL + 93 + col1 FROM tab0
----
114
174
94

query I rowsort
SELECT ( 50 ) + 63 FROM tab0
----
113
113
113

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 WHERE - 82 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4514
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 WHERE - 82 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT - MAX( ALL - + col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4515
SELECT - MAX ( ALL - + col0 ) AS col2 FROM tab0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 col2 FROM tab2
----
25
25
25

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 AS cor0 WHERE - 18 IS NOT NULL
----
-15
-87
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2 * + 32
----

query I rowsort
SELECT DISTINCT - 47 AS col2 FROM tab0 cor0
----
-47

query I rowsort
SELECT DISTINCT col0 - + col2 * col2 FROM tab0 AS cor0
----
-13
-2194
-9704

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT + - COUNT( * ) - ( ( + ( - COUNT( * ) ) ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4521
SELECT + - COUNT ( * ) - ( ( + ( - COUNT ( * ) ) ) ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT ALL COUNT( * ) col1 FROM tab2 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-4522
SELECT ALL COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT + ( + 55 ) FROM tab0 cor0
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 * - col1 col1 FROM tab2 AS cor0
----
-306
-402
-462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 84 col0, - col2 FROM tab2 AS cor0
----
84
-23
84
-40
84
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 51 * col2 col2 FROM tab2 AS cor0
----
-1173
-2040
-2958

query I rowsort
SELECT 30 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( - col1 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT - COUNT( col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4528
SELECT - COUNT ( col0 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE 20 <= + + col0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 42 col2 FROM tab1 AS cor0
----
2142
3570
3822

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( + 0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT MIN( DISTINCT 61 ) FROM tab2 cor0
----
61

skipif mysql # not compatible
query I rowsort label-4532
SELECT MIN ( DISTINCT 61 ) FROM tab2 cor0
----
61

query I rowsort
SELECT + col2 * + col2 * + col0 FROM tab2
----
102400
24334
252300

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 99 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col0 * col2, - ( + col2 ) + col2 AS col1 FROM tab0
----
705
0
870
0
9603
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT ALL - COUNT( ALL ( + col0 ) ) * - 4 AS col1 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL - COUNT ( ALL ( + col0 ) ) * - 4 AS col1 FROM tab0
----
12

query I rowsort
SELECT + 52 * col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN NULL AND ( col1 )
----
4524
5044

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * - + col2 col0 FROM tab0 AS cor0
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 col0 FROM tab1 AS cor0
----
13
13
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4540
SELECT ALL 49 DIV - - SUM( - col1 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL 49 / - - SUM ( - col1 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col1 * + col2 * - 26 FROM tab0 AS cor0
----
-2574
-5460
-98982

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4542
SELECT ALL col0 * - CAST( + col1 AS SIGNED ) + + col2 AS col0 FROM tab1 cor0 WHERE + col2 NOT IN ( 62 )
----
-366
-4209
-618

skipif mysql # not compatible
query I rowsort label-4542
SELECT ALL col0 * - CAST ( + col1 AS INTEGER ) + + col2 AS col0 FROM tab1 cor0 WHERE + col2 NOT IN ( 62 )
----
-366
-4209
-618

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT + + COUNT( * ) col0 FROM tab2 AS cor0 WHERE col2 * - 51 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4543
SELECT + + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE col2 * - 51 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT - col0 - - - col2 FROM tab1 WHERE - col1 IS NOT NULL
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT + SUM( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4545
SELECT + SUM ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT + 62 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( 12 )
----

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 68 AND + + 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT SUM( - - 69 ) col2 FROM tab1 AS cor0
----
207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4548
SELECT SUM ( - - 69 ) col2 FROM tab1 AS cor0
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT DISTINCT - 28 * + + MIN( - col0 ) AS col0 FROM tab1 AS cor0
----
2548

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT - 28 * + + MIN ( - col0 ) AS col0 FROM tab1 AS cor0
----
2548

query II rowsort
SELECT DISTINCT - - 67 + + ( - col0 ) AS col0, + 5 FROM tab0 AS cor0
----
-20
5
-30
5
52
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN 53 * 20 AND + col1
----

query I rowsort
SELECT - 4 * + 45 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 IN ( + + ( + 49 ) * col0 + 9 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4554
SELECT DISTINCT - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) / - ( + + col0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4554
SELECT DISTINCT - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) / - ( + + col0 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4555
SELECT DISTINCT col2 DIV col1 DIV + + 26 + col1 AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4555
SELECT DISTINCT col2 / col1 / + + 26 + col1 AS col1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT ALL MIN( 91 ) FROM tab1 WHERE - 8 > ( + 81 ) * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL MIN ( 91 ) FROM tab1 WHERE - 8 > ( + 81 ) * col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col1 + + col2 col2 FROM tab1
----
59
68
96

query III rowsort
SELECT * FROM tab2 WHERE NULL = ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT - ( + 23 ) + - COUNT( * ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-4559
SELECT - ( + 23 ) + - COUNT ( * ) FROM tab2
----
-26

onlyif mysql # DIV for integer division: 
query II rowsort label-4560
SELECT DISTINCT + col1 + + + col2 DIV + ( - 53 ), col1 FROM tab0
----
0
1
21
21
81
81

skipif mysql # not compatible
query II rowsort label-4560
SELECT DISTINCT + col1 + + + col2 / + ( - 53 ), col1 FROM tab0
----
0
1
21
21
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4561
SELECT DISTINCT - ( + + col2 ) DIV - col0 + + col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT - ( + + col2 ) / - col0 + + col2 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT col2 - + 67 * + col0 AS col0 FROM tab1
----
-3321
-5636
-6029

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 - + col0 + + + 62 col0 FROM tab2
----
18
29
47

query I rowsort
SELECT + + 38 + - 41 FROM tab2 cor0
----
-3
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4565
SELECT - 61 * + 33 + + CAST( + + 1 AS SIGNED ) + col2 FROM tab0 cor0
----
-1913
-1965
-2002

skipif mysql # not compatible
query I rowsort label-4565
SELECT - 61 * + 33 + + CAST ( + + 1 AS INTEGER ) + col2 FROM tab0 cor0
----
-1913
-1965
-2002

query II rowsort
SELECT DISTINCT - 70, col2 AS col2 FROM tab0 AS cor0
----
-70
10
-70
47
-70
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4567
SELECT DISTINCT + - 64 - col0 + col1 * + ( + - CAST( + 75 AS SIGNED ) ) * col1 col1 FROM tab1 AS cor0
----
-14815
-165830
-2024

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4567
SELECT DISTINCT + - 64 - col0 + col1 * + ( + - CAST ( + 75 AS INTEGER ) ) * col1 col1 FROM tab1 AS cor0
----
-14815
-165830
-2024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4568
SELECT CAST( NULL AS SIGNED ) * + 67 FROM tab1 AS cor0 WHERE NOT + 27 * + col0 * + 53 * - + col1 * + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4568
SELECT CAST ( NULL AS INTEGER ) * + 67 FROM tab1 AS cor0 WHERE NOT + 27 * + col0 * + 53 * - + col1 * + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 98 <> NULL
----

query I rowsort
SELECT - 18 * col1 AS col0 FROM tab1
----
-252
-846
-90

query I rowsort
SELECT ALL + - col2 * + col2 + + 21 FROM tab1 AS cor0
----
-3460
-4603
-9195

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 19 BETWEEN col1 AND + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 col1 FROM tab2
----
-83
-83
-83

query II rowsort
SELECT ALL 12, col1 * - col0 AS col0 FROM tab0
----
12
-1215
12
-1827
12
-97

query I rowsort
SELECT ALL + col1 * + - ( + col0 ) * + - ( + 72 ) + + + col0 - 97 FROM tab2
----
168861
354783
361778

query I rowsort
SELECT - 23 + - 66 * + 84 FROM tab2
----
-5567
-5567
-5567

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT + MAX( col1 ) col0 FROM tab2 WHERE NOT - + col0 * col2 + + col2 * 59 + col2 * + - col0 BETWEEN 50 / + 8 AND 73
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4577
SELECT + MAX ( col1 ) col0 FROM tab2 WHERE NOT - + col0 * col2 + + col2 * 59 + col2 * + - col0 BETWEEN 50 / + 8 AND 73
----
77

query I rowsort
SELECT + col1 * + 87 * col1 AS col2 FROM tab0
----
38367
570807
87

onlyif mysql # DIV for integer division: 
query II rowsort label-4579
SELECT + col2 DIV col1 * - - col2 AS col0, 63 * + - col0 AS col2 FROM tab2
----
0
-2898
0
-4032
0
-4725

skipif mysql # not compatible
query II rowsort label-4579
SELECT + col2 / col1 * - - col2 AS col0, 63 * + - col0 AS col2 FROM tab2
----
0
-2898
0
-4032
0
-4725

onlyif mysql # DIV for integer division: 
query I rowsort label-4580
SELECT - col2 DIV - + col2 AS col0 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4580
SELECT - col2 / - + col2 AS col0 FROM tab0 cor0
----
1
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4581
SELECT DISTINCT - 16 + - - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4581
SELECT DISTINCT - 16 + - - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 * - col1 + - ( - + col1 ) FROM tab2
----
1224
3157
3953

query I rowsort
SELECT DISTINCT - 27 + - ( - - col0 ) AS col2 FROM tab1
----
-112
-118
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT - COUNT( * ) * COUNT( * ) FROM tab2 WHERE ( - col0 * - col2 = + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4584
SELECT - COUNT ( * ) * COUNT ( * ) FROM tab2 WHERE ( - col0 * - col2 = + col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT ALL - ( + COUNT( * ) ) - - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL - ( + COUNT ( * ) ) - - COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4586
SELECT ALL - CAST( 13 AS SIGNED ) * - 88 col1 FROM tab1 AS cor0
----
1144
1144
1144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4586
SELECT ALL - CAST ( 13 AS INTEGER ) * - 88 col1 FROM tab1 AS cor0
----
1144
1144
1144

query I rowsort
SELECT - col0 + + + col1 - + 43 FROM tab1 AS cor0
----
-123
-80
-87

query I rowsort
SELECT ALL - col0 + + 91 * 68 * + col0 FROM tab1 AS cor0
----
315537
525895
563017

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4589
SELECT CAST( NULL AS SIGNED ) + - - 75 + 5 * + col0 * + + col0 / + + 37 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4589
SELECT CAST ( NULL AS INTEGER ) + - - 75 + 5 * + col0 * + + col0 / + + 37 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4590
SELECT + CAST( - - 47 AS SIGNED ) AS col1 FROM tab1 cor0
----
47
47
47

skipif mysql # not compatible
query I rowsort label-4590
SELECT + CAST ( - - 47 AS INTEGER ) AS col1 FROM tab1 cor0
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4591
SELECT ALL + 29 / - 88 FROM tab0 AS cor0 WHERE NOT ( + col1 + + 62 ) <= ( - ( + + 30 ) + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL + 29 / - 88 FROM tab0 AS cor0 WHERE NOT ( + col1 + + 62 ) <= ( - ( + + 30 ) + - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT + COUNT( ALL + - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4592
SELECT + COUNT ( ALL + - col1 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT DISTINCT + 32 * COUNT( * ) + - COUNT( * ) AS col2 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT + 32 * COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2
----
93

query I rowsort
SELECT ALL 68 + - - col0 AS col1 FROM tab0
----
155
165
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT - MAX( DISTINCT - col1 ) * 93 FROM tab2 AS cor0
----
4743

skipif mysql # not compatible
query I rowsort label-4595
SELECT - MAX ( DISTINCT - col1 ) * 93 FROM tab2 AS cor0
----
4743

query I rowsort
SELECT - - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 >= NULL
----

query I rowsort
SELECT - col1 * + 87 AS col1 FROM tab0 AS cor0
----
-1827
-7047
-87

query I rowsort
SELECT 9 * + + col1 FROM tab1 cor0
----
126
423
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT 71 * + - COUNT( * ) FROM tab1
----
-213

skipif mysql # not compatible
query I rowsort label-4600
SELECT 71 * + - COUNT ( * ) FROM tab1
----
-213

onlyif mysql # DIV for integer division: 
query II rowsort label-4601
SELECT ALL - col1 DIV - col2 + ( - - col0 ) AS col0, + col0 * - + col0 FROM tab0 AS cor0
----
16
-225
89
-7569
97
-9409

skipif mysql # not compatible
query II rowsort label-4601
SELECT ALL - col1 / - col2 + ( - - col0 ) AS col0, + col0 * - + col0 FROM tab0 AS cor0
----
16
-225
89
-7569
97
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-4602
SELECT ( + - col2 ) DIV col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4602
SELECT ( + - col2 ) / col0 FROM tab0 AS cor0
----
-1
-3
0

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > - col0 - + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT ALL - + COUNT( col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL - + COUNT ( col2 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4605
SELECT DISTINCT + COUNT( * ) AS col0, COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4605
SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 4 / - col0 >= NULL
----

query II rowsort
SELECT ALL - col2 AS col2, + col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query I rowsort
SELECT DISTINCT col2 * + col1 FROM tab1 AS cor0 WHERE + col2 + + col1 IN ( 75 + + 82 - + col2, - col1 * - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4609
SELECT + + 96, SUM( DISTINCT col0 ) AS col1 FROM tab2 cor0
----
96
185

skipif mysql # not compatible
query II rowsort label-4609
SELECT + + 96, SUM ( DISTINCT col0 ) AS col1 FROM tab2 cor0
----
96
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT DISTINCT - - ( + - MAX( DISTINCT - + col1 ) ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT - - ( + - MAX ( DISTINCT - + col1 ) ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT + + col1 + - - 31 - - 89 * + + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-1223
-7691
-8601

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * col0 NOT IN ( - + 45 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 + col1 + - - col2 * - 22 AS col1 FROM tab2
----
-1134
-409
-739

query I rowsort
SELECT col0 FROM tab1 WHERE NOT + ( + + col2 ) < + col0 / - 95 + - 14
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT ALL + MIN( DISTINCT - 15 ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4615
SELECT ALL + MIN ( DISTINCT - 15 ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT DISTINCT + 39 AS col0 FROM tab2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4617
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT - col1 * + + CAST( - col2 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT - col1 * + + CAST ( - col2 AS INTEGER ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4618
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + - col1 ) IS NOT NULL OR NOT + + CAST( NULL AS SIGNED ) IN ( + col0 - col2, - col2 * 61 )
----

skipif mysql # not compatible
query III rowsort label-4618
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + - col1 ) IS NOT NULL OR NOT + + CAST ( NULL AS INTEGER ) IN ( + col0 - col2, - col2 * 61 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 49 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT ALL - SUM( col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL - SUM ( col0 ) AS col1 FROM tab0 AS cor0
----
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-4621
SELECT ALL + col2 * - col2 + - col2 DIV + 18 col2 FROM tab0 AS cor0
----
-100
-2211
-9806

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4621
SELECT ALL + col2 * - col2 + - col2 / + 18 col2 FROM tab0 AS cor0
----
-100
-2211
-9806

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT DISTINCT + ( - COUNT( * ) ) * COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-81

skipif mysql # not compatible
query I rowsort label-4622
SELECT DISTINCT + ( - COUNT ( * ) ) * COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-4623
SELECT DISTINCT + COUNT( * ) AS col2, 17 AS col0 FROM tab2 AS cor0 WHERE NOT NULL = ( NULL )
----
0
17

skipif mysql # not compatible
query II rowsort label-4623
SELECT DISTINCT + COUNT ( * ) AS col2, 17 AS col0 FROM tab2 AS cor0 WHERE NOT NULL = ( NULL )
----
0
17

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > + col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT + COUNT( * ) - - COUNT( * ) + - 79 AS col1 FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-4626
SELECT + COUNT ( * ) - - COUNT ( * ) + - 79 AS col1 FROM tab0 AS cor0
----
-73

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + - 12 / + + col2 + col0 - + 54 - + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT DISTINCT MAX( DISTINCT + col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT MAX ( DISTINCT + col0 ) FROM tab0 AS cor0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - ( - 11 ) + + ( + - col1 ) + col2 col2 FROM tab0 AS cor0
----
-8
206
87

query I rowsort
SELECT ALL - col0 * + - ( 48 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + + col1 * - - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT - col2 IS NULL )
----

query I rowsort
SELECT + - col1 FROM tab0 AS cor0 WHERE ( NULL ) >= + col2
----

query II rowsort
SELECT DISTINCT + col2 + + 6, col1 * + col1 + - col0 * - + 48 * - - 96 + + col1 AS col0 FROM tab1
----
102
235218
65
391710
74
421584

query I rowsort
SELECT col2 + + col0 - + 14 + - 17 AS col2 FROM tab2
----
102
38
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT ALL 5 * + + COUNT( * ) * - - COUNT( * ) AS col2 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL 5 * + + COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT + MIN( ALL + col0 ) AS col0 FROM tab1 WHERE NOT - col1 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4636
SELECT + MIN ( ALL + col0 ) AS col0 FROM tab1 WHERE NOT - col1 BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT + + 28 AS col1 FROM tab2 AS cor0
----
28
28
28

query I rowsort
SELECT + - 63 AS col0 FROM tab1 AS cor0
----
-63
-63
-63

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 52 + + + col1 + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - + col2 * 50 FROM tab0 AS cor0
----
-2350
-4950
-500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4641
SELECT DISTINCT + COUNT( + 5 ) * 1 / - CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4641
SELECT DISTINCT + COUNT ( + 5 ) * 1 / - CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + 45 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 83 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT COUNT( * ) * 21 AS col0 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-4644
SELECT COUNT ( * ) * 21 AS col0 FROM tab2
----
63

query II rowsort
SELECT + col0, - 82 FROM tab0
----
15
-82
87
-82
97
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT ALL COUNT( * ) + + COUNT( * ) AS col2 FROM tab1, tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1, tab1 AS cor0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4647
SELECT + MAX( ALL - + ( - + col0 ) ) DIV + + 81 - MIN( col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-4647
SELECT + MAX ( ALL - + ( - + col0 ) ) / + + 81 - MIN ( col2 ) AS col0 FROM tab2
----
-23

onlyif mysql # DIV for integer division: 
query II rowsort label-4648
SELECT ALL 2 AS col1, + col2 * col2 DIV + col2 + col0 FROM tab2
----
2
104
2
133
2
69

skipif mysql # not compatible
query II rowsort label-4648
SELECT ALL 2 AS col1, + col2 * col2 / + col2 + col0 FROM tab2
----
2
104
2
133
2
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4649
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL - CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 < - - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4651
SELECT col2 + 86 + + - col0 DIV 25 + col0 AS col0, 74 FROM tab2 AS cor0
----
154
74
188
74
216
74

skipif mysql # not compatible
query II rowsort label-4651
SELECT col2 + 86 + + - col0 / 25 + col0 AS col0, 74 FROM tab2 AS cor0
----
154
74
188
74
216
74

query I rowsort
SELECT ALL + 54 + - 43 AS col0 FROM tab0
----
11
11
11

query II rowsort
SELECT ALL 78 AS col0, - col2 AS col0 FROM tab2
----
78
-23
78
-40
78
-58

query I rowsort
SELECT + col0 + - col0 + + - 94 * - col0 * + col2 FROM tab1
----
460224
471410
581672

query I rowsort
SELECT ALL + ( + col0 ) * + 73 FROM tab0 WHERE ( - 81 + + col0 * - - col2 * + + col1 ) BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT DISTINCT MAX( DISTINCT col0 ) + + - 98 * - MIN( ALL - - col2 ) + COUNT( * ) * - ( - 51 ) + - - 79 FROM tab2
----
2561

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT MAX ( DISTINCT col0 ) + + - 98 * - MIN ( ALL - - col2 ) + COUNT ( * ) * - ( - 51 ) + - - 79 FROM tab2
----
2561

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT 27 + - COUNT( * ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-4657
SELECT 27 + - COUNT ( * ) FROM tab2
----
24

query I rowsort
SELECT col0 + + + col1 + - + col1 AS col2 FROM tab0
----
15
87
97

query I rowsort
SELECT ( - 11 ) + - + col1 FROM tab1 WHERE - ( ( - col1 ) ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col0, + 20 FROM tab0
----
15
20
87
20
97
20

query I rowsort
SELECT DISTINCT - col0 + + - col2 * + - col1 * col1 * + + 7 FROM tab2 AS cor0
----
1660056
1822459
418715

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NOT - - ( + col0 ) / - col1 - + col0 BETWEEN ( - 5 * + - col2 ) AND NULL )
----
3

skipif mysql # not compatible
query I rowsort label-4662
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NOT - - ( + col0 ) / - col1 - + col0 BETWEEN ( - 5 * + - col2 ) AND NULL )
----
3

query I rowsort
SELECT + col2 + + 19 + col0 * - + 22 + + + col0 * + + col2 AS col0 FROM tab0
----
-1015
441
7587

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT ALL SUM( DISTINCT col1 ) + - ( MAX( ALL + 75 ) ) FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL SUM ( DISTINCT col1 ) + - ( MAX ( ALL + 75 ) ) FROM tab2
----
120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - col1 * - - col0 * - - col1 * + col2 * 67 col1 FROM tab0
----
25705977
309908850
643498

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < + col1
----

query I rowsort
SELECT ALL + 19 * col2 + - - col1 + - col2 AS col0 FROM tab0 AS cor0
----
1783
201
927

query I rowsort
SELECT DISTINCT + - col1 - + col0 AS col0 FROM tab2 cor0
----
-141
-142
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 col1 FROM tab1 AS cor0
----
42
42
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1 * + 33 AS col2, + 39 * + col1 col0 FROM tab1 AS cor0
----
-1551
1833
-165
195
-462
546

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4671
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
3

query I rowsort
SELECT - + col2 * 95 * + - col0 FROM tab1 AS cor0
----
465120
476425
587860

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT DISTINCT + COUNT( * ) * + COUNT( ALL col1 ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4673
SELECT DISTINCT + COUNT ( * ) * + COUNT ( ALL col1 ) FROM tab1
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( NULL ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT DISTINCT SUM( 51 ) FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT SUM ( 51 ) FROM tab2
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4676
SELECT * FROM tab1 WHERE NOT ( CAST( - 71 AS SIGNED ) * + col1 > + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4676
SELECT * FROM tab1 WHERE NOT ( CAST ( - 71 AS INTEGER ) * + col1 > + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col0 AS col1, col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT - + 89 * + 59 FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN - 3 AND NULL
----

query I rowsort
SELECT ALL 60 * - - col1 AS col1 FROM tab2
----
3060
4020
4620

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT DISTINCT - - ( + ( + - COUNT( * ) ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT - - ( + ( + - COUNT ( * ) ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT ALL - + MAX( DISTINCT - col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL - + MAX ( DISTINCT - col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-4682
SELECT + 16 DIV + - 29 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4682
SELECT + 16 / + - 29 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4683
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( - 97 AS SIGNED ) = - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4683
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( - 97 AS INTEGER ) = - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT COUNT( * ) * - MIN( - - col1 ) FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-4684
SELECT COUNT ( * ) * - MIN ( - - col1 ) FROM tab2 AS cor0
----
-153

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) < + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4686
SELECT ALL + ( - COUNT( * ) ) AS col2, 82 AS col2 FROM tab1 AS cor0
----
-3
82

skipif mysql # not compatible
query II rowsort label-4686
SELECT ALL + ( - COUNT ( * ) ) AS col2, 82 AS col2 FROM tab1 AS cor0
----
-3
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - + 65 col2 FROM tab2 AS cor0
----
-116
-132
-142

query I rowsort
SELECT - col0 + 82 * + - 68 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT col1 * + 23 FROM tab0 AS cor0
----
1863
23
483

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 * col0 col2 FROM tab1 AS cor0
----
-1190
-1274
-714

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - 20 * col1 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT col1 * col1 + - col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 + - col0 * col1 AS col2 FROM tab1 AS cor0
----
-420
-4230
-700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 col0 FROM tab2 WHERE NULL IS NULL
----
2116
4096
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-4695
SELECT ALL col0 DIV + + col2 AS col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL col0 / + + col2 AS col2 FROM tab2
----
1
1
2

query II rowsort
SELECT + 70 AS col1, col0 + + + 72 + - + col2 * + ( - - col2 ) AS col0 FROM tab1
----
70
-3324
70
-4461
70
-9093

query I rowsort
SELECT col2 + 19 AS col2 FROM tab1 WHERE NULL IS NULL
----
115
78
87

query I rowsort
SELECT ALL col2 + + ( + + 50 ) AS col2 FROM tab2
----
108
73
90

query I rowsort
SELECT ALL + 32 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
32
32
32

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab1 WHERE + + col0 + + 47 + - col0 * col0 IS NULL
----

query I rowsort
SELECT ALL + 93 + + + col1 AS col0 FROM tab1
----
107
140
98

query I rowsort
SELECT ALL + 87 * 72 FROM tab0
----
6264
6264
6264

query I rowsort
SELECT 73 + + 25 AS col0 FROM tab2
----
98
98
98

query I rowsort
SELECT - ( + + ( 40 ) ) * - - 69 AS col0 FROM tab2 AS cor0
----
-2760
-2760
-2760

query I rowsort
SELECT - 31 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4706
SELECT ALL CAST( - col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4706
SELECT ALL CAST ( - col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL + 49 * - col0 FROM tab0 AS cor0
----
-4263
-4753
-735

query I rowsort
SELECT DISTINCT 89 FROM tab1 cor0 WHERE - col0 + + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT ( - - MAX( 17 ) ) FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-4709
SELECT ( - - MAX ( 17 ) ) FROM tab0 AS cor0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4710
SELECT DISTINCT + - COUNT( ALL + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT + - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 60 * - ( - 64 ) col2 FROM tab2 AS cor0
----
-3840

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT - MAX( + + col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4712
SELECT - MAX ( + + col0 ) AS col1 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT DISTINCT - + SUM( 43 ) FROM tab1 AS cor0 WHERE NOT 72 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4713
SELECT DISTINCT - + SUM ( 43 ) FROM tab1 AS cor0 WHERE NOT 72 NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4714
SELECT + - CAST( NULL AS SIGNED ) * - col1 AS col2, col2 * 53 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
NULL
3127
NULL
3604
NULL
5088

skipif mysql # not compatible
query II rowsort label-4714
SELECT + - CAST ( NULL AS INTEGER ) * - col1 AS col2, col2 * 53 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
NULL
3127
NULL
3604
NULL
5088

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NOT NULL BETWEEN - + 55 AND NULL
----

query II rowsort
SELECT ALL + col1 * + col0 + + col1, + 86 AS col1 FROM tab2 WHERE NOT + + ( - ( - col2 ) ) * 8 * - col0 IS NULL
----
2397
86
5005
86
5092
86

onlyif mysql # aggregate syntax: 
query II rowsort label-4717
SELECT + 33 * COUNT( * ), 32 AS col0 FROM tab0
----
99
32

skipif mysql # not compatible
query II rowsort label-4717
SELECT + 33 * COUNT ( * ), 32 AS col0 FROM tab0
----
99
32

query II rowsort
SELECT ALL - ( col1 ) AS col2, - col2 FROM tab2
----
-51
-23
-67
-58
-77
-40

query I rowsort
SELECT + col1 * + 74 * + 46 FROM tab2
----
173604
228068
262108

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT ALL 99 * MAX( DISTINCT - 0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL 99 * MAX ( DISTINCT - 0 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4722
SELECT SUM( - col0 ) DIV + 44 AS col0 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-4722
SELECT SUM ( - col0 ) / + 44 AS col0 FROM tab2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4723
SELECT CAST( col2 AS SIGNED ) * col1 * - col0 FROM tab0 WHERE NOT - 98 * + ( - - col1 ) > + col1 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4723
SELECT CAST ( col2 AS INTEGER ) * col1 * - col0 FROM tab0 WHERE NOT - 98 * + ( - - col1 ) > + col1 + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT + MIN( - - 79 ) AS col2 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-4724
SELECT + MIN ( - - 79 ) AS col2 FROM tab2 AS cor0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4725
SELECT ALL CAST( NULL AS SIGNED ) + + col1 * + + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL CAST ( NULL AS INTEGER ) + + col1 * + + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 72 * col0 FROM tab0
----
1080
6264
6984

onlyif mysql # DIV for integer division: 
query I rowsort label-4727
SELECT ALL col0 DIV - 68 FROM tab0 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL col0 / - 68 FROM tab0 cor0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4728
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) + col0 / + - col1 + + 53 <= - col2
----

skipif mysql # not compatible
query III rowsort label-4728
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + col0 / + - col1 + + 53 <= - col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * + col0 * - 73 NOT BETWEEN NULL AND - col2 + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4730
SELECT DISTINCT + col0 DIV 20 AS col0 FROM tab2 AS cor0
----
2
3

skipif mysql # not compatible
query I rowsort label-4730
SELECT DISTINCT + col0 / 20 AS col0 FROM tab2 AS cor0
----
2
3

query I rowsort
SELECT ALL + 92 AS col2 FROM tab0 AS cor0
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4732
SELECT ALL - + col2 + - CAST( NULL AS SIGNED ) + + col1 - - 21 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL - + col2 + - CAST ( NULL AS INTEGER ) + + col1 - - 21 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 * col1 * + - 33 * + col1 col1, - col1 AS col2 FROM tab1 cor0
----
48675
-5
4956996
-47
620928
-14

query I rowsort
SELECT + 12 FROM tab2 AS cor0 WHERE - col2 * + - col0 IS NOT NULL
----
12
12
12

query I rowsort
SELECT - 66 * col2 * ( - col1 ) + - + col1 FROM tab2
----
203203
256409
77367

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4736
SELECT - CAST( NULL AS SIGNED ) + + + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4736
SELECT - CAST ( NULL AS INTEGER ) + + + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + col0 + + - col1 FROM tab1
----
4882
5010
6141

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT SUM( DISTINCT + col1 ) col0 FROM tab0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4738
SELECT SUM ( DISTINCT + col1 ) col0 FROM tab0
----
103

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 17 * + col2 BETWEEN - ( + col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - 50 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col1 - - - col0 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-4743
SELECT - 41 * col1 * - - 71 - + + col2 + - col0 DIV - 93 FROM tab2 AS cor0
----
-148484
-195095
-224187

skipif mysql # not compatible
query I rowsort label-4743
SELECT - 41 * col1 * - - 71 - + + col2 + - col0 / - 93 FROM tab2 AS cor0
----
-148484
-195095
-224187

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT 62 + MIN( DISTINCT 67 ) AS col0 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-4744
SELECT 62 + MIN ( DISTINCT 67 ) AS col0 FROM tab2
----
129

query I rowsort
SELECT DISTINCT 8 AS col2 FROM tab2 AS cor0
----
8

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT DISTINCT + - MIN( + 98 ) FROM tab2 cor0
----
-98

skipif mysql # not compatible
query I rowsort label-4747
SELECT DISTINCT + - MIN ( + 98 ) FROM tab2 cor0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT ALL + MAX( ALL - 30 ) FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL + MAX ( ALL - 30 ) FROM tab0 AS cor0
----
-30

query I rowsort
SELECT ALL - + 75 AS col0 FROM tab0 AS cor0
----
-75
-75
-75

query I rowsort
SELECT - + col1 * + - col0 * col0 + + - 17 FROM tab1 AS cor0
----
36108
36397
389190

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * + col2 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + ( + - col2 ) * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT - ( + SUM( - 66 ) ) AS col1 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-4753
SELECT - ( + SUM ( - 66 ) ) AS col1 FROM tab1
----
198

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4754
SELECT - - col1 AS col1 FROM tab0 WHERE NOT col2 < - CAST( - col2 AS DECIMAL )
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4754
SELECT - - col1 AS col1 FROM tab0 WHERE NOT col2 < - CAST ( - col2 AS REAL )
----
1
21
81

query I rowsort
SELECT - col2 * - - 65 AS col2 FROM tab0
----
-3055
-6435
-650

query I rowsort
SELECT ALL + + col2 * - col1 + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT 39 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 98 * col1 col0 FROM tab2 AS cor0
----
-4998
-6566
-7546

query II rowsort
SELECT + col0 AS col0, col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT + ( - 56 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT - + 99 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4761
SELECT - - CAST( + 54 AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

skipif mysql # not compatible
query I rowsort label-4761
SELECT - - CAST ( + 54 AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT + ( - COUNT( * ) ) * + MAX( DISTINCT + - 39 ) col0 FROM tab2 AS cor0
----
117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4762
SELECT + ( - COUNT ( * ) ) * + MAX ( DISTINCT + - 39 ) col0 FROM tab2 AS cor0
----
117

query I rowsort
SELECT DISTINCT ( + + ( 18 ) ) * 64 FROM tab1 AS cor0
----
1152

query I rowsort
SELECT ALL 90 + - col2 FROM tab0 AS cor0
----
-9
43
80

query I rowsort
SELECT + + col1 * - + col1 + col2 AS col2 FROM tab2 AS cor0
----
-2578
-4431
-5889

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 56 * 85 BETWEEN NULL AND 97 + - + 91
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col2 * + 41 * 62 FROM tab2 AS cor0
----
-101680
-147436
-58466

query I rowsort
SELECT + 22 + 77 FROM tab1
----
99
99
99

query I rowsort
SELECT ALL col0 - ( - - 77 ) + col2 FROM tab0
----
-15
119
20

query I rowsort
SELECT - col2 + 22 AS col2 FROM tab2
----
-1
-18
-36

query I rowsort
SELECT 96 + col0 FROM tab0
----
111
183
193

query I rowsort
SELECT DISTINCT - col2 - - + 68 AS col0 FROM tab2 AS cor0
----
10
28
45

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 34 >= + col2
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT COUNT( * ) * - 41 col1 FROM tab0
----
-123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4774
SELECT COUNT ( * ) * - 41 col1 FROM tab0
----
-123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4775
SELECT - ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4775
SELECT - ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4776
SELECT DISTINCT COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4776
SELECT DISTINCT COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT ( + 92 ) FROM tab1 AS cor0 WHERE + 86 + + col2 NOT BETWEEN + 25 AND + col2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4778
SELECT DISTINCT - CAST( - col2 AS SIGNED ) * 73 AS col2 FROM tab2 WHERE NOT NULL < - col1 - + col0
----

skipif mysql # not compatible
query I rowsort label-4778
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) * 73 AS col2 FROM tab2 WHERE NOT NULL < - col1 - + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT NULL <> + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4780
SELECT DISTINCT col2 DIV - 85 AS col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-4780
SELECT DISTINCT col2 / - 85 AS col2 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT COUNT( * ) * + + COUNT( ALL - col1 ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4781
SELECT COUNT ( * ) * + + COUNT ( ALL - col1 ) AS col2 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT DISTINCT - MIN( + col2 ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT - MIN ( + col2 ) AS col0 FROM tab1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4783
SELECT * FROM tab2 WHERE NOT NULL > ( - - CAST( col0 AS SIGNED ) ) / col0 / - col1
----

skipif mysql # not compatible
query III rowsort label-4783
SELECT * FROM tab2 WHERE NOT NULL > ( - - CAST ( col0 AS INTEGER ) ) / col0 / - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT 87 * + COUNT( * ) AS col0 FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-4784
SELECT 87 * + COUNT ( * ) AS col0 FROM tab0
----
261

onlyif mysql # aggregate syntax: 
query II rowsort label-4785
SELECT DISTINCT COUNT( * ) col1, - COUNT( * ) AS col1 FROM tab2
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4785
SELECT DISTINCT COUNT ( * ) col1, - COUNT ( * ) AS col1 FROM tab2
----
3
-3

query I rowsort
SELECT ALL col1 * - col0 AS col1 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT DISTINCT + + MAX( - 63 ) FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-4787
SELECT DISTINCT + + MAX ( - 63 ) FROM tab1 AS cor0
----
-63

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL 81 AS col0, - 86 AS col0 FROM tab2 AS cor0
----
81
-86
81
-86
81
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4790
SELECT + - 55 DIV + - COUNT( * ) + + + COUNT( DISTINCT + 73 ) AS col1 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-4790
SELECT + - 55 / + - COUNT ( * ) + + + COUNT ( DISTINCT + 73 ) AS col1 FROM tab2 AS cor0
----
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + + col0 + + + col2 col1 FROM tab0 AS cor0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 74 col0 FROM tab2 AS cor0
----
114
132
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4793
SELECT ( - CAST( + 60 AS SIGNED ) ) AS col0 FROM tab0
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-4793
SELECT ( - CAST ( + 60 AS INTEGER ) ) AS col0 FROM tab0
----
-60
-60
-60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4794
SELECT ALL * FROM tab2 WHERE NULL > CAST( - - col2 AS SIGNED ) * - col1
----

skipif mysql # not compatible
query III rowsort label-4794
SELECT ALL * FROM tab2 WHERE NULL > CAST ( - - col2 AS INTEGER ) * - col1
----

query III rowsort
SELECT * FROM tab2 WHERE - 51 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT - col2 - - - ( col2 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT - COUNT( * ) * COUNT( * ) * + 76 AS col2 FROM tab1 AS cor0
----
-684

skipif mysql # not compatible
query I rowsort label-4797
SELECT - COUNT ( * ) * COUNT ( * ) * + 76 AS col2 FROM tab1 AS cor0
----
-684

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT - 30 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4799
SELECT ALL - + CAST( 42 AS SIGNED ) FROM tab0 AS cor0
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL - + CAST ( 42 AS INTEGER ) FROM tab0 AS cor0
----
-42
-42
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4800
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col1 + 90 * - ( + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 * col2 * - col0 FROM tab2 AS cor0
----
-102400
-24334
-252300

onlyif mysql # aggregate syntax: 
query II rowsort label-4803
SELECT - COUNT( * ) col1, MAX( - - 83 ) FROM tab1 AS cor0
----
-3
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4803
SELECT - COUNT ( * ) col1, MAX ( - - 83 ) FROM tab1 AS cor0
----
-3
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4804
SELECT ALL 19 * + + ( + 16 ) - + + COUNT( * ) DIV + 99 FROM tab1 AS cor0
----
304

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL 19 * + + ( + 16 ) - + + COUNT ( * ) / + 99 FROM tab1 AS cor0
----
304

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4806
SELECT + - col1 + - CAST( NULL AS SIGNED ) * + + col2 * + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4806
SELECT + - col1 + - CAST ( NULL AS INTEGER ) * + + col2 * + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col1 + + col2, - col1 - + col0 FROM tab1 AS cor0 WHERE col1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 17 col1 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
23
41
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT COUNT( * ) + - 26 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4809
SELECT COUNT ( * ) + - 26 FROM tab2 AS cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + + col0 AS col1, 1 * col1 col2 FROM tab1 AS cor0
----
0
14
0
47
0
5

query I rowsort
SELECT + 69 + + + 70 FROM tab1
----
139
139
139

query III rowsort
SELECT * FROM tab0 WHERE + col2 + + 3 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT - MIN( ALL - - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4813
SELECT - MIN ( ALL - - col2 ) FROM tab1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-4814
SELECT - + col0 DIV + + 29 col0 FROM tab0 AS cor0
----
-3
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4814
SELECT - + col0 / + + 29 col0 FROM tab0 AS cor0
----
-3
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4815
SELECT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND + col1 * CAST( 20 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4815
SELECT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND + col1 * CAST ( 20 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT + MIN( + - col2 ) * - 95 FROM tab0 AS cor0
----
9405

skipif mysql # not compatible
query I rowsort label-4816
SELECT + MIN ( + - col2 ) * - 95 FROM tab0 AS cor0
----
9405

query I rowsort
SELECT - 1 - col1 FROM tab2 AS cor0
----
-52
-68
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT DISTINCT COUNT( DISTINCT 95 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4818
SELECT DISTINCT COUNT ( DISTINCT 95 ) FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - col0 ) col2 FROM tab0 cor0
----
15
87
97

query III rowsort
SELECT * FROM tab0 WHERE + col1 + col2 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4821
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT 38 >= + - CAST( col2 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4821
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT 38 >= + - CAST ( col2 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4822
SELECT col0 + 74 + col2 * + - CAST( NULL AS SIGNED ) AS col1, 33 AS col0 FROM tab1
----
NULL
33
NULL
33
NULL
33

skipif mysql # not compatible
query II rowsort label-4822
SELECT col0 + 74 + col2 * + - CAST ( NULL AS INTEGER ) AS col1, 33 AS col0 FROM tab1
----
NULL
33
NULL
33
NULL
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 col0 FROM tab0
----
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 84 AS col1, + ( 78 ) col2 FROM tab0
----
84
78
84
78
84
78

query II rowsort
SELECT - + 82 AS col1, - col1 AS col0 FROM tab1 AS cor0
----
-82
-14
-82
-47
-82
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4826
SELECT DISTINCT + col0 * - 50 AS col1, + 78 * - col0 AS col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) + - col1 NOT BETWEEN NULL AND col0
----

skipif mysql # not compatible
query II rowsort label-4826
SELECT DISTINCT + col0 * - 50 AS col1, + 78 * - col0 AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - col1 NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT ALL + ( 24 ) FROM tab0 cor0
----
24
24
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4828
SELECT ALL + 52 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL + 52 / col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + col1 = - + 51 / 80
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT + + 99 * + col2 AS col2, - col1 + 76 * + 61, col1 * - col1 + 14 AS col2 FROM tab2 AS cor0
----
9 values hashing to 0a1d692e4fab2e976e0c0e9c745d4e4f

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4831
SELECT ALL + CAST( NULL AS SIGNED ) * + col1 col2, col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4831
SELECT ALL + CAST ( NULL AS INTEGER ) * + col1 col2, col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT DISTINCT 21 * - col0 AS col1 FROM tab2 cor0
----
-1344
-1575
-966

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 * + + 51 ) <= col1 + 8
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( 58 + - col1 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 21 AS col1 FROM tab2 AS cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query II rowsort label-4836
SELECT + 92 * - AVG ( col1 ), COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) <= NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4836
SELECT + 92 * - AVG ( col1 ), COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) <= NULL
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4837
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) + - COUNT( * ) + - 81 col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4837
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) + - 81 col1 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4838
SELECT ALL + col0 * + + col2 + col0 + + + CAST( NULL AS DECIMAL ) * + - 22 col0, 30 AS col1 FROM tab0 cor0
----
NULL
30
NULL
30
NULL
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4838
SELECT ALL + col0 * + + col2 + col0 + + + CAST ( NULL AS REAL ) * + - 22 col0, 30 AS col1 FROM tab0 cor0
----
NULL
30
NULL
30
NULL
30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4839
SELECT - ( - + 31 ) DIV - - ( - 42 ) + + + col1 + + 79 AS col0, CAST( NULL AS SIGNED ) FROM tab1
----
126
NULL
84
NULL
93
NULL

skipif mysql # not compatible
query II rowsort label-4839
SELECT - ( - + 31 ) / - - ( - 42 ) + + + col1 + + 79 AS col0, CAST ( NULL AS INTEGER ) FROM tab1
----
126
NULL
84
NULL
93
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT + col1 * + - col1 * - col0 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT DISTINCT + COUNT( - 23 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4842
SELECT DISTINCT + COUNT ( - 23 ) col1 FROM tab0
----
3

query I rowsort
SELECT col0 * + 3 * - + 25 + 46 FROM tab1
----
-3779
-6329
-6779

onlyif mysql # DIV for integer division: 
query II rowsort label-4844
SELECT ALL + col0, + col2 DIV + col1 FROM tab2
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-4844
SELECT ALL + col0, + col2 / + col1 FROM tab2
----
46
0
64
0
75
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4845
SELECT - COUNT( * ) AS col1, COUNT( * ) * + COUNT( * ) + - COUNT( * ) AS col2 FROM tab2
----
-3
6

skipif mysql # not compatible
query II rowsort label-4845
SELECT - COUNT ( * ) AS col1, COUNT ( * ) * + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2
----
-3
6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 18 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < + 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT DISTINCT + COUNT( ALL + col1 ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT + COUNT ( ALL + col1 ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
6

query I rowsort
SELECT ALL - ( - 13 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 <> NULL
----

query I rowsort
SELECT ALL col0 * - col0 - - col2 AS col0 FROM tab1 cor0
----
-2505
-7166
-8213

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4852
SELECT DISTINCT + CAST( - col1 AS SIGNED ) AS col1, col2 AS col0 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

skipif mysql # not compatible
query II rowsort label-4852
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) AS col1, col2 AS col0 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT DISTINCT + col1 + - - col0 AS col1 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4854
SELECT - CAST( NULL AS SIGNED ) * - COUNT( DISTINCT - 86 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4854
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT - 86 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4855
SELECT + - ( + 93 ) AS col1, CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
-93
NULL
-93
NULL
-93
NULL

skipif mysql # not compatible
query II rowsort label-4855
SELECT + - ( + 93 ) AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
-93
NULL
-93
NULL
-93
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT + SUM( ALL - 69 ) FROM tab0
----
-207

skipif mysql # not compatible
query I rowsort label-4856
SELECT + SUM ( ALL - 69 ) FROM tab0
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT + COUNT( * ) FROM tab1 WHERE - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4857
SELECT + COUNT ( * ) FROM tab1 WHERE - col0 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab0 WHERE 5 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4859
SELECT 60 * CAST( NULL AS SIGNED ) * 50 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4859
SELECT 60 * CAST ( NULL AS INTEGER ) * 50 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 45 ) col1 FROM tab0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4861
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 WHERE - CAST( NULL AS SIGNED ) + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4861
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE - CAST ( NULL AS INTEGER ) + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - ( - col2 ) ) FROM tab1
----
59
68
96

query I rowsort
SELECT ( - + col1 ) FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT - ( COUNT( + col1 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4864
SELECT - ( COUNT ( + col1 ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-4865
SELECT + col1, 39 DIV - 57 FROM tab0 cor0
----
1
0
21
0
81
0

skipif mysql # not compatible
query II rowsort label-4865
SELECT + col1, 39 / - 57 FROM tab0 cor0
----
1
0
21
0
81
0

query II rowsort
SELECT col2 * 94 AS col2, - 36 FROM tab1
----
5546
-36
6392
-36
9024
-36

onlyif mysql # DIV for integer division: 
query III rowsort label-4867
SELECT DISTINCT + col0, col1, + col1 DIV + col2 + 85 AS col2 FROM tab1
----
9 values hashing to 83c61720a06f6d2158fb2812af86eb0c

skipif mysql # not compatible
query III rowsort label-4867
SELECT DISTINCT + col0, col1, + col1 / + col2 + 85 AS col2 FROM tab1
----
9 values hashing to 83c61720a06f6d2158fb2812af86eb0c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - col2 col1 FROM tab1
----
1344
295
3196

query I rowsort
SELECT ALL ( - + ( + 80 ) ) FROM tab0
----
-80
-80
-80

query II rowsort
SELECT + col2 AS col2, - col0 * + col2 FROM tab1 cor0
----
59
-5015
68
-6188
96
-4896

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT SUM( ALL - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4871
SELECT SUM ( ALL - col2 ) FROM tab1 AS cor0
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4872
SELECT DISTINCT + CAST( - + 6 AS SIGNED ) * col1 * + + col1 * - col1 FROM tab2 AS cor0
----
1804578
2739198
795906

skipif mysql # not compatible
query I rowsort label-4872
SELECT DISTINCT + CAST ( - + 6 AS INTEGER ) * col1 * + + col1 * - col1 FROM tab2 AS cor0
----
1804578
2739198
795906

onlyif mysql # DIV for integer division: 
query I rowsort label-4873
SELECT DISTINCT col0 + + 14 + - col2 DIV - col2 FROM tab0 AS cor0
----
102
112
30

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT col0 + + 14 + - col2 / - col2 FROM tab0 AS cor0
----
102
112
30

onlyif mysql # DIV for integer division: 
query I rowsort label-4874
SELECT DISTINCT + col1 DIV col2 AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT + col1 / col2 AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL + col1 + - 21 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
30
46
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT ALL + MIN( ALL ( - col1 ) ) * - 92 + + 44 - + + 16 + 90 FROM tab0
----
7570

skipif mysql # not compatible
query I rowsort label-4876
SELECT ALL + MIN ( ALL ( - col1 ) ) * - 92 + + 44 - + + 16 + 90 FROM tab0
----
7570

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT + 61 + - COUNT( * ) FROM tab1, tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-4877
SELECT + 61 + - COUNT ( * ) FROM tab1, tab1 AS cor0
----
52

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE + + col1 IS NOT NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query II rowsort label-4879
SELECT col1 + + 90 DIV col2 AS col2, + col2 AS col0 FROM tab2
----
54
23
68
58
79
40

skipif mysql # not compatible
query II rowsort label-4879
SELECT col1 + + 90 / col2 AS col2, + col2 AS col0 FROM tab2
----
54
23
68
58
79
40

query I rowsort
SELECT + col1 * 17 + - - 31 * + + 36 * - col0 * - 63 / - 3 FROM tab2 WHERE NULL <> 37 - + col2 * - col2 * - col0 * + + col1 * - col2
----

query II rowsort
SELECT DISTINCT - 94 * - + col0 AS col2, + col1 * + - col2 FROM tab2 AS cor0
----
4324
-1173
6016
-3080
7050
-3886

query I rowsort
SELECT DISTINCT + col1 + + + col1 FROM tab0
----
162
2
42

onlyif mysql # DIV for integer division: 
query II rowsort label-4883
SELECT DISTINCT col0 DIV - col0 - + + col2 AS col0, + 53 + - + 69 AS col2 FROM tab1
----
-60
-16
-69
-16
-97
-16

skipif mysql # not compatible
query II rowsort label-4883
SELECT DISTINCT col0 / - col0 - + + col2 AS col0, + 53 + - + 69 AS col2 FROM tab1
----
-60
-16
-69
-16
-97
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-4884
SELECT ALL - 44 DIV col1 - col1 AS col2 FROM tab0
----
-23
-45
-81

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL - 44 / col1 - col1 AS col2 FROM tab0
----
-23
-45
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4885
SELECT DISTINCT ( col2 ) DIV + - col0 * + + col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT ( col2 ) / + - col0 * + + col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 85 - 68 FROM tab1 AS cor0
----
-153
-153
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4887
SELECT - col0 - - col2 + - - 46 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4887
SELECT - col0 - - col2 + - - 46 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 FROM tab1 cor0 WHERE NULL IS NULL
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - - col0
----

query II rowsort
SELECT ALL - + col0, 15 * - 13 - + 33 + + col1 AS col2 FROM tab2 AS cor0
----
-46
-177
-64
-151
-75
-161

query I rowsort
SELECT col2 * + + 47 FROM tab2
----
1081
1880
2726

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT - ( + col1 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT SUM( ALL - 42 ) FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-4893
SELECT SUM ( ALL - 42 ) FROM tab0
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4894
SELECT CAST( 36 AS SIGNED ) AS col1 FROM tab1
----
36
36
36

skipif mysql # not compatible
query I rowsort label-4894
SELECT CAST ( 36 AS INTEGER ) AS col1 FROM tab1
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT ALL + MAX( DISTINCT - - col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL + MAX ( DISTINCT - - col1 ) FROM tab1
----
47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 4 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4897
SELECT + col1 * - col1, + CAST( - - ( col1 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-196
14
-2209
47
-25
5

skipif mysql # not compatible
query II rowsort label-4897
SELECT + col1 * - col1, + CAST ( - - ( col1 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-196
14
-2209
47
-25
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT DISTINCT + COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT + COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT 28 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4900
SELECT DISTINCT + MAX( ALL - + ( CAST( + - CAST( 26 AS SIGNED ) AS SIGNED ) ) ) AS col1 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-4900
SELECT DISTINCT + MAX ( ALL - + ( CAST ( + - CAST ( 26 AS INTEGER ) AS INTEGER ) ) ) AS col1 FROM tab0 AS cor0
----
26

query I rowsort
SELECT col2 + + + col0 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT - COUNT( * ) + + 80 AS col1 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4902
SELECT - COUNT ( * ) + + 80 AS col1 FROM tab1 AS cor0
----
77

query I rowsort
SELECT DISTINCT + + col1 * - col1 + - col0 AS col1 FROM tab1 cor0
----
-110
-2300
-247

onlyif mysql # DIV for integer division: 
query I rowsort label-4904
SELECT ALL + col0 DIV - 46 + - col2 AS col0 FROM tab1 AS cor0
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL + col0 / - 46 + - col2 AS col0 FROM tab1 AS cor0
----
-60
-69
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4905
SELECT 68 DIV + 10 + + - ( - - 34 ) DIV col2 FROM tab2 AS cor0
----
5
6
6

skipif mysql # not compatible
query I rowsort label-4905
SELECT 68 / + 10 + + - ( - - 34 ) / col2 FROM tab2 AS cor0
----
5
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - 51 col1 FROM tab1
----
0
34
40

query II rowsort
SELECT - 73 + + 92, + col2 AS col1 FROM tab0
----
19
10
19
47
19
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) + - - 54 col2 FROM tab1
----
40
49
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4909
SELECT 14 DIV + col0 + - 70 AS col1 FROM tab2
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-4909
SELECT 14 / + col0 + - 70 AS col1 FROM tab2
----
-70
-70
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-4910
SELECT ALL + col2 DIV col1 + - ( + col2 ) AS col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL + col2 / col1 + - ( + col2 ) AS col0 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT 6 * - col1 * + col2 FROM tab1
----
-1770
-19176
-8064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4912
SELECT DISTINCT col0 * col1 - + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4912
SELECT DISTINCT col0 * col1 - + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT - col0 * + 14 AS col0 FROM tab2
----
-1050
-644
-896

query III rowsort
SELECT * FROM tab2 WHERE 28 + col1 NOT BETWEEN + 13 * + col2 + + 0 AND + - 94
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4915
SELECT + CAST( NULL AS SIGNED ) - + - 12 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4915
SELECT + CAST ( NULL AS INTEGER ) - + - 12 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 98 NOT BETWEEN NULL AND + ( - + 71 )
----

query III rowsort
SELECT * FROM tab1 WHERE + 68 < - 40
----

query I rowsort
SELECT DISTINCT 90 - + col2 FROM tab0
----
-9
43
80

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT + - SUM( + + col2 ) * + + 36 FROM tab2 AS cor0
----
-4356

skipif mysql # not compatible
query I rowsort label-4920
SELECT + - SUM ( + + col2 ) * + + 36 FROM tab2 AS cor0
----
-4356

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4921
SELECT 7 * - col2 + + CAST( NULL AS SIGNED ) AS col2, - col2 * - 24 FROM tab1 AS cor0
----
NULL
1416
NULL
1632
NULL
2304

skipif mysql # not compatible
query II rowsort label-4921
SELECT 7 * - col2 + + CAST ( NULL AS INTEGER ) AS col2, - col2 * - 24 FROM tab1 AS cor0
----
NULL
1416
NULL
1632
NULL
2304

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 AS cor0 WHERE NOT NULL < 70
----

query II rowsort
SELECT ALL + + ( - - col0 ) AS col2, 9 + + - col0 AS col2 FROM tab1 AS cor0
----
51
-42
85
-76
91
-82

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT - 75 > + col2 + + col0 * - 39 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT 58 * COUNT( * ) FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-4926
SELECT 58 * COUNT ( * ) FROM tab2 AS cor0
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT ALL + 45 * + + COUNT( * ) FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-4927
SELECT ALL + 45 * + + COUNT ( * ) FROM tab2
----
135

query I rowsort
SELECT - 32 AS col2 FROM tab0, tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT + SUM( + - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4929
SELECT + SUM ( + - col2 ) FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4930
SELECT - + col0, col1 * + 75 * - + 28 * + CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-51
411600
-85
52500
-91
4638900

skipif mysql # not compatible
query II rowsort label-4930
SELECT - + col0, col1 * + 75 * - + 28 * + CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-51
411600
-85
52500
-91
4638900

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col0 * 89
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4932
SELECT - 2 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4932
SELECT - 2 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT ALL - 52 * + COUNT( * ) AS col2 FROM tab0 WHERE ( ( 97 ) ) NOT IN ( + col0 + col2 / + col0 )
----
-156

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL - 52 * + COUNT ( * ) AS col2 FROM tab0 WHERE ( ( 97 ) ) NOT IN ( + col0 + col2 / + col0 )
----
-156

query I rowsort
SELECT 50 * 69 AS col1 FROM tab1
----
3450
3450
3450

query I rowsort
SELECT ALL - 63 * + col0 - 76 AS col2 FROM tab2
----
-2974
-4108
-4801

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 82 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 43 * - 68 + - col1 AS col1 FROM tab1
----
-2929
-2938
-2971

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * - 3 < ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 92 * 68 + + 81 AS col0 FROM tab0
----
6337
6337
6337

query I rowsort
SELECT DISTINCT - col2 * col2 + - 21 AS col0 FROM tab2
----
-1621
-3385
-550

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 28 BETWEEN - col1 AND col1
----
15
81
47

query I rowsort
SELECT ALL - 59 AS col1 FROM tab0 WHERE col2 + - 8 * + col0 BETWEEN ( + 82 / + col1 ) AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT MAX( DISTINCT - col1 ) * + COUNT( * ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4944
SELECT MAX ( DISTINCT - col1 ) * + COUNT ( * ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - col0 * col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 36 AS col1 FROM tab2
----
-36

query I rowsort
SELECT ALL 40 * col0 AS col2 FROM tab1
----
2040
3400
3640

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT ALL MAX( DISTINCT ( - col2 ) ) + + COUNT( * ) FROM tab0 WHERE NOT ( NULL ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL MAX ( DISTINCT ( - col2 ) ) + + COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) <= NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 40 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 38 * col1 AS col0 FROM tab2
----
1938
2546
2926

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + 11 / 49 - + col1 * + col0 AND - ( 84 ) + 75
----

query I rowsort
SELECT DISTINCT - col1 * + col2 - col1 AS col2 FROM tab1
----
-1358
-300
-3243

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * + 51 < + col2 / - ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE col1 + col0 <= ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT - 10 * ( MAX( - 91 ) ) FROM tab1
----
910

skipif mysql # not compatible
query I rowsort label-4955
SELECT - 10 * ( MAX ( - 91 ) ) FROM tab1
----
910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 col0 FROM tab0 WHERE ( col1 / - col2 ) IS NOT NULL
----
83

query I rowsort
SELECT DISTINCT col1 * - 50 AS col0 FROM tab0
----
-1050
-4050
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 col0 FROM tab1
----
-20

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 <= + col2 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT - 0 * + MIN( ALL + 13 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4960
SELECT - 0 * + MIN ( ALL + 13 ) AS col1 FROM tab1
----
0

query I rowsort
SELECT + col1 * + 92 FROM tab2
----
4692
6164
7084

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 77 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT ALL + SUM( DISTINCT - 52 ) FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL + SUM ( DISTINCT - 52 ) FROM tab0 AS cor0
----
-52

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + 64 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4965
SELECT ALL 78 + - CAST( NULL AS SIGNED ) * 18 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL 78 + - CAST ( NULL AS INTEGER ) * 18 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col2 + + col1 * col0 AS col1 FROM tab0
----
1262
1837
196

query I rowsort
SELECT ALL + 56 * + ( + 80 ) FROM tab1
----
4480
4480
4480

query I rowsort
SELECT col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4969
SELECT DISTINCT + CAST( 89 AS SIGNED ) FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-4969
SELECT DISTINCT + CAST ( 89 AS INTEGER ) FROM tab2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT + COUNT( * ) * - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-4970
SELECT + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + ( col1 ) col0 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT DISTINCT SUM( DISTINCT 80 ) AS col2 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-4972
SELECT DISTINCT SUM ( DISTINCT 80 ) AS col2 FROM tab2 AS cor0
----
80

query I rowsort
SELECT ALL ( - col0 ) * 18 AS col1 FROM tab0 AS cor0
----
-1566
-1746
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT + - 86 * - COUNT( * ) FROM tab1 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-4974
SELECT + - 86 * - COUNT ( * ) FROM tab1 AS cor0
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT DISTINCT - - 97 * - COUNT( * ) FROM tab1 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-4975
SELECT DISTINCT - - 97 * - COUNT ( * ) FROM tab1 AS cor0
----
-291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4976
SELECT ALL CAST( ( - 63 ) AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-4976
SELECT ALL CAST ( ( - 63 ) AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT + 95 * + - MAX( - col1 ) * COUNT( * ) col1 FROM tab0
----
285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4977
SELECT + 95 * + - MAX ( - col1 ) * COUNT ( * ) col1 FROM tab0
----
285

query I rowsort
SELECT ALL 0 FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT + col1 * ( - 22 ) AS col0 FROM tab1
----
-1034
-110
-308

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <= col2 * - col0
----

query I rowsort
SELECT + 24 FROM tab1 WHERE NOT + 40 IS NULL
----
24
24
24

query I rowsort
SELECT + col1 - + 30 AS col0 FROM tab1 WHERE NOT col1 + col0 IS NOT NULL
----

query I rowsort
SELECT + ( 76 ) * col0 AS col1 FROM tab2
----
3496
4864
5700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4984
SELECT + SUM( - CAST( - col0 AS SIGNED ) ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-4984
SELECT + SUM ( - CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab2
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-4985
SELECT - col2 * col1 DIV col1 AS col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4985
SELECT - col2 * col1 / col1 AS col0 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4986
SELECT ALL CAST( - MIN( ALL col1 ) AS SIGNED ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL CAST ( - MIN ( ALL col1 ) AS INTEGER ) AS col2 FROM tab0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 NOT IN ( - col2 + col1 * + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 + col2 * + col2 = col2
----

query I rowsort
SELECT DISTINCT 40 AS col1 FROM tab0 cor0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-4990
SELECT + col1 DIV 13 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-4990
SELECT + col1 / 13 FROM tab0 AS cor0
----
0
1
6

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT ( + 7 + col0 ) >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT DISTINCT + 53 + + COUNT( * ) * 82 FROM tab0 cor0
----
299

skipif mysql # not compatible
query I rowsort label-4992
SELECT DISTINCT + 53 + + COUNT ( * ) * 82 FROM tab0 cor0
----
299

query I rowsort
SELECT DISTINCT - 33 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, col2 * - 48 FROM tab2
----
46
-1104
64
-1920
75
-2784

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) <= + 53
----

query I rowsort
SELECT ALL + 14 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT DISTINCT - ( - - col0 ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - 36
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4999
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + 55 * + + CAST( - col2 AS SIGNED ) * - col0 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4999
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + 55 * + + CAST ( - col2 AS INTEGER ) * - col0 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5000
SELECT + ( - 17 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5000
SELECT + ( - 17 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 + col1 - col1 AS col0 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT + 88 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND - col2 + + col2 * 53
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5003
SELECT col1 DIV + ( - ( col2 ) ) FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5003
SELECT col1 / + ( - ( col2 ) ) FROM tab0
----
-1
-2
0

query I rowsort
SELECT - 58 + + col2 AS col0 FROM tab0 WHERE ( 91 ) * - col0 + + col2 NOT IN ( 24 )
----
-11
-48
41

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 ) * col1 IS NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE + + 11 >= + 51
----

query I rowsort
SELECT ALL - 24 + + - col2 AS col1 FROM tab2
----
-47
-64
-82

query III rowsort
SELECT * FROM tab2 WHERE - col2 * - - 26 IS NULL
----

query II rowsort
SELECT col0 * 1, + 3 AS col1 FROM tab1
----
51
3
85
3
91
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5010
SELECT col0 DIV col1 AS col1 FROM tab1 WHERE col0 * + col2 + + 58 * ( + col2 DIV 88 ) IS NOT NULL
----
1
17
3

skipif mysql # not compatible
query I rowsort label-5010
SELECT col0 / col1 AS col1 FROM tab1 WHERE col0 * + col2 + + 58 * ( + col2 / 88 ) IS NOT NULL
----
1
17
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN col0 * col1 AND col2 * + 56
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 NOT BETWEEN NULL AND - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL BETWEEN - - 27 AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5013
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL BETWEEN - - 27 AND NULL )
----
0

query II rowsort
SELECT + col1 + + col1 AS col2, - col0 + - col1 + col1 * - col2 AS col2 FROM tab0 AS cor0
----
162
-3903
2
-197
42
-318

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 75 - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT ALL COUNT( ALL - ( + 74 ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL COUNT ( ALL - ( + 74 ) ) AS col0 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5017
SELECT - - ( - - col0 ) DIV - + col1 col0 FROM tab0 cor0
----
-4
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5017
SELECT - - ( - - col0 ) / - + col1 col0 FROM tab0 cor0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT ALL - - COUNT( DISTINCT 55 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL - - COUNT ( DISTINCT 55 ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT - 99 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-5019
SELECT - 99 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-297

query I rowsort
SELECT DISTINCT + col0 FROM tab1 cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL + col1 * - col1 * - - col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT COUNT( * ) * - MIN( - col2 ) AS col0 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-5022
SELECT COUNT ( * ) * - MIN ( - col2 ) AS col0 FROM tab0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT ALL COUNT( * ) * - - ( 45 ) FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-5023
SELECT ALL COUNT ( * ) * - - ( 45 ) FROM tab0
----
135

query II rowsort
SELECT DISTINCT - col0 AS col0, - 89 * + - 94 + + 89 AS col0 FROM tab1
----
-51
8455
-85
8455
-91
8455

onlyif mysql # DIV for integer division: 
query I rowsort label-5025
SELECT DISTINCT - col0 DIV - - col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5025
SELECT DISTINCT - col0 / - - col0 FROM tab2
----
-1

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 WHERE NOT + - col1 * - + col0 + - col0 = NULL
----

query II rowsort
SELECT col0 AS col0, - col2 + + col1 AS col1 FROM tab1
----
51
-82
85
-54
91
-21

query I rowsort
SELECT ALL + ( ( + - 18 ) ) AS col1 FROM tab0
----
-18
-18
-18

query II rowsort
SELECT DISTINCT - 80 AS col0, - 89 + 53 FROM tab1
----
-80
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-5030
SELECT col1 + + col2 DIV 6 FROM tab0 AS cor0
----
17
22
88

skipif mysql # not compatible
query I rowsort label-5030
SELECT col1 + + col2 / 6 FROM tab0 AS cor0
----
17
22
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT ALL - MAX( 64 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-64

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL - MAX ( 64 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5032
SELECT DISTINCT * FROM tab2 WHERE - col2 NOT BETWEEN - CAST( NULL AS SIGNED ) AND - col2 - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5032
SELECT DISTINCT * FROM tab2 WHERE - col2 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND - col2 - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE ( - 54 * - col2 ) IS NULL
----

query II rowsort
SELECT + col0 * - col1, + col2 AS col2 FROM tab2
----
-2346
23
-4928
40
-5025
58

query I rowsort
SELECT ALL + + col0 * + ( - - col0 ) AS col2 FROM tab2 AS cor0
----
2116
4096
5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * + 47 col1, - 63 FROM tab1 AS cor0
----
-2397
-63
-3995
-63
-4277
-63

query I rowsort
SELECT ALL + - 76 FROM tab0 cor0
----
-76
-76
-76

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( - col2 )
----

query I rowsort
SELECT DISTINCT - 20 FROM tab2 AS cor0 WHERE col0 + - col2 = + 23
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-5040
SELECT ALL - - 48 + + - col2 DIV - + col1 AS col1 FROM tab1 AS cor0
----
49
54
59

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL - - 48 + + - col2 / - + col1 AS col1 FROM tab1 AS cor0
----
49
54
59

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT col2 + + col1 * col2 AS col1 FROM tab2 cor0
----
1196
3120
3944

onlyif mysql # DIV for integer division: 
query I rowsort label-5043
SELECT ALL - col2 + - 58 - + col2 DIV + + col1 AS col0 FROM tab1
----
-127
-128
-160

skipif mysql # not compatible
query I rowsort label-5043
SELECT ALL - col2 + - 58 - + col2 / + + col1 AS col0 FROM tab1
----
-127
-128
-160

query III rowsort
SELECT * FROM tab0 WHERE + + 36 + + 12 + col0 + + 90 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - + ( - 4 ) * + - col0 + + 74 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - - 77 col2 FROM tab0
----
164
174
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5047
SELECT + col1 + - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5047
SELECT + col1 + - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT ALL - 89 + - - COUNT( * ) FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-5048
SELECT ALL - 89 + - - COUNT ( * ) FROM tab2
----
-86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5049
SELECT DISTINCT col1 - - + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5049
SELECT DISTINCT col1 - - + CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT ALL col2 * - + 23 - + 97 AS col1 FROM tab0
----
-1178
-2374
-327

query II rowsort
SELECT 72 AS col0, col1 * 47 * - - 30 FROM tab1 cor0
----
72
19740
72
66270
72
7050

query I rowsort
SELECT DISTINCT + 44 FROM tab0 AS cor0 WHERE NOT col1 + + ( + col2 ) * - col1 * - col1 <= + col0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5053
SELECT - + COUNT( * ) DIV 6 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5053
SELECT - + COUNT ( * ) / 6 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 99 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * + col1, 9 * - 64 * 79 col1 FROM tab0 AS cor0
----
1215
-45504
1827
-45504
97
-45504

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) = - - 99
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5057
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST( - - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5057
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST ( - - col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT ALL + + ( - 25 ) * + 17 + - MIN( DISTINCT + col1 ) + 69 col1 FROM tab1 AS cor0 WHERE NULL >= + col2 * + col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5058
SELECT ALL + + ( - 25 ) * + 17 + - MIN ( DISTINCT + col1 ) + 69 col1 FROM tab1 AS cor0 WHERE NULL >= + col2 * + col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5059
SELECT 11 + MAX( ALL - CAST( - 90 AS SIGNED ) ) col1 FROM tab1
----
101

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5059
SELECT 11 + MAX ( ALL - CAST ( - 90 AS INTEGER ) ) col1 FROM tab1
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT - 15 + + SUM( DISTINCT - + 96 ) col2 FROM tab0
----
-111

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5060
SELECT - 15 + + SUM ( DISTINCT - + 96 ) col2 FROM tab0
----
-111

query II rowsort
SELECT ALL ( - 92 ) + - - col1, + 42 + - - 43 * + col0 AS col2 FROM tab2
----
-15
2794
-25
3267
-41
2020

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT MAX( DISTINCT + col0 ) + + - 6 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-5062
SELECT MAX ( DISTINCT + col0 ) + + - 6 FROM tab2
----
69

query I rowsort
SELECT col1 * + + 64 FROM tab2
----
3264
4288
4928

onlyif mysql # DIV for integer division: 
query I rowsort label-5064
SELECT + ( col1 ) DIV - - col2 + col1 FROM tab0
----
1
23
82

skipif mysql # not compatible
query I rowsort label-5064
SELECT + ( col1 ) / - - col2 + col1 FROM tab0
----
1
23
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT ALL - COUNT( * ) * + COUNT( * ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT COUNT( * ) * - 6 AS col2 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-5066
SELECT COUNT ( * ) * - 6 AS col2 FROM tab2
----
-18

query I rowsort
SELECT DISTINCT + + ( + + col2 ) FROM tab1 WHERE NOT NULL >= 87
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5068
SELECT DISTINCT + 74 * + + COUNT( * ) * + 25, 14 AS col2 FROM tab2
----
5550
14

skipif mysql # not compatible
query II rowsort label-5068
SELECT DISTINCT + 74 * + + COUNT ( * ) * + 25, 14 AS col2 FROM tab2
----
5550
14

query I rowsort
SELECT ( - 17 ) FROM tab1 AS cor0
----
-17
-17
-17

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 + 76 - + 11 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT COUNT( * ) AS col2 FROM tab2 cor0 WHERE 55 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5071
SELECT COUNT ( * ) AS col2 FROM tab2 cor0 WHERE 55 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5072
SELECT - 89, MAX( + + col1 ) AS col1 FROM tab0
----
-89
81

skipif mysql # not compatible
query II rowsort label-5072
SELECT - 89, MAX ( + + col1 ) AS col1 FROM tab0
----
-89
81

query I rowsort
SELECT ALL 68 + + col0 AS col0 FROM tab1
----
119
153
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col0 + + col1 col0 FROM tab0
----
306
7590
9410

query I rowsort
SELECT + col1 + col2 + + + col2 + - - col1 - - - 17 + + 56 * 50 * - col0 FROM tab1
----
-142597
-237889
-254587

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT DISTINCT - MAX( DISTINCT col0 ) + - COUNT( DISTINCT col2 ) AS col0 FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT - MAX ( DISTINCT col0 ) + - COUNT ( DISTINCT col2 ) AS col0 FROM tab0
----
-100

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + - col0 * + col1 BETWEEN NULL AND - - col0 AND NOT + col0 >= ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5078
SELECT 80 DIV col1 FROM tab1 cor0
----
1
16
5

skipif mysql # not compatible
query I rowsort label-5078
SELECT 80 / col1 FROM tab1 cor0
----
1
16
5

query II rowsort
SELECT - + col0, - 38 * col2 + - col0 AS col1 FROM tab0 AS cor0
----
-15
-1801
-87
-467
-97
-3859

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( 22 ) NOT IN ( 42 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT DISTINCT COUNT( * ) col2 FROM tab2 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5081
SELECT DISTINCT COUNT ( * ) col2 FROM tab2 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT - col0 * - 15 FROM tab1
----
1275
1365
765

query I rowsort
SELECT DISTINCT col1 + - + ( col0 ) FROM tab2
----
-8
13
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5084
SELECT 50 DIV + col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5084
SELECT 50 / + col0 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL + - 35 FROM tab2 WHERE NOT - 12 * - 57 IS NULL
----
-35
-35
-35

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL < + col0 + 12 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5087
SELECT + 47, COUNT( * ) AS col2 FROM tab1, tab1 AS cor0
----
47
9

skipif mysql # not compatible
query II rowsort label-5087
SELECT + 47, COUNT ( * ) AS col2 FROM tab1, tab1 AS cor0
----
47
9

query I rowsort
SELECT + 52 * - - 54 FROM tab1
----
2808
2808
2808

query I rowsort
SELECT DISTINCT 82 AS col2 FROM tab1 AS cor0 WHERE ( col2 * + col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5090
SELECT + CAST( - + col0 AS SIGNED ) DIV + ( + + 81 ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5090
SELECT + CAST ( - + col0 AS INTEGER ) / + ( + + 81 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + 51 AS col1 FROM tab2 AS cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - - col1 ) - 81 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT + + COUNT( ALL 32 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5093
SELECT + + COUNT ( ALL 32 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT ALL SUM( ALL + - 66 ) FROM tab0 AS cor0 WHERE 47 + + + 81 IS NOT NULL
----
-198

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL SUM ( ALL + - 66 ) FROM tab0 AS cor0 WHERE 47 + + + 81 IS NOT NULL
----
-198

query I rowsort
SELECT + 97 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
97
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 10 col2 FROM tab1 AS cor0
----
10
10
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5097
SELECT - - col0 + + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT - col1 > NULL
----

skipif mysql # not compatible
query I rowsort label-5097
SELECT - - col0 + + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT - col1 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL > - 93 + + - 88 + + - col1
----

query I rowsort
SELECT - col2 + 52 AS col1 FROM tab2
----
-6
12
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT DISTINCT SUM( - - col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-5100
SELECT DISTINCT SUM ( - - col1 ) FROM tab2 AS cor0
----
195

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= + col1 * - + 62
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5102
SELECT + 83 DIV + + col2 + - col2 AS col0 FROM tab1 AS cor0
----
-58
-67
-96

skipif mysql # not compatible
query I rowsort label-5102
SELECT + 83 / + + col2 + - col2 AS col0 FROM tab1 AS cor0
----
-58
-67
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT + col2 + + - ( - 72 ) + - 68 BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5104
SELECT + col2 + + - 55 AS col0 FROM tab2 AS cor0 WHERE 76 IN ( + col1 * - col1 + - col1, + col2 + + - col1, + + col0, CAST( NULL AS SIGNED ) - - col0 )
----

skipif mysql # not compatible
query I rowsort label-5104
SELECT + col2 + + - 55 AS col0 FROM tab2 AS cor0 WHERE 76 IN ( + col1 * - col1 + - col1, + col2 + + - col1, + + col0, CAST ( NULL AS INTEGER ) - - col0 )
----

query I rowsort
SELECT 84 - - + col1 FROM tab1 AS cor0
----
131
89
98

query I rowsort
SELECT + + col2 * col2 * 83 - col1 + 81 - - + col1 + 85 + 27 AS col1 FROM tab2 AS cor0
----
132993
279405
44100

query I rowsort
SELECT + col2 - + - col2 + + + col0 + + 68 + + - col0 AS col1 FROM tab2 cor0
----
114
148
184

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= ( col1 ) * + - 57
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= col2 / - col0 / + + col1
----

query I rowsort
SELECT ALL + col1 + 9 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + + 18 FROM tab2 cor0
----
18
18
18

query I rowsort
SELECT - col1 + col1 + 94 * + - col0 AS col0 FROM tab0 AS cor0 WHERE + ( + 47 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5113
SELECT col0 DIV 27 FROM tab0
----
0
3
3

skipif mysql # not compatible
query I rowsort label-5113
SELECT col0 / 27 FROM tab0
----
0
3
3

query I rowsort
SELECT DISTINCT - - col1 AS col0 FROM tab2 WHERE NOT + col0 * + col1 BETWEEN + 24 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5115
SELECT ALL ( + - CAST( + - 84 AS SIGNED ) ) * - col2 + - 98 FROM tab2
----
-2030
-3458
-4970

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL ( + - CAST ( + - 84 AS INTEGER ) ) * - col2 + - 98 FROM tab2
----
-2030
-3458
-4970

onlyif mysql # DIV for integer division: 
query I rowsort label-5116
SELECT DISTINCT - col1 DIV + 64 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5116
SELECT DISTINCT - col1 / + 64 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5117
SELECT col2 + - col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT NULL NOT IN ( 18 )
----

skipif mysql # not compatible
query I rowsort label-5117
SELECT col2 + - col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT NULL NOT IN ( 18 )
----

query II rowsort
SELECT - col2 AS col0, col2 AS col2 FROM tab0
----
-10
10
-47
47
-99
99

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 52 + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT - MAX( DISTINCT - - 31 ) AS col1 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-5120
SELECT - MAX ( DISTINCT - - 31 ) AS col1 FROM tab0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT DISTINCT + MIN( DISTINCT + 14 ) AS col1 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-5121
SELECT DISTINCT + MIN ( DISTINCT + 14 ) AS col1 FROM tab0
----
14

query I rowsort
SELECT + 24 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 41 col1 FROM tab2 AS cor0
----
-41
-41
-41

query I rowsort
SELECT DISTINCT - - 47 * + col0 AS col0 FROM tab0 AS cor0
----
4089
4559
705

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT + COUNT( * ) * + 20 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-5125
SELECT + COUNT ( * ) * + 20 FROM tab1 AS cor0
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 * - 76 col2 FROM tab0
----
-6688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5127
SELECT + 46 * + CAST( NULL AS SIGNED ) * - + col1 col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5127
SELECT + 46 * + CAST ( NULL AS INTEGER ) * - + col1 col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5128
SELECT 64 DIV + - ( + - 17 ) FROM tab2 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-5128
SELECT 64 / + - ( + - 17 ) FROM tab2 AS cor0
----
3
3
3

query I rowsort
SELECT DISTINCT - 19 + + 50 FROM tab1 cor0
----
31

query I rowsort
SELECT DISTINCT + 29 AS col1 FROM tab2 cor0
----
29

query II rowsort
SELECT DISTINCT col0 * - col2 + + + 92, col1 FROM tab1
----
-4804
14
-4923
5
-6096
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT MAX( + col0 ) * + COUNT( * ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-5132
SELECT MAX ( + col0 ) * + COUNT ( * ) FROM tab1
----
273

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT ( NOT NULL IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT + ( + + COUNT( * ) ) * - + COUNT( * ) + - - COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-5134
SELECT + ( + + COUNT ( * ) ) * - + COUNT ( * ) + - - COUNT ( * ) FROM tab2
----
-6

query III rowsort
SELECT * FROM tab0 WHERE - 28 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + - 66 + - col2 ) IN ( col0 )
----

query I rowsort
SELECT ALL - + ( - - 76 ) AS col0 FROM tab0 AS cor0
----
-76
-76
-76

query I rowsort
SELECT + col2 * + - ( + 32 ) FROM tab1 AS cor0
----
-1888
-2176
-3072

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5139
SELECT * FROM tab0 AS cor0 WHERE - 8 * col1 BETWEEN - CAST( NULL AS SIGNED ) AND + col0 - - + col0
----

skipif mysql # not compatible
query III rowsort label-5139
SELECT * FROM tab0 AS cor0 WHERE - 8 * col1 BETWEEN - CAST ( NULL AS INTEGER ) AND + col0 - - + col0
----

query I rowsort
SELECT col2 * 59 + + col0 AS col2 FROM tab1
----
3566
4103
5715

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT - COUNT( * ) FROM tab1 WHERE - + 46 - col1 * + + col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5141
SELECT - COUNT ( * ) FROM tab1 WHERE - + 46 - col1 * + + col2 IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 col2 FROM tab2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT + COUNT( DISTINCT - 69 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5143
SELECT + COUNT ( DISTINCT - 69 ) AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5144
SELECT DISTINCT 28 - - col1 + - col0 * + col2 * - col1 * - col2 + col1 + + - 92 DIV - col0 + - col0 FROM tab2 AS cor0
----
-1240948
-16904012
-7884681

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT 28 - - col1 + - col0 * + col2 * - col1 * - col2 + col1 + + - 92 / - col0 + - col0 FROM tab2 AS cor0
----
-1240948
-16904012
-7884681

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT DISTINCT - - COUNT( ALL 51 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5145
SELECT DISTINCT - - COUNT ( ALL 51 ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + col1 col1, + col0 FROM tab2 AS cor0
----
1173
46
3080
64
3886
75

query I rowsort
SELECT DISTINCT - col2 * 36 FROM tab0 AS cor0 WHERE NOT + col1 - + 38 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5148
SELECT ALL - 5 * + COUNT( * ), + ( 60 ) col2 FROM tab2 AS cor0
----
-15
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5148
SELECT ALL - 5 * + COUNT ( * ), + ( 60 ) col2 FROM tab2 AS cor0
----
-15
60

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 ) > col0
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5150
SELECT ALL + col0 * + CAST( - 93 AS SIGNED ) AS col2, - col2 * + col2 * - - col1 * col1 - CAST( NULL AS SIGNED ) - col2 AS col2 FROM tab2
----
-4278
NULL
-5952
NULL
-6975
NULL

skipif mysql # not compatible
query II rowsort label-5150
SELECT ALL + col0 * + CAST ( - 93 AS INTEGER ) AS col2, - col2 * + col2 * - - col1 * col1 - CAST ( NULL AS INTEGER ) - col2 AS col2 FROM tab2
----
-4278
NULL
-5952
NULL
-6975
NULL

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT + + 87 * - 94 * col0 - + 17 BETWEEN NULL AND col1 + + col2
----

query I rowsort
SELECT 35 * - ( + + 79 ) * 37 - - 73 AS col1 FROM tab0
----
-102232
-102232
-102232

query II rowsort
SELECT ALL - 83, - 27 AS col0 FROM tab0
----
-83
-27
-83
-27
-83
-27

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > + 5
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 55 * + col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5156
SELECT DISTINCT + col0, - CAST( ( + col2 ) AS SIGNED ) FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

skipif mysql # not compatible
query II rowsort label-5156
SELECT DISTINCT + col0, - CAST ( ( + col2 ) AS INTEGER ) FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT - col0 * - 77 * + col0 FROM tab0 AS cor0
----
17325
582813
724493

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5158
SELECT ALL + CAST( NULL AS SIGNED ), - ( + 83 ) AS col1 FROM tab1 cor0
----
NULL
-83
NULL
-83
NULL
-83

skipif mysql # not compatible
query II rowsort label-5158
SELECT ALL + CAST ( NULL AS INTEGER ), - ( + 83 ) AS col1 FROM tab1 cor0
----
NULL
-83
NULL
-83
NULL
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-5159
SELECT + col0 DIV - 24 FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5159
SELECT + col0 / - 24 FROM tab2 AS cor0
----
-1
-2
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 98 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT DISTINCT 95 * - SUM( + + col1 ) FROM tab1 AS cor0
----
-6270

skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT 95 * - SUM ( + + col1 ) FROM tab1 AS cor0
----
-6270

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT - + SUM( + col0 ) AS col2 FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5162
SELECT - + SUM ( + col0 ) AS col2 FROM tab2 cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE + 84 BETWEEN NULL AND + 31
----
0

skipif mysql # not compatible
query I rowsort label-5163
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE + 84 BETWEEN NULL AND + 31
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 / - + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT MIN( DISTINCT - - col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5165
SELECT MIN ( DISTINCT - - col1 ) AS col2 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT DISTINCT - 17 * + SUM( DISTINCT col0 ) * - COUNT( * ) + + COUNT( * ) FROM tab0 WHERE - 78 + + col0 - - + 10 * col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5166
SELECT DISTINCT - 17 * + SUM ( DISTINCT col0 ) * - COUNT ( * ) + + COUNT ( * ) FROM tab0 WHERE - 78 + + col0 - - + 10 * col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col1 + + + col2 FROM tab1
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT ALL ( + - SUM( - col0 ) ) + 51 AS col1 FROM tab0
----
250

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL ( + - SUM ( - col0 ) ) + 51 AS col1 FROM tab0
----
250

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT + - COUNT( * ) AS col1 FROM tab2 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5169
SELECT + - COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT DISTINCT - SUM( + 85 ) + ( - 48 ) AS col1 FROM tab2
----
-303

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT - SUM ( + 85 ) + ( - 48 ) AS col1 FROM tab2
----
-303

query I rowsort
SELECT ALL 71 + + col2 FROM tab1
----
130
139
167

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT DISTINCT - COUNT( * ) - - 28 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-5172
SELECT DISTINCT - COUNT ( * ) - - 28 FROM tab0 AS cor0
----
25

query I rowsort
SELECT DISTINCT - + 41 FROM tab1 AS cor0
----
-41

query I rowsort
SELECT - col0 + - - col0 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT + 18 + ( 23 ) * + - ( col2 ), + col2 FROM tab2 AS cor0
----
-1316
58
-511
23
-902
40

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < - col1
----

query I rowsort
SELECT ALL col2 - - + col2 AS col0 FROM tab2
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT COUNT( * ) * 68 - + 66 AS col0 FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-5179
SELECT COUNT ( * ) * 68 - + 66 AS col0 FROM tab1
----
138

query II rowsort
SELECT ALL 1, col0 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 col0 FROM tab1 cor0
----
63
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 col2 FROM tab2 AS cor0
----
27
27
27

onlyif mysql # aggregate syntax: 
query II rowsort label-5183
SELECT ALL + 78 col1, COUNT( ALL ( + col1 ) ) + - - COUNT( * ) + + MAX( ALL + - ( col2 ) ) FROM tab0 AS cor0
----
78
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5183
SELECT ALL + 78 col1, COUNT ( ALL ( + col1 ) ) + - - COUNT ( * ) + + MAX ( ALL + - ( col2 ) ) FROM tab0 AS cor0
----
78
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT SUM( + 17 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5184
SELECT SUM ( + 17 ) FROM tab2 AS cor0
----
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 33 > - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5186
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( + - 5 AS SIGNED ) IN ( + 16, col0 * - 33, + col1, - col0, - col0 )
----

skipif mysql # not compatible
query III rowsort label-5186
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( + - 5 AS INTEGER ) IN ( + 16, col0 * - 33, + col1, - col0, - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5187
SELECT DISTINCT - CAST( - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5187
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT - ( - col2 ) * - 7 * 88 FROM tab1 cor0
----
-36344
-41888
-59136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2 * + 40 - + 35 AS col0, - 71 col1 FROM tab0 AS cor0
----
-1915
-71
-3995
-71
-435
-71

query I rowsort
SELECT ( col2 ) * col2 - - col2 FROM tab0
----
110
2256
9900

query I rowsort
SELECT col0 * - + 80 AS col0 FROM tab2
----
-3680
-5120
-6000

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT ALL COUNT( * ) * 61 col0 FROM tab1
----
183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5192
SELECT ALL COUNT ( * ) * 61 col0 FROM tab1
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE - col2 + col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE - col2 + col0 > NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5194
SELECT DISTINCT + col2 * - col1 + - col1 - 36 DIV ( + col1 ) FROM tab0 AS cor0
----
-136
-232
-3888

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT + col2 * - col1 + - col1 - 36 / ( + col1 ) FROM tab0 AS cor0
----
-136
-232
-3888

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 94 + col2 + 18 AS col2, col1 FROM tab2
----
135
51
152
77
170
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT DISTINCT + 40 + + - 49 + - COUNT( * ) + + COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT + 40 + + - 49 + - COUNT ( * ) + + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-9

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 63 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT ( + 19 ) AS col1 FROM tab0
----
19
19
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5202
SELECT 52 FROM tab1 AS cor0 WHERE col1 NOT IN ( - col2 + + col0 + + - ( - 91 ) * + 10 * col0 + - - col2 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5202
SELECT 52 FROM tab1 AS cor0 WHERE col1 NOT IN ( - col2 + + col0 + + - ( - 91 ) * + 10 * col0 + - - col2 + + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL ( + - 65 ) * + + col1 FROM tab2 AS cor0
----
-3315
-4355
-5005

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT + 92 + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-5204
SELECT + 92 + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT ALL - + COUNT( * ) + - 30 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL - + COUNT ( * ) + - 30 FROM tab0 AS cor0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5206
SELECT ALL + COUNT( * ) DIV - MAX( + col0 ) + 55 AS col0 FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL + COUNT ( * ) / - MAX ( + col0 ) + 55 AS col0 FROM tab0 AS cor0
----
55

query I rowsort
SELECT - + 40 + + col0 + + 60 AS col2 FROM tab2 AS cor0
----
66
84
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5208
SELECT - + col0 * + CAST( NULL AS SIGNED ) + + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5208
SELECT - + col0 * + CAST ( NULL AS INTEGER ) + + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5209
SELECT - CAST( NULL AS SIGNED ), + MIN( - col2 ) * 88 + + COUNT( * ) AS col0 FROM tab0
----
NULL
-8709

skipif mysql # not compatible
query II rowsort label-5209
SELECT - CAST ( NULL AS INTEGER ), + MIN ( - col2 ) * 88 + + COUNT ( * ) AS col0 FROM tab0
----
NULL
-8709

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * - - 58 BETWEEN col1 + - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT ALL - COUNT( * ) * 62 FROM tab2
----
-186

skipif mysql # not compatible
query I rowsort label-5211
SELECT ALL - COUNT ( * ) * 62 FROM tab2
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT SUM( ALL col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-5212
SELECT SUM ( ALL col1 ) AS col2 FROM tab0
----
103

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * - + col0 BETWEEN - + col0 * - 38 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 66 AS col2 FROM tab1 cor0
----
66
66
66

query I rowsort
SELECT + 24 - - col0 AS col2 FROM tab1 AS cor0
----
109
115
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT ALL + MAX( col2 ) FROM tab0 AS cor0 WHERE NOT + col2 * - ( - 87 ) + - col2 + 65 * + col2 * + - col0 + + - 47 IS NOT NULL AND NOT NULL >= + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL + MAX ( col2 ) FROM tab0 AS cor0 WHERE NOT + col2 * - ( - 87 ) + - col2 + 65 * + col2 * + - col0 + + - 47 IS NOT NULL AND NOT NULL >= + col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5217
SELECT col2 DIV col2 + - 10 AS col2 FROM tab1
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-5217
SELECT col2 / col2 + - 10 AS col2 FROM tab1
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5218
SELECT - 61 * + COUNT( * ), 42 AS col2 FROM tab1 AS cor0
----
-183
42

skipif mysql # not compatible
query II rowsort label-5218
SELECT - 61 * + COUNT ( * ), 42 AS col2 FROM tab1 AS cor0
----
-183
42

query I rowsort
SELECT ALL - ( - 3 ) * + + col0 + + col0 + col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL - - 14 * col2 + - col0 FROM tab0 AS cor0
----
1289
53
643

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + - 71 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 38 AS col1 FROM tab1 AS cor0
----
-38
-38
-38

query I rowsort
SELECT col1 * - 87 + - col1 * + + 18 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT DISTINCT + MIN( DISTINCT - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT + MIN ( DISTINCT - col2 ) FROM tab0
----
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 + + col1 - - col2 * col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 WHERE NOT - + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT ALL MIN( DISTINCT col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL MIN ( DISTINCT col2 ) FROM tab1
----
59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 59 IS NOT NULL
----

query I rowsort
SELECT - + 23 AS col0 FROM tab2 cor0
----
-23
-23
-23

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 IN ( - - col2, - ( - 36 ) + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5231
SELECT ALL * FROM tab2 WHERE + col1 NOT BETWEEN + col1 * + + ( + col0 ) - - - col0 + col2 AND - - col0 * + col1 + + CAST( - 2 AS DECIMAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5231
SELECT ALL * FROM tab2 WHERE + col1 NOT BETWEEN + col1 * + + ( + col0 ) - - - col0 + col2 AND - - col0 * + col1 + + CAST ( - 2 AS REAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 15 * - col2 * + 61 FROM tab1 AS cor0
----
-53985
-62220
-87840

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5233
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 99 IN ( - CAST( NULL AS SIGNED ), 54 * + col1, + col0 )
----

skipif mysql # not compatible
query III rowsort label-5233
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 99 IN ( - CAST ( NULL AS INTEGER ), 54 * + col1, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT ALL + SUM( + - col2 ) * 81 FROM tab0 AS cor0
----
-12636

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL + SUM ( + - col2 ) * 81 FROM tab0 AS cor0
----
-12636

query I rowsort
SELECT + 56 * 29 AS col1 FROM tab1 cor0
----
1624
1624
1624

onlyif mysql # DIV for integer division: 
query I rowsort label-5236
SELECT - - col1 DIV - 51 col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5236
SELECT - - col1 / - 51 col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5237
SELECT DISTINCT + 7 DIV - - col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5237
SELECT DISTINCT + 7 / - - col2 FROM tab0 AS cor0
----
0

query II rowsort
SELECT ALL col0 + + - col0 AS col0, 59 FROM tab1 AS cor0
----
0
59
0
59
0
59

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col2 <> NULL
----

query I rowsort
SELECT - + col0 * + - 18 FROM tab0 AS cor0
----
1566
1746
270

query I rowsort
SELECT ALL col2 + - - 6 * - 29 AS col0 FROM tab2
----
-116
-134
-151

onlyif mysql # DIV for integer division: 
query I rowsort label-5242
SELECT ALL + 75 DIV + - ( - 25 ) FROM tab2
----
3
3
3

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL + 75 / + - ( - 25 ) FROM tab2
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT DISTINCT MIN( ( + + 9 ) ) - - - COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5243
SELECT DISTINCT MIN ( ( + + 9 ) ) - - - COUNT ( * ) FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT COUNT( * ) + + ( - COUNT( * ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5244
SELECT COUNT ( * ) + + ( - COUNT ( * ) ) FROM tab0
----
0

query II rowsort
SELECT ALL + ( + col2 ) - 45 AS col2, col1 FROM tab2 AS cor0
----
-22
51
-5
77
13
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5246
SELECT CAST( - - col2 AS SIGNED ) + - CAST( + col0 AS SIGNED ) + - 94 * - 62 FROM tab2 AS cor0
----
5804
5805
5811

skipif mysql # not compatible
query I rowsort label-5246
SELECT CAST ( - - col2 AS INTEGER ) + - CAST ( + col0 AS INTEGER ) + - 94 * - 62 FROM tab2 AS cor0
----
5804
5805
5811

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5247
SELECT CAST( - col0 AS SIGNED ) + - ( - col0 ) AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5247
SELECT CAST ( - col0 AS INTEGER ) + - ( - col0 ) AS col0 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT 67 * + ( - col1 ), col2 FROM tab2 AS cor0
----
-3417
23
-4489
58
-5159
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 70 col2 FROM tab2 AS cor0
----
3220
4480
5250

onlyif mysql # aggregate syntax: 
query II rowsort label-5250
SELECT COUNT( * ) AS col1, + COUNT( * ) AS col2 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-5250
SELECT COUNT ( * ) AS col1, + COUNT ( * ) AS col2 FROM tab2
----
3
3

query I rowsort
SELECT + col0 AS col2 FROM tab1 cor0 WHERE NOT col2 NOT BETWEEN 36 AND 1
----

query II rowsort
SELECT DISTINCT - col1 AS col2, - 15 + - col1 AS col2 FROM tab2 AS cor0
----
-51
-66
-67
-82
-77
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT + MAX( + 36 ) FROM tab0 cor0
----
36

skipif mysql # not compatible
query I rowsort label-5253
SELECT + MAX ( + 36 ) FROM tab0 cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT ALL + COUNT( ALL + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5254
SELECT ALL + COUNT ( ALL + col1 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT + 56, + col2 * - + ( + - col0 ) AS col1 FROM tab2 AS cor0
----
56
1058
56
2560
56
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT ALL MAX( - 94 ) FROM tab0 cor0
----
-94

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL MAX ( - 94 ) FROM tab0 cor0
----
-94

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5257
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 3 + - col0 NOT IN ( 91 + + col2, + col0 * col1 + + + col0, + 24 * col2 * ( 61 ) - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-5257
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 3 + - col0 NOT IN ( 91 + + col2, + col0 * col1 + + + col0, + 24 * col2 * ( 61 ) - CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT - 82 * + 41 FROM tab0
----
-3362
-3362
-3362

query I rowsort
SELECT col0 * - + ( - + col1 ) FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT + MIN( ALL + ( - col0 ) ) * - 14 AS col2 FROM tab2
----
1050

skipif mysql # not compatible
query I rowsort label-5260
SELECT + MIN ( ALL + ( - col0 ) ) * - 14 AS col2 FROM tab2
----
1050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5261
SELECT ALL + CAST( + col1 AS SIGNED ) + col0 + - - col1 FROM tab1 cor0
----
185
79
95

skipif mysql # not compatible
query I rowsort label-5261
SELECT ALL + CAST ( + col1 AS INTEGER ) + col0 + - - col1 FROM tab1 cor0
----
185
79
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT ALL + MIN( ALL - 14 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-14

skipif mysql # not compatible
query I rowsort label-5262
SELECT ALL + MIN ( ALL - 14 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5263
SELECT COUNT( * ) AS col2, COUNT( * ) DIV + COUNT( * ) + - - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
10

skipif mysql # not compatible
query II rowsort label-5263
SELECT COUNT ( * ) AS col2, COUNT ( * ) / + COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
10

query I rowsort
SELECT - 69 + ( + + col0 ) FROM tab2
----
-23
-5
6

query I rowsort
SELECT DISTINCT col1 * - - col2 AS col0 FROM tab0
----
210
3807
99

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL < NULL
----

query II rowsort
SELECT ALL + col1, - col1 * ( ( col2 ) ) AS col2 FROM tab1 AS cor0
----
14
-1344
47
-3196
5
-295

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 97 IN ( - col1 )
----

query II rowsort
SELECT ALL 47, - col1 AS col0 FROM tab0 AS cor0
----
47
-1
47
-21
47
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5270
SELECT DISTINCT - + 33 DIV - 30 + COUNT( * ) FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5270
SELECT DISTINCT - + 33 / - 30 + COUNT ( * ) FROM tab2 AS cor0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5271
SELECT + col2 DIV + 65 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5271
SELECT + col2 / + 65 AS col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT col0 * - - 29 FROM tab2 AS cor0
----
1334
1856
2175

query I rowsort
SELECT ( ( - ( col2 ) ) ) FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL + col2 * - col1 + + col2 FROM tab1
----
-1248
-236
-3128

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT DISTINCT SUM( DISTINCT - col0 ) - 23 FROM tab2
----
-208

skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT SUM ( DISTINCT - col0 ) - 23 FROM tab2
----
-208

query I rowsort
SELECT + 7 * 37 - 93 FROM tab1
----
166
166
166

query I rowsort
SELECT + 94 AS col0 FROM tab0 AS cor0 WHERE NOT - 27 IS NULL
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5278
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT + - MAX( ALL + 77 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5279
SELECT + - MAX ( ALL + 77 ) AS col1 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT - + 72 AS col2 FROM tab2 cor0
----
-72
-72
-72

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2 / - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT MIN( ALL + col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5282
SELECT MIN ( ALL + col0 ) FROM tab0 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 72 col1 FROM tab2
----
-3312
-4608
-5400

query I rowsort
SELECT ALL col2 * + 91 FROM tab1
----
5369
6188
8736

query III rowsort
SELECT * FROM tab1 WHERE NOT - 86 + - col0 + 34 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT ALL COUNT( * ) * - + MAX( + col0 ) FROM tab1 AS cor0 WHERE col1 NOT IN ( col2 + 52 + + col2, col1, col2 * col2, - ( - col1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL COUNT ( * ) * - + MAX ( + col0 ) FROM tab1 AS cor0 WHERE col1 NOT IN ( col2 + 52 + + col2, col1, col2 * col2, - ( - col1 ) )
----
NULL

query I rowsort
SELECT + 84 * + col2 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5288
SELECT ALL + col1 AS col2, - col1 - + col0 + CAST( NULL AS SIGNED ) - - 86 AS col0 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-5288
SELECT ALL + col1 AS col2, - col1 - + col0 + CAST ( NULL AS INTEGER ) - - 86 AS col0 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query II rowsort
SELECT + col0 AS col1, col1 AS col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT - - MIN( DISTINCT 86 ) AS col2 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-5290
SELECT - - MIN ( DISTINCT 86 ) AS col2 FROM tab1 AS cor0
----
86

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 * - col1 + - ( + 77 ) - + col1 * + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5292
SELECT 59 AS col0, MIN( col0 ) FROM tab2
----
59
46

skipif mysql # not compatible
query II rowsort label-5292
SELECT 59 AS col0, MIN ( col0 ) FROM tab2
----
59
46

query I rowsort
SELECT + col0 * 35 AS col2 FROM tab1
----
1785
2975
3185

onlyif mysql # DIV for integer division: 
query I rowsort label-5294
SELECT ALL col2 DIV + + col1 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL col2 / + + col1 FROM tab1
----
1
11
6

query I rowsort
SELECT ALL + ( - 35 ) FROM tab2 AS cor0
----
-35
-35
-35

query I rowsort
SELECT - col0 + + col2 * + - col2 + + - 41 AS col2 FROM tab0 AS cor0
----
-2265
-228
-9939

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT DISTINCT MIN( ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT MIN ( ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT DISTINCT 67 + SUM( DISTINCT - col1 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5298
SELECT DISTINCT 67 + SUM ( DISTINCT - col1 ) FROM tab1
----
1

query I rowsort
SELECT DISTINCT 94 + + 38 AS col0 FROM tab0
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-5300
SELECT + 14 DIV + 1 - - 59 + col0 AS col0 FROM tab0 AS cor0
----
160
170
88

skipif mysql # not compatible
query I rowsort label-5300
SELECT + 14 / + 1 - - 59 + col0 AS col0 FROM tab0 AS cor0
----
160
170
88

onlyif mysql # DIV for integer division: 
query I rowsort label-5301
SELECT + + col0 + - + col1 DIV + + 76 + col1 col2 FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5301
SELECT + + col0 + - + col1 / + + 76 + col1 col2 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT ALL col2 + - 83 - + 46 FROM tab1
----
-33
-61
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5303
SELECT DISTINCT + 87 * + MAX( 12 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5303
SELECT DISTINCT + 87 * + MAX ( 12 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5304
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NULL BETWEEN ( + - col2 * - - col0 ) AND col1 - + + col0 * + col2
----

skipif mysql # not compatible
query I rowsort label-5304
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NULL BETWEEN ( + - col2 * - - col0 ) AND col1 - + + col0 * + col2
----

query I rowsort
SELECT - ( - 99 ) FROM tab2
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT + 38 * + COUNT( * ) FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-5306
SELECT + 38 * + COUNT ( * ) FROM tab1
----
114

query II rowsort
SELECT ALL + 69 AS col0, col2 - - col0 AS col1 FROM tab2
----
69
104
69
133
69
69

onlyif mysql # DIV for integer division: 
query II rowsort label-5308
SELECT + col1 AS col0, 84 DIV 21 FROM tab0 cor0
----
1
4
21
4
81
4

skipif mysql # not compatible
query II rowsort label-5308
SELECT + col1 AS col0, 84 / 21 FROM tab0 cor0
----
1
4
21
4
81
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT COUNT( + col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5309
SELECT COUNT ( + col0 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT ALL - COUNT( DISTINCT col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 * col1 > col0
----
0

skipif mysql # not compatible
query I rowsort label-5310
SELECT ALL - COUNT ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 * col1 > col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5311
SELECT DISTINCT col0 DIV + - col1 + 0 FROM tab1 cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-5311
SELECT DISTINCT col0 / + - col1 + 0 FROM tab1 cor0
----
-1
-17
-3

query I rowsort
SELECT DISTINCT ( 98 ) * + col0 * col0 AS col0 FROM tab0
----
22050
741762
922082

query I rowsort
SELECT + 79 - - + 33 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NULL = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT + + MIN( DISTINCT - + col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5315
SELECT + + MIN ( DISTINCT - + col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5316
SELECT DISTINCT - 44 * col2 DIV - col0 FROM tab1 AS cor0
----
30
32
82

skipif mysql # not compatible
query I rowsort label-5316
SELECT DISTINCT - 44 * col2 / - col0 FROM tab1 AS cor0
----
30
32
82

query II rowsort
SELECT DISTINCT - col2 + col2 AS col1, + col0 FROM tab2 AS cor0
----
0
46
0
64
0
75

query I rowsort
SELECT - col0 - 85 + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 - col0 / - 94 AND NULL
----

query II rowsort
SELECT ALL col0 * - col1 + + 70, + col0 FROM tab1
----
-355
85
-4207
91
-644
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5320
SELECT CAST( col0 AS SIGNED ) col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5320
SELECT CAST ( col0 AS INTEGER ) col1 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT - SUM( + col0 ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-5321
SELECT - SUM ( + col0 ) AS col2 FROM tab2
----
-185

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5323
SELECT ( COUNT( * ) ) * + + 53 DIV 44 col0 FROM tab1 WHERE + + ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5323
SELECT ( COUNT ( * ) ) * + + 53 / 44 col0 FROM tab1 WHERE + + ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5324
SELECT ALL COUNT( * ), 16 AS col1 FROM tab1
----
3
16

skipif mysql # not compatible
query II rowsort label-5324
SELECT ALL COUNT ( * ), 16 AS col1 FROM tab1
----
3
16

query I rowsort
SELECT - ( - col1 ) * + 8 AS col2 FROM tab1
----
112
376
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT ALL COUNT( * ) * - SUM( - + col2 ) FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL COUNT ( * ) * - SUM ( - + col2 ) FROM tab0
----
468

onlyif mysql # DIV for integer division: 
query I rowsort label-5327
SELECT - 91 DIV col0 * - col0 * + - 58 FROM tab0
----
-5046
-5220
0

skipif mysql # not compatible
query I rowsort label-5327
SELECT - 91 / col0 * - col0 * + - 58 FROM tab0
----
-5046
-5220
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * + col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( NOT NULL = NULL ) )
----

query I rowsort
SELECT ALL col0 * + col2 + - + col0 FROM tab2
----
1012
2496
4275

query I rowsort
SELECT 39 + + col2 AS col1 FROM tab2
----
62
79
97

query II rowsort
SELECT DISTINCT col1, ( + col2 ) FROM tab2
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5333
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + COUNT( ALL + col1 ) * COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5333
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + COUNT ( ALL + col1 ) * COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT DISTINCT + + SUM( ALL - col2 ) AS col0 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT + + SUM ( ALL - col2 ) AS col0 FROM tab0 cor0
----
-156

query I rowsort
SELECT ALL - - 90 - + ( col0 ) AS col1 FROM tab0 cor0
----
-7
3
75

query II rowsort
SELECT ALL + col0 AS col2, + col0 AS col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5337
SELECT DISTINCT - 59 AS col2, + COUNT( * ) + - 91 FROM tab0 AS cor0
----
-59
-88

skipif mysql # not compatible
query II rowsort label-5337
SELECT DISTINCT - 59 AS col2, + COUNT ( * ) + - 91 FROM tab0 AS cor0
----
-59
-88

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 69 + - + col2 * - 26 <> NULL
----

query I rowsort
SELECT + + 76 * + ( + col2 ) AS col2 FROM tab1 AS cor0
----
4484
5168
7296

query I rowsort
SELECT DISTINCT - col0 + + col2 + + 59 FROM tab0 AS cor0
----
-18
61
91

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 19 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + col0 + - + col2 - col1 FROM tab0 AS cor0
----
-113
-3
56

query I rowsort
SELECT - 96 * + 94 AS col2 FROM tab2
----
-9024
-9024
-9024

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( + 10 ) AS col1, ( + - col1 ) col0 FROM tab1
----
-10
-14
-10
-47
-10
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT DISTINCT + COUNT( * ) FROM tab1, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5345
SELECT DISTINCT + COUNT ( * ) FROM tab1, tab0 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT DISTINCT MIN( ALL + - 48 ) FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT MIN ( ALL + - 48 ) FROM tab0
----
-48

query III rowsort
SELECT ALL * FROM tab2 WHERE 50 <> - 41 * + 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + ( + col0 ) * + col1 FROM tab1 cor0
----
-425
-4277
-714

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 >= 20
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 93 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
93
93
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5351
SELECT 12 DIV - col1 FROM tab1
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5351
SELECT 12 / - col1 FROM tab1
----
-2
0
0

query II rowsort
SELECT ALL + col0 AS col2, + 8 * col1 * - 28 AS col0 FROM tab2
----
46
-11424
64
-17248
75
-15008

onlyif mysql # DIV for integer division: 
query I rowsort label-5353
SELECT DISTINCT - + col0 DIV - col0 - + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT - + col0 / - col0 - + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-58
-67
-95

query I rowsort
SELECT + col1 * - 76 AS col1 FROM tab2
----
-3876
-5092
-5852

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT DISTINCT SUM( + col2 ) AS col1 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-5355
SELECT DISTINCT SUM ( + col2 ) AS col1 FROM tab1 cor0
----
223

query I rowsort
SELECT DISTINCT col0 * 90 AS col1 FROM tab0 AS cor0
----
1350
7830
8730

query II rowsort
SELECT col2, col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <> col2 + - - 79
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5359
SELECT + 80 DIV + + col0 AS col2 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-5359
SELECT + 80 / + + col0 AS col2 FROM tab0 AS cor0
----
0
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT DISTINCT + 38 + - 98 + 19 * 29 * + COUNT( ALL + ( col1 ) ) FROM tab0 AS cor0
----
1593

skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT + 38 + - 98 + 19 * 29 * + COUNT ( ALL + ( col1 ) ) FROM tab0 AS cor0
----
1593

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 col2 FROM tab2 cor0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT + COUNT( DISTINCT - col0 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5362
SELECT + COUNT ( DISTINCT - col0 ) FROM tab1 cor0
----
3

query I rowsort
SELECT + ( + ( col2 ) ) FROM tab2
----
23
40
58

query I rowsort
SELECT ALL - col0 + - ( col1 ) AS col2 FROM tab1
----
-138
-65
-90

query II rowsort
SELECT ALL - 63 * 67 AS col2, col0 AS col1 FROM tab0
----
-4221
15
-4221
87
-4221
97

query II rowsort
SELECT ALL col2 + + col2, + 53 AS col2 FROM tab1
----
118
53
136
53
192
53

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT ALL + 36 * 81 * 64 * - + ( + COUNT( * ) ) AS col2 FROM tab2
----
-559872

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL + 36 * 81 * 64 * - + ( + COUNT ( * ) ) AS col2 FROM tab2
----
-559872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5369
SELECT ALL + col2 * + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 + + + 42 + - - col2 AS col0 FROM tab1 AS cor0
----
186
189
201

query I rowsort
SELECT - col2 + + - 7 FROM tab2 cor0
----
-30
-47
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT + 8 + + ( - 85 ) * - COUNT( * ) + - 92 AS col2 FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-5372
SELECT + 8 + + ( - 85 ) * - COUNT ( * ) + - 92 AS col2 FROM tab1 AS cor0
----
171

query I rowsort
SELECT col2 + - col0 + + col2 AS col1 FROM tab0 AS cor0
----
-67
101
79

onlyif mysql # aggregate syntax: 
query II rowsort label-5374
SELECT ALL + COUNT( * ) + - + 36 AS col0, + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-33
3

skipif mysql # not compatible
query II rowsort label-5374
SELECT ALL + COUNT ( * ) + - + 36 AS col0, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-33
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5375
SELECT ALL - - 14 AS col0, ( COUNT( * ) ) + - 43 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
14
-34

skipif mysql # not compatible
query II rowsort label-5375
SELECT ALL - - 14 AS col0, ( COUNT ( * ) ) + - 43 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
14
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - - col2 col2 FROM tab0
----
196
62
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5377
SELECT ALL 58 DIV + col1 AS col0 FROM tab0
----
0
2
58

skipif mysql # not compatible
query I rowsort label-5377
SELECT ALL 58 / + col1 AS col0 FROM tab0
----
0
2
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5378
SELECT + col2 * - col1 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-5378
SELECT + col2 * - col1 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) <> NULL
----

query I rowsort
SELECT + 48 - + + 48 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 62 + + col2 FROM tab2 AS cor0 WHERE + col0 / - col1 / - + col1 NOT BETWEEN NULL AND + + col0
----

query II rowsort
SELECT - col2 - ( col2 ), - col0 AS col1 FROM tab2 AS cor0
----
-116
-75
-46
-46
-80
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-5382
SELECT ALL + col2 * + col2 - - 15 DIV + 51 FROM tab2 AS cor0
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL + col2 * + col2 - - 15 / + 51 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT + - COUNT( * ) - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5383
SELECT + - COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-6

query II rowsort
SELECT + col2 * - 22 + col1, ( - 82 ) + col1 - - col1 AS col0 FROM tab0 AS cor0
----
-199
-40
-2177
-80
-953
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT + COUNT( * ) * + 46 FROM tab0 cor0
----
138

skipif mysql # not compatible
query I rowsort label-5385
SELECT + COUNT ( * ) * + 46 FROM tab0 cor0
----
138

query I rowsort
SELECT DISTINCT - - 90 + - - col1 FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 4 * - 14 * - - col0 FROM tab1
----
-2856
-4760
-5096

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5388
SELECT ALL * FROM tab0 WHERE - CAST( NULL AS SIGNED ) IN ( - ( + 43 ) * col0 - + 72 )
----

skipif mysql # not compatible
query III rowsort label-5388
SELECT ALL * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) IN ( - ( + 43 ) * col0 - + 72 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT SUM( col1 ) FROM tab2 WHERE NOT + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5389
SELECT SUM ( col1 ) FROM tab2 WHERE NOT + col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT DISTINCT ( + SUM( ALL col1 ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-5390
SELECT DISTINCT ( + SUM ( ALL col1 ) ) FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT ALL - MIN( + 18 ) AS col0 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-5391
SELECT ALL - MIN ( + 18 ) AS col0 FROM tab1
----
-18

query I rowsort
SELECT ( - - col1 ) AS col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 cor0 WHERE col1 NOT BETWEEN NULL AND + col2 / - 91 + + 73
----
1

skipif mysql # not compatible
query I rowsort label-5393
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 cor0 WHERE col1 NOT BETWEEN NULL AND + col2 / - 91 + + 73
----
1

query II rowsort
SELECT - ( + col1 ) AS col0, - col1 AS col0 FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + col2 NOT BETWEEN - 10 AND NULL
----

query I rowsort
SELECT - 71 FROM tab2 WHERE NOT col1 > ( 44 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5397
SELECT DISTINCT + CAST( SUM( ALL - - col0 ) AS SIGNED ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-5397
SELECT DISTINCT + CAST ( SUM ( ALL - - col0 ) AS INTEGER ) AS col1 FROM tab0
----
199

query I rowsort
SELECT ( + 17 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5399
SELECT * FROM tab1 WHERE NOT - - 19 = - col0 / - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5399
SELECT * FROM tab1 WHERE NOT - - 19 = - col0 / - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT - - COUNT( * ) * + MIN( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-5400
SELECT - - COUNT ( * ) * + MIN ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE + col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT ALL + COUNT( ALL - col1 ) + + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5402
SELECT ALL + COUNT ( ALL - col1 ) + + COUNT ( * ) FROM tab2 AS cor0
----
6

query I rowsort
SELECT + col1 / + col0 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT DISTINCT - SUM( + 2 ) FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT - SUM ( + 2 ) FROM tab2 cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT DISTINCT - COUNT( * ) * - 74 AS col1 FROM tab1 AS cor0 WHERE NULL <= - col1
----
0

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT - COUNT ( * ) * - 74 AS col1 FROM tab1 AS cor0 WHERE NULL <= - col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5406
SELECT ALL CAST( + COUNT( * ) AS SIGNED ), + 14 AS col0 FROM tab1 AS cor0
----
3
14

skipif mysql # not compatible
query II rowsort label-5406
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ), + 14 AS col0 FROM tab1 AS cor0
----
3
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT ALL COUNT( * ) + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE 37 / - col0 / col0 + + col0 - + + col0 * + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE 37 / - col0 / col0 + + col0 - + + col0 * + col0 IS NULL
----
0

query I rowsort
SELECT + col1 * + 33 + - col0 + - col2 AS col0 FROM tab1 AS cor0
----
1392
21
315

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 * + + 39 - 51 / + col2 / col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT MAX( + 15 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5410
SELECT MAX ( + 15 ) AS col2 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT DISTINCT 98 * COUNT( * ) col1 FROM tab1
----
294

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5411
SELECT DISTINCT 98 * COUNT ( * ) col1 FROM tab1
----
294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5412
SELECT DISTINCT + 76 + - COUNT( * ) * - CAST( NULL AS SIGNED ) * - - COUNT( * ) + + + COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT + 76 + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL 82 - 68 FROM tab1
----
14
14
14

query III rowsort
SELECT * FROM tab0 WHERE + col1 < NULL
----

query I rowsort
SELECT 24 * + col2 AS col2 FROM tab1
----
1416
1632
2304

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( - + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 - - col1 / + 35 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col0 + - - 70 AS col2 FROM tab0 AS cor0
----
-17
-27
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT 88 + + COUNT( * ) FROM tab1 WHERE ( + col0 ) < ( + 60 )
----
89

skipif mysql # not compatible
query I rowsort label-5419
SELECT 88 + + COUNT ( * ) FROM tab1 WHERE ( + col0 ) < ( + 60 )
----
89

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 = + col1 + - 49
----

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NULL <> - 8
----

query I rowsort
SELECT ALL - 72 * 9 FROM tab1
----
-648
-648
-648

query III rowsort
SELECT * FROM tab0 WHERE 51 <> ( 7 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5424
SELECT CAST( COUNT( * ) AS SIGNED ) * COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5424
SELECT CAST ( COUNT ( * ) AS INTEGER ) * COUNT ( * ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT ALL + SUM( DISTINCT + col1 ) * ( ( - COUNT( * ) ) ) FROM tab2
----
-585

skipif mysql # not compatible
query I rowsort label-5425
SELECT ALL + SUM ( DISTINCT + col1 ) * ( ( - COUNT ( * ) ) ) FROM tab2
----
-585

query I rowsort
SELECT col0 * 50 FROM tab1
----
2550
4250
4550

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 89 NOT BETWEEN col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5428
SELECT DISTINCT COUNT( * ) DIV + 29 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5428
SELECT DISTINCT COUNT ( * ) / + 29 AS col0 FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE col2 - - col0 IN ( 1 )
----

query I rowsort
SELECT 74 FROM tab0 WHERE NULL NOT BETWEEN - col1 AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + 29 AND 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT 66 < ( + col0 ) - 27
----
3

skipif mysql # not compatible
query I rowsort label-5432
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT 66 < ( + col0 ) - 27
----
3

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( col0 * - ( col0 ) ) IN ( 58 )
----

query I rowsort
SELECT + col0 + + col1 * ( - ( ( + col0 ) ) * - 4 ) FROM tab0 WHERE ( - col1 ) IS NOT NULL
----
485
4875
7395

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE ( 22 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col0 ) >= col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5438
SELECT ALL + MIN( CAST( NULL AS SIGNED ) ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5438
SELECT ALL + MIN ( CAST ( NULL AS INTEGER ) ) col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( 73 / - col1 ) >= col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) IN ( - 53 )
----

query I rowsort
SELECT ( + 93 ) AS col1 FROM tab0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT ALL - MAX( + col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5442
SELECT ALL - MAX ( + col0 ) AS col1 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT DISTINCT - col2 * - col0 + + 65 FROM tab1 AS cor0 WHERE + col0 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( 93 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 * + 40 col1 FROM tab2 AS cor0
----
-920
-920
-920

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5446
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + CAST( + col0 AS SIGNED ) / - 15 )
----

skipif mysql # not compatible
query III rowsort label-5446
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + CAST ( + col0 AS INTEGER ) / - 15 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5447
SELECT ALL - + col0 + col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5447
SELECT ALL - + col0 + col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 * 6 FROM tab0 cor0
----
-126
-486
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5449
SELECT - MAX( + col1 ) DIV - 39 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5449
SELECT - MAX ( + col1 ) / - 39 FROM tab0 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT - - COUNT( col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5450
SELECT - - COUNT ( col2 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + 16 FROM tab0 WHERE 17 * col1 + + col1 IN ( col2 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT COUNT( * ) + - MIN( ALL + col0 ) * ( + 91 * + COUNT( * ) ) FROM tab1
----
-13920

skipif mysql # not compatible
query I rowsort label-5452
SELECT COUNT ( * ) + - MIN ( ALL + col0 ) * ( + 91 * + COUNT ( * ) ) FROM tab1
----
-13920

query I rowsort
SELECT - 79 AS col2 FROM tab2 WHERE NULL NOT IN ( ( + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT ALL COUNT( * ) - ( 4 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL COUNT ( * ) - ( 4 ) FROM tab2
----
-1

query I rowsort
SELECT ALL + col1 + + 43 + - col0 * + ( - col0 ) FROM tab2
----
2210
4216
5735

query III rowsort
SELECT * FROM tab0 WHERE ( col1 - + 72 ) NOT BETWEEN NULL AND 9
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5457
SELECT col0 + + col2 + col2 DIV 22 AS col1 FROM tab1
----
146
151
162

skipif mysql # not compatible
query I rowsort label-5457
SELECT col0 + + col2 + col2 / 22 AS col1 FROM tab1
----
146
151
162

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT ALL + 41 - + COUNT( * ) FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-5458
SELECT ALL + 41 - + COUNT ( * ) FROM tab1
----
38

query I rowsort
SELECT DISTINCT + col1 * + - col2 + ( - 37 ) FROM tab2
----
-1210
-3117
-3923

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5460
SELECT - col0 * + - col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5460
SELECT - col0 * + - col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN ( NULL ) AND col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5462
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * ( col0 * - 97 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5462
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * ( col0 * - 97 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 * + col1 ) >= ( + 95 ) + 45
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE + 77 = 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT + 56 * - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-504

skipif mysql # not compatible
query I rowsort label-5465
SELECT + 56 * - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT MAX( ALL + 56 ) FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-5466
SELECT MAX ( ALL + 56 ) FROM tab1
----
56

query II rowsort
SELECT + col1 AS col1, col0 AS col0 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT + ( + - MAX( - + 28 ) ) AS col2 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-5468
SELECT + ( + - MAX ( - + 28 ) ) AS col2 FROM tab2
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-5469
SELECT - 78 AS col2, COUNT( * ) AS col0 FROM tab1
----
-78
3

skipif mysql # not compatible
query II rowsort label-5469
SELECT - 78 AS col2, COUNT ( * ) AS col0 FROM tab1
----
-78
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT ALL SUM( ALL 75 ) FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-5470
SELECT ALL SUM ( ALL 75 ) FROM tab2 AS cor0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT ALL COUNT( * ) + + MIN( col2 ) FROM tab1 AS cor0 WHERE NULL IN ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL COUNT ( * ) + + MIN ( col2 ) FROM tab1 AS cor0 WHERE NULL IN ( - col1 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 col0, col1 FROM tab2 cor0
----
-46
51
-64
77
-75
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 0 / + col1 + - col2 * - col1 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT - COUNT( + col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5474
SELECT - COUNT ( + col2 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - 47 FROM tab2 AS cor0 WHERE 61 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT MIN( ALL - col1 ) * + - SUM( ALL - 22 ) FROM tab0 AS cor0
----
-5346

skipif mysql # not compatible
query I rowsort label-5476
SELECT MIN ( ALL - col1 ) * + - SUM ( ALL - 22 ) FROM tab0 AS cor0
----
-5346

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 32 IN ( - ( 33 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col1 * + 91 ) NOT BETWEEN NULL AND ( 82 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5479
SELECT DISTINCT SUM( ALL 96 ) AS col1, - 36 * + COUNT( * ) FROM tab0
----
288
-108

skipif mysql # not compatible
query II rowsort label-5479
SELECT DISTINCT SUM ( ALL 96 ) AS col1, - 36 * + COUNT ( * ) FROM tab0
----
288
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5480
SELECT AVG ( + col1 ) * - + AVG ( DISTINCT + ( - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5480
SELECT AVG ( + col1 ) * - + AVG ( DISTINCT + ( - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5481
SELECT * FROM tab1 WHERE NOT col1 NOT IN ( - - col0 + - 65 / + CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5481
SELECT * FROM tab1 WHERE NOT col1 NOT IN ( - - col0 + - 65 / + CAST ( - col2 AS INTEGER ) )
----

query I rowsort
SELECT + ( + 77 ) FROM tab2
----
77
77
77

query II rowsort
SELECT 77 * + + 58 AS col0, col2 AS col2 FROM tab0
----
4466
10
4466
47
4466
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 * - + col2 * + + col1 * 32 col0 FROM tab1
----
-2967552
-651360
-7056768

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT COUNT( * ) * - 94 AS col1 FROM tab1
----
-282

skipif mysql # not compatible
query I rowsort label-5485
SELECT COUNT ( * ) * - 94 AS col1 FROM tab1
----
-282

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col0 <> + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - col1 ) col1 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT + + 41 AS col2 FROM tab2 AS cor0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5489
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE + col1 + col0 * - + col0 NOT IN ( 21 + + CAST( NULL AS SIGNED ) * - 49 )
----

skipif mysql # not compatible
query I rowsort label-5489
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE + col1 + col0 * - + col0 NOT IN ( 21 + + CAST ( NULL AS INTEGER ) * - 49 )
----

query I rowsort
SELECT DISTINCT 91 AS col0 FROM tab1 cor0
----
91

query I rowsort
SELECT ALL + - col2 * col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5492
SELECT 4 * + + CAST( NULL AS SIGNED ) * ( + ( - col1 ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5492
SELECT 4 * + + CAST ( NULL AS INTEGER ) * ( + ( - col1 ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 79 * - + col0 + - - col0 * - + col1 + 38 + + col2 * - col0 FROM tab2
----
-2394
-3412
268

query I rowsort
SELECT 22 + + + col1 + - - col1 FROM tab1
----
116
32
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5495
SELECT CAST( + col2 AS SIGNED ) FROM tab0 AS cor0 WHERE + 77 * ( + 52 ) / col2 >= NULL
----

skipif mysql # not compatible
query I rowsort label-5495
SELECT CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0 WHERE + 77 * ( + 52 ) / col2 >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 63 * + col1 ) > + 55
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT 20 + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-5497
SELECT 20 + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 66 col1 FROM tab1 cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5499
SELECT ALL - CAST( NULL AS SIGNED ), 70 - + col2 * - col1 + + + col1 + - col2 AS col2 FROM tab0
----
NULL
291
NULL
3911
NULL
71

skipif mysql # not compatible
query II rowsort label-5499
SELECT ALL - CAST ( NULL AS INTEGER ), 70 - + col2 * - col1 + + + col1 + - col2 AS col2 FROM tab0
----
NULL
291
NULL
3911
NULL
71

query II rowsort
SELECT - col0 AS col0, 29 AS col2 FROM tab1
----
-51
29
-85
29
-91
29

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5501
SELECT DISTINCT 90 - col1 + - col2 * - - CAST( NULL AS DECIMAL ) AS col1, col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-5501
SELECT DISTINCT 90 - col1 + - col2 * - - CAST ( NULL AS REAL ) AS col1, col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT ALL - col1 * + col1 * - 63 * - + col2 * ( - col2 ) + + col1 FROM tab1
----
113799182
5482580
643508255

onlyif mysql # aggregate syntax: 
query II rowsort label-5503
SELECT - 63 col2, SUM( ALL col2 ) + - SUM( col0 ) FROM tab0
----
-63
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5503
SELECT - 63 col2, SUM ( ALL col2 ) + - SUM ( col0 ) FROM tab0
----
-63
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT DISTINCT + 80 + + SUM( DISTINCT 54 ) FROM tab0
----
134

skipif mysql # not compatible
query I rowsort label-5504
SELECT DISTINCT + 80 + + SUM ( DISTINCT 54 ) FROM tab0
----
134

query I rowsort
SELECT ALL 78 + - + col1 AS col2 FROM tab0 WHERE - 88 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 * 29 - col0 AS col1 FROM tab0
----
1348
203
2774

query I rowsort
SELECT DISTINCT + + 88 * - col0 FROM tab0 AS cor0
----
-1320
-7656
-8536

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 82 <= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT + - COUNT( * ) FROM tab1 WHERE NOT col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5509
SELECT + - COUNT ( * ) FROM tab1 WHERE NOT col0 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE - col0 IN ( col0 + 75 + - ( col0 ) - - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5510
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE - col0 IN ( col0 + 75 + - ( col0 ) - - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT ALL + - ( + - COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL + - ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - ( + 2 ) * + col1 FROM tab1 AS cor0
----
-10
-28
-94

query I rowsort
SELECT DISTINCT - 37 * col0 * col0 + + 38 FROM tab1 AS cor0
----
-267287
-306359
-96199

query I rowsort
SELECT ALL - + col1 * + col1 AS col2 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT DISTINCT 76 * - col1 AS col0 FROM tab1 AS cor0
----
-1064
-3572
-380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5516
SELECT - col0 * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5516
SELECT - col0 * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5517
SELECT DISTINCT + + 55 DIV - 65 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5517
SELECT DISTINCT + + 55 / - 65 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 48 * + + 17 FROM tab0
----
816
816
816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5519
SELECT ALL CAST( + - col2 AS SIGNED ) FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5519
SELECT ALL CAST ( + - col2 AS INTEGER ) FROM tab1
----
-59
-68
-96

query I rowsort
SELECT - 58 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 42 * - col0 FROM tab0
----
-3654
-4074
-630

query I rowsort
SELECT + - col2 AS col1 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT ALL MIN( - - 56 ) AS col1 FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-5523
SELECT ALL MIN ( - - 56 ) AS col1 FROM tab0
----
56

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5525
SELECT - 32 DIV COUNT( * ) FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5525
SELECT - 32 / COUNT ( * ) FROM tab1 AS cor0
----
-10

query I rowsort
SELECT ALL col0 + - - col1 AS col2 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT + - 4 + - col0 AS col2 FROM tab0 AS cor0
----
-101
-19
-91

query II rowsort
SELECT - col1 + + + ( + + 18 ), col1 FROM tab1 AS cor0
----
-29
47
13
5
4
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5529
SELECT ALL col1 DIV + - col0 + - 5 AS col2 FROM tab0
----
-10
-5
-5

skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL col1 / + - col0 + - 5 AS col2 FROM tab0
----
-10
-5
-5

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT DISTINCT + 87 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
87

query I rowsort
SELECT col0 * - + col2 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query II rowsort label-5533
SELECT DISTINCT 21 AS col1, SUM( - + 60 ) AS col0 FROM tab2, tab1 AS cor0
----
21
-540

skipif mysql # not compatible
query II rowsort label-5533
SELECT DISTINCT 21 AS col1, SUM ( - + 60 ) AS col0 FROM tab2, tab1 AS cor0
----
21
-540

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5534
SELECT * FROM tab2 AS cor0 WHERE + col2 * - col0 - - col0 + + col2 * + - col0 BETWEEN + CAST( NULL AS DECIMAL ) / - + col1 - - 57 AND ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-5534
SELECT * FROM tab2 AS cor0 WHERE + col2 * - col0 - - col0 + + col2 * + - col0 BETWEEN + CAST ( NULL AS REAL ) / - + col1 - - 57 AND ( + col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 97 / ( + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + - + 51 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 * - col1 + col0 >= + 42 * 28
----
-37
-4
-46

query II rowsort
SELECT ALL - + col1 * - col1 * + + col2 + - col0 * + col1, ( + 57 ) + + - 54 + 70 * 87 AS col1 FROM tab1 AS cor0
----
1050
6093
145935
6093
18102
6093

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5538
SELECT DISTINCT col1 DIV - col1 + - + col0 * + 9 + - CAST( - col1 AS SIGNED ) + + col1 * + 39 AS col0 FROM tab0
----
-834
3104
56

skipif mysql # not compatible
query I rowsort label-5538
SELECT DISTINCT col1 / - col1 + - + col0 * + 9 + - CAST ( - col1 AS INTEGER ) + + col1 * + 39 AS col0 FROM tab0
----
-834
3104
56

query I rowsort
SELECT ALL - col2 + 84 AS col2 FROM tab0
----
-15
37
74

query I rowsort
SELECT DISTINCT - 75 * - ( col2 ) + + - col2 AS col0 FROM tab2
----
1702
2960
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT DISTINCT + SUM( DISTINCT - - col1 ) - + MAX( ALL + 72 ) AS col1 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-5541
SELECT DISTINCT + SUM ( DISTINCT - - col1 ) - + MAX ( ALL + 72 ) AS col1 FROM tab1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5542
SELECT ALL + AVG ( - col1 ) - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL + AVG ( - col1 ) - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT + 8 * + - 23 + + 87 AS col1 FROM tab1
----
-97
-97
-97

query I rowsort
SELECT DISTINCT col2 - - - ( col1 ) FROM tab0
----
-11
-34
98

query I rowsort
SELECT ( - - col1 ) AS col0 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5546
SELECT ( col0 ) * - 52 + - CAST( + col0 AS SIGNED ) + col2 * + + 39 FROM tab1 AS cor0 WHERE NOT - 3 <> ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-5546
SELECT ( col0 ) * - 52 + - CAST ( + col0 AS INTEGER ) + col2 * + + 39 FROM tab1 AS cor0 WHERE NOT - 3 <> ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT DISTINCT - SUM( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-5547
SELECT DISTINCT - SUM ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5548
SELECT - col0 * - + CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5548
SELECT - col0 * - + CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5549
SELECT DISTINCT - 43 * col0 DIV + + col2 FROM tab2
----
-55
-68
-86

skipif mysql # not compatible
query I rowsort label-5549
SELECT DISTINCT - 43 * col0 / + + col2 FROM tab2
----
-55
-68
-86

query II rowsort
SELECT + col2, - col2 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

query III rowsort
SELECT DISTINCT - col0 AS col0, + 45 AS col0, + - col2 FROM tab0 AS cor0
----
9 values hashing to b8d518d18122ed1581e778c9dcaaae0a

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT ( - col2 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5552
SELECT COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT ( - col2 ) <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT COUNT( ALL - + col1 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5553
SELECT COUNT ( ALL - + col1 ) col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 62 AS col0 FROM tab0 cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL + col2 * + + col0 + + - 46 AS col0 FROM tab2 AS cor0
----
1012
2514
4304

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 col0 FROM tab1
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT DISTINCT + SUM( DISTINCT + 31 ) * - COUNT( * ) * 74 AS col1 FROM tab0
----
-6882

skipif mysql # not compatible
query I rowsort label-5558
SELECT DISTINCT + SUM ( DISTINCT + 31 ) * - COUNT ( * ) * 74 AS col1 FROM tab0
----
-6882

query I rowsort
SELECT + col0 * - 21 AS col1 FROM tab2
----
-1344
-1575
-966

query I rowsort
SELECT DISTINCT 97 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
97

query I rowsort
SELECT DISTINCT col0 * 22 AS col2 FROM tab0
----
1914
2134
330

query I rowsort
SELECT ALL + col1 * + col2 * - col2 FROM tab2
----
-123200
-225388
-26979

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT DISTINCT + 86 * - SUM( ALL + + col1 ) col1 FROM tab0 AS cor0
----
-8858

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5563
SELECT DISTINCT + 86 * - SUM ( ALL + + col1 ) col1 FROM tab0 AS cor0
----
-8858

query I rowsort
SELECT ALL + 87 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT col1 + - - col0 * + col2 * - 5 AS col0 FROM tab1
----
-24466
-25070
-30893

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT MIN( + col0 ) + MIN( ALL - 15 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5566
SELECT MIN ( + col0 ) + MIN ( ALL - 15 ) AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 14 + - - col1 FROM tab1
----
-9
0
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5568
SELECT ALL - + COUNT( * ) DIV + + 74 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL - + COUNT ( * ) / + + 74 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5569
SELECT ALL 58 DIV - + 69 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL 58 / - + 69 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT + + COUNT( - - col0 ) col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5570
SELECT + + COUNT ( - - col0 ) col2 FROM tab1 cor0
----
3

query I rowsort
SELECT + col2 FROM tab1 cor0 WHERE - 20 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col0, + col1 col2 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5573
SELECT - CAST( NULL AS SIGNED ) / col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5573
SELECT - CAST ( NULL AS INTEGER ) / col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col2 * + + col0 * + col0 AS col2, col1 AS col2 FROM tab1 AS cor0
----
249696
14
426275
5
563108
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT DISTINCT + 31 + - - MIN( ALL + + col2 ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-5575
SELECT DISTINCT + 31 + - - MIN ( ALL + + col2 ) FROM tab2
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-5576
SELECT + col1 DIV ( - col0 ) DIV - - 37 - + 7 AS col2 FROM tab1
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-5576
SELECT + col1 / ( - col0 ) / - - 37 - + 7 AS col2 FROM tab1
----
-7
-7
-7

query I rowsort
SELECT col2 - - + ( + - col1 ) AS col0 FROM tab2
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT ALL + COUNT( * ) + + 16 * + MIN( DISTINCT - - 66 ) AS col0 FROM tab1
----
1059

skipif mysql # not compatible
query I rowsort label-5578
SELECT ALL + COUNT ( * ) + + 16 * + MIN ( DISTINCT - - 66 ) AS col0 FROM tab1
----
1059

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5579
SELECT ALL * FROM tab0 WHERE 91 * CAST( NULL AS SIGNED ) * + 59 >= ( - + col0 ) * col1 * + col1
----

skipif mysql # not compatible
query III rowsort label-5579
SELECT ALL * FROM tab0 WHERE 91 * CAST ( NULL AS INTEGER ) * + 59 >= ( - + col0 ) * col1 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT MIN( DISTINCT 47 ) * ( + COUNT( * ) ) AS col1 FROM tab2
----
141

skipif mysql # not compatible
query I rowsort label-5580
SELECT MIN ( DISTINCT 47 ) * ( + COUNT ( * ) ) AS col1 FROM tab2
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT ( - + COUNT( * ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5581
SELECT ( - + COUNT ( * ) ) AS col1 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5582
SELECT + col1 DIV ( - 51 ) AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5582
SELECT + col1 / ( - 51 ) AS col0 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT DISTINCT - ( - + ( - COUNT( * ) ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5584
SELECT DISTINCT - ( - + ( - COUNT ( * ) ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 WHERE NOT + col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5585
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col0 <= NULL
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 70 < NULL
----

query I rowsort
SELECT + 59 * ( + ( - - 81 ) ) - - + 4 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 847e94bf3d63a6588b0c87b85833a266

query I rowsort
SELECT 52 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT - MIN( DISTINCT + - col1 ) * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-5589
SELECT - MIN ( DISTINCT + - col1 ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
231

query I rowsort
SELECT DISTINCT col1 * + + col1 FROM tab2 AS cor0
----
2601
4489
5929

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( ( col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 31 col2 FROM tab0 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT ALL SUM( ALL + 40 ) AS col2 FROM tab2 cor0
----
120

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL SUM ( ALL + 40 ) AS col2 FROM tab2 cor0
----
120

query I rowsort
SELECT DISTINCT col2 + + col0 * 26 AS col2 FROM tab2 AS cor0
----
1219
1704
2008

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT ALL - + ( SUM( - - col2 ) ) + + + COUNT( * ) FROM tab1 AS cor0
----
-220

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL - + ( SUM ( - - col2 ) ) + + + COUNT ( * ) FROM tab1 AS cor0
----
-220

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 < col1 * 51 - + col0 * + col1 + - col0
----
51
14
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5597
SELECT ALL + col1 DIV col0 * - col1 + - + col1 * 3 AS col2 FROM tab0
----
-3
-63
-648

skipif mysql # not compatible
query I rowsort label-5597
SELECT ALL + col1 / col0 * - col1 + - + col1 * 3 AS col2 FROM tab0
----
-3
-63
-648

query I rowsort
SELECT DISTINCT 70 * - - ( + 1 ) AS col2 FROM tab2
----
70

query I rowsort
SELECT ALL col2 * 96 * + col2 AS col0 FROM tab1
----
334176
443904
884736

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5600
SELECT col0 + CAST( NULL AS SIGNED ), 17 AS col1 FROM tab2
----
NULL
17
NULL
17
NULL
17

skipif mysql # not compatible
query II rowsort label-5600
SELECT col0 + CAST ( NULL AS INTEGER ), 17 AS col1 FROM tab2
----
NULL
17
NULL
17
NULL
17

query III rowsort
SELECT * FROM tab0 WHERE - - col1 * - + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - ( - + col1 ) AS col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT + col1 * + col1 + - col2 + col1 AS col0 FROM tab0 AS cor0
----
-97
452
6595

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 NOT BETWEEN - col2 AND + 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT SUM( ALL + - 5 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-5606
SELECT SUM ( ALL + - 5 ) AS col1 FROM tab0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5607
SELECT - CAST( 98 AS SIGN