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 SIGNED ) - + COUNT( * ) + + + 8 * COUNT( * ) FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5607
SELECT - CAST ( 98 AS INTEGER ) - + COUNT ( * ) + + + 8 * COUNT ( * ) FROM tab1 AS cor0
----
-77

query I rowsort
SELECT ALL + - col1 - + ( ( 10 ) ) FROM tab1 AS cor0
----
-15
-24
-57

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > - 49 * - + col0 * + - col1 AND NULL < col2 + 71
----

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

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

query I rowsort
SELECT - 74 - - - ( - col2 ) AS col0 FROM tab1 cor0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL - col0 * - - 96 FROM tab0
----
-1440
-8352
-9312

onlyif mysql # DIV for integer division: 
query I rowsort label-5613
SELECT ( + 8 ) DIV - + col1 col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5613
SELECT ( + 8 ) / - + col1 col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT col2 * - + 74 FROM tab0
----
-3478
-7326
-740

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT 29 * COUNT( * ) AS col0 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-5615
SELECT 29 * COUNT ( * ) AS col0 FROM tab0
----
87

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT ALL + - MIN( ALL - - col1 ) AS col1 FROM tab0 WHERE NOT col2 / + col0 * + col2 + + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5618
SELECT ALL + - MIN ( ALL - - col1 ) AS col1 FROM tab0 WHERE NOT col2 / + col0 * + col2 + + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 7 * + col2 AS col2 FROM tab0
----
329
693
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 50 col2, - 37 FROM tab2 AS cor0
----
-50
-37

query II rowsort
SELECT + col0 AS col0, col2 * 2 * + col1 FROM tab0 AS cor0
----
15
7614
87
420
97
198

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

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

query I rowsort
SELECT DISTINCT + col2 * - + col1 AS col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-5624
SELECT ALL - 42 DIV - col2 AS col1 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5624
SELECT ALL - 42 / - col2 AS col1 FROM tab0
----
0
0
4

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

skipif mysql # not compatible
query I rowsort label-5625
SELECT + MAX ( ALL - + CAST ( NULL AS INTEGER ) ) + + 76 AS col2 FROM tab1 AS cor0
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 >= col0 * - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT - ( MIN( ( - - col1 ) ) ) AS col1 FROM tab2 AS cor0 WHERE NULL > ( 65 * col2 * + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5628
SELECT - ( MIN ( ( - - col1 ) ) ) AS col1 FROM tab2 AS cor0 WHERE NULL > ( 65 * col2 * + col1 )
----
NULL

query II rowsort
SELECT ALL col2 + + ( + col2 ) AS col1, 98 FROM tab1
----
118
98
136
98
192
98

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5631
SELECT COUNT( * ), + COUNT( DISTINCT 69 ) AS col1 FROM tab2
----
3
1

skipif mysql # not compatible
query II rowsort label-5631
SELECT COUNT ( * ), + COUNT ( DISTINCT 69 ) AS col1 FROM tab2
----
3
1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5632
SELECT DISTINCT - MIN ( - col0 ) col1 FROM tab2
----
75

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5635
SELECT + 60 - col2 - + - col1 + 35 + col0 * - col2 * col1 * CAST( NULL AS SIGNED ) * + col1 / - + 64 / - col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5635
SELECT + 60 - col2 - + - col1 + 35 + col0 * - col2 * col1 * CAST ( NULL AS INTEGER ) * + col1 / - + 64 / - col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 39 + - col0 - - 12 FROM tab0 AS cor0
----
-36
-46
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5637
SELECT + COUNT( * ) DIV COUNT( * ) AS col2, COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1
9

skipif mysql # not compatible
query II rowsort label-5637
SELECT + COUNT ( * ) / COUNT ( * ) AS col2, COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1
9

query I rowsort
SELECT 67 AS col1 FROM tab2 cor0 WHERE NOT col2 <> + + col1
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT col2 = col1
----
-1
-21
-81

query I rowsort
SELECT ALL + - 41 * col1 FROM tab2 AS cor0
----
-2091
-2747
-3157

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NOT NULL AND NULL IN ( - col1 * - col0, col2 * - + col2 * - col2 * + + col1 * + 51 - + col2 * - + 3 + - col2 * - col0, + col0 * + - col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT COUNT( * ) * + MAX( DISTINCT - - col0 ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-5643
SELECT COUNT ( * ) * + MAX ( DISTINCT - - col0 ) FROM tab1
----
273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5644
SELECT + 83 * 14 * - CAST( 90 AS SIGNED ) AS col1 FROM tab2
----
-104580
-104580
-104580

skipif mysql # not compatible
query I rowsort label-5644
SELECT + 83 * 14 * - CAST ( 90 AS INTEGER ) AS col1 FROM tab2
----
-104580
-104580
-104580

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

query II rowsort
SELECT col2 * col2, col0 AS col0 FROM tab2
----
1600
64
3364
75
529
46

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT ALL + + ( + COUNT( * ) ) * MAX( DISTINCT - 30 ) AS col1 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-5650
SELECT ALL + + ( + COUNT ( * ) ) * MAX ( DISTINCT - 30 ) AS col1 FROM tab0 AS cor0
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - - 2 + + + col1 col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5652
SELECT ALL 62 * ( + - 59 ) + - COUNT( - + col0 ) DIV + 55 FROM tab1
----
-3658

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL 62 * ( + - 59 ) + - COUNT ( - + col0 ) / + 55 FROM tab1
----
-3658

query I rowsort
SELECT - 87 * - - 36 + - 98 + + col1 * - + col0 FROM tab2 AS cor0
----
-5576
-8158
-8255

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5655
SELECT - CAST( - 37 AS SIGNED ) FROM tab1 AS cor0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-5655
SELECT - CAST ( - 37 AS INTEGER ) FROM tab1 AS cor0
----
37
37
37

query I rowsort
SELECT ALL - col1 + + + 87 + col2 AS col1 FROM tab0
----
185
53
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT ALL + COUNT( * ) AS col0 FROM tab1, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL + COUNT ( * ) AS col0 FROM tab1, tab1 cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * - col2 - - col2 - + - col1 * + - 22 IS NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 IN ( 29 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT + ( + - ( COUNT( * ) ) ) + - 30 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-5661
SELECT + ( + - ( COUNT ( * ) ) ) + - 30 FROM tab2 AS cor0
----
-33

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

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( - 37 - col1 * col0 ) < NULL
----

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

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

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

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

query I rowsort
SELECT ALL - 31 * + 76 - + - col1 + + 14 AS col2 FROM tab0 AS cor0
----
-2261
-2321
-2341

query II rowsort
SELECT + col0, - col1 AS col0 FROM tab0 WHERE NOT + - col0 IS NOT NULL
----

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

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

query I rowsort
SELECT + ( col1 ) * + 19 FROM tab0
----
1539
19
399

onlyif mysql # DIV for integer division: 
query I rowsort label-5670
SELECT + 35 DIV - 48 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5670
SELECT + 35 / - 48 FROM tab0
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT - + ( 69 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-5673
SELECT col0 + - 17 + + - 42 DIV col1 * 14 * - col1 AS col1 FROM tab0 AS cor0
----
-2
658
668

skipif mysql # not compatible
query I rowsort label-5673
SELECT col0 + - 17 + + - 42 / col1 * 14 * - col1 AS col1 FROM tab0 AS cor0
----
-2
658
668

query II rowsort
SELECT ALL - col2 * 25 + + - col2, - col1 AS col1 FROM tab2 cor0
----
-1040
-77
-1508
-67
-598
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-5675
SELECT ALL - - col2 * 55 - + 29 DIV + + 99 + + col0 DIV col1 FROM tab1 AS cor0
----
3262
3741
5283

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL - - col2 * 55 - + 29 / + + 99 + + col0 / col1 FROM tab1 AS cor0
----
3262
3741
5283

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT DISTINCT + 56 * MAX( + col1 ) AS col2 FROM tab1 AS cor0
----
2632

skipif mysql # not compatible
query I rowsort label-5676
SELECT DISTINCT + 56 * MAX ( + col1 ) AS col2 FROM tab1 AS cor0
----
2632

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5677
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) >= + ( - 91 ) + + col0 + - 93
----

skipif mysql # not compatible
query III rowsort label-5677
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) >= + ( - 91 ) + + col0 + - 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT ALL - COUNT( col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL = 83
----
0

skipif mysql # not compatible
query I rowsort label-5678
SELECT ALL - COUNT ( col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL = 83
----
0

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

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

query I rowsort
SELECT + 73 * col2 AS col0 FROM tab1 WHERE - 90 IS NOT NULL
----
4307
4964
7008

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5682
SELECT ALL COUNT( * ), 72 * + + 82 + CAST( + 36 AS SIGNED ) AS col0 FROM tab1
----
3
5940

skipif mysql # not compatible
query II rowsort label-5682
SELECT ALL COUNT ( * ), 72 * + + 82 + CAST ( + 36 AS INTEGER ) AS col0 FROM tab1
----
3
5940

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + + col0 * + 98 + col0 + + col0 IS NULL )
----

query I rowsort
SELECT ALL - - 87 * - + col1 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-4437
-5829
-6699

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5686
SELECT DISTINCT - col1, CAST( NULL AS DECIMAL ) * - 44 AS col1 FROM tab1 cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-5686
SELECT DISTINCT - col1, CAST ( NULL AS REAL ) * - 44 AS col1 FROM tab1 cor0
----
-14
NULL
-47
NULL
-5
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5687
SELECT ALL + 73 + + COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-5687
SELECT ALL + 73 + + COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5688
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL <= - 56 + + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5688
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL <= - 56 + + col2 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT DISTINCT - MIN( - 42 ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-5690
SELECT DISTINCT - MIN ( - 42 ) FROM tab2
----
42

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

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

query I rowsort
SELECT + + 97 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

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

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

query I rowsort
SELECT DISTINCT + 43 * - 80 * col1 AS col0 FROM tab0 AS cor0
----
-278640
-3440
-72240

query I rowsort
SELECT col0 * 22 * - 76 * + 65 AS col0 FROM tab0 AS cor0 WHERE - 5 IS NOT NULL AND ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL 35 * ( + 51 ) - + 48 AS col1 FROM tab0 cor0
----
1737
1737
1737

query I rowsort
SELECT DISTINCT + 13 * + col0 + + - col0 AS col0 FROM tab2 AS cor0
----
552
768
900

query I rowsort
SELECT 24 * + + col2 AS col2 FROM tab1
----
1416
1632
2304

query I rowsort
SELECT DISTINCT ( - + 16 ) AS col2 FROM tab2
----
-16

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE + ( - 27 ) / + + 52 IS NULL
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5704
SELECT 71 AS col0, 81 * + + col2 + - + ( - col2 ) DIV - ( + col0 ) - ( col2 ) FROM tab2
----
71
1840
71
3200
71
4640

skipif mysql # not compatible
query II rowsort label-5704
SELECT 71 AS col0, 81 * + + col2 + - + ( - col2 ) / - ( + col0 ) - ( col2 ) FROM tab2
----
71
1840
71
3200
71
4640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5705
SELECT DISTINCT + 78 DIV + COUNT( * ) col1 FROM tab0 cor0
----
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5705
SELECT DISTINCT + 78 / + COUNT ( * ) col1 FROM tab0 cor0
----
26

query I rowsort
SELECT - - col0 * - 8 * + col2 * + col0 FROM tab1 cor0
----
-1997568
-3410200
-4504864

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

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

query I rowsort
SELECT + + 74 * - + col0 + + + col2 FROM tab0 AS cor0
----
-1063
-6428
-7079

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL <> + 98 )
----

query I rowsort
SELECT - col1 * col1 * + + col0 AS col1 FROM tab1 AS cor0
----
-201019
-2125
-9996

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

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

query I rowsort
SELECT ALL - - col2 + + 44 AS col1 FROM tab0 AS cor0
----
143
54
91

query I rowsort
SELECT ALL + 72 + - ( + col1 ) * - - 5 * - - col0 FROM tab1
----
-2053
-21313
-3498

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

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

query I rowsort
SELECT ALL + 33 - + col2 AS col0 FROM tab0
----
-14
-66
23

query I rowsort
SELECT DISTINCT 68 + - col1 AS col0 FROM tab0
----
-13
47
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5717
SELECT col0 DIV - - col0 + - 87 FROM tab1
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-5717
SELECT col0 / - - col0 + - 87 FROM tab1
----
-86
-86
-86

query I rowsort
SELECT 43 + - 63 * 94 FROM tab2
----
-5879
-5879
-5879

query II rowsort
SELECT + col0 * + 14, col0 AS col2 FROM tab1 AS cor0
----
1190
85
1274
91
714
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5720
SELECT - CAST( NULL AS DECIMAL ) * COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5720
SELECT - CAST ( NULL AS REAL ) * COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 - col0 * + - 40 FROM tab0 AS cor0
----
3490
3979
647

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT - - MAX( 28 ) FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-5722
SELECT - - MAX ( 28 ) FROM tab0 AS cor0
----
28

query I rowsort
SELECT + col2 * + 55 FROM tab0 AS cor0 WHERE NOT + ( - col1 ) IS NOT NULL
----

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 65 col2, col1 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + col2 col1, - 91 AS col1 FROM tab2
----
1600
-91
3364
-91
529
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col1 FROM tab1 WHERE NOT NULL < - - 99 / - 98 + + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5733
SELECT + col0 * ( - CAST( NULL AS DECIMAL ) ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col2 AND NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5733
SELECT + col0 * ( - CAST ( NULL AS REAL ) ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col2 AND NOT NULL IS NULL
----

query I rowsort
SELECT 0 * - + col2 FROM tab0
----
0
0
0

query I rowsort
SELECT col1 * + 47 AS col1 FROM tab0
----
3807
47
987

query I rowsort
SELECT DISTINCT col1 * + - 4 * - - ( + 26 ) AS col2 FROM tab2
----
-5304
-6968
-8008

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

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

query I rowsort
SELECT 41 * - + 92 FROM tab0
----
-3772
-3772
-3772

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - ( + col1 ) col1 FROM tab1
----
-425
-4277
-714

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

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

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

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

query I rowsort
SELECT + - col1 - 92 FROM tab0 AS cor0 WHERE + 90 + col2 + + - col1 * col2 >= - col1 * + col1
----
-113
-173
-93

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5745
SELECT - 74 AS col0, COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-74
9

skipif mysql # not compatible
query II rowsort label-5745
SELECT - 74 AS col0, COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-74
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 50 * + col1 - - col2 * + + 2 col2 FROM tab1 AS cor0 WHERE col0 + - 2 IS NULL
----

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

query I rowsort
SELECT + - 62 * + col2 * col0 * col2 FROM tab2 cor0
----
-1508708
-15642600
-6348800

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

query I rowsort
SELECT - ( - col0 ) * - - col2 + + 17 FROM tab1 AS cor0
----
4913
5032
6205

query I rowsort
SELECT - - col0 * col0 - col1 AS col0 FROM tab0 AS cor0
----
144
7548
9408

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5754
SELECT col2 DIV + - 61 col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5754
SELECT col2 / + - 61 col1 FROM tab1
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 72 + + col0 col1 FROM tab2
----
-26
-8
3

query II rowsort
SELECT - col2 AS col1, + 68 FROM tab2 WHERE NULL = - + col1
----

query I rowsort
SELECT ALL col0 + + 47 + - col2 FROM tab1
----
2
70
73

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

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

query I rowsort
SELECT - col1 * + + ( - col1 ) * col1 AS col2 FROM tab2 AS cor0
----
132651
300763
456533

onlyif mysql # aggregate syntax: 
query II rowsort label-5761
SELECT DISTINCT SUM( 60 ), + COUNT( * ) * COUNT( + + col0 ) col1 FROM tab0 AS cor0
----
180
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5761
SELECT DISTINCT SUM ( 60 ), + COUNT ( * ) * COUNT ( + + col0 ) col1 FROM tab0 AS cor0
----
180
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT + SUM( ALL + - 67 ) AS col2 FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-5762
SELECT + SUM ( ALL + - 67 ) AS col2 FROM tab2 AS cor0
----
-201

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5765
SELECT ALL 86 DIV COUNT( * ) col1 FROM tab1
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5765
SELECT ALL 86 / COUNT ( * ) col1 FROM tab1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT ALL MIN( 61 ) FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL MIN ( 61 ) FROM tab0
----
61

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

query I rowsort
SELECT - 48 + - col2 AS col2 FROM tab1 AS cor0
----
-107
-116
-144

query I rowsort
SELECT DISTINCT - - col2 + - - col2 AS col0 FROM tab2 AS cor0
----
116
46
80

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

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 3 <= + col0 * - col0 - - - 43
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5776
SELECT col1 DIV + - col2 - - - 39 AS col0 FROM tab1 AS cor0
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-5776
SELECT col1 / + - col2 - - - 39 AS col0 FROM tab1 AS cor0
----
-39
-39
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5777
SELECT col0 - - - CAST( NULL AS SIGNED ) * 85 * - 75 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5777
SELECT col0 - - - CAST ( NULL AS INTEGER ) * 85 * - 75 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 73 + - col2 FROM tab2 AS cor0
----
-113
-131
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5779
SELECT + col1, 21 * col2 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IN ( + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query II rowsort label-5779
SELECT + col1, 21 * col2 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IN ( + - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT ( - - COUNT( * ) ) AS col0 FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5780
SELECT ( - - COUNT ( * ) ) AS col0 FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----
0

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

skipif mysql # not compatible
query I rowsort label-5781
SELECT DISTINCT + ( COUNT ( * ) ) * - 78 AS col1 FROM tab0 AS cor0
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT DISTINCT - COUNT( * ) + + + SUM( 55 ) AS col0 FROM tab2 cor0
----
162

skipif mysql # not compatible
query I rowsort label-5782
SELECT DISTINCT - COUNT ( * ) + + + SUM ( 55 ) AS col0 FROM tab2 cor0
----
162

query I rowsort
SELECT col2 + - 82 AS col0 FROM tab1 WHERE NULL NOT IN ( + col0, + col2 * + + 91 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT ALL + 63 * - COUNT( * ) AS col0 FROM tab0 WHERE NOT ( col0 ) NOT BETWEEN - col1 * + col2 + col0 AND col0
----
-189

skipif mysql # not compatible
query I rowsort label-5784
SELECT ALL + 63 * - COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( col0 ) NOT BETWEEN - col1 * + col2 + col0 AND col0
----
-189

query I rowsort
SELECT ALL 77 * - 70 FROM tab0
----
-5390
-5390
-5390

query I rowsort
SELECT DISTINCT 61 * 68 AS col1 FROM tab2
----
4148

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

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

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

query II rowsort
SELECT DISTINCT + 80 AS col2, col1 + - col0 FROM tab1
----
80
-37
80
-44
80
-80

query I rowsort
SELECT - 49 * - - col0 * - col0 AS col2 FROM tab1
----
127449
354025
405769

query II rowsort
SELECT DISTINCT ( - col1 ) AS col0, - 37 FROM tab1
----
-14
-37
-47
-37
-5
-37

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5793
SELECT ALL 59, - COUNT( + - col2 ) AS col2 FROM tab2 AS cor0
----
59
-3

skipif mysql # not compatible
query II rowsort label-5793
SELECT ALL 59, - COUNT ( + - col2 ) AS col2 FROM tab2 AS cor0
----
59
-3

query I rowsort
SELECT ALL - 25 * - col0 FROM tab1 AS cor0
----
1275
2125
2275

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

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

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

query I rowsort
SELECT DISTINCT 61 * + 48 * 18 FROM tab0 cor0
----
52704

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT - COUNT( * ) + 53 * 44 FROM tab0 AS cor0
----
2329

skipif mysql # not compatible
query I rowsort label-5798
SELECT - COUNT ( * ) + 53 * 44 FROM tab0 AS cor0
----
2329

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

query I rowsort
SELECT col2 + + 76 FROM tab2
----
116
134
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5801
SELECT ALL col2 + + CAST( - 9 AS SIGNED ) * + ( + col0 ) + + col2 - - col2 AS col0, col1 AS col0 FROM tab0
----
-576
1
-753
21
6
81

skipif mysql # not compatible
query II rowsort label-5801
SELECT ALL col2 + + CAST ( - 9 AS INTEGER ) * + ( + col0 ) + + col2 - - col2 AS col0, col1 AS col0 FROM tab0
----
-576
1
-753
21
6
81

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

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

query I rowsort
SELECT 0 * - 86 * 12 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 * - 99 AS col2 FROM tab2
----
-2277
-3960
-5742

query I rowsort
SELECT ALL - 66 AS col0 FROM tab2 cor0
----
-66
-66
-66

query II rowsort
SELECT DISTINCT - ( - 1 ) + - - col2, 30 + + col2 AS col1 FROM tab2 AS cor0
----
24
53
41
70
59
88

query I rowsort
SELECT ALL 49 FROM tab0 WHERE + col1 * - ( - + 28 ) + + col1 + + col1 + + 67 * - - col2 + - col2 IS NULL
----

query I rowsort
SELECT ALL col1 * - 16 + col1 FROM tab0 WHERE - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT ALL + COUNT( * ) - - 44 AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5809
SELECT ALL + COUNT ( * ) - - 44 AS col1 FROM tab1 AS cor0
----
47

query I rowsort
SELECT ALL - col0 - - + col2 + + col1 * + - col2 AS col0 FROM tab2 AS cor0
----
-1196
-3104
-3903

query I rowsort
SELECT - col0 + - + 59 FROM tab1 AS cor0 WHERE NULL > 4
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT COUNT( * ) * + 41 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-5813
SELECT COUNT ( * ) * + 41 FROM tab0
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5814
SELECT DISTINCT CAST( - 12 AS SIGNED ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-5814
SELECT DISTINCT CAST ( - 12 AS INTEGER ) FROM tab2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT MAX( col0 ) * - COUNT( * ) FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-5815
SELECT MAX ( col0 ) * - COUNT ( * ) FROM tab1
----
-273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5816
SELECT ALL + CAST( + - ( col2 ) AS SIGNED ) FROM tab2
----
-23
-40
-58

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

query I rowsort
SELECT ALL - 64 + - ( + col0 ) + 34 FROM tab1 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT DISTINCT MIN( ALL - 2 ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-5819
SELECT DISTINCT MIN ( ALL - 2 ) FROM tab0
----
-2

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3481
-4624
-9216

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5822
SELECT ALL - COUNT ( ALL + col2 ) col2 FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5823
SELECT - col2 * + CAST( - ( - col2 ) AS SIGNED ) col2 FROM tab1
----
-3481
-4624
-9216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5823
SELECT - col2 * + CAST ( - ( - col2 ) AS INTEGER ) col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT ALL + COUNT( - 44 ) AS col0 FROM tab1, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL + COUNT ( - 44 ) AS col0 FROM tab1, tab0 cor0
----
9

query I rowsort
SELECT DISTINCT + + 59 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
59

query I rowsort
SELECT 55 + + 47 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 792cf560743b7eec398ed5c7e48d1343

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT ALL - COUNT( * ) * 32 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL - COUNT ( * ) * 32 FROM tab0 AS cor0
----
-96

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

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

query I rowsort
SELECT DISTINCT + - ( + 67 ) * - col0 AS col2 FROM tab2 AS cor0
----
3082
4288
5025

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

query I rowsort
SELECT + 39 * + ( - col2 ) FROM tab1 AS cor0
----
-2301
-2652
-3744

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0, 99 col0 FROM tab0 AS cor0 WHERE NULL < - col2
----

query I rowsort
SELECT + - 13 AS col0 FROM tab1 AS cor0
----
-13
-13
-13

query I rowsort
SELECT DISTINCT col2 + - - col2 FROM tab2
----
116
46
80

onlyif mysql # DIV for integer division: 
query I rowsort label-5836
SELECT DISTINCT col2 * + col2 + + col2 DIV - col0 + col1 + + col2 * - 40 - 0 * col0 FROM tab1
----
1126
1951
5389

skipif mysql # not compatible
query I rowsort label-5836
SELECT DISTINCT col2 * + col2 + + col2 / - col0 + col1 + + col2 * - 40 - 0 * col0 FROM tab1
----
1126
1951
5389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5837
SELECT + 31 + - + CAST( - col2 AS SIGNED ) AS col2 FROM tab2
----
54
71
89

skipif mysql # not compatible
query I rowsort label-5837
SELECT + 31 + - + CAST ( - col2 AS INTEGER ) AS col2 FROM tab2
----
54
71
89

query I rowsort
SELECT ALL + 26 * + col1 * 52 AS col2 FROM tab1
----
18928
63544
6760

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT COUNT( * ) col0 FROM tab0 AS cor0 WHERE + col0 / - col1 = NULL
----
0

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

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

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

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

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

query I rowsort
SELECT ( - - col0 ) - - col0 * - col2 AS col1 FROM tab0
----
-690
-783
-9506

onlyif mysql # DIV for integer division: 
query I rowsort label-5845
SELECT ALL + col2 + - ( col2 ) DIV - col0 col0 FROM tab2 AS cor0
----
23
40
58

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

query I rowsort
SELECT - col1 - - - col0 * + + col2 AS col2 FROM tab0 AS cor0
----
-786
-891
-9604

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 * col0 col1 FROM tab1 AS cor0
----
36125
36414
389207

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 + col1 <= NULL
----

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

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

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

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, + col1 AS col0 FROM tab2
----
-23
51
-40
77
-58
67

query I rowsort
SELECT DISTINCT + 72 AS col0 FROM tab2 WHERE - 24 BETWEEN + + 44 AND + 25
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT - COUNT( DISTINCT + 65 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5855
SELECT - COUNT ( DISTINCT + 65 ) FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT + COUNT( * ) + - 15 FROM tab0, tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5856
SELECT + COUNT ( * ) + - 15 FROM tab0, tab0 AS cor0
----
-6

query I rowsort
SELECT ( 35 ) AS col1 FROM tab1
----
35
35
35

query II rowsort
SELECT DISTINCT 72, 41 * + col0 * - 4 + - + col1 AS col0 FROM tab1
----
72
-13945
72
-14971
72
-8378

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5859
SELECT ALL - col0, + col0 * + col1 DIV - CAST( - col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5859
SELECT ALL - col0, + col0 * + col1 / - CAST ( - col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

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

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

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

query II rowsort
SELECT - + 84 AS col1, 50 * + col0 FROM tab0 AS cor0
----
-84
4350
-84
4850
-84
750

query I rowsort
SELECT + col0 - 64 FROM tab0
----
-49
23
33

query I rowsort
SELECT ( + 65 ) FROM tab2
----
65
65
65

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

skipif mysql # not compatible
query I rowsort label-5865
SELECT ALL + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5866
SELECT DISTINCT 1 + 12 * 59 AS col1 FROM tab1 WHERE NULL <> + col0 / ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5866
SELECT DISTINCT 1 + 12 * 59 AS col1 FROM tab1 WHERE NULL <> + col0 / ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL 1 * ( + col2 ) + col0 FROM tab1
----
144
147
159

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE ( + col2 ) < 94
----
59
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5869
SELECT + col2 col2 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) + col1 > - col2
----

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE col2 BETWEEN ( col2 ) AND 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT ALL COUNT( * ) * 95 AS col2 FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL COUNT ( * ) * 95 AS col2 FROM tab1
----
285

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE 68 IS NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 63 > col0
----

query I rowsort
SELECT DISTINCT 60 * - col0 FROM tab0
----
-5220
-5820
-900

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

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE ( NULL ) >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT COUNT( * ) - + MAX( + col2 ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-5881
SELECT COUNT ( * ) - + MAX ( + col2 ) FROM tab0
----
-96

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + col0 / 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT DISTINCT + COUNT( * ) * + MIN( + 56 ) AS col2 FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-5884
SELECT DISTINCT + COUNT ( * ) * + MIN ( + 56 ) AS col2 FROM tab0
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-5885
SELECT ALL + col1 DIV 71 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5885
SELECT ALL + col1 / 71 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 36 AS col2 FROM tab1 cor0
----
36

query I rowsort
SELECT col2 * - col2 + - col2 AS col1 FROM tab2 AS cor0
----
-1640
-3422
-552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 52 * + 5 col2 FROM tab1 AS cor0
----
265
274
307

query I rowsort
SELECT + 64 FROM tab0 WHERE + col0 - col2 * + col1 BETWEEN ( + col1 * 30 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 82 <> - 85
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 * 89 + - 33 FROM tab2
----
-2080
-3593
-5195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5892
SELECT DISTINCT 8 DIV - COUNT( * ) col0 FROM tab1
----
-2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT COUNT( * ) * 30 + - 63 AS col1 FROM tab0 WHERE NOT ( NULL ) IS NULL
----
-63

skipif mysql # not compatible
query I rowsort label-5893
SELECT COUNT ( * ) * 30 + - 63 AS col1 FROM tab0 WHERE NOT ( NULL ) IS NULL
----
-63

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

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

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

query I rowsort
SELECT + - 54 * + col2 FROM tab2 AS cor0
----
-1242
-2160
-3132

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5897
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - 7 * ( + CAST( NULL AS DECIMAL ) ) )
----

skipif mysql # not compatible
query III rowsort label-5897
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - 7 * ( + CAST ( NULL AS REAL ) ) )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT ALL - SUM( 38 ) AS col2 FROM tab0 cor0 WHERE NOT 33 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5900
SELECT ALL - SUM ( 38 ) AS col2 FROM tab0 cor0 WHERE NOT 33 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT - SUM( DISTINCT 27 ) AS col2 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5901
SELECT - SUM ( DISTINCT 27 ) AS col2 FROM tab1 AS cor0
----
-27

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

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

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

query I rowsort
SELECT + col1 * col0 * - col0 FROM tab0
----
-158949
-18225
-9409

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 31 * 83 NOT IN ( + 48 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT + 12 * + COUNT( * ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-5908
SELECT + 12 * + COUNT ( * ) FROM tab0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5909
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + CAST( NULL AS SIGNED ) / - 78 )
----

skipif mysql # not compatible
query III rowsort label-5909
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + CAST ( NULL AS INTEGER ) / - 78 )
----

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

query I rowsort
SELECT ALL + 65 * 97 AS col1 FROM tab0
----
6305
6305
6305

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 <= ( NULL )
----

query I rowsort
SELECT ALL + 84 * + - col0 FROM tab2 AS cor0
----
-3864
-5376
-6300

query I rowsort
SELECT DISTINCT - + ( - 24 ) AS col0 FROM tab2 AS cor0
----
24

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

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

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

query I rowsort
SELECT DISTINCT + ( - col2 ) - + col0 AS col2 FROM tab1 AS cor0 WHERE NOT 6 * - col0 IS NULL
----
-144
-147
-159

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE ( 21 ) IS NULL
----

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

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

query I rowsort
SELECT - col0 * - col0 - ( 47 ) FROM tab2 AS cor0
----
2069
4049
5578

query I rowsort
SELECT + - 29 AS col2 FROM tab0 AS cor0 WHERE NULL <> col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 19 * + + 95 >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5928
SELECT * FROM tab1 WHERE - ( - - col0 ) / CAST( NULL AS DECIMAL ) - + 76 > 13
----

skipif mysql # not compatible
query III rowsort label-5928
SELECT * FROM tab1 WHERE - ( - - col0 ) / CAST ( NULL AS REAL ) - + 76 > 13
----

query I rowsort
SELECT DISTINCT col2 + - 26 + + col0 FROM tab1
----
118
121
133

query I rowsort
SELECT ALL + col1 - 98 AS col1 FROM tab0
----
-17
-77
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5931
SELECT ALL CAST( + ( + ( - col0 ) ) AS SIGNED ) + 96 AS col1 FROM tab0
----
-1
81
9

skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL CAST ( + ( + ( - col0 ) ) AS INTEGER ) + 96 AS col1 FROM tab0
----
-1
81
9

query I rowsort
SELECT 90 AS col2 FROM tab2 WHERE ( - - col0 ) > NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 93 * - ( col2 ) ) BETWEEN ( + 33 ) / - col2 AND NULL AND col0 IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 99 - + 70 col2, 41 AS col2 FROM tab1
----
29
41
29
41
29
41

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

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

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

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

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

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

query I rowsort
SELECT - col0 * + - col0 FROM tab2 AS cor0
----
2116
4096
5625

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 68 * 90 NOT BETWEEN 22 AND ( col2 - - 99 * - 43 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5942
SELECT DISTINCT 4 + col2 / + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 * + + col1 col2 FROM tab2
----
1206
1386
918

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5944
SELECT DISTINCT + COUNT( * ) * 32 DIV - + COUNT( ALL - ( - 41 ) ) FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-5944
SELECT DISTINCT + COUNT ( * ) * 32 / - + COUNT ( ALL - ( - 41 ) ) FROM tab0
----
-32

query III rowsort
SELECT ALL * FROM tab2 WHERE - 86 - + col2 + 71 NOT IN ( + col0 - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT - ( + 77 ) AS col1 FROM tab0
----
-77
-77
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT ALL - - COUNT( * ) col1 FROM tab0 cor0 WHERE - col0 / col0 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5949
SELECT ALL - - COUNT ( * ) col1 FROM tab0 cor0 WHERE - col0 / col0 IS NULL
----
0

query I rowsort
SELECT DISTINCT + + 56 FROM tab0 AS cor0 WHERE NULL <= col2
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5952
SELECT - + COUNT( * ) AS col0, + COUNT( ALL + + 43 ) + - + 97 FROM tab0 AS cor0
----
-3
-94

skipif mysql # not compatible
query II rowsort label-5952
SELECT - + COUNT ( * ) AS col0, + COUNT ( ALL + + 43 ) + - + 97 FROM tab0 AS cor0
----
-3
-94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT DISTINCT SUM( ALL - col0 ) * COUNT( * ) * + 77 AS col0 FROM tab0
----
-45969

skipif mysql # not compatible
query I rowsort label-5955
SELECT DISTINCT SUM ( ALL - col0 ) * COUNT ( * ) * + 77 AS col0 FROM tab0
----
-45969

query I rowsort
SELECT ALL col2 * + ( - col1 ) AS col1 FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab2 WHERE NOT - - ( - col0 ) + + col2 BETWEEN ( 27 ) AND ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5959
SELECT ALL + COUNT( * ), - 85 AS col0 FROM tab0
----
3
-85

skipif mysql # not compatible
query II rowsort label-5959
SELECT ALL + COUNT ( * ), - 85 AS col0 FROM tab0
----
3
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT + MAX( ALL 21 ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-5960
SELECT + MAX ( ALL 21 ) FROM tab2
----
21

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5961
SELECT DISTINCT - - col1, - ( - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-5961
SELECT DISTINCT - - col1, - ( - CAST ( NULL AS REAL ) ) AS col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT ALL + col2 + - col2 FROM tab1 AS cor0 WHERE NOT - 32 + - + 55 / + col2 * col0 = ( NULL )
----

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

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

query II rowsort
SELECT 29 + + col0 AS col1, col2 FROM tab0
----
116
10
126
99
44
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT ALL SUM( DISTINCT 98 ) FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-5965
SELECT ALL SUM ( DISTINCT 98 ) FROM tab1
----
98

query II rowsort
SELECT DISTINCT ( - col0 ) AS col1, col2 * col0 FROM tab1 AS cor0
----
-51
4896
-85
5015
-91
6188

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 65 + - 65 NOT IN ( - col0 * - + 41, - col1 * - col2 * + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 - - 67 + 85 + + col0 < - + 36
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( col0, 27 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5970
SELECT ALL col1 + + CAST( + 72 AS SIGNED ) col1 FROM tab2
----
123
139
149

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5970
SELECT ALL col1 + + CAST ( + 72 AS INTEGER ) col1 FROM tab2
----
123
139
149

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

query II rowsort
SELECT col2 AS col2, col1 * + col0 FROM tab1
----
59
425
68
4277
96
714

query II rowsort
SELECT ALL + 72 + - - ( - col1 ), + col0 FROM tab1
----
25
91
58
51
67
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT - - COUNT( * ) col0 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5975
SELECT - - COUNT ( * ) col0 FROM tab2 WHERE NULL IS NULL
----
3

query I rowsort
SELECT col0 - - - col1 FROM tab2
----
-13
-5
8

query II rowsort
SELECT ALL col2 + + ( col1 ), - col0 * + + col1 AS col2 FROM tab0
----
100
-97
128
-1215
31
-1827

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT MIN( ALL + col1 ) - 44 * + 83 FROM tab1
----
-3647

skipif mysql # not compatible
query I rowsort label-5978
SELECT MIN ( ALL + col1 ) - 44 * + 83 FROM tab1
----
-3647

query I rowsort
SELECT DISTINCT - 9 - - - col2 AS col0 FROM tab0 AS cor0
----
-108
-19
-56

query I rowsort
SELECT ALL col2 + col1 FROM tab1 AS cor0 WHERE NOT 39 - col0 IS NULL
----
110
115
64

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT DISTINCT + MIN( ALL - + 10 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-10

skipif mysql # not compatible
query I rowsort label-5983
SELECT DISTINCT + MIN ( ALL - + 10 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 > col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT DISTINCT + COUNT( * ) * 26 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-5986
SELECT DISTINCT + COUNT ( * ) * 26 FROM tab1 AS cor0
----
78

query I rowsort
SELECT - 71 * ( - - col0 ) FROM tab2 AS cor0
----
-3266
-4544
-5325

query I rowsort
SELECT col2 * - + col2 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT ALL + + 18 * + - MAX( + col0 ) * + - 80 FROM tab0 AS cor0
----
139680

skipif mysql # not compatible
query I rowsort label-5989
SELECT ALL + + 18 * + - MAX ( + col0 ) * + - 80 FROM tab0 AS cor0
----
139680

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT - ( - + SUM( DISTINCT - 34 ) ) AS col0 FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-5990
SELECT - ( - + SUM ( DISTINCT - 34 ) ) AS col0 FROM tab1 AS cor0
----
-34

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

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

query I rowsort
SELECT 5 * + - col1 + - col0 FROM tab0 AS cor0
----
-102
-192
-420

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5994
SELECT CAST( col0 AS SIGNED ) * col1 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-5994
SELECT CAST ( col0 AS INTEGER ) * col1 FROM tab1
----
425
4277
714

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 20 col0 FROM tab1
----
1180
1360
1920

query I rowsort
SELECT col0 + - 52 + - col2 + - col2 * + 3 AS col0 FROM tab0 WHERE NOT - - col2 IS NULL
----
-225
-351
-5

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

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

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

query I rowsort
SELECT ALL - 77 + - - col2 FROM tab2 AS cor0
----
-19
-37
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT DISTINCT COUNT( DISTINCT - col0 ) + 13 AS col1 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-6002
SELECT DISTINCT COUNT ( DISTINCT - col0 ) + 13 AS col1 FROM tab2
----
16

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

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

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

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

query I rowsort
SELECT ALL 92 * + - col1 AS col2 FROM tab2
----
-4692
-6164
-7084

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 <= col1 + - col1
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6008
SELECT - COUNT( * ) + - 42 col2, + 68 FROM tab0 AS cor0
----
-45
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6008
SELECT - COUNT ( * ) + - 42 col2, + 68 FROM tab0 AS cor0
----
-45
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6009
SELECT ALL + - 33 DIV 10 DIV + 81 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6009
SELECT ALL + - 33 / 10 / + 81 AS col0 FROM tab2 AS cor0
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT - COUNT( + col2 ) + 28 * - MIN( DISTINCT - col1 ) AS col2 FROM tab0 cor0
----
2265

skipif mysql # not compatible
query I rowsort label-6011
SELECT - COUNT ( + col2 ) + 28 * - MIN ( DISTINCT - col1 ) AS col2 FROM tab0 cor0
----
2265

query I rowsort
SELECT ALL + col1 + - ( - + 88 ) AS col2 FROM tab2
----
139
155
165

onlyif mysql # DIV for integer division: 
query I rowsort label-6013
SELECT DISTINCT 74 DIV - + 37 + col0 * - col0 * + col0 AS col2 FROM tab1
----
-132653
-614127
-753573

skipif mysql # not compatible
query I rowsort label-6013
SELECT DISTINCT 74 / - + 37 + col0 * - col0 * + col0 AS col2 FROM tab1
----
-132653
-614127
-753573

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 32 - - col1 * - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + + + 91 BETWEEN - 65 AND NULL
----

query II rowsort
SELECT - - col2 * + + col1 AS col2, 72 AS col2 FROM tab1 AS cor0
----
1344
72
295
72
3196
72

query II rowsort
SELECT DISTINCT col0 AS col1, + col1 + - ( - + col1 ) AS col1 FROM tab1
----
51
28
85
10
91
94

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - - col0 ) BETWEEN + col2 AND - - col0
----
15
81
47
97
1
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT ALL - AVG ( ALL + 33 ) - COUNT( ALL + - 73 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6020
SELECT ALL - AVG ( ALL + 33 ) - COUNT ( ALL + - 73 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6021
SELECT 0 col2, - COUNT( + - col1 ) FROM tab1 AS cor0
----
0
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6021
SELECT 0 col2, - COUNT ( + - col1 ) FROM tab1 AS cor0
----
0
-3

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

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

query I rowsort
SELECT col2 + + + 44 FROM tab1 AS cor0 WHERE NOT - 32 + - col2 IN ( + col0 + col1 )
----
103
112
140

query II rowsort
SELECT + col0, - ( + 10 ) FROM tab2 AS cor0
----
46
-10
64
-10
75
-10

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

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

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

query I rowsort
SELECT ALL 12 * + + 1 AS col1 FROM tab1 cor0
----
12
12
12

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6029
SELECT + ( + 75 ) AS col2, col2 DIV col1 FROM tab1
----
75
1
75
11
75
6

skipif mysql # not compatible
query II rowsort label-6029
SELECT + ( + 75 ) AS col2, col2 / col1 FROM tab1
----
75
1
75
11
75
6

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

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

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

query II rowsort
SELECT col0 * - col1 AS col1, + col1 AS col0 FROM tab1
----
-425
5
-4277
47
-714
14

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6034
SELECT - ( - COUNT( * ) ) DIV + 81 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6034
SELECT - ( - COUNT ( * ) ) / + 81 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - 78 AS col0 FROM tab1 WHERE NOT + - 58 IS NULL
----
-78

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6036
SELECT + col2, + col2 AS col1 FROM tab2 AS cor0 WHERE + col0 * CAST( - 58 AS DECIMAL ) * + col1 + + + col0 + + 32 + - 87 IS NOT NULL
----
23
23
40
40
58
58

skipif mysql # not compatible
query II rowsort label-6036
SELECT + col2, + col2 AS col1 FROM tab2 AS cor0 WHERE + col0 * CAST ( - 58 AS REAL ) * + col1 + + + col0 + + 32 + - 87 IS NOT NULL
----
23
23
40
40
58
58

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

skipif mysql # not compatible
query I rowsort label-6037
SELECT ALL 97 + - COUNT ( * ) FROM tab0
----
94

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

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

query I rowsort
SELECT - ( + + col2 ) * - 11 + - 50 * + 70 AS col0 FROM tab2
----
-2862
-3060
-3247

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

query I rowsort
SELECT ALL + + ( - 94 ) + 37 * col0 FROM tab2 AS cor0 WHERE NOT col2 + - + 27 + + 54 + col2 - - 65 * - col2 * 34 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT - 18 - 82 AS col0 FROM tab2 AS cor0
----
-100

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

query II rowsort
SELECT ALL - - col2 AS col2, col1 FROM tab0 cor0 WHERE NOT + col0 - - + col0 * + col1 IS NULL
----
10
21
47
81
99
1

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

query I rowsort
SELECT 18 - - 35 AS col2 FROM tab1
----
53
53
53

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

query III rowsort
SELECT * FROM tab0 WHERE ( - 97 ) IS NULL
----

query II rowsort
SELECT 8 AS col1, col1 + - 29 FROM tab1
----
8
-15
8
-24
8
18

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

query I rowsort
SELECT ( + 89 ) AS col1 FROM tab1
----
89
89
89

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

query II rowsort
SELECT ALL - col0, + col0 FROM tab0 cor0
----
-15
15
-87
87
-97
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6055
SELECT - - COUNT( * ) col2, + 18 FROM tab0 cor0
----
3
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6055
SELECT - - COUNT ( * ) col2, + 18 FROM tab0 cor0
----
3
18

query I rowsort
SELECT - 37 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT DISTINCT - - 52 * - - COUNT( * ) FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6057
SELECT DISTINCT - - 52 * - - COUNT ( * ) FROM tab1 AS cor0
----
156

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN + col2 * col2 * - - 10 + + 53 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6060
SELECT ALL + CAST( + - col2 AS SIGNED ) AS col0, 42 AS col0 FROM tab2 AS cor0
----
-23
42
-40
42
-58
42

skipif mysql # not compatible
query II rowsort label-6060
SELECT ALL + CAST ( + - col2 AS INTEGER ) AS col0, 42 AS col0 FROM tab2 AS cor0
----
-23
42
-40
42
-58
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6061
SELECT DISTINCT - - col0 * - + col0 + - CAST( 30 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-6061
SELECT DISTINCT - - col0 * - + col0 + - CAST ( 30 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 75 - + col2 - col1 + - col0 / 26 + + col2 * 46 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * - 28 AS col2 FROM tab0
----
-2268
-28
-588

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= + + 76
----

query I rowsort
SELECT ALL 79 * - col1 AS col0 FROM tab2
----
-4029
-5293
-6083

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 NOT BETWEEN + col2 AND col2
----

query I rowsort
SELECT - col2 * - col2 + + + col1 * + ( - - col0 ) FROM tab1
----
3906
8901
9930

query III rowsort
SELECT * FROM tab0 WHERE ( ( NULL = 80 ) )
----

query I rowsort
SELECT - 47 + + 46 AS col2 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col1 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab0 WHERE NOT - col2 > col0
----
-1
-21
-81

query I rowsort
SELECT + 73 + + col0 * 15 AS col1 FROM tab0 AS cor0
----
1378
1528
298

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT DISTINCT - SUM( - col1 ) + - 2 AS col0 FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT - SUM ( - col1 ) + - 2 AS col0 FROM tab1
----
64

query I rowsort
SELECT ( - - 19 ) - + - ( 49 ) * - + 99 * 58 AS col0 FROM tab0
----
-281339
-281339
-281339

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

skipif mysql # not compatible
query I rowsort label-6077
SELECT 86 * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - + 85 - + 3 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT COUNT( * ) - + + 92 FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-6078
SELECT COUNT ( * ) - + + 92 FROM tab0 AS cor0
----
-89

query I rowsort
SELECT - + 22 * 86 + - 95 FROM tab2 AS cor0
----
-1987
-1987
-1987

query I rowsort
SELECT col0 * - col2 * 13 + - ( + 78 ) AS col0 FROM tab0 AS cor0
----
-11388
-124917
-9243

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT + MIN( + 5 ) FROM tab0 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6082
SELECT + MIN ( + 5 ) FROM tab0 WHERE NOT NULL > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT ALL - COUNT( * ) * - 99 AS col1 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL - COUNT ( * ) * - 99 AS col1 FROM tab0
----
297

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

skipif mysql # not compatible
query I rowsort label-6084
SELECT DISTINCT col2 / - + col2 AS col2 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT DISTINCT - - ( + COUNT( * ) ) + + 60 + + 26 FROM tab0 WHERE NOT + col2 IS NOT NULL
----
86

skipif mysql # not compatible
query I rowsort label-6085
SELECT DISTINCT - - ( + COUNT ( * ) ) + + 60 + + 26 FROM tab0 WHERE NOT + col2 IS NOT NULL
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-6086
SELECT DISTINCT - col1 DIV + 92 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6086
SELECT DISTINCT - col1 / + 92 FROM tab2
----
0

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

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE 62 IS NOT NULL
----
46
64
75

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

query I rowsort
SELECT 23 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

onlyif mysql # aggregate syntax: 
query II rowsort label-6091
SELECT 75 AS col0, + COUNT( * ) FROM tab2
----
75
3

skipif mysql # not compatible
query II rowsort label-6091
SELECT 75 AS col0, + COUNT ( * ) FROM tab2
----
75
3

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

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

query I rowsort
SELECT col2 * + - col0 + + col2 + - 72 + - col2 FROM tab2 AS cor0
----
-1130
-2632
-4422

query I rowsort
SELECT - 66 + + ( col0 ) AS col0 FROM tab0 AS cor0
----
-51
21
31

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 60 NOT BETWEEN 5 AND + col0 * - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6097
SELECT DISTINCT col1 DIV + 55 + - - col2 FROM tab0 AS cor0
----
10
48
99

skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT col1 / + 55 + - - col2 FROM tab0 AS cor0
----
10
48
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT ALL + - 17 * COUNT( * ) + + + COUNT( * ) FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL + - 17 * COUNT ( * ) + + + COUNT ( * ) FROM tab2 AS cor0
----
-48

query I rowsort
SELECT DISTINCT col2 + col2 + + 15 AS col0 FROM tab1
----
133
151
207

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

query I rowsort
SELECT ALL + 62 AS col1 FROM tab1 WHERE + col0 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT col2 + + - 1 FROM tab0
----
46
9
98

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND + 42 * 56
----

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

query I rowsort
SELECT - col2 * + - 78 AS col0 FROM tab1
----
4602
5304
7488

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

skipif mysql # not compatible
query I rowsort label-6109
SELECT ALL - CAST ( NULL AS REAL ) + COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT - MIN( ALL + col1 ) AS col1 FROM tab2 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6110
SELECT - MIN ( ALL + col1 ) AS col1 FROM tab2 WHERE NULL > NULL
----
NULL

query I rowsort
SELECT + col0 + + - ( - - col0 ) + + col0 * + col1 FROM tab0
----
1215
1827
97

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

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

query I rowsort
SELECT DISTINCT + col0 - + - col1 AS col0 FROM tab1
----
138
65
90

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

query I rowsort
SELECT ALL 68 * col1 FROM tab0 AS cor0
----
1428
5508
68

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

query I rowsort
SELECT ALL - col1 - - 25 * + 22 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - ( + + col2 ) * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6118
SELECT DISTINCT 94 * - col0 AS col0, ( - 34 ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

skipif mysql # not compatible
query II rowsort label-6118
SELECT DISTINCT 94 * - col0 AS col0, ( - 34 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

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

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

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE - col1 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT ( ( + 25 ) ) * + - 0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT ALL 30 + COUNT( * ) FROM tab0 WHERE - - col0 <> + col0
----
30

skipif mysql # not compatible
query I rowsort label-6122
SELECT ALL 30 + COUNT ( * ) FROM tab0 WHERE - - col0 <> + col0
----
30

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > NULL OR NOT 21 < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT DISTINCT - + 57 * - SUM( col1 ) AS col0 FROM tab1 AS cor0
----
3762

skipif mysql # not compatible
query I rowsort label-6125
SELECT DISTINCT - + 57 * - SUM ( col1 ) AS col0 FROM tab1 AS cor0
----
3762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6126
SELECT + AVG ( ALL - col0 ) * + 66 + + 44 + - MIN( ALL CAST( NULL AS SIGNED ) ) * + - 38 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6126
SELECT + AVG ( ALL - col0 ) * + 66 + + 44 + - MIN ( ALL CAST ( NULL AS INTEGER ) ) * + - 38 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + - col0 + - col2 + col0 * + 65 AS col1 FROM tab1
----
3264
5440
5824

onlyif mysql # aggregate syntax: 
query II rowsort label-6128
SELECT - - COUNT( * ) AS col2, MIN( + 64 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
64

skipif mysql # not compatible
query II rowsort label-6128
SELECT - - COUNT ( * ) AS col2, MIN ( + 64 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
64

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 7 / - - col2 NOT IN ( + col0, - 71, - - 93, + - col1, + - col0 )
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col1 = 80
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( + - ( + col1 ) ) AS col0 FROM tab0 cor0
----
-1
-21
-81

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

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

query I rowsort
SELECT 81 + col1 AS col0 FROM tab0
----
102
162
82

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 / - col2 + col1 + 88 * col1 + - col0 IS NOT NULL
----

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

query I rowsort
SELECT - col0 * + col2 + + 44 AS col1 FROM tab1
----
-4852
-4971
-6144

onlyif mysql # DIV for integer division: 
query I rowsort label-6140
SELECT col2 DIV - 88 * + + col1 + - + 53 AS col2 FROM tab0
----
-53
-53
-54

skipif mysql # not compatible
query I rowsort label-6140
SELECT col2 / - 88 * + + col1 + - + 53 AS col2 FROM tab0
----
-53
-53
-54

query II rowsort
SELECT DISTINCT 76 AS col1, col1 + - col0 AS col1 FROM tab2
----
76
-8
76
13
76
5

query I rowsort
SELECT - col2 * - col1 + - - ( - 28 ) + - + 58 * - col0 * + + col1 * col1 FROM tab0 AS cor0
----
2225468
5697
5711849

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6143
SELECT + MIN( DISTINCT col1 ) * - 33 + + - CAST( + 17 AS SIGNED ) FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-6143
SELECT + MIN ( DISTINCT col1 ) * - 33 + + - CAST ( + 17 AS INTEGER ) FROM tab0 AS cor0
----
-50

query I rowsort
SELECT DISTINCT - col2 * col1 / + 24 + + + col0 * + 41 + col1 AS col0 FROM tab1 AS cor0 WHERE col2 + - col1 IS NULL
----

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

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

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

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

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

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

query I rowsort
SELECT + col1 * - col0 * + + col1 AS col2 FROM tab0 AS cor0
----
-38367
-97
-98415

query I rowsort
SELECT ALL 39 * col0 FROM tab0 AS cor0
----
3393
3783
585

query I rowsort
SELECT 18 * - 82 AS col0 FROM tab1
----
-1476
-1476
-1476

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6151
SELECT SUM( + 19 ) DIV 74 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6151
SELECT SUM ( + 19 ) / 74 AS col1 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6152
SELECT ALL col1 col2, CAST( + + col0 AS SIGNED ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6152
SELECT ALL col1 col2, CAST ( + + col0 AS INTEGER ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6153
SELECT - col0 AS col1, + CAST( - col1 AS SIGNED ) FROM tab1
----
-51
-14
-85
-5
-91
-47

skipif mysql # not compatible
query II rowsort label-6153
SELECT - col0 AS col1, + CAST ( - col1 AS INTEGER ) FROM tab1
----
-51
-14
-85
-5
-91
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-6154
SELECT + 44 DIV col1 FROM tab0
----
0
2
44

skipif mysql # not compatible
query I rowsort label-6154
SELECT + 44 / col1 FROM tab0
----
0
2
44

query I rowsort
SELECT 66 * - + col2 FROM tab2
----
-1518
-2640
-3828

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

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

query I rowsort
SELECT DISTINCT ( - - 48 ) AS col2 FROM tab1
----
48

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= - col0 * 27
----

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col1, col1 + col2 + 82 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT ALL COUNT( DISTINCT - 85 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL COUNT ( DISTINCT - 85 ) AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT DISTINCT COUNT( * ) - MIN( DISTINCT col0 ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-6165
SELECT DISTINCT COUNT ( * ) - MIN ( DISTINCT col0 ) FROM tab0
----
-12

query II rowsort
SELECT ALL 96, - col0 FROM tab2 AS cor0 WHERE NOT - 16 < NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT - 92 + + SUM( col2 ) FROM tab0 cor0
----
64

skipif mysql # not compatible
query I rowsort label-6169
SELECT - 92 + + SUM ( col2 ) FROM tab0 cor0
----
64

query I rowsort
SELECT 22 + - col0 * + col1 AS col2 FROM tab0 AS cor0
----
-1193
-1805
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT - ( + 50 ) + - + COUNT( * ) * + 18 FROM tab0 AS cor0
----
-104

skipif mysql # not compatible
query I rowsort label-6171
SELECT - ( + 50 ) + - + COUNT ( * ) * + 18 FROM tab0 AS cor0
----
-104

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

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

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

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

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

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

query III rowsort
SELECT col1, col0 AS col0, + 94 * + + 8 * - 7 FROM tab1 AS cor0
----
9 values hashing to 8848e4fb366851db4cb236965559a85b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6177
SELECT ALL + + ( CAST( - 97 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-6177
SELECT ALL + + ( CAST ( - 97 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-97
-97
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT DISTINCT - ( - + MAX( ALL + col1 ) ) col0 FROM tab0 AS cor0 WHERE NOT NULL > - 30
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6179
SELECT DISTINCT - ( - + MAX ( ALL + col1 ) ) col0 FROM tab0 AS cor0 WHERE NOT NULL > - 30
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6180
SELECT col2 DIV - 94 * col0 DIV - col0 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6180
SELECT col2 / - 94 * col0 / - col0 AS col0 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT - COUNT( ALL - 44 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6181
SELECT - COUNT ( ALL - 44 ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - 24 * - 51 FROM tab1
----
1224

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 <> + 39 - + 98 * - col1
----

query II rowsort
SELECT DISTINCT col0 - col1 + - col2 * + + col2, col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3401
85
-4580
91
-9179
51

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6186
SELECT 76 + + + 89 - + 75 + - col2 DIV + 28 FROM tab0 AS cor0
----
87
89
90

skipif mysql # not compatible
query I rowsort label-6186
SELECT 76 + + + 89 - + 75 + - col2 / + 28 FROM tab0 AS cor0
----
87
89
90

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + + - col0 - + + col0 col2, - 71 AS col1 FROM tab1
----
-116
-71
-175
-71
-229
-71

query I rowsort
SELECT ALL + ( 84 ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

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

query III rowsort
SELECT * FROM tab2 WHERE col2 * - 8 >= NULL
----

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

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

query I rowsort
SELECT DISTINCT + 96 * + col2 * - ( col1 ) AS col2 FROM tab2 AS cor0
----
-112608
-295680
-373056

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT ALL + + MAX( ALL col1 ) * + - 21 FROM tab2 AS cor0
----
-1617

skipif mysql # not compatible
query I rowsort label-6196
SELECT ALL + + MAX ( ALL col1 ) * + - 21 FROM tab2 AS cor0
----
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT 35 - + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-6197
SELECT 35 - + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
32

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

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

query I rowsort
SELECT + + col1 + - 96 FROM tab2 cor0
----
-19
-29
-45

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6201
SELECT CAST( - 88 AS SIGNED ) * - col1 * col1 + col1 FROM tab2 AS cor0
----
228939
395099
521829

skipif mysql # not compatible
query I rowsort label-6201
SELECT CAST ( - 88 AS INTEGER ) * - col1 * col1 + col1 FROM tab2 AS cor0
----
228939
395099
521829

query I rowsort
SELECT ALL - 30 + - col0 + - + ( 88 ) + + - col2 FROM tab2
----
-187
-222
-251

onlyif mysql # DIV for integer division: 
query I rowsort label-6203
SELECT ALL 22 DIV - 21 - + 71 - + 98 AS col1 FROM tab1
----
-170
-170
-170

skipif mysql # not compatible
query I rowsort label-6203
SELECT ALL 22 / - 21 - + 71 - + 98 AS col1 FROM tab1
----
-170
-170
-170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( + 12 ) col2, - col0 * - col2 FROM tab1 WHERE NULL IS NULL
----
-12
4896
-12
5015
-12
6188

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

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

query I rowsort
SELECT - 86 AS col1 FROM tab1 WHERE 99 BETWEEN + col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6208
SELECT COUNT( - ( + CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT ALL - COUNT( DISTINCT + 19 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6209
SELECT ALL - COUNT ( DISTINCT + 19 ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT ALL - + 81 * + COUNT( * ) FROM tab2 AS cor0 WHERE NOT 26 + + + 68 * col2 IS NULL
----
-243

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL - + 81 * + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 26 + + + 68 * col2 IS NULL
----
-243

onlyif mysql # DIV for integer division: 
query I rowsort label-6211
SELECT + + 13 DIV + col0 * - 41 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6211
SELECT + + 13 / + col0 * - 41 FROM tab0 AS cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE col2 <= 92 + + 92
----
46
64
75

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

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

query I rowsort
SELECT DISTINCT col2 * + + 60 FROM tab2
----
1380
2400
3480

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT + + COUNT( * ) * - 16 FROM tab2 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-6217
SELECT + + COUNT ( * ) * - 16 FROM tab2 cor0
----
-48

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

query II rowsort
SELECT - col0 AS col0, col0 AS col2 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

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

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

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

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

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

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

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

query I rowsort
SELECT + - 63 * - col1 FROM tab2 AS cor0
----
3213
4221
4851

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT DISTINCT - - COUNT( * ) * - 31 AS col0 FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-6226
SELECT DISTINCT - - COUNT ( * ) * - 31 AS col0 FROM tab0 AS cor0
----
-93

query II rowsort
SELECT DISTINCT + col0 + - col0 + col1 + col0 + - col2 * + col0 * ( + col2 ) * - - col1 AS col2, + 8 FROM tab0 AS cor0
----
-182592
8
-2683839
8
-950599
8

onlyif mysql # DIV for integer division: 
query II rowsort label-6228
SELECT DISTINCT col2 + - col0 DIV + col0, + 9 * - + 67 * + - col1 AS col2 FROM tab1
----
58
3015
67
28341
95
8442

skipif mysql # not compatible
query II rowsort label-6228
SELECT DISTINCT col2 + - col0 / + col0, + 9 * - + 67 * + - col1 AS col2 FROM tab1
----
58
3015
67
28341
95
8442

query I rowsort
SELECT col2 + - + ( + + col1 ) FROM tab0
----
-11
-34
98

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6233
SELECT DISTINCT + + col2 DIV - col1 col2 FROM tab1 AS cor0 WHERE NOT - col0 * + + 94 IS NULL
----
-1
-11
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6233
SELECT DISTINCT + + col2 / - col1 col2 FROM tab1 AS cor0 WHERE NOT - col0 * + + 94 IS NULL
----
-1
-11
-6

query II rowsort
SELECT - 3 - - - 64 + 59, col0 FROM tab1
----
-8
51
-8
85
-8
91

query I rowsort
SELECT DISTINCT col2 + - 70 FROM tab2
----
-12
-30
-47

query I rowsort
SELECT DISTINCT 56 - 28 AS col0 FROM tab1
----
28

query I rowsort
SELECT + col1 - - col0 * 61 AS col1 FROM tab2
----
2857
3981
4642

query III rowsort
SELECT * FROM tab2 WHERE col1 * + 88 + - 81 / - - col0 IS NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6239
SELECT DISTINCT + + COUNT ( * ), + COUNT ( * ) * + + 72 col0 FROM tab1 cor0
----
3
216

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6240
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( CAST( 92 AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6240
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( CAST ( 92 AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 45 * col0 * + col0 * - - 78 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6242
SELECT ALL + 77 * - + COUNT( * ) * - 7, COUNT( * ) AS col0 FROM tab2 cor0
----
1617
3

skipif mysql # not compatible
query II rowsort label-6242
SELECT ALL + 77 * - + COUNT ( * ) * - 7, COUNT ( * ) AS col0 FROM tab2 cor0
----
1617
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6243
SELECT + - col1 DIV - 1 AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6243
SELECT + - col1 / - 1 AS col2 FROM tab1 AS cor0
----
14
47
5

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 27 > 76
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 <> - col1 / ( col0 ) * - col0 * + 11 + - 38
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

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

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

query I rowsort
SELECT - 90 * col0 AS col2 FROM tab2
----
-4140
-5760
-6750

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6253
SELECT - - 99 * - SUM( + ( col0 ) ) + MAX( - + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6253
SELECT - - 99 * - SUM ( + ( col0 ) ) + MAX ( - + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6254
SELECT ALL + - CAST( + col1 AS SIGNED ) * - + col1 + + 59 * + col2 FROM tab2 AS cor0
----
3958
7911
8289

skipif mysql # not compatible
query I rowsort label-6254
SELECT ALL + - CAST ( + col1 AS INTEGER ) * - + col1 + + 59 * + col2 FROM tab2 AS cor0
----
3958
7911
8289

query I rowsort
SELECT - + col0 * + col0 + - - ( - 21 ) AS col2 FROM tab2 AS cor0
----
-2137
-4117
-5646

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT - - COUNT( * ) + + - SUM( DISTINCT + col1 ) col1 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6256
SELECT - - COUNT ( * ) + + - SUM ( DISTINCT + col1 ) col1 FROM tab1 AS cor0
----
-63

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6258
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) * + 15 + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6258
SELECT DISTINCT - - CAST ( NULL AS REAL ) * + 15 + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query II rowsort
SELECT ALL + col1, 41 - - 63 AS col0 FROM tab0
----
1
104
21
104
81
104

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT + - MAX( ALL + - 45 ) * - MIN( DISTINCT - ( col1 ) ) - 18 col1 FROM tab0 AS cor0
----
3627

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6260
SELECT + - MAX ( ALL + - 45 ) * - MIN ( DISTINCT - ( col1 ) ) - 18 col1 FROM tab0 AS cor0
----
3627

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 * + 79 - - col1 AS col0 FROM tab2 AS cor0
----
1868
3237
4649

query I rowsort
SELECT + + col1 + + - col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL - + col0 + 37 - - - ( - 18 ) * - 46 FROM tab2 AS cor0
----
-837
-855
-866

onlyif mysql # DIV for integer division: 
query I rowsort label-6266
SELECT DISTINCT - col0 * col2 + col2 + col2 + + col0 DIV 22 DIV - + col2 FROM tab2 AS cor0
----
-1012
-2480
-4234

skipif mysql # not compatible
query I rowsort label-6266
SELECT DISTINCT - col0 * col2 + col2 + col2 + + col0 / 22 / - + col2 FROM tab2 AS cor0
----
-1012
-2480
-4234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6267
SELECT + + CAST( NULL AS SIGNED ) + + COUNT( - col0 ) - - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT - ( - col0 ) + + ( - col0 ) AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 86 * 73 * + col0 FROM tab0
----
546186
608966
94170

query I rowsort
SELECT ALL - 1 * - col1 * + col0 AS col1 FROM tab0
----
1215
1827
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT DISTINCT MIN( ALL col0 ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-6273
SELECT DISTINCT MIN ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
46

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

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

query I rowsort
SELECT - - 2 AS col1 FROM tab0 AS cor0 WHERE NOT - 12 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT 54 * - - MIN( + - col2 ) col0 FROM tab0
----
-5346

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6276
SELECT 54 * - - MIN ( + - col2 ) col0 FROM tab0
----
-5346

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 4, 22 * - col0 col1 FROM tab2
----
-4
-1012
-4
-1408
-4
-1650

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6279
SELECT + col0 DIV + - 4 AS col1 FROM tab1 AS cor0
----
-12
-21
-22

skipif mysql # not compatible
query I rowsort label-6279
SELECT + col0 / + - 4 AS col1 FROM tab1 AS cor0
----
-12
-21
-22

query I rowsort
SELECT + + 69 + + + col0 * + 31 AS col0 FROM tab1 cor0
----
1650
2704
2890

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <= col0 - - 22 / + col1 / + ( + col2 )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6283
SELECT DISTINCT + 87 col0, + 62 * + 55 + - COUNT( * ) + MIN( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
87
3422

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6283
SELECT DISTINCT + 87 col0, + 62 * + 55 + - COUNT ( * ) + MIN ( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
87
3422

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 + + + col1 col2 FROM tab1 cor0
----
10
19
52

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT SUM( - col1 ) - - + COUNT( - + col2 ) + - 87 + - AVG ( ALL ( - + 37 ) ) + 35 FROM tab0 cor0 WHERE 37 / + + col0 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6286
SELECT SUM ( - col1 ) - - + COUNT ( - + col2 ) + - 87 + - AVG ( ALL ( - + 37 ) ) + 35 FROM tab0 cor0 WHERE 37 / + + col0 NOT BETWEEN NULL AND NULL
----
NULL

query II rowsort
SELECT DISTINCT + col0 + - 65 AS col1, - 52 FROM tab0
----
-50
-52
22
-52
32
-52

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT DISTINCT - COUNT( DISTINCT - col1 ) + - + 46 AS col0 FROM tab0 WHERE NOT col1 BETWEEN NULL AND NULL
----
-46

skipif mysql # not compatible
query I rowsort label-6290
SELECT DISTINCT - COUNT ( DISTINCT - col1 ) + - + 46 AS col0 FROM tab0 WHERE NOT col1 BETWEEN NULL AND NULL
----
-46

query I rowsort
SELECT - 58 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6292
SELECT * FROM tab1 WHERE - - CAST( NULL AS DECIMAL ) / 1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6292
SELECT * FROM tab1 WHERE - - CAST ( NULL AS REAL ) / 1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6293
SELECT DISTINCT + col2 * col0 DIV + 80 - - col1 AS col1 FROM tab2 AS cor0
----
109
121
64

skipif mysql # not compatible
query I rowsort label-6293
SELECT DISTINCT + col2 * col0 / + 80 - - col1 AS col1 FROM tab2 AS cor0
----
109
121
64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 46 + - 50 <= - - 42
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6298
SELECT - 64 * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / - CAST( NULL AS DECIMAL ) + SUM( + col0 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6298
SELECT - 64 * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / - CAST ( NULL AS REAL ) + SUM ( + col0 ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ( + 14 ) - - col2 + + col2 / 6 AS col2 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

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

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

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

query I rowsort
SELECT + col0 * col2 FROM tab2 WHERE NOT col2 IS NULL
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT DISTINCT MAX( DISTINCT col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6303
SELECT DISTINCT MAX ( DISTINCT col1 ) AS col2 FROM tab0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6304
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, - 74 * ( - MIN( DISTINCT col1 ) ) FROM tab0
----
NULL
74

skipif mysql # not compatible
query II rowsort label-6304
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, - 74 * ( - MIN ( DISTINCT col1 ) ) FROM tab0
----
NULL
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT DISTINCT - MIN( - 87 ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-6305
SELECT DISTINCT - MIN ( - 87 ) FROM tab2
----
87

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE - col1 IS NOT NULL
----
51
67
77

query II rowsort
SELECT ALL col0, 27 FROM tab1
----
51
27
85
27
91
27

query I rowsort
SELECT - - col2 * + col2 AS col2 FROM tab1 cor0 WHERE NOT 77 + + ( + col0 ) + + col0 < + ( ( - col0 ) )
----
3481
4624
9216

query I rowsort
SELECT DISTINCT + 52 * - - col1 FROM tab2 AS cor0
----
2652
3484
4004

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6310
SELECT - - col1 * - 27 AS col1, - CAST( NULL AS SIGNED ) col1 FROM tab2 cor0
----
-1377
NULL
-1809
NULL
-2079
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6310
SELECT - - col1 * - 27 AS col1, - CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0
----
-1377
NULL
-1809
NULL
-2079
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6311
SELECT ALL col0 DIV - - 14 AS col0 FROM tab1 AS cor0
----
3
6
6

skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL col0 / - - 14 AS col0 FROM tab1 AS cor0
----
3
6
6

query I rowsort
SELECT + + ( - 1 ) * - col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT DISTINCT 34 * - 55 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
5610

skipif mysql # not compatible
query I rowsort label-6313
SELECT DISTINCT 34 * - 55 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
5610

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6314
SELECT AVG ( CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) ) col0 FROM tab0 AS cor0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT ALL + MIN( DISTINCT - col2 ) * 7 AS col2 FROM tab0 AS cor0
----
-693

skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL + MIN ( DISTINCT - col2 ) * 7 AS col2 FROM tab0 AS cor0
----
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT ALL + COUNT( DISTINCT 54 ) AS col2 FROM tab2, tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6317
SELECT ALL + COUNT ( DISTINCT 54 ) AS col2 FROM tab2, tab1 AS cor0
----
1

query I rowsort
SELECT col2 + - 37 * + + 4 * - - col1 * - - col1 FROM tab1
----
-28912
-326864
-3641

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 + - - col1 col1 FROM tab2
----
130
146
156

query I rowsort
SELECT ALL - col0 * + - col0 - + col1 * 4 * - col2 FROM tab1
----
21065
7977
8405

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6323
SELECT ALL CAST( + 45 AS SIGNED ) * ( 52 ) * - 6 FROM tab0
----
-14040
-14040
-14040

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL CAST ( + 45 AS INTEGER ) * ( 52 ) * - 6 FROM tab0
----
-14040
-14040
-14040

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

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

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

skipif mysql # not compatible
query I rowsort label-6325
SELECT + SUM ( col1 ) FROM tab2 AS cor0
----
195

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6328
SELECT + MAX ( col1 ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 89 FROM tab1 WHERE 1 IS NOT NULL
----
89

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

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

query I rowsort
SELECT col0 + + col0 * 85 FROM tab1 WHERE NOT col1 + - col1 >= - 25 - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6332
SELECT ( + 36 ) DIV 86 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6332
SELECT ( + 36 ) / 86 col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6333
SELECT ALL - 73 DIV COUNT( * ) AS col1 FROM tab2
----
-24

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6335
SELECT DISTINCT 88 * - col2 + col2 DIV CAST( + col1 * col2 AS SIGNED ) AS col2 FROM tab2
----
-2024
-3520
-5104

skipif mysql # not compatible
query I rowsort label-6335
SELECT DISTINCT 88 * - col2 + col2 / CAST ( + col1 * col2 AS INTEGER ) AS col2 FROM tab2
----
-2024
-3520
-5104

query I rowsort
SELECT - col0 - + 50 FROM tab2
----
-114
-125
-96

query I rowsort
SELECT - col0 FROM tab1 WHERE 17 IS NULL
----

query I rowsort
SELECT 26 + col0 AS col0 FROM tab0
----
113
123
41

query I rowsort
SELECT - col0 FROM tab1 WHERE + 73 * col2 IS NULL
----

query I rowsort
SELECT 46 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
46
46

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

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

query I rowsort
SELECT DISTINCT - 81 AS col2 FROM tab1
----
-81

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

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

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

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT col0 / col0 + col2 IS NULL
----
23
40
58

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

skipif mysql # not compatible
query I rowsort label-6346
SELECT + CAST ( 80 AS INTEGER ) FROM tab1
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT ALL + SUM( DISTINCT + col0 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6347
SELECT ALL + SUM ( DISTINCT + col0 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col1 ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT ALL ( COUNT( DISTINCT - 21 ) ) AS col1 FROM tab0 WHERE NULL BETWEEN 89 / + col0 AND + 36
----
0

skipif mysql # not compatible
query I rowsort label-6350
SELECT ALL ( COUNT ( DISTINCT - 21 ) ) AS col1 FROM tab0 WHERE NULL BETWEEN 89 / + col0 AND + 36
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT + 79 * 57 + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND col2
----
4503

skipif mysql # not compatible
query I rowsort label-6352
SELECT + 79 * 57 + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND col2
----
4503

query I rowsort
SELECT ALL 93 * - col0 AS col0 FROM tab2 AS cor0
----
-4278
-5952
-6975

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 47 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 BETWEEN col2 AND - 21 * col0 - col1 * 72
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * - 57 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 47 NOT BETWEEN ( NULL ) AND ( + 27 )
----

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

query I rowsort
SELECT DISTINCT - 29 + col2 FROM tab2 AS cor0
----
-6
11
29

query I rowsort
SELECT 20 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

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

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

query I rowsort
SELECT ALL - 19 * + col1 FROM tab2
----
-1273
-1463
-969

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT ALL + MIN( DISTINCT - 97 ) * 14 FROM tab0 AS cor0
----
-1358

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL + MIN ( DISTINCT - 97 ) * 14 FROM tab0 AS cor0
----
-1358

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6366
SELECT ALL COUNT( * ) col0 FROM tab2 AS cor0 WHERE col2 * - CAST( NULL AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6366
SELECT ALL COUNT ( * ) col0 FROM tab2 AS cor0 WHERE col2 * - CAST ( NULL AS INTEGER ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT ALL 93 * MIN( - 68 ) FROM tab0 AS cor0
----
-6324

skipif mysql # not compatible
query I rowsort label-6367
SELECT ALL 93 * MIN ( - 68 ) FROM tab0 AS cor0
----
-6324

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6371
SELECT col0 + 49 AS col2 FROM tab2 AS cor0 WHERE CAST( + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6371
SELECT col0 + 49 AS col2 FROM tab2 AS cor0 WHERE CAST ( + col2 AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6372
SELECT ALL col1 DIV 92 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6372
SELECT ALL col1 / 92 FROM tab1 AS cor0
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6374
SELECT ALL + 1 + - 44 DIV + col2 AS col0 FROM tab0 cor0
----
-3
1
1

skipif mysql # not compatible
query I rowsort label-6374
SELECT ALL + 1 + - 44 / + col2 AS col0 FROM tab0 cor0
----
-3
1
1

query I rowsort
SELECT ALL - col0 + - col1 * - 94 AS col0 FROM tab2 AS cor0
----
4748
6223
7174

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

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

skipif mysql # not compatible
query I rowsort label-6377
SELECT DISTINCT 66 + - + SUM ( DISTINCT - col2 ) FROM tab1
----
289

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

query I rowsort
SELECT DISTINCT ( col2 ) + + col1 FROM tab1
----
110
115
64

query I rowsort
SELECT - ( - col2 ) * 82 FROM tab1
----
4838
5576
7872

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6381
SELECT ALL ( - + col1 ) * CAST( 51 AS SIGNED ) - + 98 DIV 41 AS col1 FROM tab0
----
-1073
-4133
-53

skipif mysql # not compatible
query I rowsort label-6381
SELECT ALL ( - + col1 ) * CAST ( 51 AS INTEGER ) - + 98 / 41 AS col1 FROM tab0
----
-1073
-4133
-53

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 + col0 >= ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 12 * - + col1 * col2 FROM tab1
----
16128
3540
38352

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6384
SELECT ALL - COUNT( * ) + + CAST( NULL AS DECIMAL ) * SUM( ALL + col1 + - col2 * + col2 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6384
SELECT ALL - COUNT ( * ) + + CAST ( NULL AS REAL ) * SUM ( ALL + col1 + - col2 * + col2 ) AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6385
SELECT ALL 0 DIV + 83 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6385
SELECT ALL 0 / + 83 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 * col1 FROM tab0 WHERE ( ( col1 ) * + col0 ) BETWEEN + col2 AND ( - col2 * - col2 )
----
1215

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6389
SELECT col2 * + ( - CAST( - col2 AS SIGNED ) ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-6389
SELECT col2 * + ( - CAST ( - col2 AS INTEGER ) ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
100
2209
9801

query I rowsort
SELECT + col2 + + col0 * 84 FROM tab2 AS cor0
----
3887
5416
6358

query I rowsort
SELECT - 36 * col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-1656
-2304
-2700

query III rowsort
SELECT * FROM tab0 cor0 WHERE 91 <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 57 * + + 9 + + col2 col2 FROM tab2
----
-23575
-32792
-38417

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

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

query I rowsort
SELECT col1 * 91 + 50 FROM tab1
----
1324
4327
505

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE 69 > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6399
SELECT ALL 98 DIV + SUM( - 87 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6399
SELECT ALL 98 / + SUM ( - 87 ) AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL + 67 * col0 FROM tab0
----
1005
5829
6499

query I rowsort
SELECT + 94 * 67 AS col1 FROM tab0 AS cor0
----
6298
6298
6298

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT - COUNT( * ) * + 77 AS col2 FROM tab2 AS cor0 WHERE NOT - 23 IS NULL
----
-231

skipif mysql # not compatible
query I rowsort label-6402
SELECT - COUNT ( * ) * + 77 AS col2 FROM tab2 AS cor0 WHERE NOT - 23 IS NULL
----
-231

query II rowsort
SELECT DISTINCT col1 AS col0, - col1 * + col0 - - 80 FROM tab1 AS cor0
----
14
-634
47
-4197
5
-345

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT + SUM( - 55 ) FROM tab0 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-6406
SELECT + SUM ( - 55 ) FROM tab0 AS cor0
----
-165

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

query II rowsort
SELECT ALL 9 AS col1, - col1 * - col1 FROM tab2 AS cor0
----
9
2601
9
4489
9
5929

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT + COUNT( * ) * + SUM( + col0 ) FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-6410
SELECT + COUNT ( * ) * + SUM ( + col0 ) FROM tab1
----
681

query I rowsort
SELECT ALL col1 * + col0 + + col2 FROM tab1 WHERE NOT + - 94 NOT BETWEEN 96 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + 59 AS col2 FROM tab1 WHERE NOT - - 57 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( 42 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT DISTINCT + MAX( DISTINCT - 87 ) AS col0 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-6415
SELECT DISTINCT + MAX ( DISTINCT - 87 ) AS col0 FROM tab1
----
-87

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( - col1 ) < ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6417
SELECT + 34 + - - 93 DIV + 67 AS col1 FROM tab0 AS cor0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-6417
SELECT + 34 + - - 93 / + 67 AS col1 FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT 97 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT ALL - + 54 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

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

query I rowsort
SELECT + - 22 * + + 22 AS col2 FROM tab2 cor0
----
-484
-484
-484

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

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

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

query I rowsort
SELECT + col2 * + 93 + - 21 * col0 - col2 FROM tab0 AS cor0
----
-907
4009
7071

query I rowsort
SELECT DISTINCT - 35 AS col0 FROM tab2 AS cor0
----
-35

query I rowsort
SELECT 12 AS col2 FROM tab1 AS cor0 WHERE ( col2 ) > ( ( + col1 ) )
----
12
12
12

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

skipif mysql # not compatible
query I rowsort label-6427
SELECT + ( + ( + MAX ( ALL - CAST ( NULL AS INTEGER ) ) ) ) + MAX ( + col1 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 65 + - - 83 FROM tab2 WHERE ( NULL ) < ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6429
SELECT DISTINCT - CAST( NULL AS SIGNED ), - col2 FROM tab1 WHERE - col1 IS NULL
----

skipif mysql # not compatible
query II rowsort label-6429
SELECT DISTINCT - CAST ( NULL AS INTEGER ), - col2 FROM tab1 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6430
SELECT - 22 + CAST( - + 42 AS SIGNED ) + - + col2 col0 FROM tab1
----
-123
-132
-160

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6430
SELECT - 22 + CAST ( - + 42 AS INTEGER ) + - + col2 col0 FROM tab1
----
-123
-132
-160

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6431
SELECT DISTINCT ( 30 ) + - + CAST( NULL AS DECIMAL ) / 26, 11 * - col1 AS col0 FROM tab0
----
NULL
-11
NULL
-231
NULL
-891

skipif mysql # not compatible
query II rowsort label-6431
SELECT DISTINCT ( 30 ) + - + CAST ( NULL AS REAL ) / 26, 11 * - col1 AS col0 FROM tab0
----
NULL
-11
NULL
-231
NULL
-891

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

query I rowsort
SELECT DISTINCT - 63 + + col1 AS col2 FROM tab0
----
-42
-62
18

query II rowsort
SELECT ALL col2 + - col0 AS col1, - col0 + + - 36 AS col0 FROM tab2
----
-17
-111
-23
-82
-24
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6435
SELECT ALL - COUNT( ALL col1 ) * 61 + + CAST( NULL AS SIGNED ) FROM tab1 WHERE - 90 IN ( + ( - col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6435
SELECT ALL - COUNT ( ALL col1 ) * 61 + + CAST ( NULL AS INTEGER ) FROM tab1 WHERE - 90 IN ( + ( - col2 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT - MAX( DISTINCT - col1 ) * + 93 AS col2 FROM tab2
----
4743

skipif mysql # not compatible
query I rowsort label-6436
SELECT - MAX ( DISTINCT - col1 ) * + 93 AS col2 FROM tab2
----
4743

query I rowsort
SELECT ALL - 41 * + 24 - + col2 + - - 20 FROM tab0
----
-1011
-1063
-974

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 87 col0 FROM tab1
----
-5133
-5916
-8352

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 55 + + ( + ( + 67 ) ) col1 FROM tab1 AS cor0
----
-3178
-3673
-5213

query I rowsort
SELECT ( 32 ) * + col1 AS col0 FROM tab1 AS cor0
----
1504
160
448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6442
SELECT ALL - ( MIN( DISTINCT - + col0 ) ) FROM tab1 WHERE NOT + - col1 - - CAST( NULL AS SIGNED ) IS NOT NULL
----
91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6444
SELECT ALL col0 DIV - + 71 AS col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL col0 / - + 71 AS col2 FROM tab1 AS cor0
----
-1
-1
0

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

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

query I rowsort
SELECT + 60 * + - col1 * 1 AS col1 FROM tab2 AS cor0
----
-3060
-4020
-4620

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

query I rowsort
SELECT ALL - 30 * - col2 FROM tab2
----
1200
1740
690

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - 88 NOT IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6451
SELECT CAST( - 38 AS SIGNED ) * col2 FROM tab0
----
-1786
-3762
-380

skipif mysql # not compatible
query I rowsort label-6451
SELECT CAST ( - 38 AS INTEGER ) * col2 FROM tab0
----
-1786
-3762
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT MAX( ( + col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-6452
SELECT MAX ( ( + col0 ) ) FROM tab1
----
91

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

skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL - MIN ( - col1 ) FROM tab1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-6454
SELECT col0 DIV 16 AS col2 FROM tab1
----
3
5
5

skipif mysql # not compatible
query I rowsort label-6454
SELECT col0 / 16 AS col2 FROM tab1
----
3
5
5

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 NOT BETWEEN 85 + 64 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 * - col2 + - 72 FROM tab2 AS cor0
----
2488
4278
986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6458
SELECT ALL + col0 FROM tab0 WHERE ( NOT + 90 * - col0 + 64 > + CAST( NULL AS SIGNED ) * + col1 + + col2 )
----

skipif mysql # not compatible
query I rowsort label-6458
SELECT ALL + col0 FROM tab0 WHERE ( NOT + 90 * - col0 + 64 > + CAST ( NULL AS INTEGER ) * + col1 + + col2 )
----

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

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

skipif mysql # not compatible
query I rowsort label-6460
SELECT DISTINCT + MAX ( + ( - 64 ) ) FROM tab0
----
-64

query I rowsort
SELECT - - col0 * + col2 + + col1 AS col1 FROM tab2 AS cor0
----
1109
2637
4417

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6463
SELECT DISTINCT MIN( ALL + - col1 ) + + COUNT( * ), + ( MAX( - col2 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> - CAST( + + CAST( - + 90 AS SIGNED ) AS DECIMAL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6463
SELECT DISTINCT MIN ( ALL + - col1 ) + + COUNT ( * ), + ( MAX ( - col2 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> - CAST ( + + CAST ( - + 90 AS INTEGER ) AS REAL )
----
NULL
NULL

query I rowsort
SELECT col1 + - col2 - - col1 AS col1 FROM tab2 AS cor0
----
114
76
79

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - 26 * col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= + col1 + - + col2
----

query I rowsort
SELECT ALL ( - - 69 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6469
SELECT * FROM tab2 AS cor0 WHERE col0 / - - col2 - - - col2 + CAST( - 10 AS SIGNED ) * + CAST( NULL AS SIGNED ) IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-6469
SELECT * FROM tab2 AS cor0 WHERE col0 / - - col2 - - - col2 + CAST ( - 10 AS INTEGER ) * + CAST ( NULL AS INTEGER ) IN ( col1 )
----

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

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

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

query I rowsort
SELECT DISTINCT 58 + - col0 AS col2 FROM tab1
----
-27
-33
7

query I rowsort
SELECT DISTINCT 85 - - col2 FROM tab0
----
132
184
95

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

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

query I rowsort
SELECT DISTINCT + col0 + - 17 FROM tab0
----
-2
70
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT ALL + COUNT( * ) - - SUM( ALL col1 ) FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-6476
SELECT ALL + COUNT ( * ) - - SUM ( ALL col1 ) FROM tab2
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT DISTINCT MIN( ALL - col2 ) FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-6477
SELECT DISTINCT MIN ( ALL - col2 ) FROM tab2 cor0
----
-58

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE col1 = col0
----

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

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

query I rowsort
SELECT + 57 * + ( 43 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL < - 9
----

query I rowsort
SELECT DISTINCT - ( - + col0 ) * + col0 * + 49 * - ( - col1 ) AS col0 FROM tab0 AS cor0
----
461041
7788501
893025

query I rowsort
SELECT ALL + col0 * 52 * - 96 FROM tab0
----
-434304
-484224
-74880

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

query I rowsort
SELECT DISTINCT - - 72 * + 0 AS col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col0, col2 AS col0 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6486
SELECT DISTINCT + CAST( + - SUM( + col0 ) AS SIGNED ) * + - 30 AS col2 FROM tab1 AS cor0
----
6810

skipif mysql # not compatible
query I rowsort label-6486
SELECT DISTINCT + CAST ( + - SUM ( + col0 ) AS INTEGER ) * + - 30 AS col2 FROM tab1 AS cor0
----
6810

query I rowsort
SELECT - + ( + - 99 ) FROM tab1 cor0
----
99
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6488
SELECT DISTINCT * FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN ( + 98 + + ( + ( + ( - col0 ) ) ) / col0 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-6488
SELECT DISTINCT * FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN ( + 98 + + ( + ( + ( - col0 ) ) ) / col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT - + col1 * + 96 FROM tab2 AS cor0
----
-4896
-6432
-7392

query I rowsort
SELECT DISTINCT - 48 * col1 FROM tab2 AS cor0
----
-2448
-3216
-3696

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

query I rowsort
SELECT ALL - + 46 + - col2 AS col0 FROM tab1 AS cor0
----
-105
-114
-142

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 / + 64 BETWEEN - - col0 + + 35 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( col1 ) + 60 FROM tab0
----
-21
39
59

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 BETWEEN ( NULL ) AND 40
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6497
SELECT - COUNT ( + 90 ) col1 FROM tab0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT ALL + col0 * + 90 + 68 + - col1 FROM tab1 WHERE NOT - + 57 * - - col0 IS NULL
----
4644
7713
8211

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT ALL SUM( - ( col2 ) ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL SUM ( - ( col2 ) ) FROM tab0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6501
SELECT DISTINCT col2 * + col1, CAST( NULL AS SIGNED ) / - - 36 * + col1 AS col2, + + ( - col2 ) col2 FROM tab2 AS cor0
----
9 values hashing to 2bdbe169ee8a5070238270a41f2e329d

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-6501
SELECT DISTINCT col2 * + col1, CAST ( NULL AS INTEGER ) / - - 36 * + col1 AS col2, + + ( - col2 ) col2 FROM tab2 AS cor0
----
9 values hashing to 2bdbe169ee8a5070238270a41f2e329d

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT - COUNT( * ) * + 88 + - 8 + - + COUNT( * ) + + 68 AS col2 FROM tab1 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-6502
SELECT - COUNT ( * ) * + 88 + - 8 + - + COUNT ( * ) + + 68 AS col2 FROM tab1 AS cor0
----
-207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 39 * - col2 + - col0 col0 FROM tab1
----
2131
2470
3642

query I rowsort
SELECT DISTINCT ( + 56 ) + + col1 * - col1 AS col2 FROM tab0
----
-385
-6505
55

query I rowsort
SELECT ALL 77 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT - ( - - ( - - col2 ) ) - - - col2 AS col2 FROM tab0 cor0
----
-198
-20
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-6507
SELECT + + col2 - col1 + + - col0 - - - col1 + col2 DIV 41 AS col2 FROM tab1 AS cor0
----
-116
-35
19

skipif mysql # not compatible
query I rowsort label-6507
SELECT + + col2 - col1 + + - col0 - - - col1 + col2 / 41 AS col2 FROM tab1 AS cor0
----
-116
-35
19

query I rowsort
SELECT 59 + + + col1 AS col2 FROM tab2 AS cor0
----
110
126
136

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 8 * - - col0 / - - col0 * - col0 > + col2 * - + col2 * + + col1
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6511
SELECT + COUNT( * ) + 34 AS col2, - MAX( ALL - col1 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
37
5

skipif mysql # not compatible
query II rowsort label-6511
SELECT + COUNT ( * ) + 34 AS col2, - MAX ( ALL - col1 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
37
5

query I rowsort
SELECT ALL + col2 + + - col1 + 98 FROM tab0 AS cor0
----
196
64
87

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 + - col2 col2 FROM tab0 AS cor0
----
-23
-75
14

query I rowsort
SELECT DISTINCT - 33 AS col0 FROM tab1 cor0
----
-33

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT ALL + col2 * 29 FROM tab2 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL + col2 - col1 * 9 - + col1 + + 5 AS col1 FROM tab1
----
-39
-397
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6519
SELECT + CAST( col0 AS SIGNED ), - 80 col2 FROM tab0
----
15
-80
87
-80
97
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6519
SELECT + CAST ( col0 AS INTEGER ), - 80 col2 FROM tab0
----
15
-80
87
-80
97
-80

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

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( + 64 ) IS NULL AND ( NULL ) <= + col1 + col2 / - + col2 - + + ( + + col2 ) + - + col0 + - - 28 - 90 * + col2 * col0 * + ( col2 )
----

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

query I rowsort
SELECT ALL col0 * - 15 - col1 AS col0 FROM tab2 AS cor0
----
-1037
-1192
-741

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6525
SELECT DISTINCT - - 96 * - - CAST( + - ( ( - COUNT( * ) ) ) AS SIGNED ) FROM tab2 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-6525
SELECT DISTINCT - - 96 * - - CAST ( + - ( ( - COUNT ( * ) ) ) AS INTEGER ) FROM tab2 AS cor0
----
288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6526
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, + 42 + - - SUM( ALL col2 ) FROM tab1 cor0
----
NULL
265

skipif mysql # not compatible
query II rowsort label-6526
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, + 42 + - - SUM ( ALL col2 ) FROM tab1 cor0
----
NULL
265

query I rowsort
SELECT ALL - 60 * - - col1 AS col2 FROM tab1 AS cor0
----
-2820
-300
-840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6528
SELECT + + CAST( ( + - 36 ) AS SIGNED ) + + col0 + - col2 + + + col2 * 16 FROM tab1 AS cor0
----
1075
1455
934

skipif mysql # not compatible
query I rowsort label-6528
SELECT + + CAST ( ( + - 36 ) AS INTEGER ) + + col0 + - col2 + + + col2 * 16 FROM tab1 AS cor0
----
1075
1455
934

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

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

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

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

query I rowsort
SELECT ALL - col2 + + 74 + + + 75 AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 + + - col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < - ( - col0 ) + + 86
----

query I rowsort
SELECT - - col2 FROM tab1 AS cor0 WHERE NOT + 47 - - ( + 56 ) IS NULL
----
59
68
96

query I rowsort
SELECT ALL ( + 84 ) FROM tab1 cor0
----
84
84
84

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

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

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

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

query I rowsort
SELECT ALL + col1 + + - ( - 50 ) * + col2 AS col1 FROM tab1
----
2955
3447
4814

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

query II rowsort
SELECT ALL 32 AS col2, 92 FROM tab2
----
32
92
32
92
32
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT + 8 * + COUNT( * ) AS col0 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-6542
SELECT + 8 * + COUNT ( * ) AS col0 FROM tab0
----
24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT ALL - SUM( ALL + - col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL - SUM ( ALL + - col0 ) AS col1 FROM tab2
----
185

query II rowsort
SELECT DISTINCT ( col2 ) + + + col2 * 63, + col0 FROM tab2 cor0
----
1472
46
2560
64
3712
75

query II rowsort
SELECT ALL - - 30 + col0 * - col1, col2 FROM tab2 AS cor0 WHERE col1 > - col0
----
-2316
23
-4898
40
-4995
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6547
SELECT DISTINCT - + MAX( + col1 ) DIV - COUNT( * ) FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-6547
SELECT DISTINCT - + MAX ( + col1 ) / - COUNT ( * ) FROM tab2 AS cor0
----
25

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 34 >= + col1 + - 36
----
87
21
10
97
1
99

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

query I rowsort
SELECT ( col1 ) + + 33 FROM tab2
----
100
110
84

query II rowsort
SELECT - col0 AS col1, col1 - - 58 + - + col2 + + + col2 / + col1 FROM tab1 AS cor0 WHERE + col0 >= + - col2 * + col2 * - - col1 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6553
SELECT DISTINCT + 76 DIV col1 * - 8 AS col1 FROM tab1 AS cor0
----
-120
-40
-8

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT + 76 / col1 * - 8 AS col1 FROM tab1 AS cor0
----
-120
-40
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6554
SELECT ALL 30 DIV - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6554
SELECT ALL 30 / - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-10

query I rowsort
SELECT - col2 + col1 AS col1 FROM tab2 AS cor0 WHERE 16 IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6557
SELECT DISTINCT + - col0 DIV + col1 - ( + col1 ) FROM tab1 AS cor0
----
-17
-22
-48

skipif mysql # not compatible
query I rowsort label-6557
SELECT DISTINCT + - col0 / + col1 - ( + col1 ) FROM tab1 AS cor0
----
-17
-22
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT DISTINCT MAX( ALL col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT MAX ( ALL col2 ) FROM tab1 AS cor0
----
96

query II rowsort
SELECT ALL ( - - 9 ) + - + col2, + col1 AS col0 FROM tab1
----
-50
5
-59
47
-87
14

query I rowsort
SELECT - col0 * + + col1 - + 73 FROM tab2
----
-2419
-5001
-5098

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6561
SELECT ALL - COUNT( * ), - 84 DIV - 64 AS col1 FROM tab0
----
-3
1

skipif mysql # not compatible
query II rowsort label-6561
SELECT ALL - COUNT ( * ), - 84 / - 64 AS col1 FROM tab0
----
-3
1

query I rowsort
SELECT ALL 12 * + + 7 FROM tab2
----
84
84
84

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 27 col0 FROM tab0
----
1269
2673
270

query II rowsort
SELECT col0, col0 * + 46 FROM tab2
----
46
2116
64
2944
75
3450

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

query I rowsort
SELECT ALL col1 FROM tab1 WHERE + col2 NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6568
SELECT DISTINCT 51 col0, COUNT( * ) FROM tab1
----
51
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6568
SELECT DISTINCT 51 col0, COUNT ( * ) FROM tab1
----
51
3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - + 34 col1 FROM tab1
----
1598
170
476

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6571
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - 61 > + + col2 + + CAST( - ( col1 ) AS DECIMAL ) + - + 22 / col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6571
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - 61 > + + col2 + + CAST ( - ( col1 ) AS REAL ) + - + 22 / col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT ALL - - col2 + + + col1 AS col0 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6574
SELECT * FROM tab0 AS cor0 WHERE NOT - 86 NOT IN ( - - CAST( NULL AS SIGNED ), + col1 )
----

skipif mysql # not compatible
query III rowsort label-6574
SELECT * FROM tab0 AS cor0 WHERE NOT - 86 NOT IN ( - - CAST ( NULL AS INTEGER ), + col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6575
SELECT ALL - col0 + - col0 + + col0 * CAST( NULL AS DECIMAL ) / - col1 / col2 * - col1 + + 99 * + 60 / - 31 + - col0 * - 88 * 43 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL - col0 + - col0 + + col0 * CAST ( NULL AS REAL ) / - col1 / col2 * - col1 + + 99 * + 60 / - 31 + - col0 * - 88 * 43 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT - ( 23 ) AS col1 FROM tab0 cor0
----
-23
-23
-23

query I rowsort
SELECT ( - - col2 ) * col2 * - col1 + - col2 AS col1 FROM tab2
----
-123240
-225446
-27002

query I rowsort
SELECT col2 * - 38 + + col2 AS col0 FROM tab2
----
-1480
-2146
-851

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6580
SELECT DISTINCT col2 * - + CAST( - col0 AS SIGNED ) AS col0 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-6580
SELECT DISTINCT col2 * - + CAST ( - col0 AS INTEGER ) AS col0 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT + COUNT( * ) + + 56 - MAX( - 21 ) AS col2 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-6581
SELECT + COUNT ( * ) + + 56 - MAX ( - 21 ) AS col2 FROM tab0 AS cor0
----
80

query II rowsort
SELECT - 53 * - 48 * 0, + col1 * + col0 AS col2 FROM tab0 AS cor0
----
0
1215
0
1827
0
97

query I rowsort
SELECT ALL - 99 + - col0 + - + col1 AS col0 FROM tab0 AS cor0
----
-195
-197
-207

query I rowsort
SELECT DISTINCT + + 44 + 87 + col2 FROM tab2 cor0
----
154
171
189

query I rowsort
SELECT ALL 6 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query III rowsort
SELECT ALL - col0 - + col2 AS col0, ( - col2 ), - col2 FROM tab2
----
9 values hashing to 8ca97dbce400a9a29661ea099c363aa9

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT ALL + + COUNT( * ) AS col1 FROM tab0 WHERE - col2 BETWEEN NULL AND col2 / + ( 18 ) + col1 + - 37 * - + col0 / 18 + + 21
----
0

skipif mysql # not compatible
query I rowsort label-6587
SELECT ALL + + COUNT ( * ) AS col1 FROM tab0 WHERE - col2 BETWEEN NULL AND col2 / + ( 18 ) + col1 + - 37 * - + col0 / 18 + + 21
----
0

query I rowsort
SELECT DISTINCT - - 37 - - col1 FROM tab2 AS cor0
----
104
114
88

query I rowsort
SELECT + - col1 + - + col2 AS col0 FROM tab2 AS cor0
----
-117
-125
-74

query II rowsort
SELECT DISTINCT + 52 AS col1, ( col1 ) FROM tab2 AS cor0
----
52
51
52
67
52
77

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

query I rowsort
SELECT DISTINCT col2 * + 58 AS col0 FROM tab1
----
3422
3944
5568

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

query I rowsort
SELECT ALL 9 * - col2 AS col2 FROM tab0
----
-423
-891
-90

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6597
SELECT - + col1 * - - 9 - 32 DIV 50 * - 63 FROM tab2 AS cor0
----
-459
-603
-693

skipif mysql # not compatible
query I rowsort label-6597
SELECT - + col1 * - - 9 - 32 / 50 * - 63 FROM tab2 AS cor0
----
-459
-603
-693

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - col0 + + - 27 FROM tab1 AS cor0
----
-112
-118
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6607
SELECT CAST( + col2 AS SIGNED ) FROM tab2 cor0 WHERE NULL IS NULL AND NOT ( NULL ) IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6607
SELECT CAST ( + col2 AS INTEGER ) FROM tab2 cor0 WHERE NULL IS NULL AND NOT ( NULL ) IS NOT NULL
----
23
40
58

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

query I rowsort
SELECT ALL col0 * - 98 FROM tab1 AS cor0
----
-4998
-8330
-8918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6610
SELECT + 6 * col0 + CAST( col1 AS SIGNED ) * - + col2 AS col2 FROM tab1 AS cor0
----
-1038
-2650
215

skipif mysql # not compatible
query I rowsort label-6610
SELECT + 6 * col0 + CAST ( col1 AS INTEGER ) * - + col2 AS col2 FROM tab1 AS cor0
----
-1038
-2650
215

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * + 27 * - col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 / + ( col2 ) < col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( + + 78 ) + - 59 FROM tab1
----
19
19
19

query I rowsort
SELECT DISTINCT 82 + - col2 + col0 - - col2 + - 9 AS col0 FROM tab0
----
160
170
88

query II rowsort
SELECT ALL - col2 + + col0, col0 FROM tab0
----
-2
97
-32
15
77
87

query I rowsort
SELECT ALL 27 * + 32 AS col0 FROM tab2
----
864
864
864

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT ALL MAX( - 68 ) + - COUNT( * ) FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-6617
SELECT ALL MAX ( - 68 ) + - COUNT ( * ) FROM tab2
----
-71

query I rowsort
SELECT DISTINCT col0 * + ( - + col0 ) AS col2 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6619
SELECT - 7 FROM tab2 AS cor0 WHERE - col2 / 29 * CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-6619
SELECT - 7 FROM tab2 AS cor0 WHERE - col2 / 29 * CAST ( NULL AS INTEGER ) < NULL
----

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

query I rowsort
SELECT ALL col2 + ( 99 ) FROM tab1
----
158
167
195

onlyif mysql # DIV for integer division: 
query I rowsort label-6622
SELECT DISTINCT col0 - + - col0 + + col1 + - 96 + - + col2 * - col0 DIV + - col0 AS col1 FROM tab0
----
-32
0
89

skipif mysql # not compatible
query I rowsort label-6622
SELECT DISTINCT col0 - + - col0 + + col1 + - 96 + - + col2 * - col0 / + - col0 AS col1 FROM tab0
----
-32
0
89

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

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

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

query II rowsort
SELECT + 21 AS col0, 68 AS col1 FROM tab1 AS cor0
----
21
68
21
68
21
68

query I rowsort
SELECT ALL - 98 * - 89 FROM tab1 AS cor0
----
8722
8722
8722

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

skipif mysql # not compatible
query I rowsort label-6628
SELECT DISTINCT ( + col2 ) * + CAST ( NULL AS REAL ) * + - 9 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( col2 ) * + + 33 FROM tab0
----
1551
3267
330

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT + 33 * COUNT( * ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-6630
SELECT + 33 * COUNT ( * ) FROM tab2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6631
SELECT col2 DIV 38 DIV - + 93 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6631
SELECT col2 / 38 / - + 93 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL 73 * + col1 AS col1 FROM tab2
----
3723
4891
5621

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + 23 > NULL
----

query I rowsort
SELECT + col1 * + 30 FROM tab1
----
1410
150
420

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6636
SELECT DISTINCT 0 DIV + col2 * col0 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6636
SELECT DISTINCT 0 / + col2 * col0 AS col1 FROM tab1
----
0

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

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT 4 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT ALL + COUNT( * ) * 62 col0 FROM tab0
----
186

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

query I rowsort
SELECT DISTINCT + 47 FROM tab2 cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6641
SELECT DISTINCT - + 93 AS col0, col2 * + + CAST( NULL AS SIGNED ) + - col2 FROM tab0 cor0
----
-93
NULL

skipif mysql # not compatible
query II rowsort label-6641
SELECT DISTINCT - + 93 AS col0, col2 * + + CAST ( NULL AS INTEGER ) + - col2 FROM tab0 cor0
----
-93
NULL

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

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

query II rowsort
SELECT + col2, col1 * + - col1 AS col0 FROM tab2 AS cor0
----
23
-2601
40
-5929
58
-4489

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

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

query II rowsort
SELECT col2 * + col0, - col2 AS col0 FROM tab1
----
4896
-96
5015
-59
6188
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 86 ) * 42 col0 FROM tab2 cor0
----
-3612
-3612
-3612

onlyif mysql # DIV for integer division: 
query I rowsort label-6648
SELECT ( - col0 ) DIV - col0 - - 47 AS col2 FROM tab1 AS cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-6648
SELECT ( - col0 ) / - col0 - - 47 AS col2 FROM tab1 AS cor0
----
48
48
48

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

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

query II rowsort
SELECT col1 + + col2 AS col2, col0 FROM tab0 AS cor0
----
100
97
128
15
31
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6652
SELECT 66 + - CAST( COUNT( * ) AS SIGNED ) col1 FROM tab1 AS cor0 WHERE NULL IN ( CAST( + 74 AS DECIMAL ) )
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6652
SELECT 66 + - CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab1 AS cor0 WHERE NULL IN ( CAST ( + 74 AS REAL ) )
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 + + col2 col2 FROM tab1
----
123
132
160

query I rowsort
SELECT ALL col2 + - - col0 FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT DISTINCT + ( COUNT( * ) ) + - 5 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-6655
SELECT DISTINCT + ( COUNT ( * ) ) + - 5 FROM tab1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6656
SELECT + SUM( DISTINCT - + col0 ) + + 60 DIV - MAX( - col2 ) - + + COUNT( * ) AS col2 FROM tab2
----
-186

skipif mysql # not compatible
query I rowsort label-6656
SELECT + SUM ( DISTINCT - + col0 ) + + 60 / - MAX ( - col2 ) - + + COUNT ( * ) AS col2 FROM tab2
----
-186

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

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

query I rowsort
SELECT DISTINCT - 82 + col0 AS col0 FROM tab1
----
-31
3
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 + - col0 / - ( col1 ) + - 1 >= ( + 20 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT - - col0 IS NULL
----
-51
-67
-77

query I rowsort
SELECT - 63 + col0 FROM tab2
----
-17
1
12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6662
SELECT ALL + CAST( - col0 AS SIGNED ) DIV col1 col2, 95 AS col0 FROM tab0 WHERE + col2 NOT BETWEEN 57 AND - - col1 + col0
----
-4
95
-97
95
0
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6662
SELECT ALL + CAST ( - col0 AS INTEGER ) / col1 col2, 95 AS col0 FROM tab0 WHERE + col2 NOT BETWEEN 57 AND - - col1 + col0
----
-4
95
-97
95
0
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, - col0 col1 FROM tab0
----
-1
-97
-21
-87
-81
-15

query I rowsort
SELECT col2 * + - 93 * - col2 AS col0 FROM tab2 AS cor0
----
148800
312852
49197

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6665
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) * MAX( - col0 ) + + 96 + MAX( - col0 ) / - 93 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6665
SELECT DISTINCT - + CAST ( NULL AS REAL ) * MAX ( - col0 ) + + 96 + MAX ( - col0 ) / - 93 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN + 30 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + - 76 + 23 col1 FROM tab1 AS cor0
----
-4461
-5145
-7273

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 = 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT ALL - - COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT + 27 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL - - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT + 27 > NULL
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6671
SELECT - col1 DIV - + col2 col2 FROM tab1
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6672
SELECT + ( - col1 ) DIV + - col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-6672
SELECT + ( - col1 ) / + - col2 FROM tab2
----
1
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6673
SELECT DISTINCT 97 DIV - + col0 AS col1 FROM tab0
----
-1
-6

skipif mysql # not compatible
query I rowsort label-6673
SELECT DISTINCT 97 / - + col0 AS col1 FROM tab0
----
-1
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-6674
SELECT + 36 DIV + - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6674
SELECT + 36 / + - col2 FROM tab1
----
0
0
0

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

query I rowsort
SELECT + 16 * 43 FROM tab0
----
688
688
688

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

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

query I rowsort
SELECT + - col0 * - 17 FROM tab0 cor0
----
1479
1649
255

query I rowsort
SELECT DISTINCT 72 * - - 80 FROM tab0 AS cor0
----
5760

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

query I rowsort
SELECT DISTINCT + + col1 + - - col2 + col1 FROM tab0 cor0
----
101
209
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6682
SELECT DISTINCT + - col2 AS col1, CAST( - 26 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-59
-26
-68
-26
-96
-26

skipif mysql # not compatible
query II rowsort label-6682
SELECT DISTINCT + - col2 AS col1, CAST ( - 26 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-59
-26
-68
-26
-96
-26

query II rowsort
SELECT col0, 78 FROM tab0
----
15
78
87
78
97
78

query I rowsort
SELECT col0 * + ( - ( + col0 ) ) + - + 72 FROM tab1
----
-2673
-7297
-8353

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

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

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

query I rowsort
SELECT ( - + 56 ) AS col0 FROM tab2 AS cor0 WHERE ( + 69 * + col2 IS NOT NULL )
----
-56
-56
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-6688
SELECT DISTINCT 4 DIV + col2 col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6688
SELECT DISTINCT 4 / + col2 col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 * + 47 * + 13 + - col1 - - col1 FROM tab2 AS cor0
----
14053
24440
35438

query I rowsort
SELECT ALL col0 + 86 FROM tab1 AS cor0
----
137
171
177

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

query II rowsort
SELECT - col2, - 80 * - col2 AS col0 FROM tab1 cor0
----
-59
4720
-68
5440
-96
7680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6693
SELECT - 76 + - + ( - col0 ) FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6693
SELECT - 76 + - + ( - col0 ) FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + 21 + - - col1 AS col0 FROM tab0
----
102
22
42

query II rowsort
SELECT ALL + 15 + + 68 AS col1, 76 FROM tab2
----
83
76
83
76
83
76

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab2 WHERE + 84 >= + col2
----
23
40
58

query I rowsort
SELECT + col0 - + col0 + - - col1 * - + 87 AS col0 FROM tab2
----
-4437
-5829
-6699

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6698
SELECT DISTINCT + + COUNT( * ) FROM tab1 WHERE - col0 BETWEEN + CAST( + 79 AS SIGNED ) + + col1 AND + ( - 28 )
----
0

skipif mysql # not compatible
query I rowsort label-6698
SELECT DISTINCT + + COUNT ( * ) FROM tab1 WHERE - col0 BETWEEN + CAST ( + 79 AS INTEGER ) + + col1 AND + ( - 28 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT 5 - SUM( 4 ) FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-6699
SELECT 5 - SUM ( 4 ) FROM tab2
----
-7

query I rowsort
SELECT + 54 - - - col0 FROM tab1
----
-31
-37
3

query I rowsort
SELECT 2 * - - col1 AS col2 FROM tab1
----
10
28
94

onlyif mysql # DIV for integer division: 
query II rowsort label-6702
SELECT + 16, 66 DIV + - col1 AS col2 FROM tab2
----
16
-1
16
0
16
0

skipif mysql # not compatible
query II rowsort label-6702
SELECT + 16, 66 / + - col1 AS col2 FROM tab2
----
16
-1
16
0
16
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6703
SELECT DISTINCT - COUNT ( * ) col1 FROM tab0 WHERE col0 - - 24 + + + col0 * + - col0 IS NULL
----
0

query I rowsort
SELECT - - 78 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

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

query I rowsort
SELECT ALL - + col1 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND 35
----

query I rowsort
SELECT 19 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 <> + col2 / + col0
----

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

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

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

query I rowsort
SELECT ALL - col0 * - 14 AS col2 FROM tab1 cor0
----
1190
1274
714

onlyif mysql # DIV for integer division: 
query II rowsort label-6712
SELECT col2, + col2 DIV - col2 FROM tab0 AS cor0
----
10
-1
47
-1
99
-1

skipif mysql # not compatible
query II rowsort label-6712
SELECT col2, + col2 / - col2 FROM tab0 AS cor0
----
10
-1
47
-1
99
-1

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

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

query I rowsort
SELECT DISTINCT 25 * - col1 * col1 FROM tab0
----
-11025
-164025
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-6715
SELECT + + 5 * - MAX( col2 ) * 60 col0, - 68 FROM tab0 WHERE NOT - col0 IS NOT NULL
----
NULL
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6715
SELECT + + 5 * - MAX ( col2 ) * 60 col0, - 68 FROM tab0 WHERE NOT - col0 IS NOT NULL
----
NULL
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT COUNT( * ) * + + MIN( ALL + - ( + ( + 19 ) ) ) FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-6716
SELECT COUNT ( * ) * + + MIN ( ALL + - ( + ( + 19 ) ) ) FROM tab2
----
-57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT 78 * + + MAX( ALL + col1 ) col0 FROM tab1
----
3666

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6718
SELECT 78 * + + MAX ( ALL + col1 ) col0 FROM tab1
----
3666

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT DISTINCT MAX( DISTINCT - + 77 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-6719
SELECT DISTINCT MAX ( DISTINCT - + 77 ) AS col2 FROM tab2
----
-77

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> - col0
----

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

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

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

query I rowsort
SELECT DISTINCT - 53 * + col2 * 90 * + col1 FROM tab1 AS cor0
----
-1407150
-15244920
-6410880

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

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

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

query I rowsort
SELECT DISTINCT - 83 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-83

query I rowsort
SELECT ALL col0 * 12 FROM tab2
----
552
768
900

query I rowsort
SELECT + - col1 AS col1 FROM tab0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT + col1 * + + 84 AS col2 FROM tab0
----
1764
6804
84

query I rowsort
SELECT 59 * + col0 - col2 - + 0 FROM tab1 AS cor0
----
2913
4956
5301

onlyif mysql # DIV for integer division: 
query I rowsort label-6731
SELECT DISTINCT - col1 DIV col1 + + + 62 * + col0 FROM tab1 AS cor0
----
3161
5269
5641

skipif mysql # not compatible
query I rowsort label-6731
SELECT DISTINCT - col1 / col1 + + + 62 * + col0 FROM tab1 AS cor0
----
3161
5269
5641

onlyif mysql # DIV for integer division: 
query I rowsort label-6732
SELECT DISTINCT + 90 DIV col1 * + - 59 AS col0 FROM tab1 AS cor0
----
-1062
-354
-59

skipif mysql # not compatible
query I rowsort label-6732
SELECT DISTINCT + 90 / col1 * + - 59 AS col0 FROM tab1 AS cor0
----
-1062
-354
-59

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6734
SELECT - + ( - COUNT( * ) ) * + 8 + CAST( - 56 AS SIGNED ) FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-6734
SELECT - + ( - COUNT ( * ) ) * + 8 + CAST ( - 56 AS INTEGER ) FROM tab2 AS cor0
----
-32

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

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

query I rowsort
SELECT ALL - ( - + col1 ) + - 91 + - 29 FROM tab1 AS cor0
----
-106
-115
-73

query I rowsort
SELECT DISTINCT - 40 * 61 + + - col2 FROM tab1
----
-2499
-2508
-2536

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

query I rowsort
SELECT col1 + - - col0 + col0 FROM tab2
----
143
205
217

query I rowsort
SELECT 97 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT DISTINCT - col1 * + col2 + 95 FROM tab0
----
-115
-3712
-4

query I rowsort
SELECT DISTINCT col2 - + col1 * + + col1 FROM tab1
----
-100
-2141
34

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

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

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

query II rowsort
SELECT 24 AS col0, - 23 FROM tab1 AS cor0
----
24
-23
24
-23
24
-23

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6750
SELECT - col1 AS col0, CAST( NULL AS DECIMAL ) + + - col2 AS col0 FROM tab2 WHERE NOT NULL < NULL
----

skipif mysql # not compatible
query II rowsort label-6750
SELECT - col1 AS col0, CAST ( NULL AS REAL ) + + - col2 AS col0 FROM tab2 WHERE NOT NULL < NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6752
SELECT ALL - CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-6752
SELECT ALL - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6755
SELECT - MIN ( ALL 65 ) FROM tab2 AS cor0
----
-65

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6757
SELECT - CAST( - MAX( col2 ) AS SIGNED ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6757
SELECT - CAST ( - MAX ( col2 ) AS INTEGER ) FROM tab1 AS cor0
----
96

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6759
SELECT ALL + 77 * - COUNT ( * ) col2 FROM tab0 AS cor0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT - SUM( + 56 ) FROM tab0 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-6760
SELECT - SUM ( + 56 ) FROM tab0 AS cor0
----
-168

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, 26 AS col1 FROM tab2
----
51
26
67
26
77
26

query II rowsort
SELECT col1 * - col0 * col2 AS col1, col2 AS col1 FROM tab2
----
-197120
40
-291450
58
-53958
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT + ( - 99 ) * MAX( ALL - 57 ) col2 FROM tab1
----
5643

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6765
SELECT + ( - 99 ) * MAX ( ALL - 57 ) col2 FROM tab1
----
5643

query I rowsort
SELECT DISTINCT col2 * + - col2 FROM tab0
----
-100
-2209
-9801

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

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

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

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

query I rowsort
SELECT ALL + 26 * - col0 AS col1 FROM tab1
----
-1326
-2210
-2366

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( col0, - col0 / + col0, - col0 )
----

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

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

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

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

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

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

query II rowsort
SELECT + 4 + col1 * + col0, 96 * + col1 * + col0 * col1 + - + 46 + + + col0 AS col2 FROM tab2 AS cor0
----
2350
11486016
4932
36427794
5029
32320829

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT DISTINCT - 94 + COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-85

skipif mysql # not compatible
query I rowsort label-6776
SELECT DISTINCT - 94 + COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-85

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

query I rowsort
SELECT 3 + + col2 FROM tab0
----
102
13
50

query I rowsort
SELECT col2 + - - 38 FROM tab0
----
137
48
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT + MAX( DISTINCT + + 18 ) AS col2 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-6780
SELECT + MAX ( DISTINCT + + 18 ) AS col2 FROM tab2
----
18

query I rowsort
SELECT 42 AS col2 FROM tab0 cor0
----
42
42
42

query I rowsort
SELECT ALL - 52 AS col0 FROM tab2 cor0
----
-52
-52
-52

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

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

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

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

query I rowsort
SELECT ALL col1 + - 76 FROM tab0 AS cor0
----
-55
-75
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6787
SELECT - - 9 * - COUNT( ALL - + 83 ) * + 40 + - AVG ( DISTINCT + col0 ) + + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6787
SELECT - - 9 * - COUNT ( ALL - + 83 ) * + 40 + - AVG ( DISTINCT + col0 ) + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE + col0 BETWEEN + - 56 AND col0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT MIN( - col0 ) / - COUNT( * ) * + - COUNT( * ) AS col1 FROM tab0 WHERE - col1 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6789
SELECT MIN ( - col0 ) / - COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab0 WHERE - col1 = NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 + - 82 * + + col2 FROM tab2
----
-1863
-3240
-4698

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6792
SELECT ALL - col2 * - - col0 + + 23 - - ( - - col0 ) + col0 + ( 37 ) + - 22 DIV + 94 * - + col0 * 14 * - 72 AS col1 FROM tab1
----
-4734
-4785
-5946

skipif mysql # not compatible
query I rowsort label-6792
SELECT ALL - col2 * - - col0 + + 23 - - ( - - col0 ) + col0 + ( 37 ) + - 22 / + 94 * - + col0 * 14 * - 72 AS col1 FROM tab1
----
-4734
-4785
-5946

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT - COUNT( DISTINCT + col2 ) - 27 AS col0 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-6793
SELECT - COUNT ( DISTINCT + col2 ) - 27 AS col0 FROM tab1
----
-30

query I rowsort
SELECT ALL 80 + - + col2 FROM tab1
----
-16
12
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6795
SELECT DISTINCT + 37 DIV - COUNT( * ) AS col0 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-6795
SELECT DISTINCT + 37 / - COUNT ( * ) AS col0 FROM tab0
----
-12

query II rowsort
SELECT col2 AS col0, + col2 * - 35 AS col2 FROM tab0
----
10
-350
47
-1645
99
-3465

query I rowsort
SELECT ALL col2 * col2 * - - col0 AS col1 FROM tab0
----
33135
8700
950697

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 82 * + col1 AS col1 FROM tab0 AS cor0 WHERE col1 < NULL
----

query II rowsort
SELECT DISTINCT - 10 AS col2, + ( col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6803
SELECT COUNT( * ) DIV 96 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6803
SELECT COUNT ( * ) / 96 FROM tab0
----
0

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

skipif mysql # not compatible
query I rowsort label-6804
SELECT - ( - SUM ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6805
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col2 ) * - col1 + 78 * + + col2 * + col0 + + + 66 + + col1 * + 33 NOT IN ( + - col0 + col0, ( + CAST( NULL AS DECIMAL ) ) )
----

skipif mysql # not compatible
query III rowsort label-6805
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col2 ) * - col1 + 78 * + + col2 * + col0 + + + 66 + + col1 * + 33 NOT IN ( + - col0 + col0, ( + CAST ( NULL AS REAL ) ) )
----

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

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

query I rowsort
SELECT DISTINCT + col0 * - 17 FROM tab2 AS cor0 WHERE + 82 * + 47 - + 43 * - - col2 BETWEEN + col1 AND ( NULL )
----

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

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

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

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

query I rowsort
SELECT ALL 87 + ( - + col1 ) AS col2 FROM tab1
----
40
73
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT DISTINCT 72 + - ( MIN( 68 ) ) AS col2 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-6812
SELECT DISTINCT 72 + - ( MIN ( 68 ) ) AS col2 FROM tab0
----
4

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

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

query II rowsort
SELECT col2 * col2 AS col2, 22 FROM tab0 AS cor0
----
100
22
2209
22
9801
22

query I rowsort
SELECT DISTINCT 84 * - ( + col2 ) + + - col1 FROM tab0 AS cor0
----
-4029
-8317
-861

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

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

query I rowsort
SELECT + col1 * col2 - 52 * 26 FROM tab0
----
-1142
-1253
2455

query I rowsort
SELECT ALL + - 77 * col1 AS col2 FROM tab0 AS cor0
----
-1617
-6237
-77

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT + 41 * col0 + - col2 <= + col2
----
-10
-47
-99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT ALL 45 * COUNT( * ) AS col1 FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-6821
SELECT ALL 45 * COUNT ( * ) AS col1 FROM tab0
----
135

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

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

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

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

query I rowsort
SELECT + - col0 * 18 + - 15 AS col0 FROM tab2 AS cor0
----
-1167
-1365
-843

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6828
SELECT ALL - 54 DIV + col2 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL - 54 / + col2 FROM tab2
----
-1
-2
0

query I rowsort
SELECT 15 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6831
SELECT CAST( + 59 AS SIGNED ) + col1 FROM tab1 cor0
----
106
64
73

skipif mysql # not compatible
query I rowsort label-6831
SELECT CAST ( + 59 AS INTEGER ) + col1 FROM tab1 cor0
----
106
64
73

query I rowsort
SELECT 97 + - 2 FROM tab0 AS cor0
----
95
95
95

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

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

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT - 83 = ( - 20 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT + COUNT( * ) + + - 96 AS col1 FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-6835
SELECT + COUNT ( * ) + + - 96 AS col1 FROM tab2 AS cor0
----
-93

query I rowsort
SELECT DISTINCT - 37 * - 24 * 48 FROM tab2 cor0
----
42624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6837
SELECT ALL col2 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) < + 66
----

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL col2 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) < + 66
----

query I rowsort
SELECT + ( + 65 ) * + 9 + + 28 * + 98 + - ( - col2 ) FROM tab0 AS cor0 WHERE NOT 97 < + 20
----
3339
3376
3428

query I rowsort
SELECT DISTINCT - col2 * + 27 FROM tab2 AS cor0
----
-1080
-1566
-621

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

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

query I rowsort
SELECT ALL 18 * - col2 FROM tab1 AS cor0
----
-1062
-1224
-1728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 22 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1012
-1408
-1650

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT ALL MIN( ALL col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6843
SELECT ALL MIN ( ALL col1 ) FROM tab1
----
5

query I rowsort
SELECT DISTINCT col0 + col2 - 84 AS col0 FROM tab2
----
-15
20
49

query II rowsort
SELECT DISTINCT - 98 AS col0, - col2 FROM tab0
----
-98
-10
-98
-47
-98
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-6846
SELECT col0 DIV col1, col0 + - col0 AS col1 FROM tab1
----
1
0
17
0
3
0

skipif mysql # not compatible
query II rowsort label-6846
SELECT col0 / col1, col0 + - col0 AS col1 FROM tab1
----
1
0
17
0
3
0

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

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

skipif mysql # not compatible
query I rowsort label-6848
SELECT - MAX ( + 35 ) AS col0 FROM tab2
----
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 31 + - col0 - + col1 col2 FROM tab0
----
-65
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-6850
SELECT ALL + 15 + + col0 DIV - 45 col1 FROM tab2 WHERE NOT col0 + + col2 = + col0 DIV - 4 * - + col0
----
14
14
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6850
SELECT ALL + 15 + + col0 / - 45 col1 FROM tab2 WHERE NOT col0 + + col2 = + col0 / - 4 * - + col0
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT DISTINCT MAX( DISTINCT 21 ) FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-6851
SELECT DISTINCT MAX ( DISTINCT 21 ) FROM tab0 AS cor0
----
21

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

query I rowsort
SELECT DISTINCT + col1 - + 54 FROM tab0 AS cor0
----
-33
-53
27

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

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

query II rowsort
SELECT 60 * col1 AS col2, - col2 FROM tab2 cor0
----
3060
-23
4020
-58
4620
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6856
SELECT ALL - col2 - - - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT 10 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL - col2 - - - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 10 IS NOT NULL
----

query I rowsort
SELECT - AVG ( ALL - + 61 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) > col0 * - ( - + col0 )
----
NULL

query I rowsort
SELECT col2 * + col0 + - 96 AS col2 FROM tab0 AS cor0
----
609
774
9507

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT ALL + SUM( DISTINCT 6 ) * MAX( - col0 ) FROM tab2 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-6859
SELECT ALL + SUM ( DISTINCT 6 ) * MAX ( - col0 ) FROM tab2 AS cor0
----
-276

query I rowsort
SELECT + 24 * 73 FROM tab0 AS cor0
----
1752
1752
1752

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6862
SELECT ALL col0 DIV + - col1 AS col1 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL col0 / + - col1 AS col1 FROM tab1
----
-1
-17
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6863
SELECT - ( col1 ) DIV - 37 + col0 AS col1 FROM tab1
----
51
85
92

skipif mysql # not compatible
query I rowsort label-6863
SELECT - ( col1 ) / - 37 + col0 AS col1 FROM tab1
----
51
85
92

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

query I rowsort
SELECT + ( + - 90 ) FROM tab0
----
-90
-90
-90

query II rowsort
SELECT ALL - - col1, col2 FROM tab0 cor0
----
1
99
21
10
81
47

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6867
SELECT DISTINCT - col1 / - + ( - + col0 ) col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT - COUNT( * ) * ( - 46 ) FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-6868
SELECT - COUNT ( * ) * ( - 46 ) FROM tab1 AS cor0
----
138

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT - 50 - COUNT( * ) AS col0 FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-6870
SELECT - 50 - COUNT ( * ) AS col0 FROM tab0
----
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 + - col2 * - 88 col1 FROM tab2
----
2085
3581
5165

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT ALL + 1 + - COUNT( * ) FROM tab1 WHERE 13 * col1 NOT BETWEEN NULL AND ( 1 )
----
-2

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL + 1 + - COUNT ( * ) FROM tab1 WHERE 13 * col1 NOT BETWEEN NULL AND ( 1 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT col2 > ( - 73 )
----
0

skipif mysql # not compatible
query I rowsort label-6873
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT col2 > ( - 73 )
----
0

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

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE col2 > col2 / - 10 + + col1
----
14
47
5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 NOT BETWEEN + col0 AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6877
SELECT ALL CAST( col1 AS SIGNED ) FROM tab2 WHERE NOT ( - col1 ) NOT BETWEEN 33 AND - col2
----

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL CAST ( col1 AS INTEGER ) FROM tab2 WHERE NOT ( - col1 ) NOT BETWEEN 33 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NULL > ( + col0 * 43 )
----
0

skipif mysql # not compatible
query I rowsort label-6878
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NULL > ( + col0 * 43 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT DISTINCT - MAX( - 99 ) - - 48 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-6879
SELECT DISTINCT - MAX ( - 99 ) - - 48 FROM tab2
----
147

query I rowsort
SELECT ALL col0 * - col0 FROM tab1 WHERE col0 NOT IN ( - 76 )
----
-2601
-7225
-8281

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 + + 19 * - 40 col0 FROM tab0
----
-787

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT - 23 * - COUNT( - 32 ) AS col2 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-6883
SELECT - 23 * - COUNT ( - 32 ) AS col2 FROM tab1
----
69

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 64 col1 FROM tab1 AS cor0
----
3264
5440
5824

onlyif mysql # DIV for integer division: 
query I rowsort label-6889
SELECT ALL + 20 DIV col2 AS col0 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL + 20 / col2 AS col0 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT ALL + 81 + - ( - col1 + 39 ) AS col1 FROM tab1 AS cor0
----
47
56
89

query I rowsort
SELECT 31 - col2 AS col2 FROM tab2
----
-27
-9
8

query I rowsort
SELECT DISTINCT 4 FROM tab2 WHERE ( NULL ) IS NULL
----
4

query I rowsort
SELECT + 13 + 68 * ( + 90 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 7ad38eeb23e747668c6796d553c79757

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 = ( 84 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 <> ( col0 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT MIN( 64 ) FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-6898
SELECT MIN ( 64 ) FROM tab0 AS cor0
----
64

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 col0 FROM tab2 cor0 WHERE NOT NULL < 63
----

query I rowsort
SELECT + col2 * 77 AS col2 FROM tab2 AS cor0
----
1771
3080
4466

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT + COUNT( * ) FROM tab2 cor0 WHERE NOT col1 IN ( - 14 )
----
3

skipif mysql # not compatible
query I rowsort label-6903
SELECT + COUNT ( * ) FROM tab2 cor0 WHERE NOT col1 IN ( - 14 )
----
3

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 ) IN ( col2 + + 18 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + - 50 ) FROM tab0
----
-50
-50
-50

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6908
SELECT ALL - MIN ( DISTINCT + + col2 ) col1 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT DISTINCT - 49 * + COUNT( * ) FROM tab2
----
-147

skipif mysql # not compatible
query I rowsort label-6909
SELECT DISTINCT - 49 * + COUNT ( * ) FROM tab2
----
-147

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

query I rowsort
SELECT ALL - 69 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( 47 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 68 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT ALL - col1 * col0 * - + 2 AS col0 FROM tab0 AS cor0
----
194
2430
3654

query I rowsort
SELECT + + col1 + - - col0 * - - col2 FROM tab2 AS cor0
----
1109
2637
4417

query I rowsort
SELECT ALL + col1 * col1 * + col1 - + col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
103732
2693
40

onlyif mysql # DIV for integer division: 
query I rowsort label-6917
SELECT ALL - col1 DIV ( - col1 ) AS col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6917
SELECT ALL - col1 / ( - col1 ) AS col2 FROM tab1 cor0
----
1
1
1

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

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

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

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE + 94 * + col0 * + ( - col1 * - col2 ) IS NOT NULL
----
-1
-21
-81

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

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

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

query II rowsort
SELECT ALL col2 + - col1, col1 AS col2 FROM tab1
----
21
47
54
5
82
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6924
SELECT + MIN( - CAST( + - col2 AS SIGNED ) ) col1 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6924
SELECT + MIN ( - CAST ( + - col2 AS INTEGER ) ) col1 FROM tab2
----
23

query I rowsort
SELECT DISTINCT col0 + + 17 + col2 FROM tab2
----
121
150
86

query I rowsort
SELECT col2 * 86 AS col1 FROM tab2 WHERE ( - col1 ) IS NULL
----

query I rowsort
SELECT 98 * + col0 AS col1 FROM tab2
----
4508
6272
7350

query I rowsort
SELECT DISTINCT 33 * - col2 + - col2 FROM tab0
----
-1598
-3366
-340

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

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

query I rowsort
SELECT col1 * col0 * 58 FROM tab2
----
136068
285824
291450

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT 39 - + COUNT( * ) * + COUNT( * ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-6932
SELECT 39 - + COUNT ( * ) * + COUNT ( * ) FROM tab2
----
30

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

skipif mysql # not compatible
query I rowsort label-6933
SELECT ALL + col1 / - + col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - col2 - + - 61 AS col2 FROM tab2
----
21
3
38

query I rowsort
SELECT DISTINCT col1 * 69 - - 62 FROM tab2
----
3581
4685
5375

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 62 - - + 90 * - col1 col0 FROM tab2 AS cor0
----
-4477
-5901
-6791

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE ( 45 ) > + 29 + + 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT - col0 / 24 + + 58 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT - col0 / 24 + + 58 IS NOT NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT + COUNT( DISTINCT - 12 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6941
SELECT + COUNT ( DISTINCT - 12 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT - - col0 - - 66 * + col0 + 3 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6943
SELECT + col0 * + col2 * CAST( - + col0 AS SIGNED ) FROM tab2 AS cor0
----
-163840
-326250
-48668

skipif mysql # not compatible
query I rowsort label-6943
SELECT + col0 * + col2 * CAST ( - + col0 AS INTEGER ) FROM tab2 AS cor0
----
-163840
-326250
-48668

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

query I rowsort
SELECT ALL + - 74 AS col1 FROM tab0 AS cor0
----
-74
-74
-74

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

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

query I rowsort
SELECT - + 65 * + + col2 - - - 83 * col2 * + col2 FROM tab2 AS cor0
----
-135400
-282982
-45402

query I rowsort
SELECT + 55 * col0 FROM tab2 AS cor0
----
2530
3520
4125

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6949
SELECT ALL + col1, ( + 27 ) * + CAST( NULL AS DECIMAL ) col0, 41 AS col2 FROM tab1
----
9 values hashing to 454e7ab38aa4ca98e99e9101daa0c397

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-6949
SELECT ALL + col1, ( + 27 ) * + CAST ( NULL AS REAL ) col0, 41 AS col2 FROM tab1
----
9 values hashing to 454e7ab38aa4ca98e99e9101daa0c397

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, 90 FROM tab2
----
51
90
67
90
77
90

query II rowsort
SELECT col2 AS col1, col1 * - + col1 - - + col1 FROM tab2
----
23
-2550
40
-5852
58
-4422

query I rowsort
SELECT DISTINCT ( 78 ) AS col0 FROM tab0
----
78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT + SUM( + 73 ) AS col0 FROM tab1 WHERE NOT + 1 * - ( ( - 92 ) ) <= + col2 * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6954
SELECT + SUM ( + 73 ) AS col0 FROM tab1 WHERE NOT + 1 * - ( ( - 92 ) ) <= + col2 * + col1
----
NULL

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN 99 AND ( 7 - - col2 )
----

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6960
SELECT col2 * - col0 AS col0 FROM tab0 WHERE NOT CAST( - col0 AS DECIMAL ) + + col2 BETWEEN ( + 4 * + CAST( + 22 / - 58 AS SIGNED ) ) AND NULL
----
-870

skipif mysql # not compatible
query I rowsort label-6960
SELECT col2 * - col0 AS col0 FROM tab0 WHERE NOT CAST ( - col0 AS REAL ) + + col2 BETWEEN ( + 4 * + CAST ( + 22 / - 58 AS INTEGER ) ) AND NULL
----
-870

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT ALL - 17 * COUNT( * ) + 60 * COUNT( * ) FROM tab2 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL - 17 * COUNT ( * ) + 60 * COUNT ( * ) FROM tab2 AS cor0
----
129

query I rowsort
SELECT - 83 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6966
SELECT ALL - COUNT( * ) * - ( - MAX( DISTINCT CAST( NULL AS SIGNED ) ) ) * + 72 * 69 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6966
SELECT ALL - COUNT ( * ) * - ( - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) ) * + 72 * 69 FROM tab2
----
NULL

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

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

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

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

query I rowsort
SELECT + col0 * + - col0 + col2 + - col2 AS col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT ALL + 96 + col0 FROM tab1 AS cor0
----
147
181
187

query I rowsort
SELECT col0 + + 78 AS col2 FROM tab2 cor0
----
124
142
153

query I rowsort
SELECT + - 72 + 68 FROM tab1 AS cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT COUNT( * ) + 60 AS col2 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-6974
SELECT COUNT ( * ) + 60 AS col2 FROM tab2
----
63

query II rowsort
SELECT DISTINCT + col1 - + ( - col0 ), col0 AS col1 FROM tab1
----
138
91
65
51
90
85

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6978
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT ( NULL ) <> NULL )
----
0

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

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

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

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

query I rowsort
SELECT DISTINCT - + 38 FROM tab2 cor0
----
-38

query I rowsort
SELECT DISTINCT 52 * + - 32 AS col1 FROM tab0 cor0
----
-1664

query I rowsort
SELECT ALL + 9 AS col1 FROM tab0 cor0
----
9
9
9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6984
SELECT 92 * - + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL col2 / col1 * - col2 * + col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6987
SELECT + 72 DIV - + col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6987
SELECT + 72 / - + col1 FROM tab2
----
-1
-1
0

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, - col0 * - ( col0 ) AS col2 FROM tab0 AS cor0
----
15
225
87
7569
97
9409

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT + 44 + + 75 + - ( - 11 ) * - + MIN( DISTINCT + 94 ) col1 FROM tab1
----
-915

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6992
SELECT + 44 + + 75 + - ( - 11 ) * - + MIN ( DISTINCT + 94 ) col1 FROM tab1
----
-915

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT COUNT( * ) + - 95 + MIN( ALL + col0 ) * COUNT( * ) AS col2 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-6993
SELECT COUNT ( * ) + - 95 + MIN ( ALL + col0 ) * COUNT ( * ) AS col2 FROM tab0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + - col0 col0 FROM tab2
----
-104
-133
-69

query II rowsort
SELECT DISTINCT col0 AS col2, col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # DIV for integer division: 
query II rowsort label-6996
SELECT - - ( - 73 ), - 13 + 99 DIV ( - col1 ) AS col1 FROM tab1 AS cor0
----
-73
-15
-73
-20
-73
-32

skipif mysql # not compatible
query II rowsort label-6996
SELECT - - ( - 73 ), - 13 + 99 / ( - col1 ) AS col1 FROM tab1 AS cor0
----
-73
-15
-73
-20
-73
-32

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 62 + - + 41 ) < - 4
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( col1 ) AND 43
----

query I rowsort
SELECT DISTINCT + + 43 FROM tab1 AS cor0
----
43

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 60 = NULL
----

query I rowsort
SELECT ALL - 88 FROM tab0 cor0
----
-88
-88
-88

query I rowsort
SELECT 83 - 78 FROM tab1
----
5
5
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT MIN( DISTINCT - col0 ) - + 30 AS col1 FROM tab0
----
-127

skipif mysql # not compatible
query I rowsort label-7004
SELECT MIN ( DISTINCT - col0 ) - + 30 AS col1 FROM tab0
----
-127

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + col0 col2 FROM tab2
----
-17
-23
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + ( col2 ) col0 FROM tab2
----
28
37
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT 32 - - MAX( DISTINCT col0 ) AS col1 FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-7008
SELECT 32 - - MAX ( DISTINCT col0 ) AS col1 FROM tab0
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7009
SELECT * FROM tab2 cor0 WHERE NOT CAST( + - 65 AS SIGNED ) * + col2 + + 27 * 59 + - ( - + col1 ) NOT BETWEEN + 44 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7009
SELECT * FROM tab2 cor0 WHERE NOT CAST ( + - 65 AS INTEGER ) * + col2 + + 27 * 59 + - ( - + col1 ) NOT BETWEEN + 44 AND ( NULL )
----

query I rowsort
SELECT ALL - + 56 * - 77 FROM tab0 AS cor0
----
4312
4312
4312

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 69 > + 55
----

query II rowsort
SELECT ALL - 30 * - col0 + + col0 AS col1, + col2 AS col1 FROM tab2 AS cor0
----
1426
23
1984
40
2325
58

query II rowsort
SELECT ALL - col0 AS col0, - col0 FROM tab2 cor0 WHERE NULL <= col2
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7017
SELECT - - 92 AS col0, + COUNT( - - ( col1 ) ) AS col0 FROM tab1 AS cor0
----
92
3

skipif mysql # not compatible
query II rowsort label-7017
SELECT - - 92 AS col0, + COUNT ( - - ( col1 ) ) AS col0 FROM tab1 AS cor0
----
92
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN NULL AND col0
----
15
81
47

query II rowsort
SELECT 47, + 1 + + 13 AS col0 FROM tab0 AS cor0
----
47
14
47
14
47
14

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7020
SELECT DISTINCT + col0 DIV col1 + + col0 * - CAST( - 40 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3484
3977
600

skipif mysql # not compatible
query I rowsort label-7020
SELECT DISTINCT + col0 / col1 + + col0 * - CAST ( - 40 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3484
3977
600

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 * - 26 - - 16 * + + 94 col2 FROM tab2 AS cor0 WHERE ( NULL ) IN ( + ( - col0 ), col2 * + - col2 / + col0, + 87 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + + col0 + - col2 col0 FROM tab1 AS cor0
----
-141
-33
-45

query I rowsort
SELECT ALL 14 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT - 62 * + - col2 + + col1 AS col1 FROM tab1 AS cor0
----
3663
4263
5966

query I rowsort
SELECT + 2 + 28 FROM tab2 AS cor0
----
30
30
30

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

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

query I rowsort
SELECT - col0 * + 93 + + - ( - - col2 ) AS col2 FROM tab0 AS cor0
----
-1442
-8101
-9120

query I rowsort
SELECT 8 + + col2 FROM tab1 AS cor0
----
104
67
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - col2 col2 FROM tab0 AS cor0
----
-100
-2209
-9801

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7033
SELECT - MAX( ALL + - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 WHERE NULL IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7033
SELECT - MAX ( ALL + - CAST ( NULL AS REAL ) ) AS col2 FROM tab1 WHERE NULL IN ( col1 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 27 col2, col1 AS col0 FROM tab2
----
27
51
27
67
27
77

query I rowsort
SELECT ALL 79 + + col1 + col1 AS col1 FROM tab1
----
107
173
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7036
SELECT + 47 AS col0, col0 * + CAST( NULL AS SIGNED ) * - col1 / - col0 AS col2 FROM tab2
----
47
NULL
47
NULL
47
NULL

skipif mysql # not compatible
query II rowsort label-7036
SELECT + 47 AS col0, col0 * + CAST ( NULL AS INTEGER ) * - col1 / - col0 AS col2 FROM tab2
----
47
NULL
47
NULL
47
NULL

query I rowsort
SELECT ( - 57 ) FROM tab0 cor0
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-7038
SELECT - 42 AS col0, + COUNT( * ) FROM tab0 AS cor0
----
-42
3

skipif mysql # not compatible
query II rowsort label-7038
SELECT - 42 AS col0, + COUNT ( * ) FROM tab0 AS cor0
----
-42
3

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

query I rowsort
SELECT col2 + - col1 * col1 AS col0 FROM tab0 AS cor0 WHERE NOT 31 >= NULL
----

query I rowsort
SELECT DISTINCT + ( + 97 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7042
SELECT col1 DIV - col0 * - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7042
SELECT col1 / - col0 * - col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7043
SELECT col0 DIV + + ( - - col1 ) AS col2 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-7043
SELECT col0 / + + ( - - col1 ) AS col2 FROM tab1
----
1
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT - COUNT( * ) * - 87 FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-7044
SELECT - COUNT ( * ) * - 87 FROM tab0
----
261

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

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

query I rowsort
SELECT DISTINCT + 36 FROM tab2 cor0 WHERE 30 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT + 12 * col2 FROM tab2 AS cor0
----
276
480
696

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

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

query I rowsort
SELECT - col2 + col1 * + - col2 + 40 AS col1 FROM tab0 AS cor0
----
-158
-180
-3814

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT ALL ( - SUM( + 29 ) ) + + - 60 * - MAX( DISTINCT - + col2 ) AS col2 FROM tab0 AS cor0
----
-687

skipif mysql # not compatible
query I rowsort label-7051
SELECT ALL ( - SUM ( + 29 ) ) + + - 60 * - MAX ( DISTINCT - + col2 ) AS col2 FROM tab0 AS cor0
----
-687

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 WHERE NOT ( NOT NULL BETWEEN 37 AND NULL )
----

query I rowsort
SELECT 92 * col2 FROM tab2
----
2116
3680
5336

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7059
SELECT ALL CAST( - MIN( ALL + - col0 ) AS SIGNED ) * - 88 FROM tab1
----
-8008

skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL CAST ( - MIN ( ALL + - col0 ) AS INTEGER ) * - 88 FROM tab1
----
-8008

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

query I rowsort
SELECT DISTINCT - col2 + - + col0 FROM tab2
----
-104
-133
-69

onlyif mysql # DIV for integer division: 
query II rowsort label-7062
SELECT ALL + 45 + col0 + + 81 DIV + + col2 AS col2, col0 FROM tab1
----
131
85
137
91
96
51

skipif mysql # not compatible
query II rowsort label-7062
SELECT ALL + 45 + col0 + + 81 / + + col2 AS col2, col0 FROM tab1
----
131
85
137
91
96
51

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

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

query II rowsort
SELECT + 33 AS col0, - col1 - + - 86 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7065
SELECT ALL col2 * - - CAST( ( - + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL col2 * - - CAST ( ( - + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7066
SELECT ALL - ( + - COUNT( 88 ) ) DIV 30 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7066
SELECT ALL - ( + - COUNT ( 88 ) ) / 30 FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT + 68 * + col0 AS col2 FROM tab0
----
1020
5916
6596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7069
SELECT DISTINCT col0 + CAST( + col2 AS SIGNED ) AS col0 FROM tab2 WHERE NOT + 91 <> - + col0
----

skipif mysql # not compatible
query I rowsort label-7069
SELECT DISTINCT col0 + CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 WHERE NOT + 91 <> - + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7070
SELECT DISTINCT COUNT( * ), 80 AS col0 FROM tab2
----
3
80

skipif mysql # not compatible
query II rowsort label-7070
SELECT DISTINCT COUNT ( * ), 80 AS col0 FROM tab2
----
3
80

query I rowsort
SELECT + col2 * ( + 76 ) FROM tab0 WHERE NOT NULL < + + 58
----

query I rowsort
SELECT + col1 * - 25 AS col0 FROM tab0
----
-2025
-25
-525

query I rowsort
SELECT DISTINCT + ( - 76 ) FROM tab2
----
-76

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7074
SELECT ALL SUM ( + col0 ) col0 FROM tab1
----
227

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 89 NOT BETWEEN - - col1 * - - 0 + + + col0 AND 29
----

query I rowsort
SELECT - col1 * + 43 - - - col0 FROM tab2 AS cor0
----
-2239
-2956
-3375

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

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

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

skipif mysql # not compatible
query I rowsort label-7079
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query II rowsort
SELECT DISTINCT - col2, + col1 * + 35 AS col0 FROM tab0
----
-10
735
-47
2835
-99
35

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT + - MIN( col0 ) * - - COUNT( * ) - - 11 AS col2 FROM tab1 AS cor0
----
-142

skipif mysql # not compatible
query I rowsort label-7082
SELECT + - MIN ( col0 ) * - - COUNT ( * ) - - 11 AS col2 FROM tab1 AS cor0
----
-142

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7084
SELECT DISTINCT - col1 * + CAST( col0 AS SIGNED ) + - col0 FROM tab1 AS cor0
----
-4368
-510
-765

skipif mysql # not compatible
query I rowsort label-7084
SELECT DISTINCT - col1 * + CAST ( col0 AS INTEGER ) + - col0 FROM tab1 AS cor0
----
-4368
-510
-765

query II rowsort
SELECT - 84 AS col1, 97 AS col1 FROM tab0 cor0
----
-84
97
-84
97
-84
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT + COUNT( DISTINCT 7 ) + - - 9 AS col0 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-7088
SELECT + COUNT ( DISTINCT 7 ) + - - 9 AS col0 FROM tab1
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + col0, - 90 col0 FROM tab2
----
104
-90
133
-90
69
-90

query I rowsort
SELECT - col0 + - + col2 * - ( + 41 ) FROM tab2
----
1576
2303
897

query II rowsort
SELECT ALL col1 * - col1 AS col2, - col1 FROM tab0
----
-1
-1
-441
-21
-6561
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT DISTINCT - MIN( + col2 ) * - + COUNT( * ) * + - ( + 67 ) AS col2 FROM tab2 AS cor0
----
-4623

skipif mysql # not compatible
query I rowsort label-7092
SELECT DISTINCT - MIN ( + col2 ) * - + COUNT ( * ) * + - ( + 67 ) AS col2 FROM tab2 AS cor0
----
-4623

query I rowsort
SELECT ALL - 62 * 22 AS col2 FROM tab0 AS cor0
----
-1364
-1364
-1364

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + - col2 col0 FROM tab0
----
100
128
31

query I rowsort
SELECT ALL 28 - - + col2 AS col2 FROM tab0
----
127
38
75

query I rowsort
SELECT - ( + + col1 ) + + col0 - - col0 FROM tab1 AS cor0
----
135
165
88

query I rowsort
SELECT ALL + - col1 * - + col2 * col2 - - - col1 AS col2 FROM tab2 AS cor0
----
123123
225321
26928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7098
SELECT - - MAX( 39 ) AS col1 FROM tab2 AS cor0 WHERE CAST( + col1 AS SIGNED ) IS NOT NULL
----
39

skipif mysql # not compatible
query I rowsort label-7098
SELECT - - MAX ( 39 ) AS col1 FROM tab2 AS cor0 WHERE CAST ( + col1 AS INTEGER ) IS NOT NULL
----
39

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7100
SELECT ALL - 87 AS col0, col2 DIV - col1 AS col1 FROM tab0 AS cor0
----
-87
-99
-87
0
-87
0

skipif mysql # not compatible
query II rowsort label-7100
SELECT ALL - 87 AS col0, col2 / - col1 AS col1 FROM tab0 AS cor0
----
-87
-99
-87
0
-87
0

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

query II rowsort
SELECT + + col1 AS col1, + col1 * - col2 FROM tab0 AS cor0
----
1
-99
21
-210
81
-3807

onlyif mysql # DIV for integer division: 
query I rowsort label-7103
SELECT + 56 DIV col0 - + col1 FROM tab0 AS cor0
----
-1
-21
-78

skipif mysql # not compatible
query I rowsort label-7103
SELECT + 56 / col0 - + col1 FROM tab0 AS cor0
----
-1
-21
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7104
SELECT ALL - - col2 * + CAST( + 37 AS SIGNED ) * - col2 col0 FROM tab2 AS cor0
----
-124468
-19573
-59200

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7104
SELECT ALL - - col2 * + CAST ( + 37 AS INTEGER ) * - col2 col0 FROM tab2 AS cor0
----
-124468
-19573
-59200

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * - col0 col2, col2 * + 24 + col0 AS col1 FROM tab1
----
-425
1501
-4277
1723
-714
2355

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7108
SELECT + col0 DIV 56 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7108
SELECT + col0 / 56 FROM tab1
----
0
1
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT - MAX( - - 14 ) FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-7111
SELECT - MAX ( - - 14 ) FROM tab2 AS cor0
----
-14

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

query I rowsort
SELECT - - ( - 99 ) AS col0 FROM tab0 AS cor0
----
-99
-99
-99

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7115
SELECT - 63 * + - 30 + + CAST( NULL AS DECIMAL ) - + + 54 * - 15 + - + col1 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7115
SELECT - 63 * + - 30 + + CAST ( NULL AS REAL ) - + + 54 * - 15 + - + col1 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7116
SELECT ALL - + COUNT( * ) col1, MAX( 89 ) AS col2 FROM tab1 AS cor0
----
-3
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7116
SELECT ALL - + COUNT ( * ) col1, MAX ( 89 ) AS col2 FROM tab1 AS cor0
----
-3
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7117
SELECT DISTINCT + - col2 * - 13 + - CAST( + col0 AS SIGNED ) - + ( - + col0 ) + + 1 * - - col0 * - 56 AS col2 FROM tab1 cor0
----
-1608
-3993
-4212

skipif mysql # not compatible
query I rowsort label-7117
SELECT DISTINCT + - col2 * - 13 + - CAST ( + col0 AS INTEGER ) - + ( - + col0 ) + + 1 * - - col0 * - 56 AS col2 FROM tab1 cor0
----
-1608
-3993
-4212

query I rowsort
SELECT - + 28 + + 49 * - ( 79 ) AS col0 FROM tab0 AS cor0
----
-3899
-3899
-3899

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7120
SELECT - - CAST( - - col0 AS SIGNED ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7120
SELECT - - CAST ( - - col0 AS INTEGER ) FROM tab1 AS cor0
----
51
85
91

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

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

query II rowsort
SELECT DISTINCT 59 AS col1, - col0 FROM tab2 AS cor0
----
59
-46
59
-64
59
-75

query I rowsort
SELECT ALL + 65 + + col0 AS col1 FROM tab1 cor0
----
116
150
156

query II rowsort
SELECT col0, + ( 83 ) FROM tab2
----
46
83
64
83
75
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE - col2 - - 25 NOT BETWEEN + 50 * - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7126
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE - col2 - - 25 NOT BETWEEN + 50 * - col2 AND NULL
----
0

query I rowsort
SELECT DISTINCT + 67 * + - col2 * + col1 AS col0 FROM tab1
----
-19765
-214132
-90048

query I rowsort
SELECT + 24 * + col0 FROM tab1
----
1224
2040
2184

query I rowsort
SELECT DISTINCT col2 * + 43 - + 73 * - col2 AS col2 FROM tab1
----
11136
6844
7888

query I rowsort
SELECT 30 - + - col1 + + - col0 + - col0 * + - 36 FROM tab1
----
1829
3010
3262

query I rowsort
SELECT + col2 * + col2 - 61 * - col1 FROM tab0
----
1381
7150
9862

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7135
SELECT ALL - 84 DIV col1 * - col2 FROM tab1 AS cor0
----
576
68
944

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL - 84 / col1 * - col2 FROM tab1 AS cor0
----
576
68
944

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( col2 ) + + 30 + col2 > NULL
----

query I rowsort
SELECT - 20 * + col1 + + ( + - col1 ) FROM tab2 cor0
----
-1071
-1407
-1617

onlyif mysql # DIV for integer division: 
query II rowsort label-7140
SELECT - - col2 DIV col2 AS col1, 13 AS col0 FROM tab1 AS cor0
----
1
13
1
13
1
13

skipif mysql # not compatible
query II rowsort label-7140
SELECT - - col2 / col2 AS col1, 13 AS col0 FROM tab1 AS cor0
----
1
13
1
13
1
13

onlyif mysql # DIV for integer division: 
query I rowsort label-7141
SELECT DISTINCT col2 DIV - 67 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7141
SELECT DISTINCT col2 / - 67 FROM tab2
----
0

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

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

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

query I rowsort
SELECT 3 * + ( - + col2 ) * + col2 * 78 AS col0 FROM tab0
----
-2293434
-23400
-516906

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 6 IS NOT NULL
----

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

query II rowsort
SELECT ALL 90 AS col2, - 28 + + col2 FROM tab0 AS cor0
----
90
-18
90
19
90
71

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

query I rowsort
SELECT - col1 + - 97 AS col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + col0 AND - 50
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7152
SELECT DISTINCT ( - + col1 ) DIV - + col2 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-7152
SELECT DISTINCT ( - + col1 ) / - + col2 FROM tab2
----
1
2

onlyif mysql # aggregate syntax: 
query II rowsort label-7153
SELECT DISTINCT - 39 AS col2, COUNT( DISTINCT col2 ) FROM tab2 AS cor0 WHERE NOT - col2 + 91 * - + 16 * - 36 * - col1 IS NULL
----
-39
3

skipif mysql # not compatible
query II rowsort label-7153
SELECT DISTINCT - 39 AS col2, COUNT ( DISTINCT col2 ) FROM tab2 AS cor0 WHERE NOT - col2 + 91 * - + 16 * - 36 * - col1 IS NULL
----
-39
3

query I rowsort
SELECT - - 21 * + - col2 FROM tab1 AS cor0
----
-1239
-1428
-2016

query I rowsort
SELECT col1 + - col0 * + + 83 FROM tab2 AS cor0
----
-3767
-5235
-6158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7156
SELECT + + CAST( + + MAX( col1 ) AS SIGNED ) + COUNT( * ) + 80 AS col1 FROM tab2 AS cor0
----
160

skipif mysql # not compatible
query I rowsort label-7156
SELECT + + CAST ( + + MAX ( col1 ) AS INTEGER ) + COUNT ( * ) + 80 AS col1 FROM tab2 AS cor0
----
160

query I rowsort
SELECT - col1 * + + col0 + + + col0 * - col2 * + 30 + + + col1 FROM tab2 cor0
----
-135458
-34035
-81651

query I rowsort
SELECT + - 98 + col0 * + + col0 FROM tab2 AS cor0
----
2018
3998
5527

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

skipif mysql # not compatible
query I rowsort label-7159
SELECT ALL + COUNT ( + CAST ( - col1 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
3

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7162
SELECT ALL * FROM tab2 WHERE CAST( col2 AS SIGNED ) / + col1 + + col1 + - 88 + + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7162
SELECT ALL * FROM tab2 WHERE CAST ( col2 AS INTEGER ) / + col1 + + col1 + - 88 + + col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7163
SELECT COUNT( * ) + + COUNT( * ) DIV + COUNT( 38 ) AS col2 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-7163
SELECT COUNT ( * ) + + COUNT ( * ) / + COUNT ( 38 ) AS col2 FROM tab1
----
4

query I rowsort
SELECT DISTINCT + col2 + - + col1 FROM tab0
----
-11
-34
98

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

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

query I rowsort
SELECT DISTINCT + - 14 + col1 AS col2 FROM tab0 AS cor0
----
-13
67
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT DISTINCT MAX( DISTINCT - + 75 ) AS col2 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7168
SELECT DISTINCT MAX ( DISTINCT - + 75 ) AS col2 FROM tab0 AS cor0
----
-75

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

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

query I rowsort
SELECT ALL - 84 * 37 AS col0 FROM tab1
----
-3108
-3108
-3108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

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

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

query II rowsort
SELECT - 25 AS col1, col1 * + col0 FROM tab0
----
-25
1215
-25
1827
-25
97

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

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

query II rowsort
SELECT DISTINCT - col2 AS col1, col1 AS col2 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query II rowsort
SELECT + col1 AS col1, - col1 * + 49 FROM tab0 AS cor0
----
1
-49
21
-1029
81
-3969

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = 48
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 93 <= NULL
----

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 / col1 < NULL
----

query II rowsort
SELECT ALL col2 * + + 71 AS col2, - col2 FROM tab0
----
3337
-47
7029
-99
710
-10

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

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

query I rowsort
SELECT DISTINCT + ( - - ( + + 87 ) ) AS col2 FROM tab1
----
87

query I rowsort
SELECT col2 * - ( - + col1 ) AS col0 FROM tab2
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * - 80 col2, + 4 FROM tab0
----
-3760
4
-7920
4
-800
4

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

query II rowsort
SELECT ALL col2 + + col1 AS col0, ( + col1 ) FROM tab1 AS cor0
----
110
14
115
47
64
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT DISTINCT - + 73 * + COUNT( * ) FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-7189
SELECT DISTINCT - + 73 * + COUNT ( * ) FROM tab1 AS cor0
----
-219

query I rowsort
SELECT DISTINCT + col1 + - col1 + 66 * - col1 + + col2 FROM tab2
----
-3343
-4364
-5042

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7191
SELECT * FROM tab2 WHERE NULL NOT IN ( + - 67, CAST( NULL AS SIGNED ), - + 53, + + ( + col2 ) + + + col0, 23 + + - ( + col2 ) * - col1, - 19 )
----

skipif mysql # not compatible
query III rowsort label-7191
SELECT * FROM tab2 WHERE NULL NOT IN ( + - 67, CAST ( NULL AS INTEGER ), - + 53, + + ( + col2 ) + + + col0, 23 + + - ( + col2 ) * - col1, - 19 )
----

query I rowsort
SELECT - 60 * - - ( 1 ) + + + ( + 83 ) AS col2 FROM tab0
----
23
23
23

query I rowsort
SELECT - col0 + - col2 * + 92 FROM tab0
----
-1007
-4339
-9205

query I rowsort
SELECT - 90 + - col2 AS col2 FROM tab1 AS cor0
----
-149
-158
-186

query I rowsort
SELECT + - 89 * + col1 AS col0 FROM tab2 AS cor0
----
-4539
-5963
-6853

query I rowsort
SELECT + col1 * - ( - + col0 ) FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT 2 * - + 66 + + - 60 + + + col2 + + col0 FROM tab0 AS cor0 WHERE 74 >= NULL
----

query I rowsort
SELECT ALL ( 63 ) + - 81 AS col1 FROM tab0 cor0
----
-18
-18
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7199
SELECT col0 + + - 52 + col0 FROM tab1 AS cor0 WHERE + col2 * + 26 * + col1 + - col1 + + 29 IN ( + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7199
SELECT col0 + + - 52 + col0 FROM tab1 AS cor0 WHERE + col2 * + 26 * + col1 + - col1 + + 29 IN ( + + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + col2 + + 30 AS col0 FROM tab0 AS cor0
----
129
40
77

onlyif mysql # aggregate syntax: 
query II rowsort label-7201
SELECT ALL + + MAX( - - col2 ) col1, - 52 FROM tab2 WHERE NULL IS NULL
----
58
-52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7201
SELECT ALL + + MAX ( - - col2 ) col1, - 52 FROM tab2 WHERE NULL IS NULL
----
58
-52

query I rowsort
SELECT 43 FROM tab2 WHERE - col1 IS NOT NULL
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT + 45 - + COUNT( * ) AS col2 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-7203
SELECT + 45 - + COUNT ( * ) AS col2 FROM tab2
----
42

query I rowsort
SELECT + col0 * + col0 * - 79 - + 15 + - ( - col1 ) FROM tab0
----
-17709
-597945
-743325

query I rowsort
SELECT DISTINCT 93 + - col1 FROM tab2
----
16
26
42

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7208
SELECT ALL col0 + + ( - + col0 ) + 23 + - - col1 DIV + + col1 AS col1 FROM tab1
----
24
24
24

skipif mysql # not compatible
query I rowsort label-7208
SELECT ALL col0 + + ( - + col0 ) + 23 + - - col1 / + + col1 AS col1 FROM tab1
----
24
24
24

onlyif mysql # DIV for integer division: 
query I rowsort label-7209
SELECT col1 - col1 DIV - col1 AS col0 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-7209
SELECT col1 - col1 / - col1 AS col0 FROM tab1
----
15
48
6

query I rowsort
SELECT - ( - + col0 ) * - col2 * - 23 - - 43 AS col2 FROM tab0
----
16258
20053
220912

query I rowsort
SELECT ALL 78 + + col0 FROM tab1
----
129
163
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7212
SELECT 30 + - + 35 + CAST( col2 AS SIGNED ) + 66 - 48 * 40 FROM tab0
----
-1760
-1812
-1849

skipif mysql # not compatible
query I rowsort label-7212
SELECT 30 + - + 35 + CAST ( col2 AS INTEGER ) + 66 - 48 * 40 FROM tab0
----
-1760
-1812
-1849

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

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

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

query I rowsort
SELECT + 55 FROM tab0 AS cor0 WHERE NOT + col1 >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 26 < + - 90 - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7218
SELECT MAX ( ALL + 67 ) col1 FROM tab2 AS cor0
----
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 51 col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
2601
4335
4641

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col1 + - - col0 * - 51 col2 FROM tab1 AS cor0
----
-2405
-2432
-4310

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7225
SELECT DISTINCT 14 * - CAST( - 71 AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----

skipif mysql # not compatible
query I rowsort label-7225
SELECT DISTINCT 14 * - CAST ( - 71 AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----

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

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

query I rowsort
SELECT + 49 * - - col2 FROM tab0
----
2303
4851
490

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7228
SELECT COUNT( * ) DIV - MIN( + 5 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7228
SELECT COUNT ( * ) / - MIN ( + 5 ) FROM tab1
----
0

query I rowsort
SELECT ALL + 77 + + col2 AS col1 FROM tab1
----
136
145
173

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, col0 * + 7 FROM tab2
----
23
322
40
448
58
525

query I rowsort
SELECT 56 * + + col2 + + - 44 AS col2 FROM tab1
----
3260
3764
5332

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7233
SELECT ALL 7, - 37 + COUNT( * ) AS col2 FROM tab2 WHERE NOT col2 <> ( col2 DIV + 92 * - col1 * - + col2 + + 23 )
----
7
-36

skipif mysql # not compatible
query II rowsort label-7233
SELECT ALL 7, - 37 + COUNT ( * ) AS col2 FROM tab2 WHERE NOT col2 <> ( col2 / + 92 * - col1 * - + col2 + + 23 )
----
7
-36

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

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

query I rowsort
SELECT DISTINCT - 72 + + 0 - - col2 FROM tab1 AS cor0
----
-13
-4
24

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + col2 * - 34 * + 67 / - - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7238
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7238
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7240
SELECT DISTINCT + - ( + + col2 ) DIV 39 AS col2 FROM tab1 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-7240
SELECT DISTINCT + - ( + + col2 ) / 39 AS col2 FROM tab1 AS cor0
----
-1
-2

query I rowsort
SELECT col2 - - 94 FROM tab2 AS cor0
----
117
134
152

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7243
SELECT * FROM tab2 AS cor0 WHERE ( NULL NOT IN ( - col2, + ( - 29 ), col1 * col0, + 52, - + col2, - - col0 * + ( - + col1 ) * - CAST( NULL AS SIGNED ) + - col2 * + col1 ) )
----

skipif mysql # not compatible
query III rowsort label-7243
SELECT * FROM tab2 AS cor0 WHERE ( NULL NOT IN ( - col2, + ( - 29 ), col1 * col0, + 52, - + col2, - - col0 * + ( - + col1 ) * - CAST ( NULL AS INTEGER ) + - col2 * + col1 ) )
----

query I rowsort
SELECT - 56 + + 95 AS col2 FROM tab0 AS cor0
----
39
39
39

query I rowsort
SELECT col0 * col2 + - col1 * + col1 - + col1 * + col1 AS col1 FROM tab1 AS cor0
----
1770
4504
4965

query I rowsort
SELECT + 61 + 9 AS col2 FROM tab2 AS cor0
----
70
70
70

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 20 col1, + col2 - + + col0 * - - col2 - col1 AS col2 FROM tab2
----
20
-1086
20
-2597
20
-4359

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

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

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

query II rowsort
SELECT + col0, - ( - 61 ) + - col2 FROM tab2 AS cor0
----
46
38
64
21
75
3

query II rowsort
SELECT ALL - 94 AS col0, - 64 FROM tab1 AS cor0
----
-94
-64
-94
-64
-94
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7254
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, COUNT( * ) DIV - + 63 AS col1 FROM tab0 cor0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7254
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) / - + 63 AS col1 FROM tab0 cor0
----
NULL
0

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 57 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7258
SELECT + CAST( + + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7258
SELECT + CAST ( + + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
14
47
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT DISTINCT - MIN( - col0 ) * - MAX( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
970

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT - MIN ( - col0 ) * - MAX ( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
970

onlyif mysql # aggregate syntax: 
query II rowsort label-7261
SELECT + MAX( ALL + col0 ) AS col1, 4 * 7 * + 90 * + + MAX( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
75
189000

skipif mysql # not compatible
query II rowsort label-7261
SELECT + MAX ( ALL + col0 ) AS col1, 4 * 7 * + 90 * + + MAX ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
75
189000

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

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

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

query I rowsort
SELECT ALL + - 58 AS col1 FROM tab0 cor0
----
-58
-58
-58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 32 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + + col1 + - - col0, - 40 col2 FROM tab0
----
118
-40
143
-40
197
-40

query I rowsort
SELECT DISTINCT + 11 + col0 AS col0 FROM tab0
----
108
26
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT DISTINCT 99 + - MAX( col1 ) FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-7269
SELECT DISTINCT 99 + - MAX ( col1 ) FROM tab2
----
22

query I rowsort
SELECT DISTINCT - col2 * - - col2 AS col2 FROM tab0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7271
SELECT - 66 * - - 63 * CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
-12474

skipif mysql # not compatible
query I rowsort label-7271
SELECT - 66 * - - 63 * CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
-12474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7272
SELECT DISTINCT - 51 * 78 * + SUM( - col2 ) DIV - COUNT( * ) FROM tab0
----
-206856

skipif mysql # not compatible
query I rowsort label-7272
SELECT DISTINCT - 51 * 78 * + SUM ( - col2 ) / - COUNT ( * ) FROM tab0
----
-206856

query I rowsort
SELECT - 14 * col0 FROM tab2
----
-1050
-644
-896

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7274
SELECT - MAX( DISTINCT + col0 ) DIV 3 col0 FROM tab0
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7274
SELECT - MAX ( DISTINCT + col0 ) / 3 col0 FROM tab0
----
-32

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7276
SELECT DISTINCT 14 * - + 58 * - 20 AS col0, COUNT( * ) AS col0 FROM tab1 cor0
----
16240
3

skipif mysql # not compatible
query II rowsort label-7276
SELECT DISTINCT 14 * - + 58 * - 20 AS col0, COUNT ( * ) AS col0 FROM tab1 cor0
----
16240
3

query I rowsort
SELECT ALL - 54 * col2 * - col1 AS col2 FROM tab1 AS cor0
----
15930
172584
72576

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT ALL 99 + - + COUNT( * ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL 99 + - + COUNT ( * ) FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT 10 + MAX( - col0 ) FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-7280
SELECT 10 + MAX ( - col0 ) FROM tab1
----
-41

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 + col2 col2 FROM tab2
----
117
82
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7283
SELECT ALL + 73 * CAST( col0 AS SIGNED ) FROM tab1
----
3723
6205
6643

skipif mysql # not compatible
query I rowsort label-7283
SELECT ALL + 73 * CAST ( col0 AS INTEGER ) FROM tab1
----
3723
6205
6643

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

query I rowsort
SELECT + - col1 * + 3 * + 98 * - col1 AS col0 FROM tab2 cor0
----
1319766
1743126
764694

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + + 31 col2 FROM tab0 AS cor0
----
-21
16
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7287
SELECT ALL - + COUNT( * ) DIV - + ( + 8 ) AS col2 FROM tab2 cor0
----
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7288
SELECT DISTINCT + col0, + col0 DIV col2 AS col2 FROM tab1 AS cor0
----
51
0
85
1
91
1

skipif mysql # not compatible
query II rowsort label-7288
SELECT DISTINCT + col0, + col0 / col2 AS col2 FROM tab1 AS cor0
----
51
0
85
1
91
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT DISTINCT - COUNT( * ) * + - COUNT( * ) + + 34 + + - COUNT( * ) * - 21 AS col0 FROM tab0 WHERE - col0 <= ( + - col1 )
----
80

skipif mysql # not compatible
query I rowsort label-7290
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ) + + 34 + + - COUNT ( * ) * - 21 AS col0 FROM tab0 WHERE - col0 <= ( + - col1 )
----
80

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

query II rowsort
SELECT ALL col2 * + 33, col2 * col2 + - col0 AS col0 FROM tab2
----
1320
1536
1914
3289
759
483

query I rowsort
SELECT DISTINCT + col2 * - col2 * - col1 FROM tab2
----
123200
225388
26979

onlyif mysql # DIV for integer division: 
query I rowsort label-7294
SELECT ALL - col1 DIV + col0 col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7294
SELECT ALL - col1 / + col0 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + 20 AS col1 FROM tab0 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-7296
SELECT SUM( col1 ) * COUNT( * ) AS col0, COUNT( * ) FROM tab2
----
585
3

skipif mysql # not compatible
query II rowsort label-7296
SELECT SUM ( col1 ) * COUNT ( * ) AS col0, COUNT ( * ) FROM tab2
----
585
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT - COUNT( DISTINCT 31 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-7297
SELECT - COUNT ( DISTINCT 31 ) FROM tab1
----
-1

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT col0 * - - col1 * 78 AS col0 FROM tab0
----
142506
7566
94770

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7301
SELECT ALL CAST( - + CAST( - 7 AS SIGNED ) AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE - ( + col1 ) <> + ( col1 )
----
7
7
7

skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL CAST ( - + CAST ( - 7 AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE - ( + col1 ) <> + ( col1 )
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT DISTINCT MIN( DISTINCT + col1 ) * + - MAX( DISTINCT 10 ) AS col2 FROM tab2 AS cor0
----
-510

skipif mysql # not compatible
query I rowsort label-7302
SELECT DISTINCT MIN ( DISTINCT + col1 ) * + - MAX ( DISTINCT 10 ) AS col2 FROM tab2 AS cor0
----
-510

query II rowsort
SELECT + + col2, col0 AS col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query II rowsort
SELECT + col0 AS col1, + col0 AS col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 col2 FROM tab2 AS cor0
----
-88
-88
-88

query I rowsort
SELECT DISTINCT - 17 + + - 12 + - col0 FROM tab1
----
-114
-120
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT COUNT( * ) + - - COUNT( * ) * COUNT( - 6 ) + + - 24 AS col0 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-7307
SELECT COUNT ( * ) + - - COUNT ( * ) * COUNT ( - 6 ) + + - 24 AS col0 FROM tab0
----
-12

query I rowsort
SELECT DISTINCT - 68 + + 63 * - col1 AS col2 FROM tab0
----
-131
-1391
-5171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7309
SELECT CAST( NULL AS SIGNED ) + - - 24 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7309
SELECT CAST ( NULL AS INTEGER ) + - - 24 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7310
SELECT ALL + CAST( + 63 AS SIGNED ) FROM tab1
----
63
63
63

skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL + CAST ( + 63 AS INTEGER ) FROM tab1
----
63
63
63

query I rowsort
SELECT + 79 FROM tab2 WHERE - 81 IN ( col0 * col0, col2 + - 75, - col1, + col2, 49 * 87 * - col0 / + col0 * - col0, - + col2 )
----

query I rowsort
SELECT + 18 * col2 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
1044
414
720

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 11 + + col2 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 col0 FROM tab2 cor0
----
-34
-34
-34

query I rowsort
SELECT - 14 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT DISTINCT - 72 + - 85 AS col2 FROM tab2
----
-157

query II rowsort
SELECT DISTINCT - 93, 23 AS col2 FROM tab0 WHERE ( NULL BETWEEN col1 + + - col2 / + col0 + - + col1 AND - ( + col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7318
SELECT DISTINCT - 27 - col0 + - + 2 * CAST( - col2 AS SIGNED ) + - col0 col1 FROM tab1 AS cor0
----
-73
-79
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7318
SELECT DISTINCT - 27 - col0 + - + 2 * CAST ( - col2 AS INTEGER ) + - col0 col1 FROM tab1 AS cor0
----
-73
-79
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7319
SELECT ALL + - ( + 79 ) DIV - - 83 - + + COUNT( * ) * - 19 AS col1, - 4 * COUNT( * ) + + + 10 FROM tab1 AS cor0
----
57
-2

skipif mysql # not compatible
query II rowsort label-7319
SELECT ALL + - ( + 79 ) / - - 83 - + + COUNT ( * ) * - 19 AS col1, - 4 * COUNT ( * ) + + + 10 FROM tab1 AS cor0
----
57
-2

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 23 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT ALL + SUM( DISTINCT - col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL + SUM ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT - 33 + + col2 FROM tab1 cor0
----
26
35
63

onlyif mysql # aggregate syntax: 
query II rowsort label-7323
SELECT DISTINCT + COUNT( * ) col0, + 37 FROM tab0 AS cor0
----
3
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7323
SELECT DISTINCT + COUNT ( * ) col0, + 37 FROM tab0 AS cor0
----
3
37

query II rowsort
SELECT DISTINCT + ( + 9 ) * + + col1, col2 AS col2 FROM tab1 AS cor0
----
126
96
423
68
45
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT DISTINCT + - 6 + + MAX( - + 12 ) + 14 AS col1 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7325
SELECT DISTINCT + - 6 + + MAX ( - + 12 ) + 14 AS col1 FROM tab1 AS cor0
----
-4

query I rowsort
SELECT + 6 * + col0 + + col0 FROM tab1 AS cor0
----
357
595
637

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7327
SELECT ALL - - 18 AS col2, + CAST( - 88 AS SIGNED ) FROM tab2 cor0
----
18
-88
18
-88
18
-88

skipif mysql # not compatible
query II rowsort label-7327
SELECT ALL - - 18 AS col2, + CAST ( - 88 AS INTEGER ) FROM tab2 cor0
----
18
-88
18
-88
18
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT DISTINCT - MAX( ALL col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7328
SELECT DISTINCT - MAX ( ALL col0 ) AS col0 FROM tab1 AS cor0
----
-91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( - + col0 ) + col2 * col0 + col2 * - - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 16 * + col2 AS col2 FROM tab2
----
368
640
928

query I rowsort
SELECT DISTINCT - 89 * + col1 FROM tab0
----
-1869
-7209
-89

query II rowsort
SELECT ALL - col0, col2 FROM tab2
----
-46
23
-64
40
-75
58

query I rowsort
SELECT - - ( + 85 ) AS col1 FROM tab1 AS cor0
----
85
85
85

query I rowsort
SELECT ALL 0 * - + 90 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT ALL MIN( ALL + 54 ) FROM tab0 WHERE NOT - + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL MIN ( ALL + 54 ) FROM tab0 WHERE NOT - + col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT + COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 75 IS NOT NULL
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7336
SELECT + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 75 IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT - COUNT( * ) FROM tab2 WHERE NOT - 88 / 45 + + col2 / - + col1 + 85 / - ( + col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7337
SELECT - COUNT ( * ) FROM tab2 WHERE NOT - 88 / 45 + + col2 / - + col1 + 85 / - ( + col1 ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - col2 col0 FROM tab0
----
705
870
9603

query I rowsort
SELECT DISTINCT + + 24 AS col0 FROM tab0 AS cor0
----
24

query I rowsort
SELECT + col2 + + col0 * ( 45 ) FROM tab2 AS cor0
----
2093
2920
3433

query II rowsort
SELECT + - 99 + + col1, 93 AS col0 FROM tab0 AS cor0
----
-18
93
-78
93
-98
93

query I rowsort
SELECT DISTINCT col1 + - 46 FROM tab1 AS cor0
----
-32
-41
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7343
SELECT ALL + 80 + + CAST( col1 AS SIGNED ) + col1 - + 9 + + 13 FROM tab0 AS cor0
----
126
246
86

skipif mysql # not compatible
query I rowsort label-7343
SELECT ALL + 80 + + CAST ( col1 AS INTEGER ) + col1 - + 9 + + 13 FROM tab0 AS cor0
----
126
246
86

onlyif mysql # DIV for integer division: 
query I rowsort label-7344
SELECT DISTINCT - - col0 DIV + 61 + + 67 AS col1 FROM tab1 AS cor0
----
67
68

skipif mysql # not compatible
query I rowsort label-7344
SELECT DISTINCT - - col0 / + 61 + + 67 AS col1 FROM tab1 AS cor0
----
67
68

onlyif mysql # aggregate syntax: 
query II rowsort label-7345
SELECT SUM( - 2 ), MIN( col2 ) AS col2 FROM tab1 AS cor0
----
-6
59

skipif mysql # not compatible
query II rowsort label-7345
SELECT SUM ( - 2 ), MIN ( col2 ) AS col2 FROM tab1 AS cor0
----
-6
59

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( + + 91 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 98 ) + + - col2 col0 FROM tab2
----
40
58
75

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE + 86 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7349
SELECT 23 * + CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7349
SELECT 23 * + CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 19 + + + 82 + ( + 42 ) * - 97 AS col0 FROM tab0
----
-3973

onlyif mysql # DIV for integer division: 
query I rowsort label-7351
SELECT col0 DIV + + 33 - col0 * + 13 col1 FROM tab0
----
-1129
-1259
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7351
SELECT col0 / + + 33 - col0 * + 13 col1 FROM tab0
----
-1129
-1259
-195

query I rowsort
SELECT 54 * - - col1 - - col0 AS col0 FROM tab1
----
2629
355
807

query I rowsort
SELECT 13 * + 48 AS col1 FROM tab2
----
624
624
624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7354
SELECT CAST( MAX( ALL 0 ) AS SIGNED ) * COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7354
SELECT CAST ( MAX ( ALL 0 ) AS INTEGER ) * COUNT ( * ) AS col0 FROM tab2
----
0

query I rowsort
SELECT - 37 * col1 AS col1 FROM tab1
----
-1739
-185
-518

onlyif mysql # DIV for integer division: 
query I rowsort label-7356
SELECT ALL - ( - 46 ) DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7356
SELECT ALL - ( - 46 ) / col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + 97 AS col0 FROM tab1 WHERE NOT 89 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT - COUNT( col0 ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7359
SELECT - COUNT ( col0 ) col2 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7360
SELECT DISTINCT - 69 DIV + col2 AS col1 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-7360
SELECT DISTINCT - 69 / + col2 AS col1 FROM tab0
----
-1
-6
0

query I rowsort
SELECT ALL ( col0 ) * col0 AS col1 FROM tab2 WHERE NOT ( - col0 ) BETWEEN NULL AND 32
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + - ( + col0 ) * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 * - col1 ) NOT IN ( col0 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT - COUNT( * ) FROM tab1 WHERE - col1 + + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7364
SELECT - COUNT ( * ) FROM tab1 WHERE - col1 + + col0 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + - 69 IS NOT NULL
----

query I rowsort
SELECT col1 - + col2 * + col0 FROM tab2
----
-1007
-2483
-4283

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT + SUM( 39 ) AS col2 FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-7367
SELECT + SUM ( 39 ) AS col2 FROM tab1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT SUM( ALL + col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-7368
SELECT SUM ( ALL + col0 ) FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT COUNT( ALL 4 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL > ( + ( - col2 ) + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7369
SELECT COUNT ( ALL 4 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL > ( + ( - col2 ) + + col0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7370
SELECT DISTINCT ( ( COUNT( * ) ) ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT ( ( COUNT ( * ) ) ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 + - 69 / 55 FROM tab1 AS cor0 WHERE NULL BETWEEN ( - 91 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7372
SELECT DISTINCT - col2 DIV 36 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7372
SELECT DISTINCT - col2 / 36 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7373
SELECT ALL 65 * ( col0 DIV col2 ) FROM tab0 AS cor0
----
0
0
520

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL 65 * ( col0 / col2 ) FROM tab0 AS cor0
----
0
0
520

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 * + 21 ) IS NOT NULL
----

query I rowsort
SELECT - 97 * col1 AS col0 FROM tab2
----
-4947
-6499
-7469

query I rowsort
SELECT ALL col2 + - 5 AS col2 FROM tab2
----
18
35
53

query I rowsort
SELECT 38 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT DISTINCT MAX( ALL col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7378
SELECT DISTINCT MAX ( ALL col2 ) FROM tab2 AS cor0
----
58

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL < - 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT ALL + COUNT( * ) * + ( - 91 ) col1 FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7380
SELECT ALL + COUNT ( * ) * + ( - 91 ) col1 FROM tab1 AS cor0
----
-273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 2 * + 66 col0 FROM tab1 AS cor0
----
132

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 77 + col1 BETWEEN NULL AND + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 >= + col0
----
15
81
47
97
1
99

query I rowsort
SELECT + 76 + 24 AS col1 FROM tab1 AS cor0
----
100
100
100

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT - 81 + COUNT( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-7385
SELECT - 81 + COUNT ( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
-78

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7387
SELECT DISTINCT + col0 AS col2 FROM tab1 AS cor0 WHERE ( - col1 + ( CAST( NULL AS SIGNED ) ) ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT + col0 AS col2 FROM tab1 AS cor0 WHERE ( - col1 + ( CAST ( NULL AS INTEGER ) ) ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7388
SELECT + + 43 + + 74 DIV - ( col1 + - 23 ) FROM tab2 AS cor0
----
41
42
42

skipif mysql # not compatible
query I rowsort label-7388
SELECT + + 43 + + 74 / - ( col1 + - 23 ) FROM tab2 AS cor0
----
41
42
42

query I rowsort
SELECT ALL - col2 + 29 * - col0 FROM tab2 AS cor0
----
-1357
-1896
-2233

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT + ( - COUNT( * ) ) + + 68 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-7390
SELECT + ( - COUNT ( * ) ) + + 68 FROM tab2 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT DISTINCT + 54 + COUNT( ALL - 69 ) FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-7391
SELECT DISTINCT + 54 + COUNT ( ALL - 69 ) FROM tab1 AS cor0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-7392
SELECT DISTINCT - - 50 + ( + 34 ) DIV col2 FROM tab0 AS cor0
----
50
53

skipif mysql # not compatible
query I rowsort label-7392
SELECT DISTINCT - - 50 + ( + 34 ) / col2 FROM tab0 AS cor0
----
50
53

query I rowsort
SELECT col2 + - col1 * - col2 FROM tab2
----
1196
3120
3944

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT COUNT( * ) + - - 9 * + 32 FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-7394
SELECT COUNT ( * ) + - - 9 * + 32 FROM tab1
----
291

query I rowsort
SELECT ALL 30 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 * col0 + col0 FROM tab2
----
2162
4160
5700

query I rowsort
SELECT DISTINCT col2 + + 4 FROM tab2
----
27
44
62

query I rowsort
SELECT DISTINCT ( + ( 99 ) ) AS col1 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT ALL COUNT( - col0 ) * + COUNT( * ) + - 85 FROM tab1
----
-76

skipif mysql # not compatible
query I rowsort label-7399
SELECT ALL COUNT ( - col0 ) * + COUNT ( * ) + - 85 FROM tab1
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7400
SELECT DISTINCT col2 - - CAST( 4 AS SIGNED ) FROM tab0
----
103
14
51

skipif mysql # not compatible
query I rowsort label-7400
SELECT DISTINCT col2 - - CAST ( 4 AS INTEGER ) FROM tab0
----
103
14
51

query I rowsort
SELECT ALL ( + + 72 ) AS col2 FROM tab0 AS cor0
----
72
72
72

query I rowsort
SELECT DISTINCT - col2 * - 16 AS col1 FROM tab1 AS cor0
----
1088
1536
944

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( col0 ) = col2
----

query I rowsort
SELECT + - 63 * - ( + 41 ) FROM tab1 cor0
----
2583
2583
2583

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7405
SELECT - - 94 * + ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7405
SELECT - - 94 * + ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 < ( NULL )
----

query I rowsort
SELECT DISTINCT - ( - ( - col0 ) ) AS col1 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT - - MAX( + + col1 ) AS col0 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-7409
SELECT - - MAX ( + + col1 ) AS col0 FROM tab2 cor0
----
77

onlyif mysql # DIV for integer division: 
query II rowsort label-7410
SELECT + + 29, 4 DIV + col2 AS col2 FROM tab2 cor0
----
29
0
29
0
29
0

skipif mysql # not compatible
query II rowsort label-7410
SELECT + + 29, 4 / + col2 AS col2 FROM tab2 cor0
----
29
0
29
0
29
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT ALL - - MAX( - + ( + col1 ) ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL - - MAX ( - + ( + col1 ) ) FROM tab2 AS cor0
----
-51

query II rowsort
SELECT col1 AS col2, + col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query II rowsort
SELECT DISTINCT - col0, col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT 34 FROM tab0 AS cor0 WHERE NOT col2 + + col2 * - 82 NOT IN ( 49 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT COUNT( * ) * 31 AS col0 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-7415
SELECT COUNT ( * ) * 31 AS col0 FROM tab1 AS cor0
----
93

query I rowsort
SELECT ALL - col0 * - + col1 * - col1 FROM tab1 AS cor0
----
-201019
-2125
-9996

query I rowsort
SELECT DISTINCT - ( 91 ) AS col1 FROM tab2
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7418
SELECT DISTINCT ( - MAX( - CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7418
SELECT DISTINCT ( - MAX ( - CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + AVG ( DISTINCT - col0 ) AS col2 FROM tab2 WHERE NOT 79 + + col0 * col1 <> ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7420
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - CAST( + 58 AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7420
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - CAST ( + 58 AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - 48 * ( - col2 ) FROM tab1 AS cor0
----
2832
3264
4608

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7422
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IN ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-7422
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IN ( + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7423
SELECT CAST( - ( + - COUNT( 68 ) ) AS SIGNED ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7423
SELECT CAST ( - ( + - COUNT ( 68 ) ) AS INTEGER ) col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT DISTINCT - - COUNT( * ) * 95 FROM tab0 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT - - COUNT ( * ) * 95 FROM tab0 AS cor0
----
285

query I rowsort
SELECT DISTINCT + ( + 79 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
79

query I rowsort
SELECT DISTINCT - col2 + + ( - 35 ) FROM tab1 AS cor0
----
-103
-131
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-7427
SELECT DISTINCT - col2 DIV - - 46 + + + col1 AS col2 FROM tab1
----
12
4
46

skipif mysql # not compatible
query I rowsort label-7427
SELECT DISTINCT - col2 / - - 46 + + + col1 AS col2 FROM tab1
----
12
4
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + + 95 col0 FROM tab0
----
105
142
194

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT COUNT( * ) + - MIN( ALL - - col0 ) * + + 63 + - 68 AS col0 FROM tab0 AS cor0
----
-1010

skipif mysql # not compatible
query I rowsort label-7429
SELECT COUNT ( * ) + - MIN ( ALL - - col0 ) * + + 63 + - 68 AS col0 FROM tab0 AS cor0
----
-1010

query I rowsort
SELECT ALL + ( col1 ) * - col1 + + + col0 FROM tab2 AS cor0
----
-2555
-4414
-5865

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7431
SELECT DISTINCT + + 2 DIV COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7431
SELECT DISTINCT + + 2 / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7432
SELECT col1 DIV - + col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7432
SELECT col1 / - + col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL 64 * - col1 FROM tab2 AS cor0
----
-3264
-4288
-4928

query I rowsort
SELECT ALL - col2 + - 34 FROM tab1 AS cor0
----
-102
-130
-93

query I rowsort
SELECT 70 AS col2 FROM tab1 cor0
----
70
70
70

query I rowsort
SELECT ALL - + col1 FROM tab1 cor0 WHERE NOT - 72 * - col0 IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL ( ( - + 88 ) ) + + + col1 AS col0 FROM tab2 AS cor0
----
-11
-21
-37

query I rowsort
SELECT DISTINCT col2 * - col0 * + 52 + col2 AS col2 FROM tab2 AS cor0
----
-133080
-226142
-54993

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - 38 col1 FROM tab2 AS cor0
----
1748
2432
2850

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT + MIN( ALL + + col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-7440
SELECT + MIN ( ALL + + col2 ) FROM tab1
----
59

query I rowsort
SELECT 38 * + 63 + + 53 AS col1 FROM tab2 WHERE - col2 * - 87 IS NULL
----

query I rowsort
SELECT ALL 65 - - 20 AS col1 FROM tab0
----
85
85
85

query I rowsort
SELECT DISTINCT 36 AS col2 FROM tab1, tab2 AS cor0
----
36

query I rowsort
SELECT DISTINCT ( - col0 ) - + 52 FROM tab2
----
-116
-127
-98

query I rowsort
SELECT + col1 - + col2 AS col2 FROM tab0
----
-98
11
34

query I rowsort
SELECT ALL - col0 + col2 + + 41 AS col0 FROM tab0
----
-36
43
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT DISTINCT MIN( ALL - + col2 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-7447
SELECT DISTINCT MIN ( ALL - + col2 ) AS col0 FROM tab1
----
-96

query III rowsort
SELECT * FROM tab2 WHERE col0 * - col0 >= ( NULL )
----

query I rowsort
SELECT DISTINCT - col2 * + 94 - - - col0 FROM tab1
----
-5631
-6483
-9075

query I rowsort
SELECT ALL - 50 - col1 - + col0 AS col2 FROM tab1 AS cor0
----
-115
-140
-188

query I rowsort
SELECT + + col1 + + - 56 + + col2 AS col2 FROM tab2 AS cor0
----
18
61
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7452
SELECT - + CAST( col0 AS SIGNED ) AS col0, col1 * col1 AS col1 FROM tab2 AS cor0
----
-46
2601
-64
5929
-75
4489

skipif mysql # not compatible
query II rowsort label-7452
SELECT - + CAST ( col0 AS INTEGER ) AS col0, col1 * col1 AS col1 FROM tab2 AS cor0
----
-46
2601
-64
5929
-75
4489

query I rowsort
SELECT ( + ( + + 76 ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT + MAX( + 46 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7454
SELECT + MAX ( + 46 ) FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-7455
SELECT - MAX( col2 ) AS col1, 28 FROM tab0
----
-99
28

skipif mysql # not compatible
query II rowsort label-7455
SELECT - MAX ( col2 ) AS col1, 28 FROM tab0
----
-99
28

query II rowsort
SELECT ALL col0 * - 79, col2 FROM tab1
----
-4029
96
-6715
59
-7189
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7457
SELECT col1 DIV + - 97 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7457
SELECT col1 / + - 97 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + - col0 IN ( 26 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7459
SELECT ALL + 17 DIV + col1 FROM tab0 AS cor0
----
0
0
17

skipif mysql # not compatible
query I rowsort label-7459
SELECT ALL + 17 / + col1 FROM tab0 AS cor0
----
0
0
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT DISTINCT - COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7460
SELECT DISTINCT - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-3

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT - 95 * + 32 IS NULL
----
46
64
75

query I rowsort
SELECT 32 * 67 AS col0 FROM tab0 AS cor0 WHERE NOT 56 + - col1 NOT IN ( ( - + col0 ) + + col0 )
----

query I rowsort
SELECT + + col1 * - - col1 AS col0 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT 83 + 46 + - COUNT( * ) * + 86 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-129

skipif mysql # not compatible
query I rowsort label-7464
SELECT 83 + 46 + - COUNT ( * ) * + 86 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-129

query II rowsort
SELECT DISTINCT 15, 40 * + col0 AS col2 FROM tab1
----
15
2040
15
3400
15
3640

query I rowsort
SELECT ALL - 34 AS col2 FROM tab2 WHERE NOT - - col1 + - + col1 <> + - col2
----

query II rowsort
SELECT DISTINCT col1 AS col0, - 17 AS col0 FROM tab2
----
51
-17
67
-17
77
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT + ( COUNT( * ) ) AS col1 FROM tab2 WHERE NOT + col1 * - col0 * + 93 + - col0 NOT BETWEEN NULL AND - 79
----
0

skipif mysql # not compatible
query I rowsort label-7468
SELECT + ( COUNT ( * ) ) AS col1 FROM tab2 WHERE NOT + col1 * - col0 * + 93 + - col0 NOT BETWEEN NULL AND - 79
----
0

query I rowsort
SELECT ALL - col0 * - + 28 AS col2 FROM tab1
----
1428
2380
2548

query II rowsort
SELECT ALL + col2 AS col0, + 93 AS col1 FROM tab2
----
23
93
40
93
58
93

query III rowsort
SELECT ALL * FROM tab0 WHERE - 66 IS NULL OR NULL = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - - 92 * + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - + col0 + - ( 82 ) AS col0 FROM tab0 AS cor0
----
-169
-179
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7474
SELECT - CAST( - 63 AS SIGNED ) FROM tab2 AS cor0
----
63
63
63

skipif mysql # not compatible
query I rowsort label-7474
SELECT - CAST ( - 63 AS INTEGER ) FROM tab2 AS cor0
----
63
63
63

query I rowsort
SELECT DISTINCT 89 + col2 FROM tab0 AS cor0 WHERE col2 * - 35 * + col2 + - col0 BETWEEN - 46 * + 92 AND ( col0 )
----
99

query II rowsort
SELECT + + col2, - 96 AS col1 FROM tab1 AS cor0
----
59
-96
68
-96
96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT ALL - COUNT( - + col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7477
SELECT ALL - COUNT ( - + col0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT + 65 + - SUM( DISTINCT - 88 ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-7478
SELECT + 65 + - SUM ( DISTINCT - 88 ) FROM tab2 AS cor0
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7479
SELECT CAST( + col2 AS SIGNED ) + - col2 col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7479
SELECT CAST ( + col2 AS INTEGER ) + - col2 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + col2 * - 36 + - + col2 - - col0 FROM tab2 AS cor0
----
-1416
-2071
-805

query I rowsort
SELECT DISTINCT + + 42 AS col0 FROM tab2 AS cor0
----
42

query I rowsort
SELECT + col1 - 14 + + - col2 * + col1 * col2 FROM tab1 AS cor0 WHERE + col2 * - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT - - 4 + COUNT( * ) FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-7483
SELECT - - 4 + COUNT ( * ) FROM tab0 AS cor0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7484
SELECT * FROM tab0 AS cor0 WHERE - col2 + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7484
SELECT * FROM tab0 AS cor0 WHERE - col2 + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * + + col1 + - 42 FROM tab0 cor0
----
-41
399
6519

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT DISTINCT - + SUM( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-7486
SELECT DISTINCT - + SUM ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7487
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) / + col0 * 60 + + 52, + col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-7487
SELECT DISTINCT - + CAST ( NULL AS REAL ) / + col0 * 60 + + 52, + col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT - 27 + col2 AS col0 FROM tab0 AS cor0
----
-17
20
72

query I rowsort
SELECT ALL col2 + + 86 * col0 * + col1 FROM tab0 AS cor0
----
104537
157132
8441

query I rowsort
SELECT + col1 + + col2 + - - col1 AS col1 FROM tab1
----
124
162
69

query I rowsort
SELECT DISTINCT col1 * + col1 + - col1 + + 45 FROM tab2
----
2595
4467
5897

query I rowsort
SELECT ALL col2 * col1 + + col1 - + 96 FROM tab1
----
1262
204
3147

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7493
SELECT * FROM tab1 WHERE - 54 NOT BETWEEN - 68 * - - CAST( NULL AS SIGNED ) + - col1 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7493
SELECT * FROM tab1 WHERE - 54 NOT BETWEEN - 68 * - - CAST ( NULL AS INTEGER ) + - col1 AND ( NULL )
----

query I rowsort
SELECT col0 * col0 FROM tab2 WHERE + col1 < NULL
----

query I rowsort
SELECT DISTINCT + col1 * 89 + - 45 * + 34 AS col0 FROM tab0
----
-1441
339
5679

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col1 ) <= 42
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7497
SELECT * FROM tab1 WHERE ( - col2 + - col2 * CAST( - 18 AS SIGNED ) - 65 ) <= col1
----

skipif mysql # not compatible
query III rowsort label-7497
SELECT * FROM tab1 WHERE ( - col2 + - col2 * CAST ( - 18 AS INTEGER ) - 65 ) <= col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7498
SELECT ALL col0 DIV - + 86 - - col1 col1 FROM tab0
----
0
20
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7498
SELECT ALL col0 / - + 86 - - col1 col1 FROM tab0
----
0
20
81

query III rowsort
SELECT * FROM tab1 WHERE col1 + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT - 63 + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 84 IS NULL
----
-60

skipif mysql # not compatible
query I rowsort label-7500
SELECT - 63 + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 84 IS NULL
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-7501
SELECT ALL + col2 DIV + ( col0 ) AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7501
SELECT ALL + col2 / + ( col0 ) AS col2 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT + + COUNT( * ) - + + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-7502
SELECT + + COUNT ( * ) - + + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT 79 * - - col2 FROM tab1
----
4661
5372
7584

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 94 * 37 > ( NULL )
----

query II rowsort
SELECT ALL + col1 AS col1, + col1 AS col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 21 col2 FROM tab0 AS cor0
----
21
21
21

query I rowsort
SELECT - + 38 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT DISTINCT MIN( - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7508
SELECT DISTINCT MIN ( - col2 ) FROM tab1 AS cor0
----
-96

query II rowsort
SELECT + col1, col1 AS col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7510
SELECT DISTINCT + col2 * + + 36 AS col2, 68 + ( + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
1692
NULL
3564
NULL
360
NULL

skipif mysql # not compatible
query II rowsort label-7510
SELECT DISTINCT + col2 * + + 36 AS col2, 68 + ( + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
1692
NULL
3564
NULL
360
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * + - col2 / + col0 * 88 / - - 86 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7512
SELECT DISTINCT + COUNT( * ) col2, - 11 DIV - 88 FROM tab2 AS cor0
----
3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7512
SELECT DISTINCT + COUNT ( * ) col2, - 11 / - 88 FROM tab2 AS cor0
----
3
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < ( + 30 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL < NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7515
SELECT + 15 DIV + COUNT( * ) AS col1, - 22 AS col1 FROM tab2
----
5
-22

skipif mysql # not compatible
query II rowsort label-7515
SELECT + 15 / + COUNT ( * ) AS col1, - 22 AS col1 FROM tab2
----
5
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 22 ) col1 FROM tab2
----
22
22
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + + + 59 col1, - 83 * + - col1 AS col2 FROM tab0 AS cor0
----
140
6723
60
83
80
1743

query I rowsort
SELECT 70 + + + 90 FROM tab1
----
160
160
160

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7519
SELECT col2 AS col1, - 11 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-7519
SELECT col2 AS col1, - 11 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7520
SELECT + 2 * - col0 * CAST( + - 39 AS SIGNED ) + 92 FROM tab1
----
4070
6722
7190

skipif mysql # not compatible
query I rowsort label-7520
SELECT + 2 * - col0 * CAST ( + - 39 AS INTEGER ) + 92 FROM tab1
----
4070
6722
7190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 4 AS col0, col2 col0 FROM tab2
----
4
23
4
40
4
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 col0 FROM tab1 AS cor0
----
88

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 IN ( - col2 + + ( - col1 ) + - - 33 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 13 ) col0 FROM tab0 AS cor0
----
-13
-13
-13

query I rowsort
SELECT - col0 * - col1 * col0 AS col1 FROM tab1 AS cor0 WHERE ( NOT + 7 IS NOT NULL )
----

query I rowsort
SELECT ALL - 28 + + col2 FROM tab0 cor0
----
-18
19
71

query I rowsort
SELECT - ( 89 ) - 19 AS col2 FROM tab0
----
-108
-108
-108

query III rowsort
SELECT * FROM tab1 WHERE + 68 + + col2 NOT IN ( ( + 72 ) + 92 * 83, col1, 12 * + col0 * - 13 + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT ALL - 69 + - COUNT( * ) + - COUNT( DISTINCT - 70 ) * + + COUNT( * ) AS col2 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-7530
SELECT ALL - 69 + - COUNT ( * ) + - COUNT ( DISTINCT - 70 ) * + + COUNT ( * ) AS col2 FROM tab0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 34 col0 FROM tab2 AS cor0
----
-34
-34
-34

query I rowsort
SELECT ALL 6 * - + 18 FROM tab2
----
-108
-108
-108

query I rowsort
SELECT - - 75 AS col0 FROM tab2 cor0
----
75
75
75

query I rowsort
SELECT DISTINCT - col0 + - col1 * + + col0 AS col2 FROM tab1 cor0
----
-4368
-510
-765

query II rowsort
SELECT DISTINCT - col1, - col1 AS col1 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 col0 FROM tab2 AS cor0
----
72

query II rowsort
SELECT 46 AS col0, - col0 AS col2 FROM tab0 AS cor0
----
46
-15
46
-87
46
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-7538
SELECT COUNT( * ), 89 AS col1 FROM tab0
----
3
89

skipif mysql # not compatible
query II rowsort label-7538
SELECT COUNT ( * ), 89 AS col1 FROM tab0
----
3
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT ALL + COUNT( * ) + + 25 col2 FROM tab2
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7539
SELECT ALL + COUNT ( * ) + + 25 col2 FROM tab2
----
28

query II rowsort
SELECT DISTINCT + col2, - col0 AS col1 FROM tab0
----
10
-87
47
-15
99
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 34 col2 FROM tab2
----
-34

query I rowsort
SELECT + - 63 * - col2 AS col2 FROM tab1 AS cor0
----
3717
4284
6048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7543
SELECT ALL - + CAST( NULL AS SIGNED ) * MAX( DISTINCT + col2 ) * SUM( DISTINCT + + col1 ) + - - 37 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL - + CAST ( NULL AS INTEGER ) * MAX ( DISTINCT + col2 ) * SUM ( DISTINCT + + col1 ) + - - 37 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT SUM( 61 ) AS col2 FROM tab0 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-7544
SELECT SUM ( 61 ) AS col2 FROM tab0 AS cor0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT - MIN( - + col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7545
SELECT - MIN ( - + col0 ) AS col0 FROM tab1 AS cor0
----
91

query I rowsort
SELECT ALL + col1 + - + col2 FROM tab2 AS cor0
----
28
37
9

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col0 + - col0 * col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - col1 + + ( col2 ) FROM tab1 AS cor0
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 col1 FROM tab2 AS cor0
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT ALL ( + 96 ) + + SUM( - 13 ) FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-7550
SELECT ALL ( + 96 ) + + SUM ( - 13 ) FROM tab1 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT DISTINCT - ( + - MIN( DISTINCT - col0 ) ) col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7551
SELECT DISTINCT - ( + - MIN ( DISTINCT - col0 ) ) col1 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT col1 * - 75 + - - 89 FROM tab0 AS cor0
----
-1486
-5986
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7553
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + col1 col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7553
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + col1 col2 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ( + + col0 ) AS col1, - ( 52 ) AS col0 FROM tab2 AS cor0
----
46
-52
64
-52
75
-52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7555
SELECT ALL * FROM tab2 WHERE NOT ( ( NOT CAST( NULL AS SIGNED ) <= NULL ) )
----

skipif mysql # not compatible
query III rowsort label-7555
SELECT ALL * FROM tab2 WHERE NOT ( ( NOT CAST ( NULL AS INTEGER ) <= NULL ) )
----

query II rowsort
SELECT DISTINCT 90, ( col1 ) AS col1 FROM tab1
----
90
14
90
47
90
5

query I rowsort
SELECT ALL + 62 FROM tab1, tab2 cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

onlyif mysql # aggregate syntax: 
query II rowsort label-7558
SELECT - 53 AS col1, SUM( ALL + col1 ) FROM tab1
----
-53
66

skipif mysql # not compatible
query II rowsort label-7558
SELECT - 53 AS col1, SUM ( ALL + col1 ) FROM tab1
----
-53
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT DISTINCT - SUM( DISTINCT - 54 ) FROM tab2, tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7559
SELECT DISTINCT - SUM ( DISTINCT - 54 ) FROM tab2, tab2 AS cor0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 9 col0, col1 + col0 FROM tab2
----
9
141
9
142
9
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT + COUNT( ALL col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7561
SELECT + COUNT ( ALL col0 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT + col1 AS col2, + col2 AS col1 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7563
SELECT DISTINCT * FROM tab0 WHERE NOT - - col2 * col0 - col2 / - 65 + - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7563
SELECT DISTINCT * FROM tab0 WHERE NOT - - col2 * col0 - col2 / - 65 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7564
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT MAX( DISTINCT + ( + + col1 ) ) + ( + COUNT( DISTINCT - + col1 ) ) * - SUM( - + 97 ) - + - COUNT( * ) FROM tab2 cor0
----
953

skipif mysql # not compatible
query I rowsort label-7565
SELECT MAX ( DISTINCT + ( + + col1 ) ) + ( + COUNT ( DISTINCT - + col1 ) ) * - SUM ( - + 97 ) - + - COUNT ( * ) FROM tab2 cor0
----
953

query I rowsort
SELECT DISTINCT - + ( - 37 ) FROM tab1 AS cor0
----
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7567
SELECT ALL CAST( NULL AS DECIMAL ) + col2 / + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7567
SELECT ALL CAST ( NULL AS REAL ) + col2 / + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + - col2 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 + 57 FROM tab2 cor0
----
-1
17
34

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 60 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 87 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * + - col0 + - + 49 FROM tab1
----
-4945
-5064
-6237

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + - 68 AND + col2
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 WHERE NOT 59 IS NULL
----
46
64
75

query I rowsort
SELECT ALL + col1 * - col2 * - col0 + + col2 AS col0 FROM tab0
----
18280
57152
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT + COUNT( DISTINCT - 6 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7576
SELECT + COUNT ( DISTINCT - 6 ) FROM tab1
----
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 / - 94 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7578
SELECT - + 0 + col2 + col2 + - CAST( + + col1 AS SIGNED ) + + col1 * ( CAST( - + 99 AS SIGNED ) ) FROM tab1 AS cor0
----
-1208
-382
-4564

skipif mysql # not compatible
query I rowsort label-7578
SELECT - + 0 + col2 + col2 + - CAST ( + + col1 AS INTEGER ) + + col1 * ( CAST ( - + 99 AS INTEGER ) ) FROM tab1 AS cor0
----
-1208
-382
-4564

query I rowsort
SELECT col0 * - - col0 * + ( 40 ) + - ( + col2 ) FROM tab2 AS cor0
----
163800
224942
84617

onlyif mysql # DIV for integer division: 
query I rowsort label-7580
SELECT DISTINCT 9 DIV - col1 - col0 * - col2 * - 26 AS col1 FROM tab1
----
-127296
-130391
-160888

skipif mysql # not compatible
query I rowsort label-7580
SELECT DISTINCT 9 / - col1 - col0 * - col2 * - 26 AS col1 FROM tab1
----
-127296
-130391
-160888

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT + SUM( DISTINCT + 11 ) FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-7581
SELECT + SUM ( DISTINCT + 11 ) FROM tab1
----
11

query II rowsort
SELECT - col0, + col1 FROM tab2
----
-46
51
-64
77
-75
67

query I rowsort
SELECT - + 86 * - col2 * + col1 AS col0 FROM tab1 cor0
----
115584
25370
274856

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * 74 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <> ( - + 67 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT DISTINCT + COUNT( ALL - - col2 ) * 80 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7586
SELECT DISTINCT + COUNT ( ALL - - col2 ) * 80 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----
0

query II rowsort
SELECT ALL + col1 AS col0, + ( - - col0 ) + + col1 AS col2 FROM tab2 AS cor0
----
51
97
67
142
77
141

onlyif mysql # aggregate syntax: 
query II rowsort label-7588
SELECT - 59, - COUNT( * ) col2 FROM tab2 AS cor0
----
-59
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7588
SELECT - 59, - COUNT ( * ) col2 FROM tab2 AS cor0
----
-59
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( - - 22 ) IS NOT NULL
----

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT - + col1 AS col0, col1 AS col0 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query III rowsort
SELECT - - col1 AS col2, - col1 * ( 42 ) AS col0, - 79 AS col1 FROM tab1 AS cor0
----
9 values hashing to 71a6696ffe7e9b4524d630e09605f2b4

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * + - col2 / 25 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT MIN( DISTINCT - 20 ) * + 42 AS col1 FROM tab1
----
-840

skipif mysql # not compatible
query I rowsort label-7594
SELECT MIN ( DISTINCT - 20 ) * + 42 AS col1 FROM tab1
----
-840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7595
SELECT COUNT( * ) / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7595
SELECT COUNT ( * ) / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > - col2 + + col2
----

query I rowsort
SELECT 46 * - 90 AS col0 FROM tab0
----
-4140
-4140
-4140

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT DISTINCT + COUNT( DISTINCT - + 3 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7598
SELECT DISTINCT + COUNT ( DISTINCT - + 3 ) FROM tab0
----
1

query I rowsort
SELECT DISTINCT + ( + - 12 ) AS col1 FROM tab1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7600
SELECT ALL 84 * + CAST( col1 AS SIGNED ) - + 15 AS col2 FROM tab0 WHERE NOT - col1 <> - ( - + ( col0 ) )
----

skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL 84 * + CAST ( col1 AS INTEGER ) - + 15 AS col2 FROM tab0 WHERE NOT - col1 <> - ( - + ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab2 WHERE - col1 + + 12 + + - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab2 WHERE - col1 + + 12 + + - col2 IS NULL
----
0

query I rowsort
SELECT 12 * + col0 FROM tab0 cor0 WHERE NOT - col2 * - 63 BETWEEN col1 AND NULL
----

query I rowsort
SELECT + col2 * - + 93 FROM tab1 cor0
----
-5487
-6324
-8928

query I rowsort
SELECT DISTINCT + - ( - 77 ) FROM tab1 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT - COUNT( col0 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7605
SELECT - COUNT ( col0 ) AS col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7606
SELECT CAST( + COUNT( * ) AS SIGNED ) * + - COUNT( * ) + + - COUNT( * ) AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7606
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * + - COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

query II rowsort
SELECT + col0 AS col2, + 31 + col1 FROM tab0
----
15
112
87
52
97
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7608
SELECT DISTINCT CAST( NULL AS SIGNED ) / - + 44 + + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7608
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - + 44 + + col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - ( - - col0 ) + + 8 FROM tab0 AS cor0
----
-7
-79
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7610
SELECT ALL + 1 * CAST( + col1 AS SIGNED ) + - 51 + - 11 * - - 46 + col0 FROM tab1 AS cor0
----
-419
-467
-492

skipif mysql # not compatible
query I rowsort label-7610
SELECT ALL + 1 * CAST ( + col1 AS INTEGER ) + - 51 + - 11 * - - 46 + col0 FROM tab1 AS cor0
----
-419
-467
-492

query I rowsort
SELECT col1 + 25 * - - col1 * - + col1 * + col1 * - col1 + 68 FROM tab2 AS cor0
----
169130144
503778160
878826170

query II rowsort
SELECT + col0 / + 24 AS col0, - 30 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + + col2 * + col1 + col2 AS col0 FROM tab0 AS cor0
----
198
220
3854

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT MAX( ALL - col0 ) + + ( - + ( COUNT( * ) ) ) AS col0 FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-7614
SELECT MAX ( ALL - col0 ) + + ( - + ( COUNT ( * ) ) ) AS col0 FROM tab2
----
-49

query I rowsort
SELECT ALL col0 + - 31 FROM tab2
----
15
33
44

query I rowsort
SELECT - 39 * + col2 + 32 FROM tab0
----
-1801
-358
-3829

query I rowsort
SELECT DISTINCT col0 * + + col0 * + 28 + 80 FROM tab1
----
202380
231948
72908

query I rowsort
SELECT ALL - col1 * 16 * 28 FROM tab0
----
-36288
-448
-9408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7619
SELECT ALL - col0 * - + CAST( + col1 AS SIGNED ) + + - col1 FROM tab0
----
1134
1806
96

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL - col0 * - + CAST ( + col1 AS INTEGER ) + + - col1 FROM tab0
----
1134
1806
96

query III rowsort
SELECT * FROM tab0 WHERE + - 55 < - col0 * + col2 * - 66 * + - 54 + - 67 + - col1 * + col1
----

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NULL BETWEEN + + col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - - 46 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND col1
----

query I rowsort
SELECT ALL + - ( 93 ) * - - 47 AS col2 FROM tab1 AS cor0
----
-4371
-4371
-4371

onlyif mysql # DIV for integer division: 
query II rowsort label-7625
SELECT - col0 DIV col1 AS col0, col0 FROM tab1 AS cor0
----
-1
91
-17
85
-3
51

skipif mysql # not compatible
query II rowsort label-7625
SELECT - col0 / col1 AS col0, col0 FROM tab1 AS cor0
----
-1
91
-17
85
-3
51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - ( - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL OR NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT + MIN( - 93 ) * 27 FROM tab1 AS cor0
----
-2511

skipif mysql # not compatible
query I rowsort label-7628
SELECT + MIN ( - 93 ) * 27 FROM tab1 AS cor0
----
-2511

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT - + 0 * + COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7629
SELECT - + 0 * + COUNT ( * ) FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7630
SELECT ALL - col0 + + col0 + - 55 * + col0 * + 76 * + col1 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL - col0 + + col0 + - 55 * + col0 * + 76 * + col1 * + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 30 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7631
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 30 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7632
SELECT + 25 + + col2 * + + CAST( NULL AS DECIMAL ) + + - 70 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7632
SELECT + 25 + + col2 * + + CAST ( NULL AS REAL ) + + - 70 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col1 ) + + 56 AS col2 FROM tab0
----
137
57
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT - - COUNT( * ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7634
SELECT - - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
9

query II rowsort
SELECT 7 - - - 26 AS col0, col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT + COUNT( * ) * - COUNT( * ) + + + 99 AS col0 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-7636
SELECT + COUNT ( * ) * - COUNT ( * ) + + + 99 AS col0 FROM tab1 AS cor0
----
90

query I rowsort
SELECT + + col1 * 56 * ( - 74 ) + col1 * + 5 AS col1 FROM tab2 cor0
----
-211089
-277313
-318703

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7638
SELECT DISTINCT - - ( + ( CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7638
SELECT DISTINCT - - ( + ( CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + 91 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7640
SELECT ALL + col1 DIV 57 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7640
SELECT ALL + col1 / 57 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7641
SELECT + CAST( - + col0 AS SIGNED ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7641
SELECT + CAST ( - + col0 AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL + + 24 FROM tab2 cor0
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT DISTINCT + MIN( ALL - - col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-7643
SELECT DISTINCT + MIN ( ALL - - col1 ) FROM tab1
----
5

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 < ( 38 ) * - - col1
----

query I rowsort
SELECT ( + col0 ) AS col2 FROM tab2 WHERE NOT ( - col2 ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7646
SELECT col0 DIV - - 81 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7646
SELECT col0 / - - 81 AS col2 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7647
SELECT ALL - col0 * col2 * 46 DIV ( - col1 ) FROM tab1
----
16086
46138
6056

skipif mysql # not compatible
query I rowsort label-7647
SELECT ALL - col0 * col2 * 46 / ( - col1 ) FROM tab1
----
16086
46138
6056

query I rowsort
SELECT ( - 46 ) FROM tab1
----
-46
-46
-46

query II rowsort
SELECT ALL col1, ( + ( + col0 ) ) AS col2 FROM tab1
----
14
51
47
91
5
85

query II rowsort
SELECT + 60 AS col0, + col0 + - col2 + - col0 AS col1 FROM tab1 AS cor0
----
60
-59
60
-68
60
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT ALL - MIN( + col1 ) col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7651
SELECT ALL - MIN ( + col1 ) col1 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT DISTINCT + + COUNT( - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7652
SELECT DISTINCT + + COUNT ( - col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL 92 * + col2 * - + 46 AS col2 FROM tab2 AS cor0
----
-169280
-245456
-97336

onlyif mysql # aggregate syntax: 
query II rowsort label-7654
SELECT + - 13, - 42 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-13
-39

skipif mysql # not compatible
query II rowsort label-7654
SELECT + - 13, - 42 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-13
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

query II rowsort
SELECT DISTINCT + - col0 AS col2, + col1 * - + col1 FROM tab2 AS cor0
----
-46
-2601
-64
-5929
-75
-4489

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7657
SELECT DISTINCT CAST( + 67 AS SIGNED ) * - CAST( NULL AS SIGNED ) + + + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7657
SELECT DISTINCT CAST ( + 67 AS INTEGER ) * - CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT 4 + - + col1 AS col2 FROM tab2
----
-47
-63
-73

query I rowsort
SELECT - 63 + + col2 AS col1 FROM tab1
----
-4
33
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col0 FROM tab2 AS cor0 WHERE - 62 + + - col1 + + - col0 IS NOT NULL
----
23
40
58

query II rowsort
SELECT - + ( - - 40 ) + + 2 AS col2, + col1 + + + col0 FROM tab2 AS cor0
----
-38
141
-38
142
-38
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7662
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 > + - CAST( + + 38 AS SIGNED )
----
87
21
10

skipif mysql # not compatible
query III rowsort label-7662
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 > + - CAST ( + + 38 AS INTEGER )
----
87
21
10

query I rowsort
SELECT ALL - 80 + - + col0 AS col1 FROM tab1
----
-131
-165
-171

query I rowsort
SELECT ALL - 31 + - col0 AS col2 FROM tab0
----
-118
-128
-46

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= - 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT - MIN( - col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7666
SELECT - MIN ( - col1 ) AS col2 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT + COUNT( * ) - - 45 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-7667
SELECT + COUNT ( * ) - - 45 FROM tab1
----
48

query I rowsort
SELECT ALL col2 - + col2 - + + col0 * + + 95 * + + 31 FROM tab0
----
-256215
-285665
-44175

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT DISTINCT COUNT( DISTINCT - col0 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7669
SELECT DISTINCT COUNT ( DISTINCT - col0 ) col1 FROM tab2
----
3

query I rowsort
SELECT col1 + - + col1 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col0 * - - 31 AS col2 FROM tab2
----
1426
1984
2325

query I rowsort
SELECT - 71 + + 28 + ( + - col1 ) AS col0 FROM tab2 AS cor0
----
-110
-120
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 + - - 72 col2 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT ALL + - 60 + - + col0 AS col1 FROM tab2 cor0
----
-106
-124
-135

query I rowsort
SELECT - 37 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7676
SELECT CAST( - col0 AS SIGNED ) col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7676
SELECT CAST ( - col0 AS INTEGER ) col1 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7678
SELECT ALL - 92 DIV - + col0 AS col2 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL - 92 / - + col0 AS col2 FROM tab0 AS cor0
----
0
1
6

query I rowsort
SELECT DISTINCT - ( + 5 ) AS col1 FROM tab2 cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT ALL + MAX( ALL + col1 ) * - + 59 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-2773

skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL + MAX ( ALL + col1 ) * - + 59 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-2773

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 <> + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 / ( - col1 ) + col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7683
SELECT - col2 DIV + + ( + - 97 ) col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7683
SELECT - col2 / + + ( + - 97 ) col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT + SUM( - + 53 ) * COUNT( * ) AS col0 FROM tab2
----
-477

skipif mysql # not compatible
query I rowsort label-7684
SELECT + SUM ( - + 53 ) * COUNT ( * ) AS col0 FROM tab2
----
-477

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 46 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + + 26 * - col2 AND - col0
----

query I rowsort
SELECT - col2 * - 23 AS col0 FROM tab1
----
1357
1564
2208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7688
SELECT - CAST( NULL AS SIGNED ) / + - 79 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7688
SELECT - CAST ( NULL AS INTEGER ) / + - 79 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7689
SELECT ALL 99 DIV - col0 FROM tab0
----
-1
-1
-6

skipif mysql # not compatible
query I rowsort label-7689
SELECT ALL 99 / - col0 FROM tab0
----
-1
-1
-6

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col1 + - col1 / col1 <= - 35
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 * col0 col0 FROM tab0
----
-10575
-75690
-931491

onlyif mysql # DIV for integer division: 
query I rowsort label-7692
SELECT ALL - col2 DIV col2 * - + col2 * - col0 AS col0 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL - col2 / col2 * - + col2 * - col0 AS col0 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT + 75 + + + col0 - + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
75
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7694
SELECT + CAST( NULL AS SIGNED ) * 43 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7694
SELECT + CAST ( NULL AS INTEGER ) * 43 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 88 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 * - + col0 col0 FROM tab0
----
-1005
-5829
-6499

query I rowsort
SELECT ALL + col2 + + ( + col1 ) AS col2 FROM tab2 AS cor0
----
117
125
74

query II rowsort
SELECT ALL - 9 + + ( + col2 ), - 70 AS col1 FROM tab2 AS cor0
----
14
-70
31
-70
49
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 62 col2, - 27 AS col1 FROM tab0
----
62
-27
62
-27
62
-27

query I rowsort
SELECT ALL - 33 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + - + col2 * 88 + - col0 * - + 82 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( col0 + - col0 * + col2 )
----

query I rowsort
SELECT - - col0 + - + col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 + - 71 AS col0 FROM tab0 AS cor0
----
-158
-168
-86

query I rowsort
SELECT DISTINCT col2 + - 6 FROM tab1
----
53
62
90

query I rowsort
SELECT - col1 + + + col2 AS col0 FROM tab0
----
-11
-34
98

query I rowsort
SELECT ALL - col1 + + - 48 + - 76 * col0 * + col0 * - 80 FROM tab1
----
15814018
43927947
50348385

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 12 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 BETWEEN - + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 col1 FROM tab2
----
58
58
58

query I rowsort
SELECT 31 - col2 AS col0 FROM tab0 AS cor0
----
-16
-68
21

query I rowsort
SELECT 82 - - + col1 FROM tab1 AS cor0
----
129
87
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT DISTINCT - COUNT( * ) * COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-81

skipif mysql # not compatible
query I rowsort label-7713
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-81

query I rowsort
SELECT + 65 * - + col2 * - 22 AS col2 FROM tab0 WHERE NOT - col2 IS NULL
----
141570
14300
67210

query I rowsort
SELECT col2 + + + col0 + col0 AS col2 FROM tab2 AS cor0 WHERE NOT - 60 IS NULL
----
115
168
208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col1 FROM tab0 AS cor0 WHERE NOT + col1 * + - col2 * col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT ALL + ( + + COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7717
SELECT ALL + ( + + COUNT ( * ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT COUNT( * ) * + COUNT( * ) * - COUNT( - col0 ) AS col1 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-7718
SELECT COUNT ( * ) * + COUNT ( * ) * - COUNT ( - col0 ) AS col1 FROM tab2 AS cor0
----
-27

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( - col1 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7720
SELECT - - MAX( ALL + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7720
SELECT - - MAX ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 83 * - - col1 FROM tab2 AS cor0
----
-4233
-5561
-6391

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT - MIN( - col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7722
SELECT - MIN ( - col0 ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NULL IS NULL OR NOT - 58 IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7724
SELECT ALL + 47 DIV - 14 AS col1 FROM tab1 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL + 47 / - 14 AS col1 FROM tab1 AS cor0
----
-3
-3
-3

query I rowsort
SELECT DISTINCT + 6 * col1 + + + 88 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col2 * + col0 * + col0 AS col2 FROM tab0
----
10575
75690
931491

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT ALL + + COUNT( ALL col1 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7727
SELECT ALL + + COUNT ( ALL col1 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT - COUNT( * ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7728
SELECT - COUNT ( * ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT + ( + col0 ) * + col2 AS col2 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7730
SELECT + COUNT( * ) DIV - + COUNT( * ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7730
SELECT + COUNT ( * ) / - + COUNT ( * ) AS col1 FROM tab2
----
-1

query I rowsort
SELECT 82 * + col1 FROM tab0
----
1722
6642
82

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( - 79 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 0 * + + col0 * - col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + 30 ) col1, 84 AS col1 FROM tab2
----
30
84
30
84
30
84

query I rowsort
SELECT ( - col0 ) * - - 16 FROM tab1
----
-1360
-1456
-816

query I rowsort
SELECT ALL - 76 AS col2 FROM tab2
----
-76
-76
-76

query I rowsort
SELECT + 94 * + - col2 * - 58 AS col0 FROM tab1 AS cor0
----
321668
370736
523392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7738
SELECT + col2 * - CAST( NULL AS SIGNED ) + + 56 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7738
SELECT + col2 * - CAST ( NULL AS INTEGER ) + + 56 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col2 - + col1 FROM tab2 AS cor0 WHERE NOT - 46 * + ( col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL + + ( + - 6 ) FROM tab2 AS cor0
----
-6
-6
-6

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 < NULL
----

query I rowsort
SELECT ALL - + 32 + - col1 * + col0 FROM tab0 AS cor0 WHERE col0 < + col0 AND 3 * ( - col0 ) < NULL
----

query I rowsort
SELECT col2 * - col0 * + - 89 - - - col0 * + - col1 FROM tab1
----
436458
446760
555009

query I rowsort
SELECT DISTINCT - 35 + + + col1 AS col1 FROM tab2
----
16
32
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 - col2 col0 FROM tab1
----
-126
-89
-98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 91 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE ( NULL ) IS NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7748
SELECT ALL + col0 + - col1 DIV - col2 col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7748
SELECT ALL + col0 + - col1 / - col2 col1 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT + 22 FROM tab0 WHERE 49 NOT BETWEEN col0 + - col1 * + - col0 * + col0 - + - 23 AND - - col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT MIN( - 81 ) FROM tab2, tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7750
SELECT MIN ( - 81 ) FROM tab2, tab1 AS cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 18 col2 FROM tab2
----
-69
-85
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7752
SELECT 80 + + - CAST( + 6 AS SIGNED ) AS col0 FROM tab2
----
74
74
74

skipif mysql # not compatible
query I rowsort label-7752
SELECT 80 + + - CAST ( + 6 AS INTEGER ) AS col0 FROM tab2
----
74
74
74

query I rowsort
SELECT ALL col2 * + col1 - col0 AS col1 FROM tab0
----
123
2
3792

onlyif mysql # DIV for integer division: 
query I rowsort label-7754
SELECT ALL - 42 DIV + - 10 col2 FROM tab0 WHERE NULL IS NULL
----
4
4
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7754
SELECT ALL - 42 / + - 10 col2 FROM tab0 WHERE NULL IS NULL
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7755
SELECT + col1 * - 83 + 42 + + CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7755
SELECT + col1 * - 83 + 42 + + CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * col1 + - 9 AS col1 FROM tab1
----
-205
-2218
-34

query I rowsort
SELECT ALL + 70 - + col1 + + - col0 + col0 AS col2 FROM tab2
----
-7
19
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 - + 35 col0 FROM tab1
----
135
147
67

query I rowsort
SELECT DISTINCT col2 - - 88 FROM tab2
----
111
128
146

onlyif mysql # aggregate syntax: 
query II rowsort label-7760
SELECT DISTINCT COUNT( * ) AS col0, 37 AS col0 FROM tab2 AS cor0
----
3
37

skipif mysql # not compatible
query II rowsort label-7760
SELECT DISTINCT COUNT ( * ) AS col0, 37 AS col0 FROM tab2 AS cor0
----
3
37

query II rowsort
SELECT - col0, + col2 + + 95 AS col1 FROM tab0 cor0
----
-15
142
-87
105
-97
194

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 * + 26 IS NULL
----

query I rowsort
SELECT DISTINCT + - col1 * + col2 + - col1 AS col0 FROM tab0 cor0
----
-100
-231
-3888

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT - ( COUNT( DISTINCT + col1 ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7764
SELECT - ( COUNT ( DISTINCT + col1 ) ) AS col1 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - - ( - col1 ) AS col1, - col1 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT ALL COUNT( * ) * 88 AS col0 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-7766
SELECT ALL COUNT ( * ) * 88 AS col0 FROM tab2
----
264

query II rowsort
SELECT col0 * - col0 * col1 AS col0, - 6 AS col0 FROM tab2
----
-107916
-6
-315392
-6
-376875
-6

query I rowsort
SELECT DISTINCT - 2 + - - col0 FROM tab1
----
49
83
89

query I rowsort
SELECT col1 + + 95 AS col2 FROM tab2
----
146
162
172

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT DISTINCT + MIN( ALL - col1 ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7770
SELECT DISTINCT + MIN ( ALL - col1 ) AS col1 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-7771
SELECT ALL + 17 AS col2, - COUNT( * ) FROM tab2
----
17
-3

skipif mysql # not compatible
query II rowsort label-7771
SELECT ALL + 17 AS col2, - COUNT ( * ) FROM tab2
----
17
-3

query I rowsort
SELECT 20 + ( - 63 ) FROM tab0
----
-43
-43
-43

query I rowsort
SELECT ALL - - col1 * + 26 FROM tab0 AS cor0
----
2106
26
546

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 58 >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN 42 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7776
SELECT COUNT( * ), + 25 AS col0 FROM tab1 AS cor0
----
3
25

skipif mysql # not compatible
query II rowsort label-7776
SELECT COUNT ( * ), + 25 AS col0 FROM tab1 AS cor0
----
3
25

query I rowsort
SELECT - col0 * - 4 FROM tab2 AS cor0
----
184
256
300

query I rowsort
SELECT col1 * ( - + col1 ) FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7779
SELECT - 92 AS col0, - col2 - + col2 / - col1 + - + col2 + + 49 * col2 * + CAST( NULL AS SIGNED ) * col1 / + + col2 col1 FROM tab0 AS cor0
----
-92
NULL
-92
NULL
-92
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7779
SELECT - 92 AS col0, - col2 - + col2 / - col1 + - + col2 + + 49 * col2 * + CAST ( NULL AS INTEGER ) * col1 / + + col2 col1 FROM tab0 AS cor0
----
-92
NULL
-92
NULL
-92
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * + 69 / - ( + + col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7781
SELECT ALL - col0 / CAST( NULL AS SIGNED ) + - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7781
SELECT ALL - col0 / CAST ( NULL AS INTEGER ) + - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 27 + + - col2 FROM tab0
----
-20
-72
17

query I rowsort
SELECT ALL ( + ( - + col0 ) ) + col2 FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT ALL 94 * + COUNT( * ) FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL 94 * + COUNT ( * ) FROM tab0
----
282

query I rowsort
SELECT DISTINCT 79 * - + col0 FROM tab2
----
-3634
-5056
-5925

query I rowsort
SELECT + 73 + + 80 FROM tab1 AS cor0
----
153
153
153

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7787
SELECT * FROM tab1 AS cor0 WHERE 10 + - ( - CAST( NULL AS DECIMAL ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7787
SELECT * FROM tab1 AS cor0 WHERE 10 + - ( - CAST ( NULL AS REAL ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7788
SELECT DISTINCT col2 DIV col2 * col1 AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7788
SELECT DISTINCT col2 / col2 * col1 AS col2 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 78 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 61 * - 82 * - col0 <= NULL
----

query I rowsort
SELECT ALL + 42 + col2 FROM tab2
----
100
65
82

query I rowsort
SELECT DISTINCT col1 - + - 59 FROM tab1
----
106
64
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7793
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) * - 43 * + + 80 FROM tab0
----
-10320

skipif mysql # not compatible
query I rowsort label-7793
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) * - 43 * + + 80 FROM tab0
----
-10320

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT - + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL > + col1
----
0

skipif mysql # not compatible
query I rowsort label-7794
SELECT - + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL > + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT + COUNT( - - col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7795
SELECT + COUNT ( - - col0 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + + 96 * - + col1 FROM tab0 AS cor0
----
-2016
-7776
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-7797
SELECT DISTINCT col0, 3 DIV - 47 FROM tab1
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-7797
SELECT DISTINCT col0, 3 / - 47 FROM tab1
----
51
0
85
0
91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT SUM( ALL 50 ) col0 FROM tab0 AS cor0
----
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7798
SELECT SUM ( ALL 50 ) col0 FROM tab0 AS cor0
----
150

query II rowsort
SELECT 90 AS col0, col0 FROM tab2 cor0
----
90
46
90
64
90
75

query II rowsort
SELECT col1, col0 AS col1 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7801
SELECT DISTINCT * FROM tab2 cor0 WHERE - ( + 23 ) - + col1 + - CAST( NULL AS SIGNED ) * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7801
SELECT DISTINCT * FROM tab2 cor0 WHERE - ( + 23 ) - + col1 + - CAST ( NULL AS INTEGER ) * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 65 * + 86 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 91 + + ( - ( + col2 ) ) * + col2 FROM tab2
----
-1509
-3273
-438

query III rowsort
SELECT * FROM tab0 WHERE ( NULL <= col1 / col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 4 * 66 col1 FROM tab1
----
264
264
264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7806
SELECT CAST( NULL AS SIGNED ) * + 14 - + 15 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-7806
SELECT CAST ( NULL AS INTEGER ) * + 14 - + 15 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 23 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 40 col2 FROM tab2 AS cor0 WHERE 83 / ( + col2 ) IS NULL
----

query II rowsort
SELECT + 67 AS col2, + col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
67
46
67
64
67
75

query I rowsort
SELECT ( col1 ) AS col1 FROM tab0 WHERE + ( + 29 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT 58 * - COUNT( * ) FROM tab0
----
-174

skipif mysql # not compatible
query I rowsort label-7811
SELECT 58 * - COUNT ( * ) FROM tab0
----
-174

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + + col1 * + + ( - + 89 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7813
SELECT 89 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) - col2 + col0 * + col0 * - 70 IS NULL
----
89
89
89

skipif mysql # not compatible
query I rowsort label-7813
SELECT 89 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) - col2 + col0 * + col0 * - 70 IS NULL
----
89
89
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7814
SELECT DISTINCT + - col1 * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7814
SELECT DISTINCT + - col1 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7815
SELECT ALL + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT col1 / - CAST( NULL AS SIGNED ) * - 17 + + - col1 * - ( + CAST( - col0 AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT col1 / - CAST ( NULL AS INTEGER ) * - 17 + + - col1 * - ( + CAST ( - col0 AS REAL ) ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7816
SELECT - col2 - + 1 + 69 + - 36 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7816
SELECT - col2 - + 1 + 69 + - 36 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 2 * + col0 AS col0 FROM tab2
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT ALL SUM( 82 ) * - COUNT( * ) * - - SUM( - + 53 ) FROM tab0
----
117342

skipif mysql # not compatible
query I rowsort label-7818
SELECT ALL SUM ( 82 ) * - COUNT ( * ) * - - SUM ( - + 53 ) FROM tab0
----
117342

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE - - col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7820
SELECT ALL - 52 DIV 52 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7820
SELECT ALL - 52 / 52 AS col1 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 BETWEEN + 30 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < 75
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( + 16 ) > col0 * - 25 + + 49
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - ( - col2 ) * + 72 AS col2 FROM tab0 cor0
----
-3384
-7128
-720

query I rowsort
SELECT DISTINCT - 98 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-98

query I rowsort
SELECT ALL + + 25 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query II rowsort
SELECT ALL - 75, 28 AS col2 FROM tab0
----
-75
28
-75
28
-75
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 96 IS NOT NULL
----

query II rowsort
SELECT + 99 + + + ( 8 ) AS col1, + col0 * + 8 + - + col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
107
357
107
595
107
637

query I rowsort
SELECT ALL col2 + - col2 + - col1 AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT - col0 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col1 * + - 57 * - ( + 23 ) + + col2 * - 75 AS col0 FROM tab2 AS cor0
----
65136
83487
97947

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT DISTINCT + + MIN( + + col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7834
SELECT DISTINCT + + MIN ( + + col2 ) AS col1 FROM tab1 AS cor0
----
59

query I rowsort
SELECT 85 + + col2 AS col1 FROM tab1 AS cor0
----
144
153
181

query I rowsort
SELECT DISTINCT + col0 * 33 + - col1 FROM tab1
----
1669
2800
2956

onlyif mysql # aggregate syntax: 
query II rowsort label-7837
SELECT + 47 + - 1 AS col0, COUNT( * ) FROM tab1
----
46
3

skipif mysql # not compatible
query II rowsort label-7837
SELECT + 47 + - 1 AS col0, COUNT ( * ) FROM tab1
----
46
3

query I rowsort
SELECT + col1 + 47 FROM tab1
----
52
61
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT COUNT( ALL - 90 ) + COUNT( * ) col0 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7839
SELECT COUNT ( ALL - 90 ) + COUNT ( * ) col0 FROM tab0
----
6

query I rowsort
SELECT DISTINCT col1 + + col1 - + 97 FROM tab0
----
-55
-95
65

onlyif mysql # aggregate syntax: 
query II rowsort label-7841
SELECT ALL COUNT( * ) AS col2, - 2 FROM tab1
----
3
-2

skipif mysql # not compatible
query II rowsort label-7841
SELECT ALL COUNT ( * ) AS col2, - 2 FROM tab1
----
3
-2

query I rowsort
SELECT DISTINCT col1 + + 62 FROM tab1
----
109
67
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT ALL 56 + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
59

skipif mysql # not compatible
query I rowsort label-7843
SELECT ALL 56 + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7844
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( 62 - + col0, + CAST( NULL AS SIGNED ) * - + col1 )
----

skipif mysql # not compatible
query III rowsort label-7844
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( 62 - + col0, + CAST ( NULL AS INTEGER ) * - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT DISTINCT + COUNT( - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7845
SELECT DISTINCT + COUNT ( - col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ( + - 17 ) - - 88 + col2 AS col0 FROM tab0
----
118
170
81

query II rowsort
SELECT ALL - 70 + col1 AS col1, + 51 AS col2 FROM tab0
----
-49
51
-69
51
11
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 43 - - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT - - 69 * - 65 * + col1 FROM tab1 AS cor0
----
-210795
-22425
-62790

query I rowsort
SELECT col2 + + - 0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT ALL + 16 * + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-7852
SELECT ALL + 16 * + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 83 col2 FROM tab1 AS cor0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT DISTINCT ( - SUM( ALL - col1 ) ) AS col1 FROM tab0 cor0 WHERE NOT - 0 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7854
SELECT DISTINCT ( - SUM ( ALL - col1 ) ) AS col1 FROM tab0 cor0 WHERE NOT - 0 NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT DISTINCT 44 * 75 AS col1 FROM tab2
----
3300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7856
SELECT + COUNT( * ) DIV - + ( - COUNT( * ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7856
SELECT + COUNT ( * ) / - + ( - COUNT ( * ) ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT ALL SUM( col1 ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7857
SELECT ALL SUM ( col1 ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - 89 + - col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 8 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * - ( - 7 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 39 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7862
SELECT - col2 * + col1 - col0 DIV col0 AS col2 FROM tab1
----
-1345
-296
-3197

skipif mysql # not compatible
query I rowsort label-7862
SELECT - col2 * + col1 - col0 / col0 AS col2 FROM tab1
----
-1345
-296
-3197

query I rowsort
SELECT - ( col0 ) FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7864
SELECT DISTINCT - col0 - 7 DIV - col1 FROM tab1
----
-51
-84
-91

skipif mysql # not compatible
query I rowsort label-7864
SELECT DISTINCT - col0 - 7 / - col1 FROM tab1
----
-51
-84
-91

query I rowsort
SELECT + col0 * + 89 FROM tab1
----
4539
7565
8099

query III rowsort
SELECT ALL * FROM tab0 WHERE + 60 + + col1 / + col0 IN ( 6 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7867
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7867
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7868
SELECT ALL + CAST( NULL AS SIGNED ) + + 96 * col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL + CAST ( NULL AS INTEGER ) + + 96 * col1 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7869
SELECT + 57 DIV 21 - + 77 col1 FROM tab1
----
-75
-75
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7869
SELECT + 57 / 21 - + 77 col1 FROM tab1
----
-75
-75
-75

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col1 ) NOT BETWEEN - col0 * col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col0 col2 FROM tab2
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT ALL ( COUNT( * ) ) * + 2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7872
SELECT ALL ( COUNT ( * ) ) * + 2 FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7873
SELECT * FROM tab0 WHERE + col0 * col0 + col2 * + CAST( + 60 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7873
SELECT * FROM tab0 WHERE + col0 * col0 + col2 * + CAST ( + 60 AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 / - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + ( 95 ) FROM tab1
----
1330
4465
475

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * + col1 <> + col2
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7877
SELECT - 87 DIV col1 col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7877
SELECT - 87 / col1 col1 FROM tab2
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7878
SELECT + 91 DIV - col2 - col1 FROM tab0
----
-1
-30
-82

skipif mysql # not compatible
query I rowsort label-7878
SELECT + 91 / - col2 - col1 FROM tab0
----
-1
-30
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 64 col0 FROM tab1
----
-13
21
27

query I rowsort
SELECT + 60 * - col1 AS col0 FROM tab0
----
-1260
-4860
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT - 77 * - COUNT( * ) AS col2 FROM tab1
----
231

skipif mysql # not compatible
query I rowsort label-7881
SELECT - 77 * - COUNT ( * ) AS col2 FROM tab1
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT SUM( DISTINCT - 93 ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-7882
SELECT SUM ( DISTINCT - 93 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7883
SELECT ALL - CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL - CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL ( + 56 ) - - col0 AS col2 FROM tab1 AS cor0 WHERE NOT 34 IS NULL
----
107
141
147

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT ( col0 * - col1 ) > col0 * + 45
----
-1
-21
-81

query I rowsort
SELECT col1 + + 98 AS col1 FROM tab2 AS cor0
----
149
165
175

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT ALL + ( MAX( DISTINCT + col2 ) ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7888
SELECT ALL + ( MAX ( DISTINCT + col2 ) ) AS col2 FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL col1 * 23 + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT 95 + col2 IS NULL
----
1128
120
336

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT DISTINCT ( MIN( + 58 ) ) * - 90 AS col2 FROM tab0 AS cor0 WHERE - 35 / - col0 BETWEEN + 94 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT ( MIN ( + 58 ) ) * - 90 AS col2 FROM tab0 AS cor0 WHERE - 35 / - col0 BETWEEN + 94 AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 + + col1 col0 FROM tab1 AS cor0
----
41
50
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7892
SELECT CAST( 95 AS SIGNED ) col0 FROM tab2
----
95
95
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7892
SELECT CAST ( 95 AS INTEGER ) col0 FROM tab2
----
95
95
95

onlyif mysql # DIV for integer division: 
query I rowsort label-7893
SELECT 27 DIV - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7893
SELECT 27 / - col0 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 + col0 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( + col0 * 26 ) > ( 55 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 51 > ( - col0 )
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT + 82 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-7897
SELECT + 82 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
246

query I rowsort
SELECT + 73 + col2 * 23 FROM tab2 AS cor0 WHERE NOT - col2 < - 62 - + col1
----
1407
602
993

query I rowsort
SELECT DISTINCT + 75 * + col1 AS col1 FROM tab1 AS cor0
----
1050
3525
375

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT COUNT( * ) * SUM( col0 ) FROM tab0
----
597

skipif mysql # not compatible
query I rowsort label-7900
SELECT COUNT ( * ) * SUM ( col0 ) FROM tab0
----
597

query I rowsort
SELECT - 82 FROM tab2 WHERE NOT + 94 * col2 IN ( - ( - col2 ) )
----
-82
-82
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7902
SELECT + CAST( - SUM( - 30 ) AS SIGNED ) FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-7902
SELECT + CAST ( - SUM ( - 30 ) AS INTEGER ) FROM tab2
----
90

query I rowsort
SELECT 11 * + 36 * ( - col0 ) AS col0 FROM tab1
----
-20196
-33660
-36036

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT DISTINCT COUNT( - col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7904
SELECT DISTINCT COUNT ( - col1 ) AS col1 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7905
SELECT ALL col2 DIV col0 * - 58 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7905
SELECT ALL col2 / col0 * - 58 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7906
SELECT ALL - COUNT( * ) * - 78 DIV - 76 AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL - COUNT ( * ) * - 78 / - 76 AS col0 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 95 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 - 47 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7909
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * - CAST( NULL AS DECIMAL ) IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-7909
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * - CAST ( NULL AS REAL ) IN ( col2 )
----

query I rowsort
SELECT DISTINCT - ( + col1 ) + + - 40 FROM tab2 AS cor0
----
-107
-117
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT - MAX( - col0 ) FROM tab0 AS cor0 WHERE + col2 + col1 * 9 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7911
SELECT - MAX ( - col0 ) FROM tab0 AS cor0 WHERE + col2 + col1 * 9 <> NULL
----
NULL

query I rowsort
SELECT - col1 + - 19 FROM tab0 AS cor0
----
-100
-20
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT + - COUNT( * ) + - 52 - 52 FROM tab2 AS cor0
----
-107

skipif mysql # not compatible
query I rowsort label-7913
SELECT + - COUNT ( * ) + - 52 - 52 FROM tab2 AS cor0
----
-107

onlyif mysql # DIV for integer division: 
query I rowsort label-7914
SELECT ALL col0 DIV + - 2 + col2 + + col1 AS col2 FROM tab1 AS cor0
----
22
70
85

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL col0 / + - 2 + col2 + + col1 AS col2 FROM tab1 AS cor0
----
22
70
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7915
SELECT DISTINCT 57 * 9 * - ( - col2 ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7915
SELECT DISTINCT 57 * 9 * - ( - col2 ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col2 + 34 FROM tab0 AS cor0
----
133
44
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7917
SELECT DISTINCT + col1 DIV - col0 + + + col2 AS col1 FROM tab0
----
10
42
99

skipif mysql # not compatible
query I rowsort label-7917
SELECT DISTINCT + col1 / - col0 + + + col2 AS col1 FROM tab0
----
10
42
99

query I rowsort
SELECT - 36 AS col0 FROM tab2 WHERE + col1 * - col2 IS NULL
----

query I rowsort
SELECT DISTINCT 22 + - 27 * col0 FROM tab2 WHERE ( - + 92 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT DISTINCT SUM( + col2 ) + - ( + COUNT( * ) ) FROM tab2
----
118

skipif mysql # not compatible
query I rowsort label-7920
SELECT DISTINCT SUM ( + col2 ) + - ( + COUNT ( * ) ) FROM tab2
----
118

query III rowsort
SELECT * FROM tab0 WHERE 23 * - col0 + + col2 * + 11 + col1 * col0 IN ( + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE - ( 79 ) * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7923
SELECT DISTINCT + COUNT( * ) + - COUNT( * ), 98 AS col2 FROM tab1
----
0
98

skipif mysql # not compatible
query II rowsort label-7923
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ), 98 AS col2 FROM tab1
----
0
98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7924
SELECT ALL CAST( CAST( NULL AS DECIMAL ) AS DECIMAL ) - + COUNT( * ) * + + 45 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL CAST ( CAST ( NULL AS REAL ) AS REAL ) - + COUNT ( * ) * + + 45 FROM tab0
----
NULL

query I rowsort
SELECT ALL + 92 + + col1 FROM tab0 AS cor0 WHERE NOT ( + + col2 ) / 31 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 26 - col1 AS col2 FROM tab2 AS cor0
----
-25
-41
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT ALL + - MIN( + ( col1 ) ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7927
SELECT ALL + - MIN ( + ( col1 ) ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7929
SELECT DISTINCT col2 + col1 / col2 AS col2 FROM tab2 AS cor0 WHERE NOT 76 + ( + 61 ) - + CAST( NULL AS SIGNED ) * + col2 NOT BETWEEN 84 AND col1
----

skipif mysql # not compatible
query I rowsort label-7929
SELECT DISTINCT col2 + col1 / col2 AS col2 FROM tab2 AS cor0 WHERE NOT 76 + ( + 61 ) - + CAST ( NULL AS INTEGER ) * + col2 NOT BETWEEN 84 AND col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7930
SELECT ALL - COUNT( * ) col0, 0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7930
SELECT ALL - COUNT ( * ) col0, 0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT MAX( ALL + + 66 ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-7931
SELECT MAX ( ALL + + 66 ) FROM tab2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT + 46 * SUM( + col2 ) FROM tab1
----
10258

skipif mysql # not compatible
query I rowsort label-7932
SELECT + 46 * SUM ( + col2 ) FROM tab1
----
10258

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT DISTINCT + COUNT( * ) * + COUNT( ALL col1 ) AS col2 FROM tab0 WHERE ( + col1 * 73 ) BETWEEN ( NULL ) AND - 7
----
0

skipif mysql # not compatible
query I rowsort label-7933
SELECT DISTINCT + COUNT ( * ) * + COUNT ( ALL col1 ) AS col2 FROM tab0 WHERE ( + col1 * 73 ) BETWEEN ( NULL ) AND - 7
----
0

query I rowsort
SELECT ALL + 47 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL 92 FROM tab2 AS cor0 WHERE NULL IS NULL
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - 49 * + col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7936
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - 49 * + col2 >= NULL
----
0

query II rowsort
SELECT 36, 28 AS col2 FROM tab2 AS cor0
----
36
28
36
28
36
28

query I rowsort
SELECT + 49 * col2 FROM tab2 cor0
----
1127
1960
2842

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT - ( - COUNT( * ) ) * - - 38 AS col2 FROM tab0 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-7939
SELECT - ( - COUNT ( * ) ) * - - 38 AS col2 FROM tab0 AS cor0
----
114

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 34 + + col2 - - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7941
SELECT DISTINCT col2, col2 DIV - col1 FROM tab1
----
59
-11
68
-1
96
-6

skipif mysql # not compatible
query II rowsort label-7941
SELECT DISTINCT col2, col2 / - col1 FROM tab1
----
59
-11
68
-1
96
-6

query I rowsort
SELECT ALL col0 * ( + - col2 ) FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT - MAX( DISTINCT - - ( - 35 ) ) FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-7943
SELECT - MAX ( DISTINCT - - ( - 35 ) ) FROM tab0
----
35

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 49 * + + 71 + - col1 NOT BETWEEN ( col0 ) + - col2 AND ( + 32 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7946
SELECT + + 77 - 93 + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL = CAST( - col1 AS SIGNED ) + 86
----
-16

skipif mysql # not compatible
query I rowsort label-7946
SELECT + + 77 - 93 + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL = CAST ( - col1 AS INTEGER ) + 86
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7947
SELECT ALL * FROM tab1 WHERE NOT col1 + - 33 + - + col2 + - + CAST( NULL AS SIGNED ) + col1 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7947
SELECT ALL * FROM tab1 WHERE NOT col1 + - 33 + - + col2 + - + CAST ( NULL AS INTEGER ) + col1 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7948
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL - col2 + col0 + + - col2 FROM tab0 AS cor0
----
-101
-79
67

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT ( ( NOT NULL IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT DISTINCT - - COUNT( * ) + - + COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7951
SELECT DISTINCT - - COUNT ( * ) + - + COUNT ( * ) FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 + col2 col2 FROM tab2 AS cor0
----
-36
-54
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-7953
SELECT - + col0 DIV col2 + + 9 AS col1 FROM tab2 AS cor0
----
7
8
8

skipif mysql # not compatible
query I rowsort label-7953
SELECT - + col0 / col2 + + 9 AS col1 FROM tab2 AS cor0
----
7
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT ALL + + ( + COUNT( * ) ) + - COUNT( * ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL + + ( + COUNT ( * ) ) + - COUNT ( * ) AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE - 73 * - col0 * + col2 / col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT DISTINCT MAX( ALL 92 ) + - COUNT( * ) AS col1 FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-7956
SELECT DISTINCT MAX ( ALL 92 ) + - COUNT ( * ) AS col1 FROM tab0
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-7957
SELECT DISTINCT 88 DIV col1 * + + 66 + - col2 FROM tab0
----
19
254
5709

skipif mysql # not compatible
query I rowsort label-7957
SELECT DISTINCT 88 / col1 * + + 66 + - col2 FROM tab0
----
19
254
5709

query I rowsort
SELECT 45 - - col1 AS col0 FROM tab1
----
50
59
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT ALL COUNT( * ) + - 80 FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-7959
SELECT ALL COUNT ( * ) + - 80 FROM tab0
----
-77

query I rowsort
SELECT DISTINCT + col0 - - + 64 AS col2 FROM tab2
----
110
128
139

query I rowsort
SELECT - col2 - - - col2 AS col0 FROM tab0
----
-198
-20
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7962
SELECT - AVG ( ALL - col2 ) / 43 + - + AVG ( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7962
SELECT - AVG ( ALL - col2 ) / 43 + - + AVG ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT - 56 + - col1 FROM tab1
----
-103
-61
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-7964
SELECT DISTINCT - col2 DIV col0 - - 10 * + + 36 col1 FROM tab1
----
359
360

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7964
SELECT DISTINCT - col2 / col0 - - 10 * + + 36 col1 FROM tab1
----
359
360

query I rowsort
SELECT ALL 57 - + - col0 FROM tab1
----
108
142
148

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT + MIN( + 74 ) + - MAX( - - col1 ) AS col1 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-7966
SELECT + MIN ( + 74 ) + - MAX ( - - col1 ) AS col1 FROM tab0 AS cor0
----
-7

query I rowsort
SELECT ALL + + 31 - col1 FROM tab0 AS cor0
----
-50
10
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT DISTINCT - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7968
SELECT DISTINCT - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * - col0 * + col0 AS col0 FROM tab1 AS cor0
----
-249696
-426275
-563108

query II rowsort
SELECT + ( - - col2 ) AS col0, - col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

query I rowsort
SELECT ALL + 48 AS col1 FROM tab2 AS cor0 WHERE NOT + 5 + + 89 BETWEEN - - col1 + - col2 AND ( NULL )
----

query I rowsort
SELECT - col2 * - 41 FROM tab0 AS cor0
----
1927
4059
410

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT DISTINCT + MIN( DISTINCT - - 52 ) FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-7974
SELECT DISTINCT + MIN ( DISTINCT - - 52 ) FROM tab2 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT ALL ( + COUNT( DISTINCT 21 ) ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7975
SELECT ALL ( + COUNT ( DISTINCT 21 ) ) AS col0 FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7976
SELECT DISTINCT AVG ( - + col2 ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT AVG ( - + col2 ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT - COUNT( DISTINCT + 69 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7977
SELECT - COUNT ( DISTINCT + 69 ) AS col0 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT + ( - COUNT( * ) ) * + + COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7978
SELECT + ( - COUNT ( * ) ) * + + COUNT ( * ) FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7979
SELECT + CAST( NULL AS SIGNED ) * + + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7979
SELECT + CAST ( NULL AS INTEGER ) * + + col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 55 AS col0, col1 * - col2 + + + col2 * - - 92 FROM tab2
----
55
1450
55
600
55
943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7981
SELECT col2 + - + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7981
SELECT col2 + - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + 11 NOT IN ( col2, + 6 )
----

query I rowsort
SELECT DISTINCT 82 * - col1 - col0 AS col2 FROM tab0 WHERE NOT col2 >= - + 48
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col2, - col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7985
SELECT ALL - + 96 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7985
SELECT ALL - + 96 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7986
SELECT ALL - COUNT( * ) * + CAST( - 44 AS SIGNED ) FROM tab1 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL - COUNT ( * ) * + CAST ( - 44 AS INTEGER ) FROM tab1 AS cor0
----
132

query I rowsort
SELECT ALL + 26 + - 52 FROM tab2 AS cor0
----
-26
-26
-26

query I rowsort
SELECT + 29 * + col0 FROM tab0
----
2523
2813
435

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT SUM( col2 ) col0 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7989
SELECT SUM ( col2 ) col0 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT ALL 81 + COUNT( * ) AS col2 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-7990
SELECT ALL 81 + COUNT ( * ) AS col2 FROM tab2
----
84

query I rowsort
SELECT ALL + col2 * + 45 FROM tab0 cor0
----
2115
4455
450

query I rowsort
SELECT DISTINCT - - col1 * + - col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT MAX( + + col0 ) * - + ( + - 30 ) - + - ( - 37 ) FROM tab1 AS cor0 WHERE ( + col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7993
SELECT MAX ( + + col0 ) * - + ( + - 30 ) - + - ( - 37 ) FROM tab1 AS cor0 WHERE ( + col0 ) IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab2 AS cor0 WHERE ( + col1 + + - col0 ) IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT DISTINCT + MIN( DISTINCT ( - col2 ) ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7995
SELECT DISTINCT + MIN ( DISTINCT ( - col2 ) ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT ALL col1 + + - 37 + + col2 FROM tab0 AS cor0
----
-6
63
91

query I rowsort
SELECT DISTINCT + + 67 + 68 AS col0 FROM tab2 AS cor0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT SUM( DISTINCT - col1 ) + - + ( - ( + 29 ) ) AS col1 FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-7998
SELECT SUM ( DISTINCT - col1 ) + - + ( - ( + 29 ) ) AS col1 FROM tab0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7999
SELECT DISTINCT col0 + + 73 + + CAST( NULL AS SIGNED ) + + 81 / - 16 + - col0 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7999
SELECT DISTINCT col0 + + 73 + + CAST ( NULL AS INTEGER ) + + 81 / - 16 + - col0 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col2 * + 94 + + + col0 FROM tab1
----
5631
6483
9075

query II rowsort
SELECT 94 * + col1 AS col2, col0 AS col1 FROM tab0
----
1974
87
7614
15
94
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - col0 * 30 * col2 col0 FROM tab0
----
21069
26079
288089

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8003
SELECT - + COUNT( * ) AS col2 FROM tab1 WHERE - - col0 / - + col2 NOT BETWEEN NULL AND + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8003
SELECT - + COUNT ( * ) AS col2 FROM tab1 WHERE - - col0 / - + col2 NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT col2 + - - 11 * col0 AS col0 FROM tab0
----
1166
212
967

query I rowsort
SELECT - col1 - - ( + ( col1 ) ) + + col0 AS col1 FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 60 col2 FROM tab0 cor0
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT ALL MAX( col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL MAX ( col0 ) AS col1 FROM tab1
----
91

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 NOT BETWEEN - + col0 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8009
SELECT DISTINCT COUNT( * ) DIV + 38 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8009
SELECT DISTINCT COUNT ( * ) / + 38 FROM tab0
----
0

query II rowsort
SELECT ALL + col0 AS col0, 19 FROM tab2 AS cor0
----
46
19
64
19
75
19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 10 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 56 + + col0 AND ( + col0 ) + - col0
----

query I rowsort
SELECT + ( - 66 ) AS col0 FROM tab1 AS cor0
----
-66
-66
-66

query I rowsort
SELECT ALL - col0 - + col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-104
-133
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8015
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / + 10 + col2 + - ( col1 ) FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8015
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / + 10 + col2 + - ( col1 ) FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + 60 + col0 * - - ( + + col1 ) FROM tab1
----
4337
485
774

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT DISTINCT - MIN( ALL - + 52 ) AS col0 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT - MIN ( ALL - + 52 ) AS col0 FROM tab0
----
52

query I rowsort
SELECT ALL ( + 12 ) AS col1 FROM tab2
----
12
12
12

query I rowsort
SELECT DISTINCT + ( - col0 ) * - 10 FROM tab1 AS cor0
----
510
850
910

query I rowsort
SELECT ALL 51 + + + col1 FROM tab1 AS cor0
----
56
65
98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 45 + + 82 < NULL
----

query I rowsort
SELECT ALL col1 + + 18 AS col2 FROM tab0 AS cor0
----
19
39
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8023
SELECT - COUNT( * ) * - 46 AS col1 FROM tab1 AS cor0 WHERE NULL >= col0 / 22 + - + col2 / + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8023
SELECT - COUNT ( * ) * - 46 AS col1 FROM tab1 AS cor0 WHERE NULL >= col0 / 22 + - + col2 / + CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT ALL 79 - + col1 FROM tab1
----
32
65
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT ALL SUM( DISTINCT - 57 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-57

skipif mysql # not compatible
query I rowsort label-8025
SELECT ALL SUM ( DISTINCT - 57 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-57

query I rowsort
SELECT - - 20 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # DIV for integer division: 
query I rowsort label-8027
SELECT DISTINCT - col0 DIV col0 - + col1 FROM tab2
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-8027
SELECT DISTINCT - col0 / col0 - + col1 FROM tab2
----
-52
-68
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT ALL + COUNT( * ) - - 30 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL + COUNT ( * ) - - 30 FROM tab1 AS cor0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8029
SELECT ALL MIN( DISTINCT - CAST( NULL AS SIGNED ) ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8029
SELECT ALL MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 90 * - col2 * col1 AS col0 FROM tab1 AS cor0
----
-120960
-26550
-287640

query II rowsort
SELECT + col0 - + 50 AS col1, col1 - + - col1 AS col0 FROM tab1
----
1
28
35
10
41
94

query I rowsort
SELECT DISTINCT + 59 * + 16 * + col1 * - col0 - col2 AS col2 FROM tab2 WHERE - col0 <> NULL AND - 38 > + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT MIN( ALL - - col1 ) + COUNT( * ) AS col2 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-8033
SELECT MIN ( ALL - - col1 ) + COUNT ( * ) AS col2 FROM tab0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT 45 + + SUM( ALL - col0 ) FROM tab0
----
-154

skipif mysql # not compatible
query I rowsort label-8034
SELECT 45 + + SUM ( ALL - col0 ) FROM tab0
----
-154

query I rowsort
SELECT ALL col0 * - col0 + - ( + 53 ) AS col1 FROM tab1
----
-2654
-7278
-8334

query III rowsort
SELECT * FROM tab2 WHERE col1 BETWEEN NULL AND + 68 / + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col1 = col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8038
SELECT DISTINCT + 32 DIV + - 80 * - col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8038
SELECT DISTINCT + 32 / + - 80 * - col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8039
SELECT + 43 AS col2, + MIN( - + col0 ) FROM tab1 AS cor0
----
43
-91

skipif mysql # not compatible
query II rowsort label-8039
SELECT + 43 AS col2, + MIN ( - + col0 ) FROM tab1 AS cor0
----
43
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT ALL + COUNT( 82 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8040
SELECT ALL + COUNT ( 82 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + 41 * - + col1 FROM tab2 AS cor0
----
2091
2747
3157

query I rowsort
SELECT - - 13 AS col1 FROM tab0 AS cor0
----
13
13
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 47 AS col0, col1 col2 FROM tab0 AS cor0
----
47
1
47
21
47
81

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8044
SELECT ALL - - ( - CAST( NULL AS DECIMAL ) ), col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-8044
SELECT ALL - - ( - CAST ( NULL AS REAL ) ), col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT - COUNT( + col1 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8045
SELECT - COUNT ( + col1 ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 81 > NULL
----

query I rowsort
SELECT ALL + - 82 AS col2 FROM tab1 AS cor0
----
-82
-82
-82

query I rowsort
SELECT - - 70 AS col2 FROM tab2 cor0
----
70
70
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8049
SELECT DISTINCT - CAST( NULL AS SIGNED ) + CAST( - 44 AS SIGNED ) + col1 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8049
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + CAST ( - 44 AS INTEGER ) + col1 AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT MIN( DISTINCT + 84 ) col1 FROM tab1 cor0
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8050
SELECT MIN ( DISTINCT + 84 ) col1 FROM tab1 cor0
----
84

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND 33
----

query I rowsort
SELECT - 15 + - col0 AS col2 FROM tab2
----
-61
-79
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8053
SELECT ALL 71 AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
71
NULL
71
NULL
71
NULL

skipif mysql # not compatible
query II rowsort label-8053
SELECT ALL 71 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
71
NULL
71
NULL
71
NULL

query I rowsort
SELECT 82 FROM tab2 WHERE NOT - col2 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8055
SELECT 73 * 51 DIV - + 28 * col0 DIV - + col0 + + col0 FROM tab1
----
183
217
223

skipif mysql # not compatible
query I rowsort label-8055
SELECT 73 * 51 / - + 28 * col0 / - + col0 + + col0 FROM tab1
----
183
217
223

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8057
SELECT DISTINCT - CAST( - + COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT - CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8058
SELECT DISTINCT - CAST( - - 96 AS SIGNED ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8058
SELECT DISTINCT - CAST ( - - 96 AS INTEGER ) FROM tab1 cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT ALL - MIN( + - 27 ) FROM tab1 cor0
----
27

skipif mysql # not compatible
query I rowsort label-8059
SELECT ALL - MIN ( + - 27 ) FROM tab1 cor0
----
27

query I rowsort
SELECT ALL - col1 * + + col1 * - col2 AS col2 FROM tab0 AS cor0
----
308367
4410
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8061
SELECT DISTINCT + + ( + SUM( DISTINCT - ( + - col2 ) ) ) + COUNT( - - col0 ) - + 50 * + + COUNT( * ) AS col2, + COUNT( * ) AS col1 FROM tab0 AS cor0
----
9
3

skipif mysql # not compatible
query II rowsort label-8061
SELECT DISTINCT + + ( + SUM ( DISTINCT - ( + - col2 ) ) ) + COUNT ( - - col0 ) - + 50 * + + COUNT ( * ) AS col2, + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + - 53 col1 FROM tab1 AS cor0
----
-104
-138
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT COUNT( * ) + + + 90 AS col0 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-8063
SELECT COUNT ( * ) + + + 90 AS col0 FROM tab1 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT - + 26 + - - ( + + SUM( + + col1 ) ) AS col2 FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8064
SELECT - + 26 + - - ( + + SUM ( + + col1 ) ) AS col2 FROM tab0 AS cor0
----
77

query I rowsort
SELECT + col0 * + col0 + + + col2 * - col2 AS col0 FROM tab2 AS cor0
----
1587
2261
2496

query I rowsort
SELECT - 77 + - - 80 AS col1 FROM tab1 cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT - COUNT( * ) AS col1 FROM tab1 cor0 WHERE ( NOT ( NOT col0 IS NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-8067
SELECT - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE ( NOT ( NOT col0 IS NULL ) )
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) < + 70 / - col2 + - + 69
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8069
SELECT - + 3 DIV 71 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8069
SELECT - + 3 / 71 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 * - + 35 col1 FROM tab2 AS cor0
----
2170
2170
2170

onlyif mysql # DIV for integer division: 
query I rowsort label-8071
SELECT + 54 DIV + ( - + 15 ) FROM tab2
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-8071
SELECT + 54 / + ( - + 15 ) FROM tab2
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8072
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT - - ( + 8 ) + col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT ALL MAX( col1 ) FROM tab0 WHERE + - col2 + + + col1 IS NOT NULL
----
81

skipif mysql # not compatible
query I rowsort label-8074
SELECT ALL MAX ( col1 ) FROM tab0 WHERE + - col2 + + + col1 IS NOT NULL
----
81

query II rowsort
SELECT DISTINCT col0, 96 + - col1 * col1 FROM tab2
----
46
-2505
64
-5833
75
-4393

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 col1 FROM tab1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8077
SELECT ALL + CAST( + 9 AS SIGNED ) FROM tab2
----
9
9
9

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL + CAST ( + 9 AS INTEGER ) FROM tab2
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT + ( - + COUNT( * ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8078
SELECT + ( - + COUNT ( * ) ) AS col0 FROM tab2
----
-3

query II rowsort
SELECT + 18 AS col1, 11 FROM tab2 AS cor0
----
18
11
18
11
18
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT DISTINCT + + MIN( DISTINCT col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8080
SELECT DISTINCT + + MIN ( DISTINCT col2 ) FROM tab2 AS cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8081
SELECT + col0 * col2 DIV - col0 + 33 + col0 * + - 1 FROM tab2 cor0
----
-100
-36
-71

skipif mysql # not compatible
query I rowsort label-8081
SELECT + col0 * col2 / - col0 + 33 + col0 * + - 1 FROM tab2 cor0
----
-100
-36
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-8082
SELECT DISTINCT - 58 DIV + - col2 FROM tab0 AS cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-8082
SELECT DISTINCT - 58 / + - col2 FROM tab0 AS cor0
----
0
1
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8083
SELECT DISTINCT - - CAST( 86 AS SIGNED ) DIV + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-8083
SELECT DISTINCT - - CAST ( 86 AS INTEGER ) / + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-28

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + + 83 BETWEEN + col0 + 19 AND + col1 / - ( - 97 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT + 60 + - COUNT( * ) - - COUNT( * ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-8085
SELECT + 60 + - COUNT ( * ) - - COUNT ( * ) FROM tab0
----
60

query I rowsort
SELECT DISTINCT + - 59 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8087
SELECT + SUM( DISTINCT col1 ) DIV + 37 AS col0 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8087
SELECT + SUM ( DISTINCT col1 ) / + 37 AS col0 FROM tab2 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT + COUNT( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8088
SELECT + COUNT ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, col1 col1 FROM tab2 cor0
----
51
51
67
67
77
77

query I rowsort
SELECT - ( + + ( + + col1 ) ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT DISTINCT - MAX( ALL - + col1 ) + + - 24 AS col2 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-8091
SELECT DISTINCT - MAX ( ALL - + col1 ) + + - 24 AS col2 FROM tab1 AS cor0
----
-19

query I rowsort
SELECT DISTINCT 80 + + col1 * + col2 AS col2 FROM tab0
----
179
290
3887

query I rowsort
SELECT ALL - 65 + - 17 AS col1 FROM tab1
----
-82
-82
-82

query I rowsort
SELECT DISTINCT + col0 + - 59 FROM tab0
----
-44
28
38

query II rowsort
SELECT DISTINCT + ( + 16 ), + col1 FROM tab2
----
16
51
16
67
16
77

query I rowsort
SELECT col0 * - 24 AS col0 FROM tab1
----
-1224
-2040
-2184

query I rowsort
SELECT + ( - - 27 ) AS col2 FROM tab0
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT ALL - ( COUNT( DISTINCT 29 ) ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL - ( COUNT ( DISTINCT 29 ) ) FROM tab1
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 23 = + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 * - - col2 FROM tab0
----
705
870
9603

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 ) >= - 92
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8102
SELECT ALL SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8102
SELECT ALL SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 - + - 14 AS col2 FROM tab0
----
113
24
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT - ( + SUM( - 52 ) ) FROM tab1 cor0
----
156

skipif mysql # not compatible
query I rowsort label-8104
SELECT - ( + SUM ( - 52 ) ) FROM tab1 cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT - COUNT( * ) - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8105
SELECT - COUNT ( * ) - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-6

query II rowsort
SELECT DISTINCT - + col0 AS col1, + 70 AS col0 FROM tab2 AS cor0
----
-46
70
-64
70
-75
70

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 47 * + col0 * + + col0 < 91 / - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8109
SELECT + col0 DIV + col0 AS col2, ( + - ( 10 ) ) AS col2 FROM tab2
----
1
-10
1
-10
1
-10

skipif mysql # not compatible
query II rowsort label-8109
SELECT + col0 / + col0 AS col2, ( + - ( 10 ) ) AS col2 FROM tab2
----
1
-10
1
-10
1
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT DISTINCT - MAX( 75 ) AS col1 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-8110
SELECT DISTINCT - MAX ( 75 ) AS col1 FROM tab1
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8111
SELECT DISTINCT col0 * + ( - col1 ) DIV col1 * + col0 + 77 AS col0 FROM tab2 WHERE NULL IS NULL
----
-2039
-4019
-5548

skipif mysql # not compatible
query I rowsort label-8111
SELECT DISTINCT col0 * + ( - col1 ) / col1 * + col0 + 77 AS col0 FROM tab2 WHERE NULL IS NULL
----
-2039
-4019
-5548

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT ALL + MIN( DISTINCT ( col0 ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8112
SELECT ALL + MIN ( DISTINCT ( col0 ) ) FROM tab0
----
15

query I rowsort
SELECT - col2 * col0 + + ( + - 39 ) FROM tab2 AS cor0 WHERE NOT - 51 + 35 / 86 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT DISTINCT - - ( 63 ) * COUNT( * ) FROM tab0 cor0
----
189

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT - - ( 63 ) * COUNT ( * ) FROM tab0 cor0
----
189

query I rowsort
SELECT DISTINCT ( - 75 ) FROM tab0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8116
SELECT ALL - - col2 DIV + - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8116
SELECT ALL - - col2 / + - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8117
SELECT - + col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8117
SELECT - + col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 18 * - col2 FROM tab0 AS cor0
----
-1782
-180
-846

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( 9 ) * + + col2 * - col0 IN ( col2, col2 - - + col0 * - + col0 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8120
SELECT DISTINCT + + col1 + + ( + + CAST( + col1 AS SIGNED ) ) col0 FROM tab2 AS cor0
----
102
134
154

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8120
SELECT DISTINCT + + col1 + + ( + + CAST ( + col1 AS INTEGER ) ) col0 FROM tab2 AS cor0
----
102
134
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8121
SELECT DISTINCT CAST( NULL AS SIGNED ) + 0 + + col1 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8121
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 0 + + col1 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col1 * + ( - col1 ) + + + 19 + - col0 * 92 * + 94 AS col1 FROM tab2
----
-400390
-559382
-653070

query I rowsort
SELECT ALL + 16 * - + 28 * + col2 FROM tab0
----
-21056
-44352
-4480

query II rowsort
SELECT ALL + 5 + col0 AS col2, col1 FROM tab1
----
56
14
90
5
96
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8125
SELECT col1 / col2 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8125
SELECT col1 / col2 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT ALL - MIN( DISTINCT - col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL - MIN ( DISTINCT - col1 ) FROM tab2
----
77

query II rowsort
SELECT col1, 2 - - - col0 FROM tab2
----
51
-44
67
-73
77
-62

query I rowsort
SELECT DISTINCT 63 * - 39 AS col2 FROM tab1
----
-2457

query I rowsort
SELECT col1 * - 11 FROM tab0 AS cor0
----
-11
-231
-891

onlyif mysql # DIV for integer division: 
query I rowsort label-8130
SELECT + col2 DIV - col0 * - 89 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8130
SELECT + col2 / - col0 * - 89 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 / - col2 NOT BETWEEN 84 + col0 AND - col2 + - + 37
----
0

skipif mysql # not compatible
query I rowsort label-8131
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 / - col2 NOT BETWEEN 84 + col0 AND - col2 + - + 37
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT DISTINCT - - MIN( - - 86 ) + + 59 FROM tab1 AS cor0
----
145

skipif mysql # not compatible
query I rowsort label-8132
SELECT DISTINCT - - MIN ( - - 86 ) + + 59 FROM tab1 AS cor0
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT + 69 - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8133
SELECT + 69 - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
66

query I rowsort
SELECT - 73 - - - col0 AS col0 FROM tab1 cor0
----
-124
-158
-164

query I rowsort
SELECT DISTINCT col0 * col0 + + - col2 AS col0 FROM tab0 AS cor0
----
178
7559
9310

query I rowsort
SELECT DISTINCT - ( col0 ) + - col2 * 74 AS col0 FROM tab0
----
-3493
-7423
-827

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8137
SELECT + - COUNT( * ) + + COUNT( * ) + SUM( 49 ) DIV 61 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
7

skipif mysql # not compatible
query I rowsort label-8137
SELECT + - COUNT ( * ) + + COUNT ( * ) + SUM ( 49 ) / 61 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
7

query I rowsort
SELECT 36 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT ALL - + col2 * col1 + col2 AS col1 FROM tab2 AS cor0
----
-1150
-3040
-3828

query I rowsort
SELECT ALL - col2 * - col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
3481
4624
9216

query I rowsort
SELECT 53 * - col2 * + - col1 * - col1 + - col2 + - col2 FROM tab1 AS cor0
----
-78293
-7961372
-997440

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 15 IS NULL
----

query II rowsort
SELECT + - 61, + 1 * + + 18 AS col1 FROM tab0 AS cor0
----
-61
18
-61
18
-61
18

onlyif mysql # DIV for integer division: 
query II rowsort label-8144
SELECT + - 42 AS col1, - ( 79 ) DIV + col2 AS col2 FROM tab0 AS cor0
----
-42
-1
-42
-7
-42
0

skipif mysql # not compatible
query II rowsort label-8144
SELECT + - 42 AS col1, - ( 79 ) / + col2 AS col2 FROM tab0 AS cor0
----
-42
-1
-42
-7
-42
0

query I rowsort
SELECT DISTINCT - 60 * + + col1 FROM tab0
----
-1260
-4860
-60

query I rowsort
SELECT + col1 + - + col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - 1 * col1 AS col2 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 22 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8149
SELECT ALL - + col1 * - col2 * CAST( NULL AS SIGNED ) + - + ( - 38 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL - + col1 * - col2 * CAST ( NULL AS INTEGER ) + - + ( - 38 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 21 / - - 88 = col1
----

query I rowsort
SELECT + + 18 FROM tab1 AS cor0
----
18
18
18

query I rowsort
SELECT col1 - 91 FROM tab0
----
-10
-70
-90

query I rowsort
SELECT DISTINCT + col0 * - 2 + col1 - - - col2 AS col1 FROM tab1
----
-184
-203
-224

query I rowsort
SELECT col2 - - ( + 44 ) + - - col2 + + 36 AS col1 FROM tab2
----
126
160
196

query III rowsort
SELECT * FROM tab0 WHERE + + col1 IN ( 66 * 9 - + - col0 + - 60 * col0 + col0, col0, + + ( - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8156
SELECT ALL col0 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL col0 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE + col0 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT ALL + - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 43 * + col1 * - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL + - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 43 * + col1 * - col2 IS NULL
----
-3

query I rowsort
SELECT - col2 + 17 FROM tab0 cor0
----
-30
-82
7

query I rowsort
SELECT col1 - 61 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-40
-60
20

query I rowsort
SELECT 51 * 4 FROM tab2
----
204
204
204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 18 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query II rowsort
SELECT 78 AS col1, - col0 FROM tab0
----
78
-15
78
-87
78
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-8164
SELECT - ( + - 12 ), COUNT( * ) AS col2 FROM tab2
----
12
3

skipif mysql # not compatible
query II rowsort label-8164
SELECT - ( + - 12 ), COUNT ( * ) AS col2 FROM tab2
----
12
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

query II rowsort
SELECT ALL - col0 AS col1, + 5 FROM tab2 cor0
----
-46
5
-64
5
-75
5

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( ( NOT NULL IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT ALL + MIN( ALL ( + 3 ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL + MIN ( ALL ( + 3 ) ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND 89
----

query II rowsort
SELECT - + col0, 53 + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-46
7
-64
-11
-75
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT 98 * + - COUNT( * ) + + 40 AS col1 FROM tab2 AS cor0
----
-254

skipif mysql # not compatible
query I rowsort label-8171
SELECT 98 * + - COUNT ( * ) + + 40 AS col1 FROM tab2 AS cor0
----
-254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8172
SELECT DISTINCT + ( + + col0 ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8172
SELECT DISTINCT + ( + + col0 ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8173
SELECT ALL 91 DIV + col1 col1 FROM tab0
----
1
4
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8173
SELECT ALL 91 / + col1 col1 FROM tab0
----
1
4
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8174
SELECT ALL + col0 * + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL + col0 * + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col1 * - col1, - col1 AS col0 FROM tab1
----
-196
-14
-2209
-47
-25
-5

query II rowsort
SELECT - - 85 AS col2, - 33 + - - col1 * - col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
85
-34
85
-474
85
-6594

query I rowsort
SELECT col2 * - + col2 AS col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT DISTINCT - ( + COUNT( ALL + col2 ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8178
SELECT DISTINCT - ( + COUNT ( ALL + col2 ) ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT - ( + - 44 ) FROM tab0, tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 61 + - + col2 + + + col1 / + col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL + - 99 AS col1 FROM tab1 AS cor0
----
-99
-99
-99

query II rowsort
SELECT DISTINCT - col1, - col2 AS col0 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT DISTINCT + + MIN( ALL - col2 ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-8184
SELECT DISTINCT + + MIN ( ALL - col2 ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8185
SELECT + col2 * CAST( NULL AS SIGNED ) + - col2 * 56 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8185
SELECT + col2 * CAST ( NULL AS INTEGER ) + - col2 * 56 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT + - COUNT( 40 ) + + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8186
SELECT + - COUNT ( 40 ) + + COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT - + col1 * 50 + - col1 - - - col0 AS col0 FROM tab0 AS cor0
----
-1158
-148
-4146

query I rowsort
SELECT ALL - + 51 + + col2 * + ( + 38 ) FROM tab1 AS cor0
----
2191
2533
3597

query I rowsort
SELECT ALL + 57 AS col0 FROM tab0 WHERE NULL IS NULL
----
57
57
57

query I rowsort
SELECT ALL + 21 + col0 + + - 1 AS col1 FROM tab2
----
66
84
95

query I rowsort
SELECT DISTINCT + + ( - ( - 17 ) ) + + col2 FROM tab2 WHERE + col0 / 84 IS NOT NULL
----
40
57
75

query I rowsort
SELECT DISTINCT - 90 FROM tab2 WHERE - - col0 + - - 44 NOT BETWEEN + col0 AND - 88 / - col1 + + col2 + col2
----
-90

query I rowsort
SELECT DISTINCT - 94 * 52 - + col0 FROM tab1
----
-4939
-4973
-4979

query II rowsort
SELECT ALL - 64, col0 + + + 22 + col0 * 54 AS col2 FROM tab1 WHERE col0 IS NOT NULL
----
-64
2827
-64
4697
-64
5027

query III rowsort
SELECT * FROM tab1 WHERE + + 85 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT MIN( ALL + col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-8196
SELECT MIN ( ALL + col1 ) AS col2 FROM tab1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8197
SELECT + col1 - + col1 AS col0, 37 + - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-8197
SELECT + col1 - + col1 AS col0, 37 + - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
0
NULL
0
NULL
0
NULL

query I rowsort
SELECT + 30 - - 24 FROM tab2 AS cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT ALL + COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT - 61 + - 28 / + col1 = + - col0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8199
SELECT ALL + COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT - 61 + - 28 / + col1 = + - col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8200
SELECT + CAST( NULL AS SIGNED ) AS col2, + 53 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to cd68725bf1970b544dd4cd53db306e5f

skipif mysql # not compatible
query II rowsort label-8200
SELECT + CAST ( NULL AS INTEGER ) AS col2, + 53 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to cd68725bf1970b544dd4cd53db306e5f

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT DISTINCT MIN( ALL - + col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8201
SELECT DISTINCT MIN ( ALL - + col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT - - COUNT( + 79 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8202
SELECT - - COUNT ( + 79 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT - + COUNT( DISTINCT col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8203
SELECT - + COUNT ( DISTINCT col2 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT ALL + MIN( ALL + 15 ) * 57 FROM tab0 AS cor0
----
855

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL + MIN ( ALL + 15 ) * 57 FROM tab0 AS cor0
----
855

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT - - MIN( 49 ) FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-8205
SELECT - - MIN ( 49 ) FROM tab0 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col0 + 34 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col0 + 34 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT - MAX( DISTINCT col1 ) FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8207
SELECT - MAX ( DISTINCT col1 ) FROM tab0 cor0
----
-81

query I rowsort
SELECT ALL - col2 * + 24 AS col1 FROM tab0 AS cor0
----
-1128
-2376
-240

query I rowsort
SELECT ( col2 ) * + - col2 * + - col1 FROM tab0
----
178929
2100
9801

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( 2 ) IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, + col2 * - col0 * - col1 col2 FROM tab1
----
51
68544
85
25075
91
290836

query I rowsort
SELECT 65 * - + col2 FROM tab1
----
-3835
-4420
-6240

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8214
SELECT + COUNT( * ), - 85 AS col0 FROM tab0
----
3
-85

skipif mysql # not compatible
query II rowsort label-8214
SELECT + COUNT ( * ), - 85 AS col0 FROM tab0
----
3
-85

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( col0 IS NOT NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8216
SELECT ALL + col0, + col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-8216
SELECT ALL + col0, + col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8217
SELECT COUNT( * ) DIV - COUNT( - col1 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8217
SELECT COUNT ( * ) / - COUNT ( - col1 ) FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8218
SELECT + 12 DIV + 71 * + col1 * + - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8218
SELECT + 12 / + 71 * + col1 * + - col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT + - 19 * - + COUNT( * ) FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-8219
SELECT + - 19 * - + COUNT ( * ) FROM tab0 AS cor0
----
57

query II rowsort
SELECT DISTINCT col2 + col0, col1 AS col0 FROM tab0
----
196
1
62
81
97
21

query II rowsort
SELECT ALL - + 59 AS col0, - 47 + - col0 AS col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 < col0
----
87
21
10

query I rowsort
SELECT DISTINCT + 55 - 22 AS col0 FROM tab1
----
33

query III rowsort
SELECT * FROM tab0 WHERE ( + + 65 * + col0 ) IS NULL
----

query I rowsort
SELECT ALL + 6 * - + 74 + + col1 AS col1 FROM tab1
----
-397
-430
-439

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT 28 - - COUNT( * ) FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-8226
SELECT 28 - - COUNT ( * ) FROM tab0
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-8227
SELECT - col1 DIV 27 * - col0 + 48 AS col0 FROM tab0
----
48
48
93

skipif mysql # not compatible
query I rowsort label-8227
SELECT - col1 / 27 * - col0 + 48 AS col0 FROM tab0
----
48
48
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT + COUNT( * ) + + ( - SUM( - + 79 ) ) * 80 AS col0 FROM tab2
----
18963

skipif mysql # not compatible
query I rowsort label-8228
SELECT + COUNT ( * ) + + ( - SUM ( - + 79 ) ) * 80 AS col0 FROM tab2
----
18963

query I rowsort
SELECT DISTINCT + col1 - + - col0 - + 17 FROM tab0
----
79
81
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8230
SELECT CAST( NULL AS SIGNED ) * 8 + + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8230
SELECT CAST ( NULL AS INTEGER ) * 8 + + col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 31 * + 1 + + col1 AS col2 FROM tab1
----
36
45
78

query I rowsort
SELECT ALL - 77 AS col0 FROM tab1
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT DISTINCT + SUM( DISTINCT + 41 ) + - COUNT( * ) FROM tab1 cor0 WHERE NULL NOT IN ( + col1 - - - col2, col0 * + 91 + + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8233
SELECT DISTINCT + SUM ( DISTINCT + 41 ) + - COUNT ( * ) FROM tab1 cor0 WHERE NULL NOT IN ( + col1 - - - col2, col0 * + 91 + + col1 )
----
NULL

query I rowsort
SELECT DISTINCT - ( + 83 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= - 18 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 35 col1 FROM tab0 cor0
----
-35
-35
-35

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 93 = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( col0 ) * - 19 FROM tab0 cor0
----
-1653
-1843
-285

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 - - col1 * - col2 * col1 + + 51 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8239
SELECT ALL + 27 DIV COUNT( * ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL + 27 / COUNT ( * ) AS col2 FROM tab1
----
9

query I rowsort
SELECT col0 * + + col2 + col2 FROM tab2
----
1081
2600
4408

query I rowsort
SELECT + col1 * 0 * + + 66 + 21 AS col0 FROM tab2
----
21
21
21

query I rowsort
SELECT DISTINCT - col2 * + col0 FROM tab1 WHERE NOT NULL BETWEEN + col0 AND NULL
----

query I rowsort
SELECT - 98 + - + col1 + col0 AS col2 FROM tab1
----
-18
-54
-61

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 / col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 4 * + col2 AS col1 FROM tab0
----
188
396
40

query III rowsort
SELECT * FROM tab2 WHERE col1 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + + - col1 FROM tab2 cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT ALL COUNT( * ) * + ( - 46 ) FROM tab0 cor0
----
-138

skipif mysql # not compatible
query I rowsort label-8248
SELECT ALL COUNT ( * ) * + ( - 46 ) FROM tab0 cor0
----
-138

query I rowsort
SELECT DISTINCT + col2 + 41 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
140
51
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT ALL + 33 * + COUNT( * ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL + 33 * + COUNT ( * ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT col0 + - col0 * + + 57 AS col2 FROM tab1 AS cor0
----
-2856
-4760
-5096

query I rowsort
SELECT + - 64 + - col1 * + 35 + col0 AS col2 FROM tab2 AS cor0
----
-1803
-2334
-2695

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, col1 * - col0 + - 41 FROM tab0 cor0
----
-10
-1868
-47
-1256
-99
-138

query II rowsort
SELECT DISTINCT col2 - + col0, - 29 * 43 AS col0 FROM tab1
----
-23
-1247
-26
-1247
45
-1247

query I rowsort
SELECT DISTINCT - 1 + col2 AS col1 FROM tab2
----
22
39
57

query III rowsort
SELECT ALL * FROM tab1 WHERE + 5 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8257
SELECT - ( + col2 ) AS col2, col0 + - 12 / + - col2 * + col1 - + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-8257
SELECT - ( + col2 ) AS col2, col0 + - 12 / + - col2 * + col1 - + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 col2 FROM tab1 cor0
----
-89
-89
-89

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - - col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 94 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT ALL - SUM( - col1 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL - SUM ( - col1 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8263
SELECT DISTINCT ( - + AVG ( CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8263
SELECT DISTINCT ( - + AVG ( CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN 9 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8264
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN 9 AND NULL
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NOT ( col2 ) IS NULL )
----

query I rowsort
SELECT ALL ( - 73 ) / - 65 + + ( 69 ) + col2 * - - col1 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT DISTINCT - MAX( - - 58 ) AS col1 FROM tab2 cor0 WHERE NULL BETWEEN col1 * + 13 AND + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8267
SELECT DISTINCT - MAX ( - - 58 ) AS col1 FROM tab2 cor0 WHERE NULL BETWEEN col1 * + 13 AND + col1
----
NULL

query I rowsort
SELECT ALL 11 * + col1 AS col1 FROM tab1 AS cor0
----
154
517
55

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col0 * - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + - col1 col2 FROM tab0 AS cor0
----
210
3807
99

query II rowsort
SELECT ALL + + 71 * + col0 + 1 AS col1, + col0 * + col2 FROM tab0 cor0
----
1066
705
6178
870
6888
9603

query I rowsort
SELECT + 49 * - - col0 FROM tab0
----
4263
4753
735

query III rowsort
SELECT * FROM tab1 WHERE NULL >= col2 / + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8274
SELECT - 67 DIV + ( + 67 ) col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8274
SELECT - 67 / + ( + 67 ) col0 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT DISTINCT + COUNT( * ) * + + COUNT( * ) * - + COUNT( * ) FROM tab0 WHERE NOT - + col1 + ( 1 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8275
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( * ) * - + COUNT ( * ) FROM tab0 WHERE NOT - + col1 + ( 1 ) = NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NULL < - 91 + + + 73
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) col2 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT ALL + COUNT( * ) * 10 AS col1 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL + COUNT ( * ) * 10 AS col1 FROM tab2
----
30

query I rowsort
SELECT - + 72 AS col2 FROM tab0 WHERE col2 / - 60 = col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8280
SELECT DISTINCT - ( + 16 ) DIV + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT - ( + 16 ) / + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
5

query I rowsort
SELECT - 50 * - + col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
2350
250
700

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL IS NULL )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT - + 94 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT + col1 * 79 AS col0 FROM tab2
----
4029
5293
6083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 87 * + - col2 * + + col2 col0 FROM tab2
----
139200
292668
46023

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8286
SELECT ALL - 65 DIV COUNT( * ) + 42 AS col0 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL - 65 / COUNT ( * ) + 42 AS col0 FROM tab2 AS cor0
----
21

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 + + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8288
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * col0 - + CAST( - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8288
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * col0 - + CAST ( - col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8289
SELECT DISTINCT + + COUNT( * ) DIV - - 3 AS col0 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8289
SELECT DISTINCT + + COUNT ( * ) / - - 3 AS col0 FROM tab1 cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8290
SELECT - - 21 - - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8290
SELECT - - 21 - - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8291
SELECT 80 DIV + col0 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8291
SELECT 80 / + col0 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL + 60 * - 82 AS col1 FROM tab0
----
-4920
-4920
-4920

onlyif mysql # aggregate syntax: 
query II rowsort label-8293
SELECT DISTINCT 32 * MIN( - 19 ) * - - COUNT( * ) AS col1, COUNT( * ) FROM tab2
----
-1824
3

skipif mysql # not compatible
query II rowsort label-8293
SELECT DISTINCT 32 * MIN ( - 19 ) * - - COUNT ( * ) AS col1, COUNT ( * ) FROM tab2
----
-1824
3

query II rowsort
SELECT DISTINCT 37 AS col2, col1 AS col0 FROM tab0
----
37
1
37
21
37
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8295
SELECT ALL + COUNT( * ) DIV - + SUM( DISTINCT - col2 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL + COUNT ( * ) / - + SUM ( DISTINCT - col2 ) AS col1 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col1 >= 64
----
64
77
40
75
67
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8297
SELECT 20 DIV + col0 * - + CAST( CAST( - col0 AS SIGNED ) AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8297
SELECT 20 / + col0 * - + CAST ( CAST ( - col0 AS INTEGER ) AS INTEGER ) FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT + COUNT( * ) * + AVG ( - col1 ) + + + 62 FROM tab0 WHERE NOT + + col0 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8298
SELECT + COUNT ( * ) * + AVG ( - col1 ) + + + 62 FROM tab0 WHERE NOT + + col0 < NULL
----
NULL

query I rowsort
SELECT - + col0 * 40 FROM tab1 WHERE NOT 93 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8300
SELECT ALL + - ( + 85 ) DIV col2 - + col1 * col0 FROM tab2 AS cor0
----
-2349
-4930
-5026

skipif mysql # not compatible
query I rowsort label-8300
SELECT ALL + - ( + 85 ) / col2 - + col1 * col0 FROM tab2 AS cor0
----
-2349
-4930
-5026

onlyif mysql # aggregate syntax: 
query II rowsort label-8301
SELECT + - 91, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-91
3

skipif mysql # not compatible
query II rowsort label-8301
SELECT + - 91, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-91
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 81 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT - SUM( ALL + 59 ) AS col0 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-8303
SELECT - SUM ( ALL + 59 ) AS col0 FROM tab1 AS cor0
----
-177

query I rowsort
SELECT + + ( 7 ) * + col2 FROM tab0 AS cor0
----
329
693
70

query I rowsort
SELECT + 42 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query II rowsort
SELECT DISTINCT + ( + col2 ) AS col0, col2 AS col0 FROM tab0 AS cor0
----
10
10
47
47
99
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT DISTINCT + + COUNT( DISTINCT - col2 ) + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8308
SELECT DISTINCT + + COUNT ( DISTINCT - col2 ) + - COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8309
SELECT - + 47 DIV 82 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8309
SELECT - + 47 / 82 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 64 + col0 AS col0 FROM tab2 cor0
----
-18
0
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT - MAX( ALL + + col2 ) + - + COUNT( * ) FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-8311
SELECT - MAX ( ALL + + col2 ) + - + COUNT ( * ) FROM tab1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT + COUNT( * ) + - COUNT( * ) + - MIN( ALL + + col0 ) + + - 40 * MAX( DISTINCT - - col0 ) AS col2 FROM tab2
----
-3046

skipif mysql # not compatible
query I rowsort label-8312
SELECT + COUNT ( * ) + - COUNT ( * ) + - MIN ( ALL + + col0 ) + + - 40 * MAX ( DISTINCT - - col0 ) AS col2 FROM tab2
----
-3046

query II rowsort
SELECT DISTINCT - col2 AS col1, - col1 + + col0 FROM tab1
----
-59
80
-68
44
-96
37

query I rowsort
SELECT ALL - 56 * + col0 FROM tab0
----
-4872
-5432
-840

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 22 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 53 * + col2 FROM tab1 cor0
----
3127
3604
5088

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, 49 FROM tab0 AS cor0
----
-10
49
-47
49
-99
49

query I rowsort
SELECT 51 * + col2 + + + col0 AS col1 FROM tab0 AS cor0
----
2412
5146
597

query I rowsort
SELECT ALL col0 + + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT DISTINCT - 6 + COUNT( * ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8320
SELECT DISTINCT - 6 + COUNT ( * ) AS col1 FROM tab1
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + 54 / + 19 AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( col0 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT ALL MIN( ALL 92 ) + COUNT( * ) AS col1 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL MIN ( ALL 92 ) + COUNT ( * ) AS col1 FROM tab0
----
95

query I rowsort
SELECT DISTINCT - 25 FROM tab2 WHERE - col0 IN ( col0 )
----

query I rowsort
SELECT col2 * ( 65 ) FROM tab1
----
3835
4420
6240

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 * - 27 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT 97 * COUNT( * ) FROM tab2
----
291

skipif mysql # not compatible
query I rowsort label-8327
SELECT 97 * COUNT ( * ) FROM tab2
----
291

query I rowsort
SELECT + col2 * + col2 AS col1 FROM tab1 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col2 + + 83 * col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 3 + - col1 * + col0 FROM tab1
----
-422
-4274
-711

query I rowsort
SELECT 6 AS col0 FROM tab2 WHERE col0 IS NOT NULL
----
6
6
6

query I rowsort
SELECT + ( ( 22 ) ) * col0 AS col2 FROM tab2
----
1012
1408
1650

query I rowsort
SELECT - 25 * - col1 AS col2 FROM tab0
----
2025
25
525

query III rowsort
SELECT * FROM tab2 WHERE ( ( - col2 ) ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( col1 ) + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8337
SELECT CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT ( + 95 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8337
SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT ( + 95 ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8338
SELECT - col1 * - col2 FROM tab0 WHERE NULL <= - CAST( NULL AS SIGNED ) + col0
----

skipif mysql # not compatible
query I rowsort label-8338
SELECT - col1 * - col2 FROM tab0 WHERE NULL <= - CAST ( NULL AS INTEGER ) + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT DISTINCT 68 + COUNT( * ) FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-8339
SELECT DISTINCT 68 + COUNT ( * ) FROM tab1
----
71

query I rowsort
SELECT DISTINCT ( + 56 ) FROM tab0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8341
SELECT DISTINCT 52 + + CAST( col2 AS SIGNED ) FROM tab1
----
111
120
148

skipif mysql # not compatible
query I rowsort label-8341
SELECT DISTINCT 52 + + CAST ( col2 AS INTEGER ) FROM tab1
----
111
120
148

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT ALL MAX( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL MAX ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8343
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT ALL - COUNT( * ) * - 25 col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8344
SELECT ALL - COUNT ( * ) * - 25 col0 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8345
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST( NULL AS DECIMAL ) * 67 - col2 * - col0 > NULL
----

skipif mysql # not compatible
query III rowsort label-8345
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS REAL ) * 67 - col2 * - col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8346
SELECT DISTINCT - ( - col0 ) AS col2 FROM tab2 WHERE NOT ( col0 ) > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8346
SELECT DISTINCT - ( - col0 ) AS col2 FROM tab2 WHERE NOT ( col0 ) > CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col2 * + col2 col1 FROM tab1
----
3422
4556
9120

onlyif mysql # DIV for integer division: 
query I rowsort label-8348
SELECT + 66 DIV - ( + ( col0 ) ) FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8348
SELECT + 66 / - ( + ( col0 ) ) FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8349
SELECT 19 DIV + 37 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8349
SELECT 19 / + 37 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 46 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 > - col1 - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8352
SELECT - - SUM( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8352
SELECT - - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8353
SELECT ALL + 96 col2 FROM tab2 AS cor0 WHERE NULL BETWEEN col0 * ( col1 ) AND col0 - + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8353
SELECT ALL + 96 col2 FROM tab2 AS cor0 WHERE NULL BETWEEN col0 * ( col1 ) AND col0 - + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT - COUNT( ALL 96 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8354
SELECT - COUNT ( ALL 96 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col2 ) IS NULL
----

query I rowsort
SELECT ALL 55 + + 72 FROM tab2 AS cor0
----
127
127
127

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 37 - - 26 AND + ( + 84 ) / 69
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
14
47
5

query I rowsort
SELECT ALL - 45 * + + col0 + col2 AS col1 FROM tab1
----
-2199
-3766
-4027

query I rowsort
SELECT DISTINCT col2 + + + col2 AS col1 FROM tab1
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT ALL - COUNT( * ) - COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL - COUNT ( * ) - COUNT ( * ) FROM tab2
----
-6

query I rowsort
SELECT 42 * + col2 + col2 FROM tab1
----
2537
2924
4128

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) BETWEEN + col1 AND ( + 81 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8364
SELECT ALL COUNT( * ) + - CAST( 42 AS SIGNED ) - 56 * + 1 AS col0 FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-8364
SELECT ALL COUNT ( * ) + - CAST ( 42 AS INTEGER ) - 56 * + 1 AS col0 FROM tab2
----
-95

query I rowsort
SELECT + 53 + - 8 FROM tab2
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8366
SELECT DISTINCT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8366
SELECT DISTINCT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 ) < NULL
----

query I rowsort
SELECT + 17 + - col1 * - col0 AS col1 FROM tab2 AS cor0
----
2363
4945
5042

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN ( - col2 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8370
SELECT ALL + + MIN( DISTINCT + - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL + + MIN ( DISTINCT + - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT - 89 AS col0, col1 FROM tab1 AS cor0
----
-89
14
-89
47
-89
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8373
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 15 + - col0 + - ( + CAST( col2 AS SIGNED ) ) IN ( ( col2 ) / - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8373
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 15 + - col0 + - ( + CAST ( col2 AS INTEGER ) ) IN ( ( col2 ) / - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8374
SELECT DISTINCT + 14 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - + ( + CAST( + col0 AS SIGNED ) ) * - col2
----

skipif mysql # not compatible
query I rowsort label-8374
SELECT DISTINCT + 14 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - + ( + CAST ( + col0 AS INTEGER ) ) * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT DISTINCT COUNT( + 55 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8375
SELECT DISTINCT COUNT ( + 55 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT DISTINCT - MIN( - - 91 ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-8376
SELECT DISTINCT - MIN ( - - 91 ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 1 + + col0 col0 FROM tab2 AS cor0 WHERE NOT ( - col0 + + col1 * col1 ) < NULL
----

query I rowsort
SELECT ( + 50 ) * + 57 FROM tab2 AS cor0
----
2850
2850
2850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * - + col2 col2 FROM tab0 AS cor0
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 ) = NULL
----

query II rowsort
SELECT col1 * + col0 AS col1, col2 AS col2 FROM tab2
----
2346
23
4928
40
5025
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8383
SELECT ALL + col0 DIV 45 * - 4 AS col2 FROM tab2
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL + col0 / 45 * - 4 AS col2 FROM tab2
----
-4
-4
-4

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NOT ( - 12 * - col0 ) IS NULL
----
15
87
97

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - + col2 + 42 * 68 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 81 NOT BETWEEN ( col2 ) * 70 AND - col0 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT + MIN( - 99 ) FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-8387
SELECT + MIN ( - 99 ) FROM tab2
----
-99

query I rowsort
SELECT ALL - col1 * - col2 - - col2 * col0 FROM tab0 WHERE NULL NOT IN ( - + col2 / - - col2 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT DISTINCT SUM( DISTINCT 97 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8389
SELECT DISTINCT SUM ( DISTINCT 97 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8390
SELECT + 69 FROM tab1 WHERE NOT CAST( - + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8390
SELECT + 69 FROM tab1 WHERE NOT CAST ( - + col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT ALL + 89 + + MIN( ALL 97 ) + - 58 FROM tab2 AS cor0
----
128

skipif mysql # not compatible
query I rowsort label-8391
SELECT ALL + 89 + + MIN ( ALL 97 ) + - 58 FROM tab2 AS cor0
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT - 12 * COUNT( * ) FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-8392
SELECT - 12 * COUNT ( * ) FROM tab2
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-8393
SELECT DISTINCT - col2 DIV + 19 FROM tab0
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-8393
SELECT DISTINCT - col2 / + 19 FROM tab0
----
-2
-5
0

query I rowsort
SELECT - col2 * + - col1 FROM tab0
----
210
3807
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 92 BETWEEN ( col2 ) AND + ( ( + col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE ( 35 * - + col0 - - - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 58 FROM tab1 cor0
----
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8399
SELECT + 44 + + - col2 DIV - col0 AS col0 FROM tab2 AS cor0
----
44
44
44

skipif mysql # not compatible
query I rowsort label-8399
SELECT + 44 + + - col2 / - col0 AS col0 FROM tab2 AS cor0
----
44
44
44

query I rowsort
SELECT DISTINCT - col0 * + - 49 FROM tab2 AS cor0
----
2254
3136
3675

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8401
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) NOT IN ( + - col2 )
----

skipif mysql # not compatible
query III rowsort label-8401
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) NOT IN ( + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT DISTINCT + 74 + ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-8402
SELECT DISTINCT + 74 + ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-8403
SELECT ALL 29 + - + 61 * + - col0 * + col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
-5278
-5888
-886

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL 29 + - + 61 * + - col0 * + col1 / - col1 AS col2 FROM tab0 AS cor0
----
-5278
-5888
-886

query II rowsort
SELECT ALL col2 AS col1, 61 AS col0 FROM tab0
----
10
61
47
61
99
61

query I rowsort
SELECT ALL + ( 92 ) AS col1 FROM tab2
----
92
92
92

onlyif mysql # DIV for integer division: 
query II rowsort label-8406
SELECT DISTINCT - col2, + 26 DIV + col2 * - - col1 + - 51 col2 FROM tab1 cor0
----
-59
-51
-68
-51
-96
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8406
SELECT DISTINCT - col2, + 26 / + col2 * - - col1 + - 51 col2 FROM tab1 cor0
----
-59
-51
-68
-51
-96
-51

query II rowsort
SELECT col0 * + + 76 AS col0, - col0 FROM tab2 AS cor0
----
3496
-46
4864
-64
5700
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT ALL - MIN( DISTINCT 82 ) FROM tab0 cor0
----
-82

skipif mysql # not compatible
query I rowsort label-8408
SELECT ALL - MIN ( DISTINCT 82 ) FROM tab0 cor0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT + + 84 - - COUNT( ALL - col1 ) - + ( + COUNT( * ) ) FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-8409
SELECT + + 84 - - COUNT ( ALL - col1 ) - + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT + COUNT( - col1 ) - - + 73 * MIN( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
-3428

skipif mysql # not compatible
query I rowsort label-8410
SELECT + COUNT ( - col1 ) - - + 73 * MIN ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
-3428

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT + + 29 - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-8411
SELECT + + 29 - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT ALL - COUNT( * ) * + COUNT( * ) - + 87 AS col2 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL - COUNT ( * ) * + COUNT ( * ) - + 87 AS col2 FROM tab2
----
-96

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 IN ( + 5 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 ) >= - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + col2 + col1 * - col1 IN ( + col0 * - col0 ) )
----

query I rowsort
SELECT ALL + 37 AS col2 FROM tab2 cor0
----
37
37
37

query I rowsort
SELECT DISTINCT - 61 * + col2 AS col1 FROM tab2 AS cor0
----
-1403
-2440
-3538

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT ALL + COUNT( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL + COUNT ( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT + ( - ( - - MAX( ( + 17 ) ) ) ) FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-8419
SELECT + ( - ( - - MAX ( ( + 17 ) ) ) ) FROM tab2
----
-17

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( - col2 ) * + col1 + + 44 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col1, + ( - ( 25 ) ) * - - col0 FROM tab2
----
51
-1150
67
-1875
77
-1600

query I rowsort
SELECT 5 FROM tab0 WHERE NOT 23 <= - + col1
----
5
5
5

query III rowsort
SELECT * FROM tab0 WHERE NOT - 10 >= + + 5 - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT MIN( - 59 ) FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-8424
SELECT MIN ( - 59 ) FROM tab0
----
-59

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - col1 ) BETWEEN NULL AND col2 * - - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8426
SELECT - + 79 DIV COUNT( * ) + + + 18 AS col2, + COUNT( * ) * - + 47 FROM tab1 AS cor0
----
-8
-141

skipif mysql # not compatible
query II rowsort label-8426
SELECT - + 79 / COUNT ( * ) + + + 18 AS col2, + COUNT ( * ) * - + 47 FROM tab1 AS cor0
----
-8
-141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 col1, col2 + + + col2 FROM tab2 cor0
----
51
46
67
116
77
80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 / + col0 / - col0 <= NULL
----

query I rowsort
SELECT DISTINCT 70 + 82 FROM tab0 AS cor0
----
152

query I rowsort
SELECT - col2 AS col1 FROM tab0 cor0 WHERE ( 38 + - col1 * ( + ( - 63 ) ) * - col2 * - + 2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT DISTINCT COUNT( * ) + + 97 + + - 59 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-8431
SELECT DISTINCT COUNT ( * ) + + 97 + + - 59 FROM tab2
----
41

query I rowsort
SELECT ALL + - 3 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3
-3
-3

query I rowsort
SELECT - 40 + + + 95 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT ALL 69 - - 18 / - 41 / + + 61 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * ( + 77 ) col1 FROM tab1 AS cor0
----
4543
5236
7392

query I rowsort
SELECT DISTINCT + col0 + + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
108
96
98

query I rowsort
SELECT + - col2 * col1 + + ( - + ( + - col1 ) ) AS col1 FROM tab0 AS cor0 WHERE col1 <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - col2 BETWEEN - col0 AND - - col0
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8439
SELECT DISTINCT + - MAX( + col0 ) AS col2, + 91 FROM tab2 cor0
----
-75
91

skipif mysql # not compatible
query II rowsort label-8439
SELECT DISTINCT + - MAX ( + col0 ) AS col2, + 91 FROM tab2 cor0
----
-75
91

query II rowsort
SELECT DISTINCT + col1 + - col2 AS col2, + col0 FROM tab1 AS cor0
----
-21
91
-54
85
-82
51

query II rowsort
SELECT DISTINCT + col0 + + col2 - + 62 AS col2, 41 FROM tab1
----
82
41
85
41
97
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT COUNT( * ) * + COUNT( * ) - ( COUNT( * ) ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8442
SELECT COUNT ( * ) * + COUNT ( * ) - ( COUNT ( * ) ) FROM tab2
----
6

query I rowsort
SELECT DISTINCT col2 * ( + + col0 ) FROM tab1
----
4896
5015
6188

query I rowsort
SELECT col0 * - 19 + + col2 FROM tab2
----
-1176
-1367
-851

query I rowsort
SELECT - col2 + - + 8 FROM tab0
----
-107
-18
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT ALL 49 - - COUNT( * ) AS col1 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL 49 - - COUNT ( * ) AS col1 FROM tab1
----
52

query I rowsort
SELECT ALL - col1 + - + col2 - + ( - col1 ) + - col0 FROM tab1
----
-144
-147
-159

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( col0 NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( - + col2 IS NULL )
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col1 * + + col0 * + col0 * - col1 + - col0 * col0 ) IS NULL
----

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE NOT ( col1 ) BETWEEN col2 * - ( 59 ) AND - col2 * - + col1 * - col0 * col1 + - col1
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( - 24 + + 44 - + 64, col0 * - - 67, - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8453
SELECT ALL + 85 * + 26 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL + 85 * + 26 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 * + col0 * col2 col2 FROM tab0 AS cor0
----
3525
4350
48015

query II rowsort
SELECT ALL - 62, 60 FROM tab2 AS cor0 WHERE col1 + - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 <= col0
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8457
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) * col1 / + col1 col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8457
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) * col1 / + col1 col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT + 89 * - COUNT( * ) + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-8458
SELECT + 89 * - COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT ALL - MAX( ALL col0 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8459
SELECT ALL - MAX ( ALL col0 ) AS col2 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT 61 * + MIN( ALL + col0 ) * 98 AS col1 FROM tab1
----
304878

skipif mysql # not compatible
query I rowsort label-8460
SELECT 61 * + MIN ( ALL + col0 ) * 98 AS col1 FROM tab1
----
304878

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT SUM( - 29 ) + 12 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8461
SELECT SUM ( - 29 ) + 12 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT ALL MIN( - 9 ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8462
SELECT ALL MIN ( - 9 ) AS col1 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT 69 + - COUNT( * ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-8463
SELECT 69 + - COUNT ( * ) FROM tab0
----
66

query I rowsort
SELECT + 66 + + col0 FROM tab1
----
117
151
157

query I rowsort
SELECT DISTINCT - + 99 FROM tab2 WHERE ( + col2 <> col0 )
----
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 85 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - + col0 AND NULL
----

query I rowsort
SELECT DISTINCT + 13 + - - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 87 AND + 31 + + col2 + 13 * + 26
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8469
SELECT ALL + + 21 * col2 * - ( col2 ) * - col1, - CAST( 11 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
205821
-11
3757509
-11
44100
-11

skipif mysql # not compatible
query II rowsort label-8469
SELECT ALL + + 21 * col2 * - ( col2 ) * - col1, - CAST ( 11 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
205821
-11
3757509
-11
44100
-11

query I rowsort
SELECT - - 43 AS col2 FROM tab0 AS cor0
----
43
43
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8471
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) * - + 10 / + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8471
SELECT DISTINCT - + CAST ( NULL AS REAL ) * - + 10 / + col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * - 22 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8473
SELECT DISTINCT 0 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8473
SELECT DISTINCT 0 * + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col0 ) NOT BETWEEN ( + col0 ) AND ( NULL )
----

query I rowsort
SELECT + 21 * - col0 * + - col1 + 80 AS col2 FROM tab2 AS cor0
----
103568
105605
49346

onlyif mysql # DIV for integer division: 
query II rowsort label-8476
SELECT ALL - col1 + 93 - col2 AS col2, col1 DIV col0 FROM tab0 AS cor0
----
-35
5
-7
0
62
0

skipif mysql # not compatible
query II rowsort label-8476
SELECT ALL - col1 + 93 - col2 AS col2, col1 / col0 FROM tab0 AS cor0
----
-35
5
-7
0
62
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * - 55 + - + col1 * 74 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8478
SELECT ALL col0 - - col0 DIV - + col2 AS col1 FROM tab1 AS cor0
----
51
84
90

skipif mysql # not compatible
query I rowsort label-8478
SELECT ALL col0 - - col0 / - + col2 AS col1 FROM tab1 AS cor0
----
51
84
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 col0 FROM tab0
----
-38
-38
-38

query II rowsort
SELECT DISTINCT 59 + - 8 AS col2, + col2 * + col1 AS col1 FROM tab2
----
51
1173
51
3080
51
3886

query I rowsort
SELECT DISTINCT + + col0 * col1 * + col2 * col0 + - + col0 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 38 * + col0 AS col2 FROM tab1
----
1938
3230
3458

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8483
SELECT DISTINCT 31 DIV + + COUNT( * ) + - - 3 AS col0 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-8483
SELECT DISTINCT 31 / + + COUNT ( * ) + - - 3 AS col0 FROM tab0
----
13

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 * col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8485
SELECT - + col2 + - + 85 FROM tab2 WHERE NULL <> col2 * - col2 * CAST( + 99 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8485
SELECT - + col2 + - + 85 FROM tab2 WHERE NULL <> col2 * - col2 * CAST ( + 99 AS INTEGER )
----

query I rowsort
SELECT - col2 - 87 FROM tab2
----
-110
-127
-145

onlyif mysql # aggregate syntax: 
query II rowsort label-8487
SELECT DISTINCT + COUNT( * ), + COUNT( * ) AS col0 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-8487
SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) AS col0 FROM tab2
----
3
3

query I rowsort
SELECT 59 - + 28 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 + 9 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT ALL - MIN( DISTINCT - col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8490
SELECT ALL - MIN ( DISTINCT - col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT DISTINCT - - SUM( ALL - + 38 ) col2 FROM tab1 AS cor0
----
-114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8491
SELECT DISTINCT - - SUM ( ALL - + 38 ) col2 FROM tab1 AS cor0
----
-114

onlyif mysql # aggregate syntax: 
query II rowsort label-8492
SELECT + ( + - COUNT( DISTINCT + col0 ) ), COUNT( * ) - MIN( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-3
102

skipif mysql # not compatible
query II rowsort label-8492
SELECT + ( + - COUNT ( DISTINCT + col0 ) ), COUNT ( * ) - MIN ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-3
102

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 84 * - - col1 ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT col1 + + + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
138
65
90

query I rowsort
SELECT ALL - + col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 + - - 68 AND - - col2
----

query I rowsort
SELECT DISTINCT + + col0 + - col0 FROM tab1 AS cor0 WHERE 82 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + + col1 * - - 2 FROM tab1
----
124
162
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8498
SELECT + ( + COUNT( * ) ) AS col0, MAX( + 82 ) FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) < - + col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8498
SELECT + ( + COUNT ( * ) ) AS col0, MAX ( + 82 ) FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) < - + col2
----
0
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) col2 FROM tab0
----
10
47
99

query II rowsort
SELECT col2 AS col2, - col2 * col2 FROM tab1
----
59
-3481
68
-4624
96
-9216

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 4 ) BETWEEN + 37 AND - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( + - col1 ) * - col2 FROM tab0
----
210
3807
99

query II rowsort
SELECT - col0 AS col0, col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT DISTINCT col0 + - 87 AS col1 FROM tab2
----
-12
-23
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT ALL + ( - 44 ) + SUM( ALL - col1 ) AS col0 FROM tab1
----
-110

skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL + ( - 44 ) + SUM ( ALL - col1 ) AS col0 FROM tab1
----
-110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 col2 FROM tab0 AS cor0
----
42
42
42

query I rowsort
SELECT + col2 * 54 * - col0 - col0 * col0 FROM tab0 AS cor0
----
-38295
-527971
-54549

query I rowsort
SELECT ALL col2 - + - col1 FROM tab1
----
110
115
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8509
SELECT DISTINCT + 84 + - col2 DIV + - ( + col0 ) AS col0 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT + 84 + - col2 / + - ( + col0 ) AS col0 FROM tab2
----
84

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col0 + - col0 IN ( + 34, col0 )
----

query I rowsort
SELECT ALL + 90 * col2 * + col2 FROM tab1
----
313290
416160
829440

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 + - + col2 NOT IN ( + col0, 73, + + 7 / 90 / 74 + - col1, - col1, - 26, - - 16 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8513
SELECT DISTINCT - 57 DIV + + col2 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-8513
SELECT DISTINCT - 57 / + + col2 FROM tab0
----
-1
-5
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8514
SELECT ALL + 88, + MIN( DISTINCT - 40 ) + SUM( + col2 ) * 34 AS col1 FROM tab2
----
88
4074

skipif mysql # not compatible
query II rowsort label-8514
SELECT ALL + 88, + MIN ( DISTINCT - 40 ) + SUM ( + col2 ) * 34 AS col1 FROM tab2
----
88
4074

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8515
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-8515
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * + col2 = + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8517
SELECT DISTINCT - col1 * - - CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8517
SELECT DISTINCT - col1 * - - CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8518
SELECT + col1 DIV - + 11 FROM tab2
----
-4
-6
-7

skipif mysql # not compatible
query I rowsort label-8518
SELECT + col1 / - + 11 FROM tab2
----
-4
-6
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT ALL MIN( ALL + - col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-8519
SELECT ALL MIN ( ALL + - col1 ) AS col0 FROM tab1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-8520
SELECT DISTINCT + col0 DIV + 14 FROM tab2
----
3
4
5

skipif mysql # not compatible
query I rowsort label-8520
SELECT DISTINCT + col0 / + 14 FROM tab2
----
3
4
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 <> 52
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * - col2 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 74 + - - col2 * - col0 FROM tab0 cor0
----
-631
-796
-9529

query I rowsort
SELECT ALL + ( - + 95 ) + - col2 + + col1 + + col2 * - - 22 * - 25 FROM tab2 AS cor0
----
-12717
-22058
-31986

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT COUNT( * ) + + - ( + SUM( ALL col0 ) ) FROM tab1
----
-224

skipif mysql # not compatible
query I rowsort label-8525
SELECT COUNT ( * ) + + - ( + SUM ( ALL col0 ) ) FROM tab1
----
-224

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col0 IS NOT NULL
----

query I rowsort
SELECT ALL - 24 * + col2 AS col0 FROM tab2
----
-1392
-552
-960

query I rowsort
SELECT DISTINCT + + 9 FROM tab1 cor0
----
9

query II rowsort
SELECT ALL + col0, + col0 AS col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT ALL + ( - - MIN( 61 ) ) + 16 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL + ( - - MIN ( 61 ) ) + 16 FROM tab1 AS cor0
----
77

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT + 44 * 88 + + col2 NOT BETWEEN NULL AND + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT DISTINCT + - 72 + + COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-63

skipif mysql # not compatible
query I rowsort label-8533
SELECT DISTINCT + - 72 + + COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT - COUNT( * ) + + COUNT( DISTINCT - 41 ) * - SUM( ALL ( + col2 ) ) + 91 FROM tab2 AS cor0 WHERE ( col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8534
SELECT - COUNT ( * ) + + COUNT ( DISTINCT - 41 ) * - SUM ( ALL ( + col2 ) ) + 91 FROM tab2 AS cor0 WHERE ( col1 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT + COUNT( * ) + + - COUNT( * ) AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8535
SELECT + COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab0 cor0
----
0

query II rowsort
SELECT DISTINCT - - 44 AS col2, + 35 FROM tab0 AS cor0
----
44
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8537
SELECT ALL + 80 + + + col1 - - + col1 * - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8537
SELECT ALL + 80 + + + col1 - - + col1 * - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8538
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN NULL AND 76
----

skipif mysql # not compatible
query III rowsort label-8538
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN NULL AND 76
----

query I rowsort
SELECT DISTINCT col1 * - col0 + + col2 FROM tab1 AS cor0
----
-366
-4209
-618

query I rowsort
SELECT 83 * - col2 AS col2 FROM tab1
----
-4897
-5644
-7968

query I rowsort
SELECT ALL - col0 * + + 56 AS col2 FROM tab1
----
-2856
-4760
-5096

query I rowsort
SELECT ALL + col0 * - 62 FROM tab0
----
-5394
-6014
-930

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8543
SELECT * FROM tab2 WHERE NOT NULL IN ( - + CAST( NULL AS DECIMAL ) + + col1, + col0, + col0, - - col0 )
----

skipif mysql # not compatible
query III rowsort label-8543
SELECT * FROM tab2 WHERE NOT NULL IN ( - + CAST ( NULL AS REAL ) + + col1, + col0, + col0, - - col0 )
----

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT + SUM( + col2 ) col2 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8546
SELECT + SUM ( + col2 ) col2 FROM tab2
----
121

query I rowsort
SELECT DISTINCT - 20 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
-20

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 73 / - + col2 / - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8549
SELECT ALL 95 DIV - col0 col1 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8549
SELECT ALL 95 / - col0 col1 FROM tab0 AS cor0
----
-1
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - col1 * col0, col0, - col2 col2 FROM tab2 cor0
----
9 values hashing to 0d4b9f7e9623b249ec3f1eec8a9f5bbd

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 70 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT + - MAX( ALL + 65 ) AS col0 FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-8552
SELECT + - MAX ( ALL + 65 ) AS col0 FROM tab2 AS cor0
----
-65

query I rowsort
SELECT ( + 65 ) FROM tab2 AS cor0
----
65
65
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, - col0 - + col0 FROM tab1 AS cor0
----
14
-102
47
-182
5
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT ( MAX( DISTINCT - + col2 ) ) FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8555
SELECT ( MAX ( DISTINCT - + col2 ) ) FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT - SUM( ALL - 19 ) AS col2 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-8556
SELECT - SUM ( ALL - 19 ) AS col2 FROM tab0 AS cor0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8557
SELECT + 50 * + CAST( + AVG ( + 78 ) AS SIGNED ) AS col1 FROM tab0 cor0
----
3900

skipif mysql # not compatible
query I rowsort label-8557
SELECT + 50 * + CAST ( + AVG ( + 78 ) AS INTEGER ) AS col1 FROM tab0 cor0
----
3900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 92 + + col1 col1 FROM tab1 AS cor0
----
-45
-78
-87

query I rowsort
SELECT DISTINCT - + ( - + col0 ) + + col0 * + 89 FROM tab0 AS cor0
----
1350
7830
8730

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8560
SELECT * FROM tab2 WHERE ( CAST( + - 89 AS SIGNED ) + - 23 * col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8560
SELECT * FROM tab2 WHERE ( CAST ( + - 89 AS INTEGER ) + - 23 * col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 92 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT 23 + 96 AS col0 FROM tab1
----
119
119
119

onlyif mysql # DIV for integer division: 
query I rowsort label-8563
SELECT + col0 DIV 50 + col0 col2 FROM tab0
----
15
88
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8563
SELECT + col0 / 50 + col0 col2 FROM tab0
----
15
88
98

query I rowsort
SELECT + 70 * - col1 + + + col0 * + 34 AS col2 FROM tab0
----
-5160
1488
3228

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8565
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8566
SELECT ALL - CAST( + col1 AS SIGNED ) + - col0 * + + 75 * col1 + + + 58 * col0 AS col2, + 31 DIV + 88 FROM tab0 AS cor0
----
-132000
0
-1650
0
-90336
0

skipif mysql # not compatible
query II rowsort label-8566
SELECT ALL - CAST ( + col1 AS INTEGER ) + - col0 * + + 75 * col1 + + + 58 * col0 AS col2, + 31 / + 88 FROM tab0 AS cor0
----
-132000
0
-1650
0
-90336
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT - COUNT( ALL + col0 ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8567
SELECT - COUNT ( ALL + col0 ) col0 FROM tab2
----
-3

query I rowsort
SELECT - 76 - 54 FROM tab0
----
-130
-130
-130

query I rowsort
SELECT ALL + - 28 AS col0 FROM tab2 AS cor0
----
-28
-28
-28

query I rowsort
SELECT ALL - ( + col0 ) / - col1 + + col1 AS col2 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT - + 10 IS NOT NULL )
----
1
21
81

query I rowsort
SELECT + col0 * + 35 FROM tab2 AS cor0 WHERE NOT + col2 * + - col0 + col0 * - + col0 IS NULL
----
1610
2240
2625

query I rowsort
SELECT DISTINCT 96 * - + col2 * - + col1 FROM tab2
----
112608
295680
373056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 16 col0 FROM tab2
----
1072
1232
816

query I rowsort
SELECT ALL - ( + - col1 ) AS col1 FROM tab1
----
14
47
5

query II rowsort
SELECT + col2 AS col2, + 79 AS col1 FROM tab1
----
59
79
68
79
96
79

query II rowsort
SELECT + col2, 26 FROM tab2
----
23
26
40
26
58
26

query I rowsort
SELECT col1 + + 89 FROM tab0 WHERE NOT col2 <> NULL
----

query I rowsort
SELECT + 42 * col1 AS col1 FROM tab0
----
3402
42
882

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT ALL - 7 * SUM( - col2 ) FROM tab0
----
1092

skipif mysql # not compatible
query I rowsort label-8580
SELECT ALL - 7 * SUM ( - col2 ) FROM tab0
----
1092

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT DISTINCT + SUM( 36 ) AS col1 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-8582
SELECT DISTINCT + SUM ( 36 ) AS col1 FROM tab2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT ALL + - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL + - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT DISTINCT + 53 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
53

query I rowsort
SELECT ( - col0 ) * col0 AS col2 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT - 16 * - - 66 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-1056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col1 col0 FROM tab2
----
1173
3080
3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8588
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT - - col2 + - CAST( NULL AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT - - col2 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8589
SELECT ALL ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 19 + + 0 AS col0 FROM tab0 AS cor0
----
19

query I rowsort
SELECT - 14 + + col1 AS col0 FROM tab2 AS cor0
----
37
53
63

query II rowsort
SELECT DISTINCT col2 + - - col0 AS col0, 87 FROM tab0 AS cor0
----
196
87
62
87
97
87

query I rowsort
SELECT DISTINCT + + 18 + + - 24 * + - col2 * col1 * - 56 * - 50 AS col0 FROM tab2 AS cor0
----
206976018
261139218
78825618

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT 8 + - SUM( - col0 ) AS col1 FROM tab0 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-8594
SELECT 8 + - SUM ( - col0 ) AS col1 FROM tab0 AS cor0
----
207

query I rowsort
SELECT ALL - ( - - col2 ) + + col0 AS col0 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8596
SELECT - COUNT( - col2 ) / CAST( NULL AS SIGNED ) + - - 47 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8596
SELECT - COUNT ( - col2 ) / CAST ( NULL AS INTEGER ) + - - 47 col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8597
SELECT DISTINCT - col2 * + CAST( NULL AS SIGNED ) * 70 col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8597
SELECT DISTINCT - col2 * + CAST ( NULL AS INTEGER ) * 70 col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8598
SELECT DISTINCT - col0 - + + CAST( NULL AS DECIMAL ) - + col2 / + + 56 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8598
SELECT DISTINCT - col0 - + + CAST ( NULL AS REAL ) - + col2 / + + 56 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 + col1 + + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 54 * + col1 AS col0 FROM tab2 AS cor0
----
2754
3618
4158

onlyif mysql # DIV for integer division: 
query I rowsort label-8601
SELECT DISTINCT col1 DIV - + 3 + - col0 FROM tab2
----
-63
-89
-97

skipif mysql # not compatible
query I rowsort label-8601
SELECT DISTINCT col1 / - + 3 + - col0 FROM tab2
----
-63
-89
-97

query III rowsort
SELECT * FROM tab1 WHERE NULL >= - 41
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8603
SELECT DISTINCT + COUNT( * ) DIV + 45 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8603
SELECT DISTINCT + COUNT ( * ) / + 45 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + ( - + col2 ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT 40 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 18 col1 FROM tab1 AS cor0
----
18
18
18

query I rowsort
SELECT - col1 * + + col2 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT + col0 * + 68 AS col1 FROM tab1
----
3468
5780
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT ALL + 13 * + COUNT( * ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-8609
SELECT ALL + 13 * + COUNT ( * ) FROM tab2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT + ( - - COUNT( * ) ) FROM tab1 WHERE NOT col1 NOT BETWEEN + 10 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8610
SELECT + ( - - COUNT ( * ) ) FROM tab1 WHERE NOT col1 NOT BETWEEN + 10 AND NULL
----
0

query I rowsort
SELECT - + ( + col1 ) * - - col1 + + + ( + 57 ) AS col1 FROM tab1 AS cor0
----
-139
-2152
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 75 col2 FROM tab0 cor0
----
-75
-75
-75

query I rowsort
SELECT ALL + 24 + - - 30 AS col0 FROM tab1
----
54
54
54

onlyif mysql # aggregate syntax: 
query II rowsort label-8614
SELECT DISTINCT - 67 col1, COUNT( * ) AS col2 FROM tab1
----
-67
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8614
SELECT DISTINCT - 67 col1, COUNT ( * ) AS col2 FROM tab1
----
-67
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT DISTINCT + + 24 * - COUNT( * ) * + MAX( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
-6984

skipif mysql # not compatible
query I rowsort label-8615
SELECT DISTINCT + + 24 * - COUNT ( * ) * + MAX ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
-6984

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 25 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col1 * - ( + - 50 ) FROM tab2 AS cor0
----
2550
3350
3850

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 78 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 90 - + col1 + col0 AS col0 FROM tab1 cor0 WHERE NULL NOT BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8620
SELECT DISTINCT + CAST( - ( COUNT( * ) ) AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - 15 + + 98 AND + 1 + + 65
----
0

skipif mysql # not compatible
query I rowsort label-8620
SELECT DISTINCT + CAST ( - ( COUNT ( * ) ) AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - 15 + + 98 AND + 1 + + 65
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 13 col2 FROM tab2 cor0
----
13
13
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8622
SELECT ALL - col0 + + ( - col1 ) FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) * + 99 IS NULL
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL - col0 + + ( - col1 ) FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * + 99 IS NULL
----
-138
-65
-90

query I rowsort
SELECT DISTINCT - col2 + - - 8 FROM tab1 cor0
----
-51
-60
-88

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8625
SELECT ALL COUNT( * ) AS col0, - 72 AS col0 FROM tab2 AS cor0 WHERE - col1 NOT IN ( + 86 * + + col2, + col0 * + 67 + + col0, - CAST( NULL AS SIGNED ) )
----
0
-72

skipif mysql # not compatible
query II rowsort label-8625
SELECT ALL COUNT ( * ) AS col0, - 72 AS col0 FROM tab2 AS cor0 WHERE - col1 NOT IN ( + 86 * + + col2, + col0 * + 67 + + col0, - CAST ( NULL AS INTEGER ) )
----
0
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT DISTINCT COUNT( * ) * COUNT( * ) + 60 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-8626
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + 60 FROM tab0
----
69

query I rowsort
SELECT ALL col1 + - 68 * - - col2 + col1 * col0 + col2 * + - 77 * - col0 AS col0 FROM tab2
----
199405
336098
82299

query I rowsort
SELECT DISTINCT + 45 + - col0 AS col0 FROM tab1
----
-40
-46
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-8629
SELECT DISTINCT + 40 * col2 DIV - + 79 col0 FROM tab0
----
-23
-5
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8629
SELECT DISTINCT + 40 * col2 / - + 79 col0 FROM tab0
----
-23
-5
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT - 97 - - - COUNT( * ) FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-8630
SELECT - 97 - - - COUNT ( * ) FROM tab0
----
-100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8631
SELECT ALL - CAST( NULL AS DECIMAL ) + - 81 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL - CAST ( NULL AS REAL ) + - 81 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 18 + - - 94 + - - col2 * ( col2 ) * + col2 FROM tab0
----
103899
1076
970375

query I rowsort
SELECT 53 + col0 FROM tab1
----
104
138
144

query I rowsort
SELECT col0 + + - 96 AS col2 FROM tab0
----
-81
-9
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8635
SELECT - col1 + col2 * + col0 DIV + col0 AS col2 FROM tab0 cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-8635
SELECT - col1 + col2 * + col0 / + col0 AS col2 FROM tab0 cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT ALL - COUNT( * ) + + 68 AS col2 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL - COUNT ( * ) + + 68 AS col2 FROM tab0 AS cor0
----
65

query I rowsort
SELECT DISTINCT - 22 * - + col0 * col2 AS col0 FROM tab2
----
23276
56320
95700

query I rowsort
SELECT + col2 + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
198
20
94

onlyif mysql # aggregate syntax: 
query II rowsort label-8639
SELECT ALL COUNT( * ), - 14 AS col2 FROM tab2 AS cor0
----
3
-14

skipif mysql # not compatible
query II rowsort label-8639
SELECT ALL COUNT ( * ), - 14 AS col2 FROM tab2 AS cor0
----
3
-14

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + 97 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT - MAX( ALL - col2 ) FROM tab0 AS cor0 WHERE NOT - ( - col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8641
SELECT - MAX ( ALL - col2 ) FROM tab0 AS cor0 WHERE NOT - ( - col0 ) IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 66 * + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 35 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT ALL + COUNT( DISTINCT - col2 ) FROM tab1 AS cor0 WHERE ( 65 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8644
SELECT ALL + COUNT ( DISTINCT - col2 ) FROM tab1 AS cor0 WHERE ( 65 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT + - MIN( col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8645
SELECT + - MIN ( col1 ) AS col1 FROM tab1 AS cor0
----
-5

query II rowsort
SELECT DISTINCT + + col0, - col1 * + + 25 FROM tab0 AS cor0
----
15
-2025
87
-525
97
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8647
SELECT - COUNT( * ), 70 DIV 27 * + 4 * 99 col2 FROM tab2 AS cor0
----
-3
792

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8647
SELECT - COUNT ( * ), 70 / 27 * + 4 * 99 col2 FROM tab2 AS cor0
----
-3
792

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT DISTINCT ( + MAX( - 28 ) ) AS col2 FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-8648
SELECT DISTINCT ( + MAX ( - 28 ) ) AS col2 FROM tab2 AS cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT DISTINCT COUNT( * ) * + - 95 FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-8649
SELECT DISTINCT COUNT ( * ) * + - 95 FROM tab1 AS cor0
----
-285

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 33 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + - ( - + col2 ) ) AS col2 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT MAX( ALL col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-8652
SELECT MAX ( ALL col0 ) AS col1 FROM tab0
----
97

query I rowsort
SELECT + 35 * col2 FROM tab2
----
1400
2030
805

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT ALL + + ( MAX( + 79 ) ) AS col1 FROM tab0 cor0
----
79

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL + + ( MAX ( + 79 ) ) AS col1 FROM tab0 cor0
----
79

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> 89 - - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8656
SELECT DISTINCT + col0 + + col0 * + - 34 - + + CAST( + + 85 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1603
-2197
-2560

skipif mysql # not compatible
query I rowsort label-8656
SELECT DISTINCT + col0 + + col0 * + - 34 - + + CAST ( + + 85 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1603
-2197
-2560

query III rowsort
SELECT * FROM tab0 WHERE NULL < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT COUNT( + 78 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8658
SELECT COUNT ( + 78 ) FROM tab1
----
3

query I rowsort
SELECT + + 45 * + col1 + col0 AS col1 FROM tab2 cor0
----
2341
3090
3529

query I rowsort
SELECT DISTINCT - + 64 AS col1 FROM tab1 cor0
----
-64

query II rowsort
SELECT ALL - 62 AS col1, col2 AS col0 FROM tab0 AS cor0
----
-62
10
-62
47
-62
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT - COUNT( * ) + - 55 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-8662
SELECT - COUNT ( * ) + - 55 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8663
SELECT + col0 + + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8663
SELECT + col0 + + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8664
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - col1 / ( + 16 ) - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8664
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - col1 / ( + 16 ) - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + - + 55 col2 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8666
SELECT - col0 DIV - col0 + + col2 + + 85 * - col0 FROM tab0 AS cor0
----
-1227
-7384
-8145

skipif mysql # not compatible
query I rowsort label-8666
SELECT - col0 / - col0 + + col2 + + 85 * - col0 FROM tab0 AS cor0
----
-1227
-7384
-8145

query I rowsort
SELECT DISTINCT - - 46 FROM tab1 AS cor0 WHERE NOT 33 + + ( + col2 ) NOT BETWEEN col0 AND - + ( - - 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT + COUNT( DISTINCT - + 62 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8668
SELECT + COUNT ( DISTINCT - + 62 ) FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8669
SELECT 55 + - - 51 / - - ( - col0 ) - col0 FROM tab1 WHERE - + CAST( NULL AS SIGNED ) * - - col2 NOT BETWEEN + col2 AND + 59 * - 87 * + 31 + - col2 + + + col0 * - col1 / - col2
----

skipif mysql # not compatible
query I rowsort label-8669
SELECT 55 + - - 51 / - - ( - col0 ) - col0 FROM tab1 WHERE - + CAST ( NULL AS INTEGER ) * - - col2 NOT BETWEEN + col2 AND + 59 * - 87 * + 31 + - col2 + + + col0 * - col1 / - col2
----

query II rowsort
SELECT col0 AS col0, + col0 * - + col2 * 46 FROM tab0
----
15
-32430
87
-40020
97
-441738

query I rowsort
SELECT + col2 * + col1 - - col0 FROM tab2
----
1219
3144
3961

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 <> NULL
----

query I rowsort
SELECT DISTINCT - 84 - col0 AS col1 FROM tab0
----
-171
-181
-99

query II rowsort
SELECT DISTINCT 51 AS col0, + 85 AS col2 FROM tab2
----
51
85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + - + col0 + - col0 / - col2 IS NULL
----

query II rowsort
SELECT ALL + col1 AS col2, col1 * col1 AS col0 FROM tab1 AS cor0
----
14
196
47
2209
5
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT COUNT( * ) * SUM( ALL + col1 ) FROM tab2 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-8677
SELECT COUNT ( * ) * SUM ( ALL + col1 ) FROM tab2 AS cor0
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT DISTINCT - + COUNT( * ) * - 12 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-8678
SELECT DISTINCT - + COUNT ( * ) * - 12 FROM tab2 AS cor0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-8679
SELECT + col1 DIV - + ( + + col0 ) * + col2 + - - ( + col1 ) + + - 58 FROM tab1 AS cor0
----
-11
-44
-53

skipif mysql # not compatible
query I rowsort label-8679
SELECT + col1 / - + ( + + col0 ) * + col2 + - - ( + col1 ) + + - 58 FROM tab1 AS cor0
----
-11
-44
-53

onlyif mysql # DIV for integer division: 
query II rowsort label-8680
SELECT DISTINCT - + col1, col1 DIV + col0 + - + col2 AS col2 FROM tab2 AS cor0
----
-51
-22
-67
-58
-77
-39

skipif mysql # not compatible
query II rowsort label-8680
SELECT DISTINCT - + col1, col1 / + col0 + - + col2 AS col2 FROM tab2 AS cor0
----
-51
-22
-67
-58
-77
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8681
SELECT ALL col1 * CAST( + col0 AS SIGNED ) AS col1 FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL col1 * CAST ( + col0 AS INTEGER ) AS col1 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT DISTINCT + 23 * - - COUNT( DISTINCT + col0 ) * + 2 AS col1 FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-8682
SELECT DISTINCT + 23 * - - COUNT ( DISTINCT + col0 ) * + 2 AS col1 FROM tab2
----
138

query I rowsort
SELECT - 58 * - 65 FROM tab1 cor0
----
3770
3770
3770

query I rowsort
SELECT 23 FROM tab2 AS cor0 WHERE NOT ( + 27 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8685
SELECT + COUNT( DISTINCT col2 ) AS col2 FROM tab2 cor0 WHERE NOT + col0 - col2 <= - CAST( NULL AS SIGNED ) + + 26 - + 94 + + col1
----
0

skipif mysql # not compatible
query I rowsort label-8685
SELECT + COUNT ( DISTINCT col2 ) AS col2 FROM tab2 cor0 WHERE NOT + col0 - col2 <= - CAST ( NULL AS INTEGER ) + + 26 - + 94 + + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT DISTINCT + 17 * - COUNT( * ) + + 33 AS col2 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-8686
SELECT DISTINCT + 17 * - COUNT ( * ) + + 33 AS col2 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT 88 * - col2 * col0 AS col2 FROM tab2
----
-225280
-382800
-93104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8688
SELECT ALL - ( + - 97 ) * + + CAST( NULL AS SIGNED ) + + col1 * col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL - ( + - 97 ) * + + CAST ( NULL AS INTEGER ) + + col1 * col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col2 AS col2, - col2 FROM tab2
----
-23
-23
-40
-40
-58
-58

query I rowsort
SELECT 71 AS col0 FROM tab2 WHERE NOT + col2 * + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, col1 + - 10 col0 FROM tab0
----
-15
71
-87
11
-97
-9

query II rowsort
SELECT + col1, - 55 FROM tab0
----
1
-55
21
-55
81
-55

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 17 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 + - 57 FROM tab0 AS cor0
----
-36
-56
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT - ( + + 42 ) * COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 cor0
----
-129

skipif mysql # not compatible
query I rowsort label-8695
SELECT - ( + + 42 ) * COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 cor0
----
-129

query I rowsort
SELECT ALL - + col1 + - + col0 AS col0 FROM tab0 cor0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-8697
SELECT + COUNT( * ) + - + 88 AS col0, COUNT( - - 88 ) AS col2 FROM tab0
----
-85
3

skipif mysql # not compatible
query II rowsort label-8697
SELECT + COUNT ( * ) + - + 88 AS col0, COUNT ( - - 88 ) AS col2 FROM tab0
----
-85
3

query I rowsort
SELECT ALL col2 + - col1 * - col2 AS col1 FROM tab0
----
198
220
3854

query I rowsort
SELECT DISTINCT 71 + - 5 + col0 FROM tab2
----
112
130
141

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT ALL - - COUNT( * ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8700
SELECT ALL - - COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8701
SELECT - col0 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8701
SELECT - col0 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT DISTINCT ( - MIN( + 20 ) ) col1 FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8702
SELECT DISTINCT ( - MIN ( + 20 ) ) col1 FROM tab0 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT ALL + - SUM( 38 ) col1 FROM tab0 AS cor0
----
-114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8703
SELECT ALL + - SUM ( 38 ) col1 FROM tab0 AS cor0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT ALL + COUNT( * ) + + COUNT( + 15 ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8704
SELECT ALL + COUNT ( * ) + + COUNT ( + 15 ) FROM tab2 AS cor0
----
6

query II rowsort
SELECT DISTINCT + col2, - col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT ALL - COUNT( * ) + + COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8706
SELECT ALL - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8707
SELECT 4 + + - 23 DIV - col2 FROM tab1
----
4
4
4

skipif mysql # not compatible
query I rowsort label-8707
SELECT 4 + + - 23 / - col2 FROM tab1
----
4
4
4

query I rowsort
SELECT DISTINCT - 11 - - - 75 * + col0 AS col2 FROM tab2
----
-3461
-4811
-5636

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8709
SELECT + 7 * + + col2 + + col1 + - col0 + + + CAST( - 15 AS SIGNED ) DIV + + col2 AS col2 FROM tab2
----
166
293
398

skipif mysql # not compatible
query I rowsort label-8709
SELECT + 7 * + + col2 + + col1 + - col0 + + + CAST ( - 15 AS INTEGER ) / + + col2 AS col2 FROM tab2
----
166
293
398

query I rowsort
SELECT col1 + - col0 - + 49 FROM tab1
----
-129
-86
-93

query I rowsort
SELECT ALL - 18 - + col2 AS col2 FROM tab1
----
-114
-77
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, - 60 col2 FROM tab1 WHERE NULL IS NULL
----
-59
-60
-68
-60
-96
-60

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - ( + - col2 ) * 14 AND - 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT 53 + MIN( ALL col2 ) AS col2 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-8714
SELECT 53 + MIN ( ALL col2 ) AS col2 FROM tab2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT DISTINCT MIN( - col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8715
SELECT DISTINCT MIN ( - col2 ) AS col0 FROM tab0
----
-99

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT - + col0 * 53 AS col1 FROM tab0 AS cor0
----
-4611
-5141
-795

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 52 <= ( col1 ) * + col0 * + 97 * + - col2 * - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8719
SELECT col2, - 83 + CAST( NULL AS SIGNED ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-8719
SELECT col2, - 83 + CAST ( NULL AS INTEGER ) FROM tab2
----
23
NULL
40
NULL
58
NULL

query II rowsort
SELECT DISTINCT + 96 * 58, col0 AS col0 FROM tab0
----
5568
15
5568
87
5568
97

query I rowsort
SELECT + 58 * 98 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6952eccc5aaacae7541602275a3c92da

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8722
SELECT - CAST( - ( - col2 ) AS SIGNED ) AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8722
SELECT - CAST ( - ( - col2 ) AS INTEGER ) AS col1 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 BETWEEN 65 AND - 15 * + + 59 * col1 - + 38
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 99 AS col0, col2 col2 FROM tab1
----
99
59
99
68
99
96

query II rowsort
SELECT DISTINCT + + col2 AS col2, ( + col1 ) AS col0 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT DISTINCT + col0 * + + 33 + - col1 AS col1 FROM tab0 AS cor0
----
2850
3200
414

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 43 col2, col2 * - col0 col1 FROM tab0 AS cor0
----
-43
-705
-43
-870
-43
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-8729
SELECT ALL col0 + - + col2 DIV - col0 + + - col2 FROM tab2 cor0
----
17
23
24

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL col0 + - + col2 / - col0 + + - col2 FROM tab2 cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT DISTINCT - COUNT( * ) * MIN( - col0 ) * - COUNT( * ) AS col0 FROM tab0 cor0
----
-873

skipif mysql # not compatible
query I rowsort label-8730
SELECT DISTINCT - COUNT ( * ) * MIN ( - col0 ) * - COUNT ( * ) AS col0 FROM tab0 cor0
----
-873

query I rowsort
SELECT ALL + - 3 * + - col0 AS col2 FROM tab2 AS cor0
----
138
192
225

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT + COUNT( - col2 ) * - + 4 FROM tab1 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-8732
SELECT + COUNT ( - col2 ) * - + 4 FROM tab1 cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8733
SELECT DISTINCT - 10 + CAST( + + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
41
75
81

skipif mysql # not compatible
query I rowsort label-8733
SELECT DISTINCT - 10 + CAST ( + + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
41
75
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8734
SELECT ALL 45 DIV + col0 + + col0 FROM tab0
----
18
87
97

skipif mysql # not compatible
query I rowsort label-8734
SELECT ALL 45 / + col0 + + col0 FROM tab0
----
18
87
97

query I rowsort
SELECT ALL + 17 * - + ( + 15 ) FROM tab0
----
-255
-255
-255

query I rowsort
SELECT ALL + ( 73 ) FROM tab2
----
73
73
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8737
SELECT - ( - - col1 ) + - - CAST( ( col0 ) AS SIGNED ) AS col1 FROM tab0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-8737
SELECT - ( - - col1 ) + - - CAST ( ( col0 ) AS INTEGER ) AS col1 FROM tab0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT - COUNT( * ) - + COUNT( - col1 ) FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-6

skipif mysql # not compatible
query I rowsort label-8738
SELECT - COUNT ( * ) - + COUNT ( - col1 ) FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8739
SELECT DISTINCT - 14 * - CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8739
SELECT DISTINCT - 14 * - CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, + 65 col0 FROM tab0 AS cor0
----
15
65
87
65
97
65

query I rowsort
SELECT 54 + - 54 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col2 + - col2 + + 50 * - + 22 FROM tab1 AS cor0
----
-1100
-1100
-1100

query I rowsort
SELECT ALL - - col2 + + 92 FROM tab0 AS cor0
----
102
139
191

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT DISTINCT - MIN( - col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT - MIN ( - col2 ) FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8745
SELECT - 96 * + - 53 * + 62, 26 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
315456
78

skipif mysql # not compatible
query II rowsort label-8745
SELECT - 96 * + - 53 * + 62, 26 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
315456
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT - MIN( - col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-8746
SELECT - MIN ( - col2 ) FROM tab2
----
58

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 = - col2 + - 42
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 17 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT - COUNT( - 68 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8749
SELECT - COUNT ( - 68 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col1 * + + col1 - - col2 FROM tab0 AS cor0
----
100
451
6608

query I rowsort
SELECT ALL ( - 71 ) FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-71
-71
-71

query II rowsort
SELECT ALL + 73 * col0, col2 + + 61 AS col2 FROM tab1 AS cor0
----
3723
157
6205
120
6643
129

query II rowsort
SELECT ALL + col0 AS col2, + 30 AS col1 FROM tab1
----
51
30
85
30
91
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT DISTINCT + + SUM( ALL - + 11 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-99

skipif mysql # not compatible
query I rowsort label-8754
SELECT DISTINCT + + SUM ( ALL - + 11 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT DISTINCT COUNT( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8755
SELECT DISTINCT COUNT ( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
3

query II rowsort
SELECT + col2, col2 * + col1 AS col0 FROM tab0 AS cor0
----
10
210
47
3807
99
99

query I rowsort
SELECT + 56 * + col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col0 * + 15 AS col1 FROM tab1 AS cor0
----
1275
1365
765

query I rowsort
SELECT DISTINCT - ( - + 18 ) FROM tab2 AS cor0
----
18

query I rowsort
SELECT DISTINCT + col2 + - col2 + 36 FROM tab0 AS cor0
----
36

query III rowsort
SELECT * FROM tab2 WHERE NOT + 61 + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * col0 * - col0 + - col1 + col1 - - col0 FROM tab2
----
-163776
-326175
-48622

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT COUNT( * ) * - - 82 FROM tab2
----
246

skipif mysql # not compatible
query I rowsort label-8763
SELECT COUNT ( * ) * - - 82 FROM tab2
----
246

query I rowsort
SELECT ALL - col0 * + 40 FROM tab2
----
-1840
-2560
-3000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8765
SELECT - 5 * + COUNT( * ) * + CAST( + AVG ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8765
SELECT - 5 * + COUNT ( * ) * + CAST ( + AVG ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT 13 * - col0 AS col1 FROM tab0
----
-1131
-1261
-195

query I rowsort
SELECT ALL 72 * - col2 AS col2 FROM tab1
----
-4248
-4896
-6912

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT MIN( ( col0 ) ) + + COUNT( * ) * - COUNT( * ) FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-8768
SELECT MIN ( ( col0 ) ) + + COUNT ( * ) * - COUNT ( * ) FROM tab2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8769
SELECT - - col2 AS col2 FROM tab0 WHERE col2 > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8769
SELECT - - col2 AS col2 FROM tab0 WHERE col2 > CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 20 * col1 AS col0 FROM tab1
----
100
280
940

query I rowsort
SELECT 36 + - 21 + + col0 FROM tab2
----
61
79
90

query I rowsort
SELECT DISTINCT ( + + col1 ) * + col0 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT ALL - + ( - col0 ) + + col0 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT DISTINCT - col0 + - + col1 FROM tab0 cor0
----
-108
-96
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8775
SELECT ALL col2 / - + col0 * - CAST( NULL AS SIGNED ) + + - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL col2 / - + col0 * - CAST ( NULL AS INTEGER ) + + - col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8776
SELECT DISTINCT col2 DIV - + col1 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-8776
SELECT DISTINCT col2 / - + col1 FROM tab1
----
-1
-11
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-8777
SELECT 59 - - 31 DIV col0 * + + ( - - col2 ) AS col2 FROM tab1 AS cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-8777
SELECT 59 - - 31 / col0 * + + ( - - col2 ) AS col2 FROM tab1 AS cor0
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT 48 - + MAX( ALL 51 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8778
SELECT 48 - + MAX ( ALL 51 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8779
SELECT ALL - col1 DIV - col2 + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL - col1 / - col2 + col2 FROM tab1 AS cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 col2 FROM tab0 AS cor0
----
68
68
68

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8782
SELECT ALL + + 45 DIV + - col1 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8782
SELECT ALL + + 45 / + - col1 AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8783
SELECT - ( + + 24 ) DIV - - col0 + + col2 AS col1 FROM tab0
----
10
46
99

skipif mysql # not compatible
query I rowsort label-8783
SELECT - ( + + 24 ) / - - col0 + + col2 AS col1 FROM tab0
----
10
46
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT - MAX( + + col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-8784
SELECT - MAX ( + + col2 ) FROM tab2
----
-58

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 < - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8786
SELECT ALL - SUM( ALL - 49 ) DIV + COUNT( * ) FROM tab0, tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL - SUM ( ALL - 49 ) / + COUNT ( * ) FROM tab0, tab0 AS cor0
----
49

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) = 11
----

query II rowsort
SELECT ALL + 2 AS col2, col2 + col2 AS col1 FROM tab1
----
2
118
2
136
2
192

onlyif mysql # aggregate syntax: 
query II rowsort label-8789
SELECT DISTINCT - COUNT( * ) AS col0, 50 FROM tab0
----
-3
50

skipif mysql # not compatible
query II rowsort label-8789
SELECT DISTINCT - COUNT ( * ) AS col0, 50 FROM tab0
----
-3
50

onlyif mysql # DIV for integer division: 
query I rowsort label-8790
SELECT - 76 DIV 19 * - col0 AS col2 FROM tab1
----
204
340
364

skipif mysql # not compatible
query I rowsort label-8790
SELECT - 76 / 19 * - col0 AS col2 FROM tab1
----
204
340
364

onlyif mysql # aggregate syntax: 
query II rowsort label-8791
SELECT 68 AS col1, - COUNT( * ) AS col0 FROM tab2
----
68
-3

skipif mysql # not compatible
query II rowsort label-8791
SELECT 68 AS col1, - COUNT ( * ) AS col0 FROM tab2
----
68
-3

query I rowsort
SELECT - + 55 AS col1 FROM tab2 cor0
----
-55
-55
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8793
SELECT + col0 col0 FROM tab2 WHERE ( - CAST( col0 AS SIGNED ) ) IS NOT NULL
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8793
SELECT + col0 col0 FROM tab2 WHERE ( - CAST ( col0 AS INTEGER ) ) IS NOT NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 / + col1 col0 FROM tab1 WHERE NOT - col0 * 26 >= + 96 * - 88
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE NOT - ( + 82 ) + + 6 IS NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN - col0 AND - 26
----

query I rowsort
SELECT + col0 * col1 AS col0 FROM tab0 WHERE col0 * - col0 IS NULL
----

query I rowsort
SELECT 96 FROM tab0 WHERE NOT NULL <> 61
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8799
SELECT ALL * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( - col1 + col2 )
----

skipif mysql # not compatible
query III rowsort label-8799
SELECT ALL * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( - col1 + col2 )
----

query I rowsort
SELECT + 27 + - col1 * col1 FROM tab2 WHERE NOT NULL = ( 18 )
----

query I rowsort
SELECT - 82 FROM tab2 WHERE NULL <= - col2 + - 5
----

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 * col2 + + col0 ) IN ( col0 * col0 )
----

query I rowsort
SELECT ALL + col1 + + 85 FROM tab1
----
132
90
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT DISTINCT SUM( ALL + col1 ) + SUM( 96 ) AS col0 FROM tab1
----
354

skipif mysql # not compatible
query I rowsort label-8804
SELECT DISTINCT SUM ( ALL + col1 ) + SUM ( 96 ) AS col0 FROM tab1
----
354

query I rowsort
SELECT - 2 * col1 AS col0 FROM tab1
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT 28 * COUNT( * ) AS col1 FROM tab1 WHERE NOT - col0 - + col2 * col0 NOT BETWEEN - 30 AND - ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8806
SELECT 28 * COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col0 - + col2 * col0 NOT BETWEEN - 30 AND - ( col2 )
----
0

query I rowsort
SELECT 44 FROM tab0 WHERE NOT ( - col2 * 5 ) IN ( + col2 * 91 )
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT 18 * + SUM( ALL - 45 * - col1 ) FROM tab2
----
157950

skipif mysql # not compatible
query I rowsort label-8808
SELECT 18 * + SUM ( ALL - 45 * - col1 ) FROM tab2
----
157950

query I rowsort
SELECT 24 * 88 AS col1 FROM tab0
----
2112
2112
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT SUM( ALL col0 ) * + COUNT( * ) AS col2 FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-8810
SELECT SUM ( ALL col0 ) * + COUNT ( * ) AS col2 FROM tab2
----
555

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 * + col0 col2 FROM tab0
----
2262
2522
390

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * + col2 >= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 91 + + col2 AS col1 FROM tab1 WHERE ( - 73 * + 47 + col1 * col1 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT ALL COUNT( * ) * - COUNT( * ) + MAX( DISTINCT - 27 + + 54 ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL COUNT ( * ) * - COUNT ( * ) + MAX ( DISTINCT - 27 + + 54 ) FROM tab1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT ALL - 70 * COUNT( * ) FROM tab0 WHERE ( NULL ) < - 59
----
0

skipif mysql # not compatible
query I rowsort label-8815
SELECT ALL - 70 * COUNT ( * ) FROM tab0 WHERE ( NULL ) < - 59
----
0

query I rowsort
SELECT ALL + ( - ( 98 ) ) + 80 * - col1 AS col2 FROM tab0
----
-1778
-178
-6578

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 1 + + 70 col2 FROM tab0 AS cor0
----
-29
23
60

query I rowsort
SELECT 99 * + col2 - col0 * - col1 AS col2 FROM tab0 AS cor0
----
2817
5868
9898

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 99 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT MIN( col2 ) - - 35 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8820
SELECT MIN ( col2 ) - - 35 FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL + col0 + ( - col2 ) FROM tab2 AS cor0
----
17
23
24

onlyif mysql # DIV for integer division: 
query I rowsort label-8822
SELECT + col2 DIV 92 - + col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8822
SELECT + col2 / 92 - + col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8823
SELECT * FROM tab2 WHERE ( 85 - - col1 * - CAST( col2 AS SIGNED ) ) BETWEEN + col2 AND ( col1 )
----

skipif mysql # not compatible
query III rowsort label-8823
SELECT * FROM tab2 WHERE ( 85 - - col1 * - CAST ( col2 AS INTEGER ) ) BETWEEN + col2 AND ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8824
SELECT ALL - CAST( col1 AS SIGNED ) * col2 + col2 FROM tab1
----
-1248
-236
-3128

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL - CAST ( col1 AS INTEGER ) * col2 + col2 FROM tab1
----
-1248
-236
-3128

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE - 3 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 47 NOT BETWEEN NULL AND + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 48 IS NULL
----

query I rowsort
SELECT + + 56 * - col1 AS col0 FROM tab2 AS cor0
----
-2856
-3752
-4312

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 88 * + col1 + ( 7 + col2 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT - + MIN( DISTINCT 83 ) * 18 FROM tab0 AS cor0
----
-1494

skipif mysql # not compatible
query I rowsort label-8831
SELECT - + MIN ( DISTINCT 83 ) * 18 FROM tab0 AS cor0
----
-1494

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col2 ) BETWEEN ( NULL ) AND 44 - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 84 * - col1 BETWEEN col1 / col0 + col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 0 col0 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT + MIN( 18 ) AS col2 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8835
SELECT + MIN ( 18 ) AS col2 FROM tab1 AS cor0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab0 AS cor0 WHERE NOT ( 39 * + 88 ) BETWEEN col0 * - col1 AND - col0
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8837
SELECT ALL + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - - 73 * - 9 AS col2 FROM tab2 AS cor0
----
-657
-657
-657

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 97 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8840
SELECT CAST( ( COUNT( * ) ) AS SIGNED ) * - 99 AS col0 FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-8840
SELECT CAST ( ( COUNT ( * ) ) AS INTEGER ) * - 99 AS col0 FROM tab0
----
-297

query I rowsort
SELECT ALL 21 * + col0 AS col0 FROM tab1
----
1071
1785
1911

query I rowsort
SELECT col1 + + col1 FROM tab0 WHERE NOT + 36 * + 89 IS NULL
----
162
2
42

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT ( 74 + 26 ) NOT IN ( ( col1 ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 + + col1 NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT COUNT( * ) / MAX( - ( col1 ) ) FROM tab0 WHERE NOT ( NULL ) NOT IN ( - col2 + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8845
SELECT COUNT ( * ) / MAX ( - ( col1 ) ) FROM tab0 WHERE NOT ( NULL ) NOT IN ( - col2 + col0 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8846
SELECT DISTINCT - COUNT( * ) / CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8846
SELECT DISTINCT - COUNT ( * ) / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8847
SELECT + COUNT( * ) DIV 98 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8847
SELECT + COUNT ( * ) / 98 AS col2 FROM tab0
----
0

query I rowsort
SELECT - ( 67 ) AS col1 FROM tab1
----
-67
-67
-67

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * - 15 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT - MAX( col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8850
SELECT - MAX ( col2 ) FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT MIN( + 43 ) FROM tab1 cor0
----
43

skipif mysql # not compatible
query I rowsort label-8851
SELECT MIN ( + 43 ) FROM tab1 cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT + COUNT( DISTINCT - + col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8852
SELECT + COUNT ( DISTINCT - + col0 ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 / col1 = ( col1 )
----

query I rowsort
SELECT ( + 53 ) * - 10 AS col1 FROM tab2 AS cor0
----
-530
-530
-530

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT DISTINCT + COUNT( * ) FROM tab0 cor0 WHERE NOT col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8855
SELECT DISTINCT + COUNT ( * ) FROM tab0 cor0 WHERE NOT col0 <= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 82 col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
82

query I rowsort
SELECT ALL - col0 + + + col0 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + 66 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT - COUNT( - - col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8859
SELECT - COUNT ( - - col1 ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - 27 AS col1, + col2 FROM tab1 AS cor0
----
-27
59
-27
68
-27
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8861
SELECT col0 * col1 + + + 26 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8861
SELECT col0 * col1 + + + 26 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT - - MAX( + 69 ) FROM tab1 cor0
----
69

skipif mysql # not compatible
query I rowsort label-8862
SELECT - - MAX ( + 69 ) FROM tab1 cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT DISTINCT COUNT( * ) + 96 AS col1 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8863
SELECT DISTINCT COUNT ( * ) + 96 AS col1 FROM tab2 AS cor0
----
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 41 BETWEEN col1 AND ( 19 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 6 * - col0 + - 27 FROM tab2 AS cor0
----
-303
-411
-477

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8867
SELECT ALL CAST( - 86 AS SIGNED ) + + COUNT( 64 ) * ( COUNT( * ) / + CAST( NULL AS SIGNED ) - - 31 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL CAST ( - 86 AS INTEGER ) + + COUNT ( 64 ) * ( COUNT ( * ) / + CAST ( NULL AS INTEGER ) - - 31 ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 62 BETWEEN ( + 97 * col2 ) AND ( - 26 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8869
SELECT ALL 96 DIV + col1 + + ( col1 ) col2 FROM tab0
----
25
82
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8869
SELECT ALL 96 / + col1 + + ( col1 ) col2 FROM tab0
----
25
82
97

query III rowsort
SELECT * FROM tab1 WHERE ( col1 * - + col2 * + col2 ) NOT BETWEEN col0 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 78 + col1 AS col1 FROM tab0
----
159
79
99

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - col2 * - 71 + col2 AND NULL
----

query I rowsort
SELECT + col0 - - - col1 + 16 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 + + - col1 AS col1 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT ALL + col1 * - - col1 - col2 + + col0 AS col1 FROM tab0 AS cor0
----
-1
518
6529

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT + COUNT( * ) + + 14 FROM tab0 AS cor0 WHERE - col2 IS NULL
----
14

skipif mysql # not compatible
query I rowsort label-8876
SELECT + COUNT ( * ) + + 14 FROM tab0 AS cor0 WHERE - col2 IS NULL
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8877
SELECT - col0 + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8877
SELECT - col0 + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE + ( + col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 27 ) > ( + 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT DISTINCT MIN( DISTINCT + col1 ) FROM tab2 AS cor0 WHERE - 16 + + 42 NOT BETWEEN col2 AND 83 * 79
----
67

skipif mysql # not compatible
query I rowsort label-8880
SELECT DISTINCT MIN ( DISTINCT + col1 ) FROM tab2 AS cor0 WHERE - 16 + + 42 NOT BETWEEN col2 AND 83 * 79
----
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 col1 FROM tab2 AS cor0
----
-15
-15
-15

query I rowsort
SELECT ALL col0 + ( + + col1 ) + - - col2 FROM tab1
----
149
161
206

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 98 * + col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( 32 + - - col2 )
----

query II rowsort
SELECT + col1 AS col0, + col0 + ( col0 ) AS col0 FROM tab1 AS cor0
----
14
102
47
182
5
170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 18 * - col1 col2 FROM tab0 AS cor0 WHERE NOT NULL < - 89
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 23 / - col2 * 69 * + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8888
SELECT 30 DIV - ( + col1 ) FROM tab0
----
-1
-30
0

skipif mysql # not compatible
query I rowsort label-8888
SELECT 30 / - ( + col1 ) FROM tab0
----
-1
-30
0

query I rowsort
SELECT 94 * 68 FROM tab2 WHERE NOT ( NOT ( NOT ( NULL ) IS NOT NULL ) )
----
6392
6392
6392

query I rowsort
SELECT 56 + 53 FROM tab2 WHERE NOT ( + - col0 * - ( col1 ) ) NOT IN ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8891
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, 25 * - col1 FROM tab0
----
NULL
-2025
NULL
-25
NULL
-525

skipif mysql # not compatible
query II rowsort label-8891
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, 25 * - col1 FROM tab0
----
NULL
-2025
NULL
-25
NULL
-525

onlyif mysql # DIV for integer division: 
query I rowsort label-8892
SELECT DISTINCT col2 DIV + ( + col1 ) FROM tab0
----
0
99

skipif mysql # not compatible
query I rowsort label-8892
SELECT DISTINCT col2 / + ( + col1 ) FROM tab0
----
0
99

query I rowsort
SELECT ALL + + 72 AS col2 FROM tab1 AS cor0 WHERE NOT col1 * - - col1 + col2 IS NULL
----
72
72
72

query I rowsort
SELECT DISTINCT col2 * - + 37 + - 14 FROM tab0 AS cor0 WHERE - col1 <= - + col0 + - col0
----
-1753

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8895
SELECT CAST( NULL AS SIGNED ), col2 AS col0 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-8895
SELECT CAST ( NULL AS INTEGER ), col2 AS col0 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query II rowsort
SELECT ALL - col2, + ( col2 ) AS col1 FROM tab1 WHERE + col2 IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8897
SELECT ALL - COUNT( * ) AS col0, + 34 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
34

skipif mysql # not compatible
query II rowsort label-8897
SELECT ALL - COUNT ( * ) AS col0, + 34 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
34

query IIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 JOIN tab0 cor1 ON NOT + + 44 IS NULL, tab2 AS cor2
----
243 values hashing to 7074b004d28b4b938ac0d679b12e5999

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= 22 + - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE ( NOT - col1 / - 45 * + col0 * + col1 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8900
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NOT - col1 / - 45 * + col0 * + col1 IS NOT NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8901
SELECT ALL - + CAST( NULL AS SIGNED ) + - COUNT( * ) + + AVG ( - col1 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + AVG ( - col1 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 50 + - + col2 FROM tab0 AS cor0
----
-49
3
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 NOT IN ( col0 + + - 44 + - col0 + + col0 + + 4 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 97 + + col0 AS col2 FROM tab0 AS cor0
----
-10
-82
0

query I rowsort
SELECT ALL - + 59 + - 44 AS col2 FROM tab2 AS cor0
----
-103
-103
-103

query I rowsort
SELECT ALL col0 + - 23 AS col1 FROM tab1
----
28
62
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8907
SELECT - MAX( - 66 ) + + + 30 * + + CAST( + 40 AS SIGNED ) AS col0 FROM tab0
----
1266

skipif mysql # not compatible
query I rowsort label-8907
SELECT - MAX ( - 66 ) + + + 30 * + + CAST ( + 40 AS INTEGER ) AS col0 FROM tab0
----
1266

query I rowsort
SELECT DISTINCT + 98 FROM tab1 WHERE col1 IS NOT NULL
----
98

query I rowsort
SELECT ALL + ( - + 56 ) * + col2 + - + 24 + 67 * 40 * + col1 FROM tab1
----
10072
122128
32120

query I rowsort
SELECT 72 * + col2 AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( 11 * + col1, - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8912
SELECT * FROM tab2 WHERE CAST( col2 AS SIGNED ) * + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8912
SELECT * FROM tab2 WHERE CAST ( col2 AS INTEGER ) * + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - + col1 + - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT DISTINCT 95 - - - COUNT( * ) FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-8914
SELECT DISTINCT 95 - - - COUNT ( * ) FROM tab2
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-8915
SELECT 67 * + MAX( ALL + 45 ) AS col1, COUNT( * ) col0 FROM tab1
----
3015
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8915
SELECT 67 * + MAX ( ALL + 45 ) AS col1, COUNT ( * ) col0 FROM tab1
----
3015
3

query I rowsort
SELECT - col2 - - ( + col0 ) + + col1 AS col1 FROM tab1 AS cor0
----
-31
31
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT - + 92 - - - MAX( DISTINCT 1 ) AS col0 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-8917
SELECT - + 92 - - - MAX ( DISTINCT 1 ) AS col0 FROM tab1 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT + + 38 + + COUNT( * ) col2 FROM tab2 cor0
----
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8918
SELECT + + 38 + + COUNT ( * ) col2 FROM tab2 cor0
----
41

query I rowsort
SELECT ALL 77 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT - col1 * - + 36 AS col1 FROM tab1 AS cor0
----
1692
180
504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - ( + 97 ), - 17 col2 FROM tab2 cor0
----
-97
-17
-97
-17
-97
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8922
SELECT - CAST( + - MAX( DISTINCT col2 ) AS SIGNED ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8922
SELECT - CAST ( + - MAX ( DISTINCT col2 ) AS INTEGER ) FROM tab0 AS cor0
----
99

query II rowsort
SELECT + 21 * + col1 AS col0, + 83 FROM tab2 AS cor0
----
1071
83
1407
83
1617
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT DISTINCT SUM( - + col1 ) * - 12 + - - 31 FROM tab0 AS cor0
----
1267

skipif mysql # not compatible
query I rowsort label-8924
SELECT DISTINCT SUM ( - + col1 ) * - 12 + - - 31 FROM tab0 AS cor0
----
1267

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8925
SELECT DISTINCT - 3 * + 42 * + ( + col2 ) * CAST( col0 AS DECIMAL ) - col1 * + col0 FROM tab2 AS cor0 WHERE + col0 < - ( col0 )
----

skipif mysql # not compatible
query I rowsort label-8925
SELECT DISTINCT - 3 * + 42 * + ( + col2 ) * CAST ( col0 AS REAL ) - col1 * + col0 FROM tab2 AS cor0 WHERE + col0 < - ( col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8926
SELECT DISTINCT + - COUNT( * ) DIV - 58 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT + - COUNT ( * ) / - 58 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT DISTINCT 14 * - - COUNT( * ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-8927
SELECT DISTINCT 14 * - - COUNT ( * ) FROM tab1
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 30 col0 FROM tab2
----
-30
-30
-30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8929
SELECT * FROM tab2 WHERE NOT + col1 + col1 * col2 * - col1 + - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8929
SELECT * FROM tab2 WHERE NOT + col1 + col1 * col2 * - col1 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 13 * + + col2 FROM tab0
----
1287
130
611

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8931
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN + 36 + - CAST( NULL AS SIGNED ) AND + 73
----

skipif mysql # not compatible
query III rowsort label-8931
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN + 36 + - CAST ( NULL AS INTEGER ) AND + 73
----

query II rowsort
SELECT + 75, col1 AS col2 FROM tab2 cor0
----
75
51
75
67
75
77

query I rowsort
SELECT ALL - + col1 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8934
SELECT - COUNT( * ) AS col2, - 44 AS col0 FROM tab0 WHERE - CAST( + col0 AS SIGNED ) = + col1
----
0
-44

skipif mysql # not compatible
query II rowsort label-8934
SELECT - COUNT ( * ) AS col2, - 44 AS col0 FROM tab0 WHERE - CAST ( + col0 AS INTEGER ) = + col1
----
0
-44

query I rowsort
SELECT DISTINCT 14 + + 93 FROM tab0
----
107

query II rowsort
SELECT + col0, + ( + - col2 ) AS col1 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8937
SELECT CAST( - col1 AS SIGNED ) DIV - + 90 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8937
SELECT CAST ( - col1 AS INTEGER ) / - + 90 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8938
SELECT * FROM tab1 AS cor0 WHERE - col2 + + col2 > + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8938
SELECT * FROM tab1 AS cor0 WHERE - col2 + + col2 > + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT DISTINCT - MIN( - col0 ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-8939
SELECT DISTINCT - MIN ( - col0 ) FROM tab2 cor0
----
75

query I rowsort
SELECT + - col1 * col0 - + col2 AS col0 FROM tab2 cor0
----
-2369
-4968
-5083

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT DISTINCT + COUNT( * ) * 16 AS col1 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-8941
SELECT DISTINCT + COUNT ( * ) * 16 AS col1 FROM tab1 AS cor0
----
48

query I rowsort
SELECT ALL col1 - + col0 * - col2 * + col0 AS col2 FROM tab2
----
163917
326317
48719

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8943
SELECT ALL * FROM tab2 WHERE + 73 BETWEEN ( - 68 * + ( 58 ) + col2 + - 23 * + 46 * col2 / + CAST( NULL AS SIGNED ) ) AND col0
----

skipif mysql # not compatible
query III rowsort label-8943
SELECT ALL * FROM tab2 WHERE + 73 BETWEEN ( - 68 * + ( 58 ) + col2 + - 23 * + 46 * col2 / + CAST ( NULL AS INTEGER ) ) AND col0
----

query I rowsort
SELECT DISTINCT + col0 + - col0 * - ( - col1 ) AS col1 FROM tab0
----
-1200
-1740
0

query I rowsort
SELECT ALL - col2 + + - col2 * - + 54 + - ( col0 ) + - col0 AS col0 FROM tab1
----
2957
3422
4986

query I rowsort
SELECT - col2 * + + col0 + + + 90 + - col1 + + 17 AS col0 FROM tab1
----
-4803
-4913
-6128

query III rowsort
SELECT * FROM tab0 WHERE col2 - - 72 BETWEEN - col0 AND + - 37
----

query I rowsort
SELECT + col1 * col2 FROM tab2 AS cor0 WHERE - 43 BETWEEN + + col2 + + 42 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8949
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 46 + col2 + + col1 * + col0 + + CAST( NULL AS SIGNED ) * - + col1 * - + col2 + 19 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8949
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 46 + col2 + + col1 * + col0 + + CAST ( NULL AS INTEGER ) * - + col1 * - + col2 + 19 IS NULL
----

query II rowsort
SELECT col1, + 23 + 67 AS col1 FROM tab2 cor0 WHERE col0 + + ( + col2 ) NOT BETWEEN + - col1 AND - col0
----
51
90
67
90
77
90

query I rowsort
SELECT ALL - + ( col2 ) FROM tab2 cor0
----
-23
-40
-58

query II rowsort
SELECT DISTINCT col2 AS col2, col0 FROM tab0
----
10
87
47
15
99
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col1 + - - col1 / col0 + + 51 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 21 AS col2, col0 AS col0 FROM tab0
----
21
15
21
87
21
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col1 * col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8956
SELECT ALL col2, 57 * col1 DIV col0 FROM tab0 AS cor0
----
10
13
47
307
99
0

skipif mysql # not compatible
query II rowsort label-8956
SELECT ALL col2, 57 * col1 / col0 FROM tab0 AS cor0
----
10
13
47
307
99
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col1, + col1 col0 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE col0 * - 3 IS NOT NULL
----
51
67
77

query I rowsort
SELECT - col1 * col2 * + col2 AS col2 FROM tab0 AS cor0
----
-178929
-2100
-9801

query II rowsort
SELECT - - 65 AS col1, + col2 * - col0 FROM tab1 AS cor0
----
65
-4896
65
-5015
65
-6188

query I rowsort
SELECT - 47 FROM tab2 AS cor0 WHERE NOT 56 * - col0 + + col1 IS NULL
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT ALL + SUM( + 19 ) FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL + SUM ( + 19 ) FROM tab0 AS cor0
----
57

query II rowsort
SELECT - col2, - ( 48 ) * - + col2 * + col2 + - col0 AS col1 FROM tab2 AS cor0
----
-23
25346
-40
76736
-58
161397

query I rowsort
SELECT col2 * - - col1 + 19 + + col1 AS col0 FROM tab1
----
1377
319
3262

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT ALL + COUNT( DISTINCT - 69 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL + COUNT ( DISTINCT - 69 ) AS col1 FROM tab2
----
1

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> + 20
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 col1 FROM tab0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT + col0 * - + col0 * col0 + - 93 FROM tab1 AS cor0
----
-132744
-614218
-753664

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE NULL <= + col2 + ( + 38 )
----

query III rowsort
SELECT * FROM tab0 WHERE 56 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 * - col0 + + col2 AS col1 FROM tab1
----
-2505
-7166
-8213

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT - - COUNT( * ) * + + COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8972
SELECT - - COUNT ( * ) * + + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
81

query II rowsort
SELECT + col2 * + 95 + + + 93 AS col0, col1 AS col0 FROM tab0 cor0
----
1043
21
4558
81
9498
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT COUNT( * ) AS col0 FROM tab2 cor0 WHERE ( col0 + + + 86 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8974
SELECT COUNT ( * ) AS col0 FROM tab2 cor0 WHERE ( col0 + + + 86 ) IS NULL
----
0

query I rowsort
SELECT + - col2 + + col1 + + col1 AS col0 FROM tab2 AS cor0
----
114
76
79

query I rowsort
SELECT - 0 * - col1 FROM tab1 AS cor0 WHERE 99 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT - - MIN( - 23 ) FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8977
SELECT - - MIN ( - 23 ) FROM tab1 AS cor0
----
-23

query I rowsort
SELECT ALL + 57 + + col0 * - 10 AS col1 FROM tab2 AS cor0
----
-403
-583
-693

onlyif mysql # DIV for integer division: 
query II rowsort label-8979
SELECT + col2 DIV + + col0 + + col0 * 6 + - col2, + col2 AS col1 FROM tab2 AS cor0
----
253
23
344
40
392
58

skipif mysql # not compatible
query II rowsort label-8979
SELECT + col2 / + + col0 + + col0 * 6 + - col2, + col2 AS col1 FROM tab2 AS cor0
----
253
23
344
40
392
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col2 * - - col2 + + col2 < col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 43, 80 AS col2 FROM tab0
----
43
80
43
80
43
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col1 col1 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT ( + + col2 ) * + col0 * + col0 FROM tab0
----
10575
75690
931491

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col0 * + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT ALL MIN( ALL - 43 ) FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-8985
SELECT ALL MIN ( ALL - 43 ) FROM tab2
----
-43

query I rowsort
SELECT + col2 * - + 56 FROM tab1 AS cor0
----
-3304
-3808
-5376

query I rowsort
SELECT + 18 * - - 94 FROM tab1 AS cor0
----
1692
1692
1692

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8988
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - 91 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8988
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - 91 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 49 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8989
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 49 IS NULL
----
3

query III rowsort
SELECT ALL - col0 AS col2, + col1, - ( + col0 ) FROM tab2 AS cor0
----
9 values hashing to 34b473dd1664c8d5e3315db597ad98d1

query I rowsort
SELECT 80 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT ALL COUNT( col0 ) FROM tab1 WHERE NULL = ( - + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL COUNT ( col0 ) FROM tab1 WHERE NULL = ( - + col0 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 * + col0 + - col1 * - col0 >= - + 56
----
15
81
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8994
SELECT - - COUNT( ALL col2 ) DIV - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8994
SELECT - - COUNT ( ALL col2 ) / - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL - + col0 / + 63 + + col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 88
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 12 * + col1 + + 77 * + col0 FROM tab2 AS cor0
----
4154
5852
6579

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT DISTINCT COUNT( * ) FROM tab1 cor0 WHERE 74 - - col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8998
SELECT DISTINCT COUNT ( * ) FROM tab1 cor0 WHERE 74 - - col1 > NULL
----
0

query I rowsort
SELECT col2 * 77 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9000
SELECT + MIN( ALL - - col0 ), - 12 AS col1 FROM tab0 cor0
----
15
-12

skipif mysql # not compatible
query II rowsort label-9000
SELECT + MIN ( ALL - - col0 ), - 12 AS col1 FROM tab0 cor0
----
15
-12

query I rowsort
SELECT ALL - 75 + - 19 FROM tab0
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT DISTINCT + SUM( - col1 ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-9002
SELECT DISTINCT + SUM ( - col1 ) AS col2 FROM tab2
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9003
SELECT ALL + CAST( - 0 AS SIGNED ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL + CAST ( - 0 AS INTEGER ) AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9004
SELECT * FROM tab1 WHERE col1 >= - - col1 / - - CAST( NULL AS SIGNED ) + col0
----

skipif mysql # not compatible
query III rowsort label-9004
SELECT * FROM tab1 WHERE col1 >= - - col1 / - - CAST ( NULL AS INTEGER ) + col0
----

query I rowsort
SELECT - - 14 * - 80 AS col0 FROM tab1 WHERE col2 * + 13 * + - col0 + ( - 77 ) IS NULL
----

query I rowsort
SELECT ALL + 22 AS col1 FROM tab0
----
22
22
22

query I rowsort
SELECT + col2 + + + ( - 94 ) + 62 FROM tab0
----
-22
15
67

query I rowsort
SELECT - - col1 + col1 * + - 65 AS col1 FROM tab2 AS cor0
----
-3264
-4288
-4928

query I rowsort
SELECT ALL + 93 + + col0 FROM tab1 AS cor0
----
144
178
184

query I rowsort
SELECT DISTINCT col0 - - ( - col2 ) * - col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( ( - + 92 ), + col1, 56 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9011
SELECT + COUNT( * ) col1, - COUNT( DISTINCT - 50 ) AS col0 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
3
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9011
SELECT + COUNT ( * ) col1, - COUNT ( DISTINCT - 50 ) AS col0 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
3
-1

query I rowsort
SELECT DISTINCT + col0 + + 86 AS col1 FROM tab0 AS cor0
----
101
173
183

query I rowsort
SELECT - col1 + - - ( + col0 ) - + - col2 + ( col0 ) AS col1 FROM tab0 AS cor0
----
-4
163
292

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT ALL + MAX( DISTINCT col2 ) + + COUNT( DISTINCT - 43 ) FROM tab2 cor0
----
59

skipif mysql # not compatible
query I rowsort label-9014
SELECT ALL + MAX ( DISTINCT col2 ) + + COUNT ( DISTINCT - 43 ) FROM tab2 cor0
----
59

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN col0 - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-9016
SELECT COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 65 col2, - col1 / - 59 FROM tab1 WHERE NOT - 37 <= + ( + + col0 ) * + 20
----

query I rowsort
SELECT col2 * + - ( col2 ) FROM tab0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9019
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 WHERE NOT ( NULL ) > col0
----

skipif mysql # not compatible
query I rowsort label-9019
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 WHERE NOT ( NULL ) > col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT 76 NOT BETWEEN 2 * - col1 AND - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9021
SELECT col1 - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9021
SELECT col1 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9022
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + col0 AND - 82 * + CAST( NULL AS SIGNED ) - - + col0 / 34 * + col1
----

skipif mysql # not compatible
query I rowsort label-9022
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + col0 AND - 82 * + CAST ( NULL AS INTEGER ) - - + col0 / 34 * + col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 62 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( - 92 ) AS col0 FROM tab1 AS cor0
----
92
92
92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * + col2 >= NULL
----

query I rowsort
SELECT col2 + + + col1 AS col1 FROM tab2
----
117
125
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 93 * - - 35 col0 FROM tab2
----
3255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9028
SELECT ALL 81 DIV COUNT( * ) AS col2 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-9028
SELECT ALL 81 / COUNT ( * ) AS col2 FROM tab0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT DISTINCT SUM( + + col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9029
SELECT DISTINCT SUM ( + + col1 ) AS col0 FROM tab1
----
66

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 NOT IN ( - col0 / col1 * + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT ALL - COUNT( * ) * + + 88 FROM tab2
----
-264

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL - COUNT ( * ) * + + 88 FROM tab2
----
-264

query I rowsort
SELECT ALL - 47 * + + col2 * col2 FROM tab2
----
-158108
-24863
-75200

query II rowsort
SELECT DISTINCT - 70 AS col2, - col0 FROM tab0 AS cor0
----
-70
-15
-70
-87
-70
-97

query I rowsort
SELECT + - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT ALL + col1 AS col0, - 41 + + 18 AS col0 FROM tab2 AS cor0
----
51
-23
67
-23
77
-23

query I rowsort
SELECT DISTINCT 38 FROM tab1 cor0
----
38

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 BETWEEN - + col1 AND NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9038
SELECT COUNT( * ) DIV - 71 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9038
SELECT COUNT ( * ) / - 71 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, - col2 * + col1 + - 58 + - + 68 AS col1 FROM tab0
----
10
-336
47
-3933
99
-225

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + + 47 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - 40 AS col1, 51 AS col2 FROM tab2 AS cor0
----
-40
51
-40
51
-40
51

query II rowsort
SELECT ALL - col2, + col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT DISTINCT 54 + col2 AS col0 FROM tab0 cor0
----
101
153
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9044
SELECT + 42 DIV MIN( col2 ) + 91 AS col0 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-9044
SELECT + 42 / MIN ( col2 ) + 91 AS col0 FROM tab2 AS cor0
----
92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - - col0 / + col0 NOT IN ( + col0 - + 74 + + + col1 ) OR 87 IN ( 94 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 + 59 * + col0 AS col2 FROM tab2 cor0
----
2737
3816
4483

query I rowsort
SELECT DISTINCT - + 45 + 87 AS col2 FROM tab1 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT ALL + ( - + ( - 14 ) ) + - COUNT( * ) FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL + ( - + ( - 14 ) ) + - COUNT ( * ) FROM tab2
----
11

query I rowsort
SELECT + 50 + col1 + col1 * - col0 * col2 AS col2 FROM tab1
----
-25020
-290739
-68480

query I rowsort
SELECT + col1 FROM tab2 WHERE - col0 / col0 IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT - 30 AS col2 FROM tab0 cor0
----
-30
-30
-30

query I rowsort
SELECT ALL - col0 + + col2 - + col0 FROM tab0 AS cor0
----
-164
-95
17

query I rowsort
SELECT - + col2 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9055
SELECT - CAST( NULL AS SIGNED ) FROM tab1 WHERE - col2 + - 38 * + col0 - 25 <= - col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9055
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE - col2 + - 38 * + col0 - 25 <= - col0
----
NULL
NULL
NULL

query I rowsort
SELECT 24 * + col0 + ( + col2 ) AS col2 FROM tab2
----
1127
1576
1858

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 31 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9058
SELECT ALL + - CAST( + col0 AS SIGNED ) col1 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9058
SELECT ALL + - CAST ( + col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT - - ( + 97 ) AS col1 FROM tab2 AS cor0
----
97
97
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9060
SELECT DISTINCT - - SUM( + - CAST( col1 AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT - col2 + - col0 <= col1 / - + col0 * - col2 * + 77 + + ( - + CAST( - + col2 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9060
SELECT DISTINCT - - SUM ( + - CAST ( col1 AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT - col2 + - col0 <= col1 / - + col0 * - col2 * + 77 + + ( - + CAST ( - + col2 AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT - 50 * + - COUNT( * ) * 55 FROM tab2 AS cor0
----
8250

skipif mysql # not compatible
query I rowsort label-9061
SELECT - 50 * + - COUNT ( * ) * 55 FROM tab2 AS cor0
----
8250

query II rowsort
SELECT + 11, col0 FROM tab0 AS cor0
----
11
15
11
87
11
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9063
SELECT ALL - col1 * - CAST( + col1 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
2550
4422
5852

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL - col1 * - CAST ( + col1 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
2550
4422
5852

query I rowsort
SELECT ALL - - 5 * - 79 AS col0 FROM tab0 AS cor0
----
-395
-395
-395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9065
SELECT ALL 36 + CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL 36 + CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT - 36 * - col0 AS col2 FROM tab0
----
3132
3492
540

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 24 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * + ( - 33 ) FROM tab1
----
-1947
-2244
-3168

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT ALL MIN( + + col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL MIN ( + + col0 ) AS col2 FROM tab0
----
15

query I rowsort
SELECT DISTINCT col2 + - 12 AS col1 FROM tab0 WHERE - 31 = col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 col2 FROM tab0 AS cor0
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT DISTINCT + COUNT( - col0 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9072
SELECT DISTINCT + COUNT ( - col0 ) AS col0 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9073
SELECT - CAST( col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-9073
SELECT - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9074
SELECT DISTINCT - 76 DIV - + col1 AS col2 FROM tab0
----
0
3
76

skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT - 76 / - + col1 AS col2 FROM tab0
----
0
3
76

onlyif mysql # aggregate syntax: 
query II rowsort label-9075
SELECT + + COUNT( * ), + COUNT( * ) AS col0 FROM tab1 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9075
SELECT + + COUNT ( * ), + COUNT ( * ) AS col0 FROM tab1 cor0
----
3
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + - + col0 + + - 19 * ( col1 ) <> ( + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT MAX( ALL col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9077
SELECT MAX ( ALL col2 ) AS col2 FROM tab2 AS cor0
----
58

onlyif mysql # DIV for integer division: 
query II rowsort label-9078
SELECT - 8 * + 1 + + - 70 AS col1, + 44 DIV - + 25 FROM tab1 AS cor0
----
-78
-1
-78
-1
-78
-1

skipif mysql # not compatible
query II rowsort label-9078
SELECT - 8 * + 1 + + - 70 AS col1, + 44 / - + 25 FROM tab1 AS cor0
----
-78
-1
-78
-1
-78
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - col0 AS col1, - ( 0 ), + 87 + - col2 col0 FROM tab2 AS cor0
----
9 values hashing to 2861c5716e94676d5aa08e5f19e6fc50

query I rowsort
SELECT + 32 / 38 FROM tab0 AS cor0 WHERE NULL <> - col2
----

query I rowsort
SELECT ALL - - col1 + col1 AS col2 FROM tab1 cor0
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9082
SELECT ALL ( - CAST( NULL AS SIGNED ) ) + + col0 - - col2 / - - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9082
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) + + col0 - - col2 / - - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9083
SELECT COUNT( * ), 39 col1 FROM tab1
----
3
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9083
SELECT COUNT ( * ), 39 col1 FROM tab1
----
3
39

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + + 91 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 80 + - col0 AS col2 FROM tab2
----
-126
-144
-155

query I rowsort
SELECT ALL - col1 + + 62 FROM tab2
----
-15
-5
11

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 7 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT ( + - col2 ) + - + 2 - + - col1, - 3 + - - col2 AS col2 FROM tab1
----
-23
65
-56
56
-84
93

query I rowsort
SELECT col2 * - - col1 + - col0 FROM tab1
----
1293
210
3105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, 24 FROM tab0
----
1
24
21
24
81
24

onlyif mysql # aggregate syntax: 
query II rowsort label-9091
SELECT DISTINCT ( COUNT( * ) ), COUNT( * ) col1 FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9091
SELECT DISTINCT ( COUNT ( * ) ), COUNT ( * ) col1 FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT - + COUNT( * ) AS col0 FROM tab0 WHERE + - 92 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9092
SELECT - + COUNT ( * ) AS col0 FROM tab0 WHERE + - 92 IS NOT NULL
----
-3

query I rowsort
SELECT 70 + + + col2 FROM tab1
----
129
138
166

query II rowsort
SELECT DISTINCT + col2 AS col2, + col0 + + col0 AS col1 FROM tab2
----
23
92
40
128
58
150

query I rowsort
SELECT - - col1 * - col2 + - - 71 AS col1 FROM tab0 AS cor0
----
-139
-28
-3736

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT DISTINCT - - COUNT( * ) + + 15 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-9096
SELECT DISTINCT - - COUNT ( * ) + + 15 FROM tab0 AS cor0
----
18

query I rowsort
SELECT DISTINCT + 34 * + col2 + col2 - - 63 + col0 FROM tab0 cor0
----
1723
3625
500

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> ( + col2 + + col0 )
----

query II rowsort
SELECT - col1 - - 81, col2 + - col1 AS col0 FROM tab0 AS cor0 WHERE NULL < 9
----

query I rowsort
SELECT DISTINCT col0 + col1 + col1 - - col2 AS col0 FROM tab1
----
154
175
253

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT DISTINCT + SUM( - + 79 ) FROM tab1 cor0
----
-237

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT + SUM ( - + 79 ) FROM tab1 cor0
----
-237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( 35, col2, + - col0 * - + col1 + 36 / col0 + col0 + + - col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 49 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 52 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) col1 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT ALL - 24 AS col1 FROM tab1 WHERE NOT 44 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9107
SELECT 61 * - col0 / + - col0 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9107
SELECT 61 * - col0 / + - col0 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT DISTINCT - COUNT( - - col1 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9108
SELECT DISTINCT - COUNT ( - - col1 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT + COUNT( DISTINCT - col2 ) col0 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN + 87 AND + col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9109
SELECT + COUNT ( DISTINCT - col2 ) col0 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN + 87 AND + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT DISTINCT COUNT( * ) * + 65 AS col2 FROM tab1 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9110
SELECT DISTINCT COUNT ( * ) * + 65 AS col2 FROM tab1 AS cor0
----
195

query I rowsort
SELECT + ( - - ( - col2 ) ) AS col2 FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT DISTINCT MIN( + col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9112
SELECT DISTINCT MIN ( + col1 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT + 39 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT - 86 * + COUNT( * ) FROM tab1
----
-258

skipif mysql # not compatible
query I rowsort label-9114
SELECT - 86 * + COUNT ( * ) FROM tab1
----
-258

query II rowsort
SELECT col0, col1 * - - col0 FROM tab0 AS cor0 WHERE - ( - col1 ) * - - 80 - - col2 * 97 NOT BETWEEN - + col1 * - - col2 AND col0
----
15
1215
87
1827
97
97

query I rowsort
SELECT ALL col1 * + - col1 FROM tab1 cor0
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE 34 * - col2 <= col1
----
3

skipif mysql # not compatible
query I rowsort label-9117
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE 34 * - col2 <= col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT DISTINCT + + COUNT( DISTINCT + - col2 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9118
SELECT DISTINCT + + COUNT ( DISTINCT + - col2 ) col2 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 col0 FROM tab2 AS cor0
----
6
6
6

query I rowsort
SELECT ALL - + 14 * - col0 - + 57 + - + col2 + - - col0 + - col1 AS col1 FROM tab1 AS cor0
----
1154
1193
598

query I rowsort
SELECT ALL - col0 * - col0 + - ( - - col0 ) AS col1 FROM tab1
----
2550
7140
8190

onlyif mysql # aggregate syntax: 
query II rowsort label-9122
SELECT ALL MIN( col2 ) + COUNT( * ), + COUNT( * ) AS col2 FROM tab0
----
13
3

skipif mysql # not compatible
query II rowsort label-9122
SELECT ALL MIN ( col2 ) + COUNT ( * ), + COUNT ( * ) AS col2 FROM tab0
----
13
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT DISTINCT - 31 * - COUNT( * ) AS col2 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-9123
SELECT DISTINCT - 31 * - COUNT ( * ) AS col2 FROM tab2
----
93

query I rowsort
SELECT DISTINCT - 20 + - col2 AS col1 FROM tab0
----
-119
-30
-67

query I rowsort
SELECT ALL ( - col2 ) * - 80 AS col1 FROM tab1
----
4720
5440
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 28 col2, + 37 FROM tab0
----
28
37
28
37
28
37

query I rowsort
SELECT ALL - + col0 * + + col1 * + col2 FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9128
SELECT MIN( + col0 ) - + + 10 DIV - 42 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9128
SELECT MIN ( + col0 ) - + + 10 / - 42 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9129
SELECT DISTINCT + col0 + + CAST( - CAST( + - 0 AS SIGNED ) AS SIGNED ) - col2 * + 11 + + - ( + 40 ) FROM tab1
----
-1045
-604
-697

skipif mysql # not compatible
query I rowsort label-9129
SELECT DISTINCT + col0 + + CAST ( - CAST ( + - 0 AS INTEGER ) AS INTEGER ) - col2 * + 11 + + - ( + 40 ) FROM tab1
----
-1045
-604
-697

query I rowsort
SELECT - col2 + + - col0 FROM tab0
----
-196
-62
-97

query I rowsort
SELECT ALL - 77 + + - col2 * col1 AS col0 FROM tab1
----
-1421
-3273
-372

query I rowsort
SELECT + 38 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query II rowsort label-9134
SELECT + 84 AS col1, COUNT( * ) col1 FROM tab2 AS cor0
----
84
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9134
SELECT + 84 AS col1, COUNT ( * ) col1 FROM tab2 AS cor0
----
84
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 34 NOT BETWEEN NULL AND ( - col1 )
----

query I rowsort
SELECT ALL + 39 FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT - SUM( ALL + col0 ) col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9137
SELECT - SUM ( ALL + col0 ) col2 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT ALL MIN( - 11 ) FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-9138
SELECT ALL MIN ( - 11 ) FROM tab0 AS cor0
----
-11

onlyif mysql # DIV for integer division: 
query II rowsort label-9139
SELECT - col2 AS col1, col2 * + 52 + - - col1 DIV + col1 - + 12 - + - col2 + - 21 * 92 FROM tab2 AS cor0
----
-23
-724
-40
177
-58
1131

skipif mysql # not compatible
query II rowsort label-9139
SELECT - col2 AS col1, col2 * + 52 + - - col1 / + col1 - + 12 - + - col2 + - 21 * 92 FROM tab2 AS cor0
----
-23
-724
-40
177
-58
1131

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query III rowsort
SELECT * FROM tab1 WHERE NOT + 45 < NULL
----

query II rowsort
SELECT - col0, - 15 FROM tab0 WHERE NOT + col1 <> - + col0
----

query I rowsort
SELECT ALL + 67 FROM tab2 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9144
SELECT MAX( - - col2 ) AS col2, - COUNT( * ) FROM tab1 AS cor0
----
96
-3

skipif mysql # not compatible
query II rowsort label-9144
SELECT MAX ( - - col2 ) AS col2, - COUNT ( * ) FROM tab1 AS cor0
----
96
-3

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL < + 85
----

query I rowsort
SELECT DISTINCT + 77 * col1 AS col0 FROM tab1 AS cor0 WHERE - col0 + 31 IS NOT NULL
----
1078
3619
385

query I rowsort
SELECT ALL + ( - - col2 ) + + + 42 FROM tab0 AS cor0
----
141
52
89

query I rowsort
SELECT ALL - + col0 + col1 - - + col0 + + 50 AS col0 FROM tab2 AS cor0
----
101
117
127

query I rowsort
SELECT DISTINCT - 49 + + col0 AS col1 FROM tab1
----
2
36
42

query I rowsort
SELECT 40 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9151
SELECT + - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9151
SELECT + - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
0

query II rowsort
SELECT + col0 * col1 + + 27 AS col0, - 95 FROM tab2 AS cor0
----
2373
-95
4955
-95
5052
-95

query I rowsort
SELECT ALL + col1 * + - ( + col1 ) FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT + + MAX( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9154
SELECT + + MAX ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT ALL - - col1 + + - col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT 57 * - col0 FROM tab1 cor0
----
-2907
-4845
-5187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, col2 AS col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT DISTINCT - - col1 + + - 77 AS col1 FROM tab0 AS cor0
----
-56
-76
4

query III rowsort
SELECT * FROM tab2 WHERE + col1 * 52 <= + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9160
SELECT ALL - col0 DIV + 29 + - 86 AS col0 FROM tab1
----
-87
-88
-89

skipif mysql # not compatible
query I rowsort label-9160
SELECT ALL - col0 / + 29 + - 86 AS col0 FROM tab1
----
-87
-88
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9161
SELECT DISTINCT + COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) + CAST( + CAST( + 76 AS SIGNED ) AS SIGNED ) col2 FROM tab0
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9161
SELECT DISTINCT + COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) + CAST ( + CAST ( + 76 AS INTEGER ) AS INTEGER ) col2 FROM tab0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT DISTINCT 2 * SUM( - - col1 ) FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-9162
SELECT DISTINCT 2 * SUM ( - - col1 ) FROM tab1
----
132

query I rowsort
SELECT 8 * + col2 + 5 + + col1 AS col2 FROM tab0
----
106
462
798

query I rowsort
SELECT ALL 20 * - 89 FROM tab1
----
-1780
-1780
-1780

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND col1
----

query I rowsort
SELECT DISTINCT 34 FROM tab1 cor0
----
34

query I rowsort
SELECT ALL 75 * 13 FROM tab2
----
975
975
975

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( 37 ) IS NOT NULL
----

query I rowsort
SELECT + col0 * + - col0 * - ( - col1 ) AS col2 FROM tab1
----
-36125
-36414
-389207

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9170
SELECT + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9170
SELECT + CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < col2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9172
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col0, CAST( NULL AS DECIMAL ) + + COUNT( * ) + + + COUNT( + col0 ) + + - 34 FROM tab1 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9172
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col0, CAST ( NULL AS REAL ) + + COUNT ( * ) + + + COUNT ( + col0 ) + + - 34 FROM tab1 AS cor0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT - MIN( + 44 ) * + - AVG ( + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9173
SELECT - MIN ( + 44 ) * + - AVG ( + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND NULL
----
NULL

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE + col0 <> + - 67 - 21
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 89 NOT BETWEEN - 62 AND NULL
----

query I rowsort
SELECT DISTINCT - 51 AS col0 FROM tab1 cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 85 col2 FROM tab0 cor0
----
85
85
85

query I rowsort
SELECT ALL col1 FROM tab1 cor0 WHERE NOT NULL BETWEEN col2 AND - 88
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9179
SELECT COUNT( * ) AS col2, + 82 AS col2 FROM tab1
----
3
82

skipif mysql # not compatible
query II rowsort label-9179
SELECT COUNT ( * ) AS col2, + 82 AS col2 FROM tab1
----
3
82

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NULL = - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9181
SELECT 43 DIV + + col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9181
SELECT 43 / + + col2 FROM tab2
----
0
1
1

query I rowsort
SELECT 61 * - col2 AS col2 FROM tab0
----
-2867
-6039
-610

query II rowsort
SELECT ALL + col1, + col2 AS col0 FROM tab1
----
14
96
47
68
5
59

query II rowsort
SELECT ALL - 2, + ( + 42 ) AS col1 FROM tab0
----
-2
42
-2
42
-2
42

query II rowsort
SELECT DISTINCT + - col1 AS col0, + 18 FROM tab2 AS cor0
----
-51
18
-67
18
-77
18

query I rowsort
SELECT ALL - col1 + - col0 AS col2 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 8 col1 FROM tab0 AS cor0
----
-8
-8
-8

query II rowsort
SELECT + 61 AS col0, + 79 AS col2 FROM tab0 AS cor0
----
61
79
61
79
61
79

query I rowsort
SELECT ALL + + col2 + col1 - - - 19 FROM tab2 AS cor0
----
106
55
98

query I rowsort
SELECT - col1 * + 60 / - col2 * + col1 * + + col1 * - - 21 AS col1 FROM tab1 AS cor0 WHERE - col2 + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - ( + - 63 ) FROM tab1 AS cor0
----
63
63
63

onlyif mysql # DIV for integer division: 
query II rowsort label-9192
SELECT DISTINCT + col1 + - 45, col2 * col1 DIV 93 + + - col2 AS col0 FROM tab1
----
-31
-82
-40
-56
2
-34

skipif mysql # not compatible
query II rowsort label-9192
SELECT DISTINCT + col1 + - 45, col2 * col1 / 93 + + - col2 AS col0 FROM tab1
----
-31
-82
-40
-56
2
-34

query I rowsort
SELECT DISTINCT - 14 + 46 AS col1 FROM tab1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT ALL - 21 + - COUNT( DISTINCT ( - + col2 ) ) FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL - 21 + - COUNT ( DISTINCT ( - + col2 ) ) FROM tab0
----
-24

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 74 IS NULL AND 54 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9196
SELECT ALL * FROM tab1 AS cor0 WHERE + 13 * - - CAST( NULL AS SIGNED ) * - - col2 + - - 36 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9196
SELECT ALL * FROM tab1 AS cor0 WHERE + 13 * - - CAST ( NULL AS INTEGER ) * - - col2 + - - 36 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9197
SELECT col0 DIV + col2 + + + col2 + + + col1 + + + col1 AS col0 FROM tab1 AS cor0
----
124
163
70

skipif mysql # not compatible
query I rowsort label-9197
SELECT col0 / + col2 + + + col2 + + + col1 + + + col1 AS col0 FROM tab1 AS cor0
----
124
163
70

query I rowsort
SELECT + 51 + - + col2 * - 2 FROM tab2 AS cor0
----
131
167
97

query I rowsort
SELECT - col1 * + col0 + - + 58 AS col0 FROM tab1 AS cor0
----
-4335
-483
-772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9200
SELECT DISTINCT - + col0 + + - 99 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0, 90, + col0 * - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9200
SELECT DISTINCT - + col0 + + - 99 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0, 90, + col0 * - - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + + ( col0 ) + + + col1 + - col2 FROM tab2 AS cor0
----
101
74
84

query I rowsort
SELECT DISTINCT + col1 + - - 79 FROM tab2
----
130
146
156

query I rowsort
SELECT ALL - 36 - + + col1 + - col0 + - 11 AS col2 FROM tab1
----
-112
-137
-185

query I rowsort
SELECT DISTINCT col0 + - col0 - col2 * - + 12 AS col2 FROM tab1
----
1152
708
816

onlyif mysql # aggregate syntax: 
query II rowsort label-9205
SELECT DISTINCT - 42 - - 14 - - 20, + 40 + - ( - + MAX( + + col1 ) ) AS col0 FROM tab0
----
-8
121

skipif mysql # not compatible
query II rowsort label-9205
SELECT DISTINCT - 42 - - 14 - - 20, + 40 + - ( - + MAX ( + + col1 ) ) AS col0 FROM tab0
----
-8
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT - COUNT( * ) + + 63 FROM tab1 WHERE - - col2 IS NOT NULL
----
60

skipif mysql # not compatible
query I rowsort label-9206
SELECT - COUNT ( * ) + + 63 FROM tab1 WHERE - - col2 IS NOT NULL
----
60

query I rowsort
SELECT ALL + 9 - + 80 FROM tab0
----
-71
-71
-71

query I rowsort
SELECT + ( + - col1 ) - - col0 + - col0 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT + COUNT( * ) - ( 44 ) FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-9209
SELECT + COUNT ( * ) - ( 44 ) FROM tab1
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-9210
SELECT + col2 DIV + 91 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9210
SELECT + col2 / + 91 col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + - col0 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT + + MAX( - - ( 7 ) ) AS col1 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-9212
SELECT + + MAX ( - - ( 7 ) ) AS col1 FROM tab0 AS cor0
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - - col0 col1 FROM tab0
----
225
7569
9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9214
SELECT + COUNT( * ) * - 36 col0, CAST( - 73 AS SIGNED ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-324
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9214
SELECT + COUNT ( * ) * - 36 col0, CAST ( - 73 AS INTEGER ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-324
-73

query I rowsort
SELECT DISTINCT 54 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT + MIN( - 34 ) AS col1 FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-9216
SELECT + MIN ( - 34 ) AS col1 FROM tab1 AS cor0
----
-34

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9218
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE - col0 NOT IN ( CAST( NULL AS SIGNED ) / - 9 * + col1 * + ( - ( - 64 ) ) + - col1, 27 + 20 )
----
0

skipif mysql # not compatible
query I rowsort label-9218
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE - col0 NOT IN ( CAST ( NULL AS INTEGER ) / - 9 * + col1 * + ( - ( - 64 ) ) + - col1, 27 + 20 )
----
0

query I rowsort
SELECT - ( - 60 ) FROM tab1 AS cor0
----
60
60
60

query I rowsort
SELECT DISTINCT + col1 * + col1 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9221
SELECT ALL - 2 DIV col1 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL - 2 / col1 FROM tab0
----
-2
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT + COUNT( * ) * + - COUNT( * ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9222
SELECT + COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab2
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT ALL MIN( col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-9224
SELECT ALL MIN ( col2 ) AS col0 FROM tab2
----
23

query I rowsort
SELECT + col0 * - + ( - col0 ) AS col2 FROM tab2
----
2116
4096
5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9226
SELECT + CAST( - + CAST( + 16 AS SIGNED ) AS SIGNED ) FROM tab0
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-9226
SELECT + CAST ( - + CAST ( + 16 AS INTEGER ) AS INTEGER ) FROM tab0
----
-16
-16
-16

query I rowsort
SELECT - + 39 + col2 FROM tab1 cor0
----
20
29
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * col2 * - col1 + - + 28 * - - col0 col2, - col1 AS col1 FROM tab2 AS cor0
----
-124992
-77
-227488
-67
-28267
-51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9229
SELECT - CAST( + col1 AS SIGNED ) DIV col1 + 18 AS col1 FROM tab2 AS cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-9229
SELECT - CAST ( + col1 AS INTEGER ) / col1 + 18 AS col1 FROM tab2 AS cor0
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT DISTINCT - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9230
SELECT DISTINCT - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT - 23 * - col2 AS col2 FROM tab0
----
1081
2277
230

onlyif mysql # DIV for integer division: 
query I rowsort label-9232
SELECT - col1 * + 88 DIV + 2 AS col0 FROM tab0 AS cor0
----
-3564
-44
-924

skipif mysql # not compatible
query I rowsort label-9232
SELECT - col1 * + 88 / + 2 AS col0 FROM tab0 AS cor0
----
-3564
-44
-924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 * - col1 col0 FROM tab2 AS cor0
----
1479
1943
2233

query I rowsort
SELECT + ( - 84 ) * - - col0 AS col2 FROM tab0 AS cor0
----
-1260
-7308
-8148

query I rowsort
SELECT col0 - - + col0 + + col2 - + - 72 * - + col2 FROM tab2 AS cor0
----
-1541
-2712
-3968

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( - col0 ) IS NOT NULL AND ( NULL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9237
SELECT CAST( - COUNT( + - col2 ) AS SIGNED ) - + COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9237
SELECT CAST ( - COUNT ( + - col2 ) AS INTEGER ) - + COUNT ( * ) FROM tab0 AS cor0
----
-6

query II rowsort
SELECT ALL + - ( 74 ) AS col2, + ( - 59 ) + 73 AS col2 FROM tab2 AS cor0
----
-74
14
-74
14
-74
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9239
SELECT DISTINCT 13 DIV - 10 + + 94 + COUNT( * ) + 0 FROM tab2 cor0
----
96

skipif mysql # not compatible
query I rowsort label-9239
SELECT DISTINCT 13 / - 10 + + 94 + COUNT ( * ) + 0 FROM tab2 cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + + col1 col2, - col2 * col1 + 14 AS col0 FROM tab2
----
28
-1159
37
-3066
9
-3872

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( NOT NULL < NULL ) )
----

query I rowsort
SELECT + 27 + 82 FROM tab0
----
109
109
109

query I rowsort
SELECT DISTINCT col2 - - + col2 FROM tab2
----
116
46
80

query I rowsort
SELECT ALL + col2 - ( - - col2 ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT - MIN( + + 99 ) FROM tab0, tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9245
SELECT - MIN ( + + 99 ) FROM tab0, tab1 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT 90 * - COUNT( ALL + col1 ) col0 FROM tab0
----
-270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9246
SELECT 90 * - COUNT ( ALL + col1 ) col0 FROM tab0
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT ALL + ( - ( 81 ) ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-9247
SELECT ALL + ( - ( 81 ) ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
243

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = + 22 * 80
----

query I rowsort
SELECT DISTINCT 6 * + - col1 AS col0 FROM tab0 AS cor0
----
-126
-486
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT DISTINCT SUM( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9250
SELECT DISTINCT SUM ( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT COUNT( * ) + + COUNT( DISTINCT + col2 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9251
SELECT COUNT ( * ) + + COUNT ( DISTINCT + col2 ) FROM tab0
----
6

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 93 + 20 + - 25 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + 13 * + + col2 AS col0 FROM tab2
----
350
597
821

query I rowsort
SELECT DISTINCT - col2 + - 77 AS col2 FROM tab2
----
-100
-117
-135

onlyif mysql # DIV for integer division: 
query I rowsort label-9255
SELECT ALL + 48 DIV 48 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL + 48 / 48 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9256
SELECT - MAX( ALL - 49 ) DIV + COUNT( * ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-9256
SELECT - MAX ( ALL - 49 ) / + COUNT ( * ) FROM tab2
----
16

query I rowsort
SELECT + col0 * - + 96 FROM tab0
----
-1440
-8352
-9312

query I rowsort
SELECT + col1 * + 23 AS col1 FROM tab2
----
1173
1541
1771

query I rowsort
SELECT + col2 + - col1 FROM tab2 cor0 WHERE NULL = - 60
----

query I rowsort
SELECT + ( + + 36 ) AS col0 FROM tab0 AS cor0
----
36
36
36

query I rowsort
SELECT + ( 43 ) * col0 FROM tab0 AS cor0
----
3741
4171
645

onlyif mysql # DIV for integer division: 
query I rowsort label-9262
SELECT 70 DIV + col2 + - col2 DIV - - ( + + 24 ) FROM tab0 AS cor0
----
-4
0
7

skipif mysql # not compatible
query I rowsort label-9262
SELECT 70 / + col2 + - col2 / - - ( + + 24 ) FROM tab0 AS cor0
----
-4
0
7

query II rowsort
SELECT + - col2 * - col1 + + col1 AS col1, col0 AS col2 FROM tab1 cor0
----
1358
51
300
85
3243
91

query I rowsort
SELECT - 91 * + col0 AS col1 FROM tab2 AS cor0
----
-4186
-5824
-6825

query I rowsort
SELECT DISTINCT ( + - 9 ) FROM tab1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9266
SELECT ALL COUNT( ALL + CAST( - col0 AS SIGNED ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9266
SELECT ALL COUNT ( ALL + CAST ( - col0 AS INTEGER ) ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT ALL - MAX( + col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-9267
SELECT ALL - MAX ( + col0 ) AS col1 FROM tab1
----
-91

query III rowsort
SELECT * FROM tab0 WHERE NOT - 24 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT DISTINCT + MIN( - 18 ) AS col2 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT + MIN ( - 18 ) AS col2 FROM tab1 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-9270
SELECT + COUNT( * ) AS col2, - ( - COUNT( * ) ) * - COUNT( ALL - - col1 ) FROM tab2 AS cor0
----
3
-9

skipif mysql # not compatible
query II rowsort label-9270
SELECT + COUNT ( * ) AS col2, - ( - COUNT ( * ) ) * - COUNT ( ALL - - col1 ) FROM tab2 AS cor0
----
3
-9

query I rowsort
SELECT 92 * - 99 * - col2 AS col0 FROM tab1 AS cor0
----
537372
619344
874368

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 col0 FROM tab0
----
66

query I rowsort
SELECT DISTINCT col0 * + - col0 AS col1 FROM tab2 AS cor0
----
-2116
-4096
-5625

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 30 + col1 IS NULL
----

query I rowsort
SELECT ALL - 74 * + 78 AS col1 FROM tab1 AS cor0
----
-5772
-5772
-5772

query II rowsort
SELECT DISTINCT + 44 + - ( + col2 ) * col0 + + col0 AS col0, col2 AS col1 FROM tab0 AS cor0
----
-646
47
-739
10
-9462
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - 4 ), col2 * - col0 col1 FROM tab1 AS cor0
----
-4
-4896
-4
-5015
-4
-6188

query I rowsort
SELECT ALL + 4 * + - col2 FROM tab1 AS cor0
----
-236
-272
-384

query I rowsort
SELECT ALL + col2 * - 54 FROM tab1 AS cor0
----
-3186
-3672
-5184

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT DISTINCT 83 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-9280
SELECT DISTINCT 83 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-9281
SELECT COUNT( - - col0 ) AS col0, 96 FROM tab0 cor0
----
3
96

skipif mysql # not compatible
query II rowsort label-9281
SELECT COUNT ( - - col0 ) AS col0, 96 FROM tab0 cor0
----
3
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9282
SELECT DISTINCT - + col1 * - + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9282
SELECT DISTINCT - + col1 * - + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 81 + - + col0 + - 71 FROM tab2 cor0
----
-36
-54
-65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9284
SELECT ALL * FROM tab0 WHERE NOT - col0 <= + CAST( + col1 AS SIGNED ) * + 93
----

skipif mysql # not compatible
query III rowsort label-9284
SELECT ALL * FROM tab0 WHERE NOT - col0 <= + CAST ( + col1 AS INTEGER ) * + 93
----

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE - + 31 * + 93 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9286
SELECT CAST( NULL AS SIGNED ) * - 96 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9286
SELECT CAST ( NULL AS INTEGER ) * - 96 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 * - - 65 * + - col0 col2 FROM tab1
----
-208845
-348075
-372645

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT - 83 + COUNT( * ) + - - COUNT( * ) AS col2 FROM tab1
----
-77

skipif mysql # not compatible
query I rowsort label-9288
SELECT - 83 + COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab1
----
-77

query III rowsort
SELECT * FROM tab1 WHERE + + col0 = - col1 * + 40
----

query I rowsort
SELECT ALL + 63 * + ( - 10 ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT ALL + MIN( - + 49 ) * + 5 AS col0 FROM tab2 AS cor0
----
-245

skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL + MIN ( - + 49 ) * + 5 AS col0 FROM tab2 AS cor0
----
-245

onlyif mysql # DIV for integer division: 
query I rowsort label-9292
SELECT - 28 + col1 DIV + 65 + + 30 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9292
SELECT - 28 + col1 / + 65 + + 30 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT + + col2 * + + 58 AS col0 FROM tab1 AS cor0 WHERE 57 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT DISTINCT COUNT( * ) + COUNT( * ) FROM tab2 WHERE NOT col0 / 27 IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-9294
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) FROM tab2 WHERE NOT col0 / 27 IS NULL
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT ( COUNT( DISTINCT + col1 ) ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9295
SELECT ( COUNT ( DISTINCT + col1 ) ) col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL BETWEEN ( + col2 ) AND 78 / 91
----
0

skipif mysql # not compatible
query I rowsort label-9296
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL BETWEEN ( + col2 ) AND 78 / 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT ALL COUNT( * ) * - 37 FROM tab1
----
-111

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL COUNT ( * ) * - 37 FROM tab1
----
-111

onlyif mysql # DIV for integer division: 
query I rowsort label-9298
SELECT ALL col2 DIV - 93 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9298
SELECT ALL col2 / - 93 FROM tab0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 ) <> 5
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT ALL + MIN( + 14 ) AS col0 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL + MIN ( + 14 ) AS col0 FROM tab1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT 75 - - COUNT( ALL 24 ) * + COUNT( * ) AS col2 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-9301
SELECT 75 - - COUNT ( ALL 24 ) * + COUNT ( * ) AS col2 FROM tab2
----
84

query III rowsort
SELECT * FROM tab1 WHERE 62 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT - ( 36 ) + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
-36

skipif mysql # not compatible
query I rowsort label-9303
SELECT - ( 36 ) + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
-36

query I rowsort
SELECT DISTINCT - 88 + col0 AS col2 FROM tab1
----
-3
-37
3

query I rowsort
SELECT + 38 FROM tab1 WHERE NOT - col2 IS NULL
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT COUNT( * ) * - 22 AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-9306
SELECT COUNT ( * ) * - 22 AS col1 FROM tab1
----
-66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9307
SELECT DISTINCT col0 DIV col1 + - CAST( col1 AS SIGNED ) DIV + col2 AS col2 FROM tab0
----
-1
2
97

skipif mysql # not compatible
query I rowsort label-9307
SELECT DISTINCT col0 / col1 + - CAST ( col1 AS INTEGER ) / + col2 AS col2 FROM tab0
----
-1
2
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT ALL MAX( ALL col0 ) + COUNT( * ) AS col1 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL MAX ( ALL col0 ) + COUNT ( * ) AS col1 FROM tab1
----
94

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = ( - col0 - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 83 ) <= col1 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT DISTINCT + COUNT( + 57 ) / MIN( 37 ) FROM tab0 WHERE NOT col2 * + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9311
SELECT DISTINCT + COUNT ( + 57 ) / MIN ( 37 ) FROM tab0 WHERE NOT col2 * + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ( 75 ) FROM tab2
----
75
75
75

query I rowsort
SELECT DISTINCT + 97 FROM tab0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT DISTINCT - ( - COUNT( ALL - 91 ) ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9314
SELECT DISTINCT - ( - COUNT ( ALL - 91 ) ) col2 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9315
SELECT col2 DIV - 77 - - 85 AS col1 FROM tab1
----
84
85
85

skipif mysql # not compatible
query I rowsort label-9315
SELECT col2 / - 77 - - 85 AS col1 FROM tab1
----
84
85
85

query I rowsort
SELECT col2 + col2 AS col0 FROM tab2 WHERE + ( + col0 ) BETWEEN col1 + col1 AND NULL
----

query I rowsort
SELECT col0 + col2 * + col1 FROM tab0 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 + 84 col0 FROM tab1 cor0 WHERE + col1 + 67 * + 22 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 40 ) col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
40
40
40

query I rowsort
SELECT - col1 * - 1 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 8 + col1 IN ( + ( col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <= ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT ALL - MAX( DISTINCT 91 ) FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL - MAX ( DISTINCT 91 ) FROM tab0 AS cor0
----
-91

query I rowsort
SELECT DISTINCT + col0 + 5 AS col0 FROM tab2 AS cor0
----
51
69
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT DISTINCT - - 68 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-9327
SELECT DISTINCT - - 68 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9328
SELECT - + ( + col0 ) / + CAST( NULL AS SIGNED ) + - 43 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9328
SELECT - + ( + col0 ) / + CAST ( NULL AS INTEGER ) + - 43 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 ) NOT IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + + 41 * + col0 AS col2 FROM tab0 cor0
----
3557
3878
568

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9331
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 IN ( + col1 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9331
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 IN ( + col1 + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - 61 + - - col2 AS col1 FROM tab0
----
-14
-51
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT DISTINCT + SUM( ALL - col0 ) + - 0 col2 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9333
SELECT DISTINCT + SUM ( ALL - col0 ) + - 0 col2 FROM tab1
----
-227

query I rowsort
SELECT 56 * col2 AS col1 FROM tab1 WHERE ( NULL ) > ( NULL )
----

query I rowsort
SELECT DISTINCT + 53 + - 21 FROM tab1
----
32

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 19 = col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 74 * + - col0 * + col0 FROM tab0
----
-16650
-560106
-696266

query III rowsort
SELECT * FROM tab0 WHERE ( 45 - - col0 ) BETWEEN ( col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9339
SELECT DISTINCT + 70 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9339
SELECT DISTINCT + 70 * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL <= - 32
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 + - col0 / - 13 >= ( + col2 )
----

query I rowsort
SELECT ALL - 73 + 78 FROM tab0 AS cor0
----
5
5
5

query I rowsort
SELECT col2 - + - 15 AS col0 FROM tab2 cor0
----
38
55
73

query I rowsort
SELECT col2 FROM tab1 WHERE + col1 - - 77 > col2
----
59
68

query I rowsort
SELECT DISTINCT + 43 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT + ( + 37 ) * + COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
333

skipif mysql # not compatible
query I rowsort label-9346
SELECT + ( + 37 ) * + COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
333

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9347
SELECT * FROM tab1 WHERE ( - - col0 * CAST( + col1 - + col0 AS DECIMAL ) ) IN ( - col0 / col2 )
----

skipif mysql # not compatible
query III rowsort label-9347
SELECT * FROM tab1 WHERE ( - - col0 * CAST ( + col1 - + col0 AS REAL ) ) IN ( - col0 / col2 )
----

query II rowsort
SELECT col1 AS col0, + 72 FROM tab2
----
51
72
67
72
77
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9349
SELECT DISTINCT ( - - CAST( 87 AS SIGNED ) ) * + 77 FROM tab2 AS cor0
----
6699

skipif mysql # not compatible
query I rowsort label-9349
SELECT DISTINCT ( - - CAST ( 87 AS INTEGER ) ) * + 77 FROM tab2 AS cor0
----
6699

query I rowsort
SELECT ALL ( - - col0 ) AS col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT + 12 FROM tab1 AS cor0 WHERE NOT ( 94 * - col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( col0 * + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9353
SELECT - + col1 DIV - 70 + col0 FROM tab2 AS cor0
----
46
65
75

skipif mysql # not compatible
query I rowsort label-9353
SELECT - + col1 / - 70 + col0 FROM tab2 AS cor0
----
46
65
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9354
SELECT ( 6 ) * + COUNT( * ) + CAST( NULL AS DECIMAL ) * 41 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9354
SELECT ( 6 ) * + COUNT ( * ) + CAST ( NULL AS REAL ) * 41 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT ALL + 40 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL + 40 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT + MIN( ALL - col0 ) * - 37 FROM tab1 AS cor0
----
3367

skipif mysql # not compatible
query I rowsort label-9356
SELECT + MIN ( ALL - col0 ) * - 37 FROM tab1 AS cor0
----
3367

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL NOT IN ( - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9358
SELECT ALL + COUNT( * ) - + CAST( COUNT( DISTINCT + 39 ) AS SIGNED ) * + COUNT( * ) FROM tab1 WHERE NOT NULL < + + 84 + - 78
----
0

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL + COUNT ( * ) - + CAST ( COUNT ( DISTINCT + 39 ) AS INTEGER ) * + COUNT ( * ) FROM tab1 WHERE NOT NULL < + + 84 + - 78
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND col2 + col1
----

query I rowsort
SELECT ALL - col0 * 74 AS col0 FROM tab0
----
-1110
-6438
-7178

onlyif mysql # DIV for integer division: 
query I rowsort label-9362
SELECT ALL 65 DIV col2 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL 65 / col2 AS col0 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL + ( + + 94 ) FROM tab1
----
94
94
94

query I rowsort
SELECT DISTINCT - + 89 AS col0 FROM tab2 AS cor0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT DISTINCT 33 + + + COUNT( * ) col1 FROM tab1 cor0 WHERE NULL IS NULL
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9365
SELECT DISTINCT 33 + + + COUNT ( * ) col1 FROM tab1 cor0 WHERE NULL IS NULL
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9366
SELECT + col0 * + col2 / - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9366
SELECT + col0 * + col2 / - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9367
SELECT ALL CAST( NULL AS SIGNED ) * + - ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL CAST ( NULL AS INTEGER ) * + - ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT - ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9368
SELECT - ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT AVG ( 63 ) FROM tab0 WHERE NOT + col1 * + col2 = NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9370
SELECT DISTINCT + COUNT( * ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9370
SELECT DISTINCT + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 15 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( - col1 ) * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col1 + + - col2 + + 81 * - col1 AS col0 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - + col1 ) col2 FROM tab2 cor0
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 19 * - 16 col2 FROM tab2 AS cor0
----
-304
-304
-304

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col2 IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT - MIN( - 58 ) AS col1 FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-9377
SELECT - MIN ( - 58 ) AS col1 FROM tab2 cor0
----
58

query I rowsort
SELECT ALL AVG ( DISTINCT col0 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 20 * - + col0 + 30 AND - 96
----
NULL

query I rowsort
SELECT + 38 * - - col0 FROM tab2 cor0
----
1748
2432
2850

onlyif mysql # DIV for integer division: 
query I rowsort label-9380
SELECT - col1 DIV - + 4 FROM tab2 AS cor0
----
12
16
19

skipif mysql # not compatible
query I rowsort label-9380
SELECT - col1 / - + 4 FROM tab2 AS cor0
----
12
16
19

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE 76 >= - + col1
----
-46
-64
-75

query I rowsort
SELECT col2 / - col1 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL - col2 FROM tab1 cor0 WHERE ( + ( 21 ) + + 5 ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9384
SELECT DISTINCT + - col0 + - 3 DIV - col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT + - col0 + - 3 / - col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT ALL + col2 * + - col2 + - col0 AS col1 FROM tab1
----
-3566
-4715
-9267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9386
SELECT ALL col2 + + + CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9386
SELECT ALL col2 + + + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + ( col0 ) * - col2 FROM tab0
----
-658
-860
-9504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9388
SELECT CAST( NULL AS SIGNED ) + col0 * - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9388
SELECT CAST ( NULL AS INTEGER ) + col0 * - col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9389
SELECT + COUNT( * ) + + CAST( NULL AS SIGNED ) * - 10 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9389
SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - 10 AS col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NULL ) <= NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + 59 ) + 98 col1 FROM tab2
----
157
157
157

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT - MAX( DISTINCT col1 ) AS col1 FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9392
SELECT - MAX ( DISTINCT col1 ) AS col1 FROM tab1 cor0
----
-47

query II rowsort
SELECT - col2, + col1 AS col1 FROM tab0 AS cor0 WHERE col1 > 4
----
-10
21
-47
81

query I rowsort
SELECT DISTINCT + 30 + - ( col1 ) FROM tab1 WHERE NOT - + col1 IS NULL
----
-17
16
25

query I rowsort
SELECT + col0 - - col1 - col2 + col0 FROM tab1
----
116
161
20

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT + SUM( - 45 ) FROM tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-9397
SELECT + SUM ( - 45 ) FROM tab1 AS cor0
----
-135

query I rowsort
SELECT ALL - - ( + ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT - 62 FROM tab2 cor0 WHERE NOT ( + col1 < - col0 )
----
-62
-62
-62

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 * - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 26 * + 74 AS col1 FROM tab2
----
1924
1924
1924

query I rowsort
SELECT - ( + + 72 ) FROM tab2
----
-72
-72
-72

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 + 75 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9404
SELECT - 8 DIV - col1 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9404
SELECT - 8 / - col1 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + ( + 84 ) AS col1 FROM tab2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT - MIN( + 19 ) FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-9406
SELECT - MIN ( + 19 ) FROM tab2
----
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 / + + 56 col1 FROM tab2 WHERE NOT + - col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 87, 11 - col1 * - col1 AS col1 FROM tab2 AS cor0
----
87
2612
87
4500
87
5940

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT DISTINCT - MIN( col0 ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9409
SELECT DISTINCT - MIN ( col0 ) AS col0 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT DISTINCT + 88 + - 55 AS col2 FROM tab2 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT ALL - ( 47 ) + COUNT( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-9411
SELECT ALL - ( 47 ) + COUNT ( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
-44

query I rowsort
SELECT DISTINCT - col2 + + - col2 FROM tab1 AS cor0
----
-118
-136
-192

query I rowsort
SELECT 58 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT ALL col2 + - col0 * ( - + 15 ) AS col2 FROM tab0
----
1315
1554
272

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT ALL + 22 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT DISTINCT + 78 + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-19
-9
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT + - 59 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-9418
SELECT + - 59 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-56

query I rowsort
SELECT ALL + ( - 76 ) + - col2 FROM tab0 AS cor0
----
-123
-175
-86

query I rowsort
SELECT DISTINCT 66 + - + col2 FROM tab1
----
-2
-30
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT ALL MAX( DISTINCT + col0 ) + SUM( - - col2 ) FROM tab1
----
314

skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL MAX ( DISTINCT + col0 ) + SUM ( - - col2 ) FROM tab1
----
314

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE ( + + col0 / + - col0 - + 35 ) NOT BETWEEN - col1 AND ( NULL )
----
51
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT ( + MIN( DISTINCT - + 5 ) ) FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-9423
SELECT ( + MIN ( DISTINCT - + 5 ) ) FROM tab2
----
-5

query I rowsort
SELECT DISTINCT - col0 - - - 98 AS col0 FROM tab0
----
-113
-185
-195

query I rowsort
SELECT ALL + 93 AS col2 FROM tab0 WHERE NULL BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9426
SELECT 43 AS col2, COUNT( * ) FROM tab2
----
43
3

skipif mysql # not compatible
query II rowsort label-9426
SELECT 43 AS col2, COUNT ( * ) FROM tab2
----
43
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9427
SELECT SUM( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9427
SELECT SUM ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9428
SELECT ALL * FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9428
SELECT ALL * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col0 + + - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9430
SELECT - 15 / - CAST( NULL AS SIGNED ) + + - MAX( ALL - col1 ) - + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9430
SELECT - 15 / - CAST ( NULL AS INTEGER ) + + - MAX ( ALL - col1 ) - + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT DISTINCT - SUM( - 97 ) col1 FROM tab2 AS cor0
----
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9431
SELECT DISTINCT - SUM ( - 97 ) col1 FROM tab2 AS cor0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT DISTINCT COUNT( * ) * + ( - 57 ) FROM tab0
----
-171

skipif mysql # not compatible
query I rowsort label-9432
SELECT DISTINCT COUNT ( * ) * + ( - 57 ) FROM tab0
----
-171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 * - 75 col1 FROM tab2
----
450
450
450

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT + - COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-9434
SELECT + - COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 82 col2 FROM tab1 WHERE NULL IS NULL
----
-82

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 1 ) * - + col0 * - 37 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT ALL - COUNT( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL - COUNT ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + - col2 * - - 98 * 5 FROM tab0 AS cor0
----
-23030
-48510
-4900

query I rowsort
SELECT + - 55 * - col2 FROM tab1 AS cor0
----
3245
3740
5280

query I rowsort
SELECT ALL + 65 * - col2 FROM tab2 AS cor0
----
-1495
-2600
-3770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9441
SELECT + - CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9441
SELECT + - CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9442
SELECT ALL - + 37 * + col2 DIV + col2 FROM tab1 AS cor0
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL - + 37 * + col2 / + col2 FROM tab1 AS cor0
----
-37
-37
-37

query I rowsort
SELECT - + col0 + + - 56 + - col0 FROM tab0 WHERE NOT + 41 IS NULL
----
-230
-250
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9444
SELECT + CAST( + COUNT( * ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9444
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2
----
3

query I rowsort
SELECT 82 AS col1 FROM tab0 WHERE NOT ( NOT ( - 32 NOT IN ( + + ( - + col2 ) ) ) )
----
82
82
82

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN + - ( + 83 ) * ( + col1 ) + - col0 AND - 18 * - 47 / 78
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9447
SELECT 43 + + - CAST( NULL AS SIGNED ) AS col0, - col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-9447
SELECT 43 + + - CAST ( NULL AS INTEGER ) AS col0, - col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9448
SELECT DISTINCT + 2 * + col0 + - col1 / - - CAST( NULL AS SIGNED ) + - col1 AS col0, + col2 + - col2 - - col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-9448
SELECT DISTINCT + 2 * + col0 + - col1 / - - CAST ( NULL AS INTEGER ) + - col1 AS col0, + col2 + - col2 - - col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT ALL + col0 + - + col1 AS col2 FROM tab0
----
-66
66
96

query II rowsort
SELECT + col0 AS col0, 60 FROM tab2
----
46
60
64
60
75
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9451
SELECT - 90 DIV 18 * - + 86 * - - MAX( ALL - col0 ) FROM tab1
----
-21930

skipif mysql # not compatible
query I rowsort label-9451
SELECT - 90 / 18 * - + 86 * - - MAX ( ALL - col0 ) FROM tab1
----
-21930

query I rowsort
SELECT + col0 * - + col2 AS col1 FROM tab1
----
-4896
-5015
-6188

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( col0 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - + col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col2, ( + + col1 ) FROM tab1 cor0
----
-59
5
-68
47
-96
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9456
SELECT - col1 - col0 DIV col2 AS col2 FROM tab1 AS cor0
----
-14
-48
-6

skipif mysql # not compatible
query I rowsort label-9456
SELECT - col1 - col0 / col2 AS col2 FROM tab1 AS cor0
----
-14
-48
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9457
SELECT + - ( - + col2 ) - + col2 * + - col0 + - - col1 + - col1 + - + col1 * - + 24 * + CAST( - - col0 AS SIGNED ) + + CAST( NULL AS SIGNED ) * - + 68 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9457
SELECT + - ( - + col2 ) - + col2 * + - col0 + - - col1 + - col1 + - + col1 * - + 24 * + CAST ( - - col0 AS INTEGER ) + + CAST ( NULL AS INTEGER ) * - + 68 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + + ( + - col2 ) BETWEEN - col2 * + col2 AND ( - 63 ) )
----
51
14
96
91
47
68

query I rowsort
SELECT - col2 - 56 AS col2 FROM tab2 cor0
----
-114
-79
-96

query I rowsort
SELECT DISTINCT + col1 * + + 36 AS col2 FROM tab1 AS cor0
----
1692
180
504

query I rowsort
SELECT DISTINCT + - col2 * 8 * 78 + - - 99 FROM tab0 cor0
----
-29229
-6141
-61677

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = - col0
----

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 + 98 * - ( col0 ) FROM tab2
----
-4457
-6195
-7283

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9465
SELECT DISTINCT + MIN( col2 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9465
SELECT DISTINCT + MIN ( col2 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 * + + 96 - + + col1 AS col1 FROM tab2
----
4845
6365
7315

query I rowsort
SELECT col1 * + col0 + col2 * + col0 + + 18 FROM tab0 WHERE NOT NULL NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT MAX( ALL - col0 ) col0 FROM tab0 WHERE NOT ( + col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9468
SELECT MAX ( ALL - col0 ) col0 FROM tab0 WHERE NOT ( + col0 ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + 70 + - 43 FROM tab2, tab0 cor0
----
27

query II rowsort
SELECT - 91 AS col0, ( + 79 ) AS col0 FROM tab2
----
-91
79
-91
79
-91
79

query II rowsort
SELECT - 92 AS col1, col0 AS col1 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT ( - + 24 ) * + 89 AS col0 FROM tab2 AS cor0
----
-2136

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT DISTINCT + SUM( - + col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9473
SELECT DISTINCT + SUM ( - + col2 ) AS col1 FROM tab0 AS cor0
----
-156

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 38 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( + col1 )
----

query I rowsort
SELECT ALL 78 AS col1 FROM tab1 cor0
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 col1 FROM tab0 AS cor0
----
21
21
21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9478
SELECT DISTINCT - col0 + CAST( + col1 AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( - col2, + col1, ( - + col2 ) * col1 - - 90 )
----

skipif mysql # not compatible
query I rowsort label-9478
SELECT DISTINCT - col0 + CAST ( + col1 AS REAL ) FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( - col2, + col1, ( - + col2 ) * col1 - - 90 )
----

query I rowsort
SELECT - col2 + + - col2 FROM tab0
----
-198
-20
-94

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( + + ( col2 ) ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT - col0 AS col1, - 45, col0 FROM tab2
----
9 values hashing to fd8b544abfee8ec504c87971f56a9eef

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT - 69 * + - MIN( col1 ) * - + 54 * 10 - + SUM( ALL + col1 ) AS col1 FROM tab0
----
-37363

skipif mysql # not compatible
query I rowsort label-9482
SELECT - 69 * + - MIN ( col1 ) * - + 54 * 10 - + SUM ( ALL + col1 ) AS col1 FROM tab0
----
-37363

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT COUNT( DISTINCT - col2 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9483
SELECT COUNT ( DISTINCT - col2 ) col1 FROM tab0
----
3

query I rowsort
SELECT ALL - 34 * + 89 AS col1 FROM tab2
----
-3026
-3026
-3026

onlyif mysql # DIV for integer division: 
query I rowsort label-9485
SELECT 26 DIV - ( - 61 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9485
SELECT 26 / - ( - 61 ) FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE - 49 + col1 + ( + col1 ) + - - 82 - - col1 * - col1 * + + col1 IS NOT NULL
----
15
87
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 * col0 BETWEEN NULL AND + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9488
SELECT + 22 DIV 80 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9488
SELECT + 22 / 80 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL ( + - col0 ) + - col2 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-9490
SELECT ALL + 34 + col1 + col0 + - col2 DIV 43 DIV + 38 * + col0 + col1 FROM tab1 AS cor0
----
113
129
219

skipif mysql # not compatible
query I rowsort label-9490
SELECT ALL + 34 + col1 + col0 + - col2 / 43 / + 38 * + col0 + col1 FROM tab1 AS cor0
----
113
129
219

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT MIN( + col0 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9491
SELECT MIN ( + col0 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + col1 + + col1 * col1 AS col0 FROM tab1 AS cor0
----
210
2256
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col2 FROM tab0 cor0
----
40
40
40

query II rowsort
SELECT - + 2 AS col0, + col2 FROM tab0 AS cor0
----
-2
10
-2
47
-2
99

query I rowsort
SELECT ALL - col0 * + + ( + col1 ) AS col2 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 46 BETWEEN ( + 65 ) AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9497
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9497
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

query II rowsort
SELECT ALL 72 * 1 AS col0, + col2 AS col1 FROM tab1 AS cor0
----
72
59
72
68
72
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * - col1 <= - + 72
----

query I rowsort
SELECT DISTINCT - + ( + col2 ) * 50 FROM tab0 AS cor0
----
-2350
-4950
-500

onlyif mysql # DIV for integer division: 
query I rowsort label-9501
SELECT - col0 DIV + 68 AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9501
SELECT - col0 / + 68 AS col2 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9502
SELECT ALL 82 DIV - ( + col1 ) + 81 AS col2 FROM tab0 AS cor0
----
-1
78
80

skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL 82 / - ( + col1 ) + 81 AS col2 FROM tab0 AS cor0
----
-1
78
80

query I rowsort
SELECT + 52 * - - col1 AS col1 FROM tab0 AS cor0
----
1092
4212
52

query I rowsort
SELECT + - 0 + - col0 + + col2 * col2 AS col1 FROM tab1 AS cor0 WHERE + 54 IS NOT NULL
----
3396
4533
9165

query I rowsort
SELECT ALL + 15 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT ALL + ( - 4 ) + - SUM( - - col2 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-9506
SELECT ALL + ( - 4 ) + - SUM ( - - col2 ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT + ( col1 ) - + col2 - 54 FROM tab1
----
-108
-136
-75

query I rowsort
SELECT ALL + 39 + - - col1 * - col0 + - - col1 + + + col2 + + + ( - - col1 ) AS col1 FROM tab0
----
-1736
-967
43

onlyif mysql # DIV for integer division: 
query I rowsort label-9509
SELECT ALL + col0 DIV - 13 FROM tab0
----
-1
-6
-7

skipif mysql # not compatible
query I rowsort label-9509
SELECT ALL + col0 / - 13 FROM tab0
----
-1
-6
-7

query I rowsort
SELECT 46 * 3 * - 68 + + 48 AS col0 FROM tab0 AS cor0
----
-9336
-9336
-9336

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT DISTINCT + COUNT( - + 43 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT + COUNT ( - + 43 ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * + col1 / col2 BETWEEN NULL AND - col1 * + col0 + col1 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9513
SELECT - CAST( + ( - - col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9513
SELECT - CAST ( + ( - - col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

query II rowsort
SELECT DISTINCT - ( col2 ) AS col1, + col1 + - - ( + + col0 ) + col2 AS col2 FROM tab2 AS cor0
----
-23
120
-40
181
-58
200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 49 col2 FROM tab1 AS cor0
----
49
49
49

query I rowsort
SELECT + + col0 * + 47 AS col0 FROM tab0 cor0
----
4089
4559
705

query I rowsort
SELECT col2 FROM tab2 WHERE NOT - col0 * + - col2 * + 67 <> NULL
----

query I rowsort
SELECT ALL + 6 + - col2 FROM tab2
----
-17
-34
-52

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 63 >= + 49
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT DISTINCT COUNT( DISTINCT - 36 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9520
SELECT DISTINCT COUNT ( DISTINCT - 36 ) FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 44 col0 FROM tab0
----
-44
-44
-44

query II rowsort
SELECT DISTINCT - col0 AS col1, col1 AS col1 FROM tab2
----
-46
51
-64
77
-75
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9523
SELECT ALL MAX( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9523
SELECT ALL MAX ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL + col1 * + col1 * + - col2 FROM tab2 AS cor0
----
-237160
-260362
-59823

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 37 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> col0
----

query I rowsort
SELECT ALL ( + col1 ) + - col1 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - ( 90 ) - + - 5 * + - col1 - - col0 FROM tab2
----
-299
-350
-411

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND - col1
----

query I rowsort
SELECT ALL 30 - 24 + + col1 FROM tab1
----
11
20
53

query I rowsort
SELECT ALL - 31 * - col1 FROM tab0 AS cor0
----
2511
31
651

query I rowsort
SELECT + 82 * col0 - col0 * - 47 AS col0 FROM tab0 AS cor0
----
11223
12513
1935

query II rowsort
SELECT ALL 45 AS col1, col0 - + + col2 FROM tab1 AS cor0
----
45
-45
45
23
45
26

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT DISTINCT - 18 * + - SUM( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3330

skipif mysql # not compatible
query I rowsort label-9535
SELECT DISTINCT - 18 * + - SUM ( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3330

query I rowsort
SELECT - + ( + col2 ) - 91 AS col1 FROM tab0 AS cor0
----
-101
-138
-190

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 11 > + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9538
SELECT ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9538
SELECT ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9539
SELECT ALL - col2 * - CAST( NULL AS SIGNED ) AS col1, - col2 DIV - 42 AS col1 FROM tab1
----
NULL
1
NULL
1
NULL
2

skipif mysql # not compatible
query II rowsort label-9539
SELECT ALL - col2 * - CAST ( NULL AS INTEGER ) AS col1, - col2 / - 42 AS col1 FROM tab1
----
NULL
1
NULL
1
NULL
2

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + - col1 * col0 * - 51 NOT IN ( - col0, + col2 / col1, + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9541
SELECT DISTINCT 70 DIV col2 FROM tab2
----
1
3

skipif mysql # not compatible
query I rowsort label-9541
SELECT DISTINCT 70 / col2 FROM tab2
----
1
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 col2 FROM tab0 WHERE NOT + 84 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9543
SELECT SUM( ALL - - col1 ) AS col2, + COUNT( * ) FROM tab2
----
195
3

skipif mysql # not compatible
query II rowsort label-9543
SELECT SUM ( ALL - - col1 ) AS col2, + COUNT ( * ) FROM tab2
----
195
3

query I rowsort
SELECT col0 * 2 FROM tab0
----
174
194
30

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 61 * - - col1 IS NOT NULL
----

query I rowsort
SELECT 91 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # aggregate syntax: 
query II rowsort label-9547
SELECT ALL + - COUNT( * ) AS col2, - COUNT( * ) FROM tab1 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-9547
SELECT ALL + - COUNT ( * ) AS col2, - COUNT ( * ) FROM tab1 AS cor0
----
-3
-3

query II rowsort
SELECT DISTINCT + ( + col2 ) * - col0 * 76 - + col1 + - + 99 / - ( + ( col2 ) ) AS col0, + 55 FROM tab0 AS cor0 WHERE col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT ( + + MIN( + + col1 ) ) + COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-9550
SELECT ( + + MIN ( + + col1 ) ) + COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
7

query I rowsort
SELECT DISTINCT - 70 + + + col1 + + + 45 FROM tab2 AS cor0
----
26
42
52

query I rowsort
SELECT ( - + 89 ) + - col0 FROM tab0
----
-104
-176
-186

query I rowsort
SELECT ALL ( - + col0 ) AS col1 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT - col1 FROM tab0 WHERE NULL NOT BETWEEN + 35 AND - col2 * + 96 + + 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT DISTINCT ( COUNT( ALL + - 0 ) ) * + COUNT( * ) AS col2 FROM tab1, tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9555
SELECT DISTINCT ( COUNT ( ALL + - 0 ) ) * + COUNT ( * ) AS col2 FROM tab1, tab0 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9556
SELECT ALL + CAST( + 73 AS SIGNED ) AS col2 FROM tab2
----
73
73
73

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL + CAST ( + 73 AS INTEGER ) AS col2 FROM tab2
----
73
73
73

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( 23 )
----

query I rowsort
SELECT DISTINCT 94 * - + col1 AS col1 FROM tab1
----
-1316
-4418
-470

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 12 * + + 80 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= - 10
----

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE col2 / - col0 > NULL
----

query I rowsort
SELECT + + 79 * col0 + - col1 AS col1 FROM tab0 AS cor0
----
1104
6852
7662

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col2 >= col1
----

query I rowsort
SELECT DISTINCT - 80 AS col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9565
SELECT * FROM tab1 AS cor0 WHERE CAST( - col1 AS SIGNED ) NOT BETWEEN - col1 AND + + col1
----

skipif mysql # not compatible
query III rowsort label-9565
SELECT * FROM tab1 AS cor0 WHERE CAST ( - col1 AS INTEGER ) NOT BETWEEN - col1 AND + + col1
----

query I rowsort
SELECT + col1 + + - col0 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT + 75 + col2 AS col1 FROM tab0
----
122
174
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9568
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - - col0 - col1 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9568
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - - col0 - col1 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT ALL + MAX( col2 ) * - - COUNT( * ) * - 74 - - + ( COUNT( * ) ) - - 91 AS col0 FROM tab1 AS cor0
----
-21218

skipif mysql # not compatible
query I rowsort label-9569
SELECT ALL + MAX ( col2 ) * - - COUNT ( * ) * - 74 - - + ( COUNT ( * ) ) - - 91 AS col0 FROM tab1 AS cor0
----
-21218

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 col1 FROM tab0 cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( 23 )
----
0

skipif mysql # not compatible
query I rowsort label-9571
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( 23 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT ALL MIN( + + 86 ) FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-9572
SELECT ALL MIN ( + + 86 ) FROM tab0 AS cor0
----
86

query I rowsort
SELECT ( 48 ) FROM tab1 AS cor0
----
48
48
48

onlyif mysql # DIV for integer division: 
query I rowsort label-9574
SELECT 28 DIV - col1 + col1 DIV - - col1 + + col0 AS col0 FROM tab0 AS cor0
----
16
70
87

skipif mysql # not compatible
query I rowsort label-9574
SELECT 28 / - col1 + col1 / - - col1 + + col0 AS col0 FROM tab0 AS cor0
----
16
70
87

query I rowsort
SELECT ALL - - col2 * - col0 * + col0 + - + col1 FROM tab1 AS cor0
----
-249710
-426280
-563155

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT - SUM( DISTINCT + - col1 ) * - + COUNT( * ) FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-9576
SELECT - SUM ( DISTINCT + - col1 ) * - + COUNT ( * ) FROM tab1 AS cor0
----
-198

query I rowsort
SELECT DISTINCT - 26 * + col1 AS col1 FROM tab1 AS cor0
----
-1222
-130
-364

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - col0 + + - col0 col2 FROM tab1 AS cor0
----
14
-102
47
-182
5
-170

query I rowsort
SELECT DISTINCT - ( + 60 ) AS col2 FROM tab0
----
-60

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9580
SELECT DISTINCT + col0 * CAST( + - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9580
SELECT DISTINCT + col0 * CAST ( + - CAST ( NULL AS INTEGER ) AS REAL ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT - col0 - - + 82 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9581
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT - col0 - - + 82 IS NULL
----
3

query I rowsort
SELECT + 21 FROM tab2 WHERE NOT - + col1 / - col0 IS NULL
----
21
21
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT + ( + COUNT( * ) ) FROM tab0 WHERE NOT ( NOT - 17 > - col0 )
----
2

skipif mysql # not compatible
query I rowsort label-9584
SELECT + ( + COUNT ( * ) ) FROM tab0 WHERE NOT ( NOT - 17 > - col0 )
----
2

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * + col1 >= + + 91
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9586
SELECT ALL - ( - 95 ) DIV + + col0 + - - col0 * - col1 AS col1 FROM tab2
----
-2344
-4927
-5024

skipif mysql # not compatible
query I rowsort label-9586
SELECT ALL - ( - 95 ) / + + col0 + - - col0 * - col1 AS col1 FROM tab2
----
-2344
-4927
-5024

query I rowsort
SELECT + 69 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT - col2 * + - 70 FROM tab2 cor0
----
1610
2800
4060

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT + COUNT( DISTINCT + + 50 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9589
SELECT + COUNT ( DISTINCT + + 50 ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT ALL - SUM( ALL - col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9590
SELECT ALL - SUM ( ALL - col1 ) FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT DISTINCT + MAX( + ( + ( - - col1 ) ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9591
SELECT DISTINCT + MAX ( + ( + ( - - col1 ) ) ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT - - 57 * - 59 FROM tab1 AS cor0
----
-3363
-3363
-3363

query I rowsort
SELECT 43 * col2 + + - ( + col2 ) + 83 * col2 AS col2 FROM tab0 AS cor0
----
12375
1250
5875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9594
SELECT DISTINCT + + CAST( + + col1 AS SIGNED ) * + 57 * - 13 * + - col0 + + col2 + col2 + 64 + + col0 FROM tab0 AS cor0
----
1353978
72236
900488

skipif mysql # not compatible
query I rowsort label-9594
SELECT DISTINCT + + CAST ( + + col1 AS INTEGER ) * + 57 * - 13 * + - col0 + + col2 + col2 + 64 + + col0 FROM tab0 AS cor0
----
1353978
72236
900488

query I rowsort
SELECT - 47 AS col2 FROM tab1 cor0
----
-47
-47
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9596
SELECT ALL col2 + + CAST( + 72 AS SIGNED ) AS col0 FROM tab1
----
131
140
168

skipif mysql # not compatible
query I rowsort label-9596
SELECT ALL col2 + + CAST ( + 72 AS INTEGER ) AS col0 FROM tab1
----
131
140
168

query III rowsort
SELECT * FROM tab2 WHERE - ( - col1 ) IS NULL
----

query I rowsort
SELECT + col0 + + + col1 FROM tab0
----
108
96
98

query II rowsort
SELECT ALL col2 AS col1, col1 * - col0 FROM tab1
----
59
-425
68
-4277
96
-714

query I rowsort
SELECT ALL 96 FROM tab0 WHERE NOT - ( - col0 ) <= NULL
----

query II rowsort
SELECT 30 - - col2, + 91 * col0 AS col2 FROM tab0
----
129
8827
40
7917
77
1365

onlyif mysql # DIV for integer division: 
query I rowsort label-9602
SELECT + 44 - ( - - col0 ) + - + col0 * col0 DIV col0 FROM tab2
----
-106
-48
-84

skipif mysql # not compatible
query I rowsort label-9602
SELECT + 44 - ( - - col0 ) + - + col0 * col0 / col0 FROM tab2
----
-106
-48
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-9603
SELECT ALL ( + - COUNT( * ) ) AS col2, - 9 FROM tab2
----
-3
-9

skipif mysql # not compatible
query II rowsort label-9603
SELECT ALL ( + - COUNT ( * ) ) AS col2, - 9 FROM tab2
----
-3
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9604
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 89 * + col0 * - CAST( 23 AS SIGNED ) * + + col1 <> col2
----

skipif mysql # not compatible
query III rowsort label-9604
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 89 * + col0 * - CAST ( 23 AS INTEGER ) * + + col1 <> col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9605
SELECT - ( + col1 ) DIV col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9605
SELECT - ( + col1 ) / col1 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT COUNT( * ) col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9606
SELECT COUNT ( * ) col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT ALL 95 * + 68 FROM tab1
----
6460
6460
6460

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - ( - 29 ) FROM tab1
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT + COUNT( DISTINCT 2 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9610
SELECT + COUNT ( DISTINCT 2 ) FROM tab0
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + 16 - - 76 ) <> 67
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9612
SELECT 93 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) >= + + ( - 94 ) + - col0 - 0
----

skipif mysql # not compatible
query I rowsort label-9612
SELECT 93 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) >= + + ( - 94 ) + - col0 - 0
----

query I rowsort
SELECT DISTINCT col2 + - + col0 * col2 FROM tab0 AS cor0
----
-658
-860
-9504

query II rowsort
SELECT 21 * - - col2 AS col0, + col1 FROM tab0
----
2079
1
210
21
987
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT ALL + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT NULL BETWEEN - col1 AND NULL )
----

query II rowsort
SELECT DISTINCT - + 0 AS col1, - 77 * - + col1 AS col0 FROM tab0 AS cor0
----
0
1617
0
6237
0
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * + col2 + - 47 - - 8 * + - col2 * 11 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9619
SELECT ALL - 89 * - COUNT( * ) AS col0, 16 AS col0 FROM tab0 AS cor0
----
267
16

skipif mysql # not compatible
query II rowsort label-9619
SELECT ALL - 89 * - COUNT ( * ) AS col0, 16 AS col0 FROM tab0 AS cor0
----
267
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT ALL COUNT( 8 ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9620
SELECT ALL COUNT ( 8 ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
3

query I rowsort
SELECT - 5 * + + col0 + col1 FROM tab2 AS cor0
----
-179
-243
-308

query I rowsort
SELECT DISTINCT col1 + - + col1 + col2 - - 60 FROM tab2 AS cor0
----
100
118
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 9 + + + col0 AS col2, - col0 col2 FROM tab1 AS cor0
----
100
-91
60
-51
94
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9624
SELECT + - col2 FROM tab1 AS cor0 WHERE - ( 36 ) + + - CAST( + col2 AS SIGNED ) NOT BETWEEN 98 AND NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9624
SELECT + - col2 FROM tab1 AS cor0 WHERE - ( 36 ) + + - CAST ( + col2 AS INTEGER ) NOT BETWEEN 98 AND NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * + col1 * col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9626
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9626
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT DISTINCT - SUM( - col1 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
103

skipif mysql # not compatible
query I rowsort label-9627
SELECT DISTINCT - SUM ( - col1 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
103

query I rowsort
SELECT ALL - col1 + col1 + - - 28 * + col1 FROM tab1 AS cor0
----
1316
140
392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 - + col0 col1 FROM tab2
----
14
25
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT - COUNT( ( 29 ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9630
SELECT - COUNT ( ( 29 ) ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT ALL col2 * + - col1 + + 65 FROM tab2
----
-1108
-3015
-3821

query I rowsort
SELECT + col2 * - 96 AS col0 FROM tab1 WHERE + - 4 IS NULL
----

query I rowsort
SELECT + ( - 19 ) AS col2 FROM tab1
----
-19
-19
-19

query III rowsort
SELECT * FROM tab2 WHERE + + col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9635
SELECT - 87 - - CAST( col1 AS SIGNED ) col0 FROM tab1
----
-40
-73
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9635
SELECT - 87 - - CAST ( col1 AS INTEGER ) col0 FROM tab1
----
-40
-73
-82

query I rowsort
SELECT + col1 * col0 - - col2 + col0 + - 36 FROM tab2 AS cor0
----
2379
4996
5122

query I rowsort
SELECT DISTINCT + ( + 99 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
99

query I rowsort
SELECT DISTINCT + col2 * - col1 * + col2 AS col2 FROM tab2 WHERE 26 IS NOT NULL
----
-123200
-225388
-26979

onlyif mysql # DIV for integer division: 
query I rowsort label-9639
SELECT DISTINCT 39 DIV - col1 FROM tab0 AS cor0 WHERE 42 * + 87 IS NOT NULL
----
-1
-39
0

skipif mysql # not compatible
query I rowsort label-9639
SELECT DISTINCT 39 / - col1 FROM tab0 AS cor0 WHERE 42 * + 87 IS NOT NULL
----
-1
-39
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + + col1 BETWEEN + col0 AND + col2 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 93 AS col0 FROM tab0 cor0
----
93

query II rowsort
SELECT - col2, + col1 AS col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query II rowsort
SELECT - - col2, - col1 AS col2 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

query I rowsort
SELECT - 48 * - + 65 + col0 * 95 * - 20 AS col0 FROM tab0 cor0
----
-162180
-181180
-25380

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT + MAX( col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9645
SELECT + MAX ( col2 ) AS col1 FROM tab1 AS cor0
----
96

query II rowsort
SELECT ALL col1 AS col2, col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query II rowsort
SELECT DISTINCT + + col2, col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-16
-16
-16

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT ALL + MIN( ALL + 90 ) AS col1 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-9650
SELECT ALL + MIN ( ALL + 90 ) AS col1 FROM tab2
----
90

query II rowsort
SELECT - col2 AS col2, 41 FROM tab1 WHERE NOT 43 * + 17 <> NULL
----

query I rowsort
SELECT ALL - col0 - + 79 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 <= col1 + - 94
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 43 AS col1 FROM tab0 WHERE + col0 <= - + 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT DISTINCT COUNT( * ) * 17 AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-9655
SELECT DISTINCT COUNT ( * ) * 17 AS col1 FROM tab1
----
51

query I rowsort
SELECT + col2 * - - 96 * 55 FROM tab1 AS cor0
----
311520
359040
506880

query I rowsort
SELECT - 40 * + 50 FROM tab2 AS cor0
----
-2000
-2000
-2000

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT + + COUNT( * ) AS col2 FROM tab0 cor0 WHERE - col0 + - col2 * + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9658
SELECT + + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE - col0 + - col2 * + col0 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT + COUNT( * ) * ( + - 62 ) col0 FROM tab1 cor0
----
-186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9659
SELECT + COUNT ( * ) * ( + - 62 ) col0 FROM tab1 cor0
----
-186

query I rowsort
SELECT DISTINCT + col0 * col0 + - + col2 AS col2 FROM tab1 AS cor0
----
2505
7166
8213

query I rowsort
SELECT - ( - + ( - col1 ) ) * + 95 * - col1 * + 67 + - col1 - + col2 + + col2 FROM tab0 WHERE NULL >= col2 * 13
----

query I rowsort
SELECT ALL col2 - - + col1 * + + col1 * col0 FROM tab2
----
119669
336733
379496

query I rowsort
SELECT - col2 + - + col2 * + + col1 FROM tab0
----
-198
-220
-3854

query I rowsort
SELECT ALL - 33 - - col0 AS col2 FROM tab2
----
13
31
42

onlyif mysql # DIV for integer division: 
query I rowsort label-9665
SELECT ALL + 27 DIV - 41 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9665
SELECT ALL + 27 / - 41 FROM tab1
----
0
0
0

query I rowsort
SELECT + col2 + + + ( - 44 ) FROM tab0
----
-34
3
55

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9668
SELECT DISTINCT - 94 DIV col1 FROM tab0
----
-1
-4
-94

skipif mysql # not compatible
query I rowsort label-9668
SELECT DISTINCT - 94 / col1 FROM tab0
----
-1
-4
-94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 92 * - + col2 IS NULL
----

query II rowsort
SELECT DISTINCT col0, + 99 FROM tab2 AS cor0
----
46
99
64
99
75
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT ALL - - MIN( + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9671
SELECT ALL - - MIN ( + col0 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT col1 * + ( + col0 ) + - col2 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = + col0 * + 17
----

query I rowsort
SELECT DISTINCT + + 33 + - 44 * - + col2 FROM tab0 AS cor0
----
2101
4389
473

query I rowsort
SELECT ALL 81 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT - COUNT( * ) + COUNT( * ) AS col2 FROM tab2 WHERE NOT + col1 = - col2 * - + col2
----
0

skipif mysql # not compatible
query I rowsort label-9676
SELECT - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 WHERE NOT + col1 = - col2 * - + col2
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 - + col2 IN ( col0 + - col2 * col0, + col1, col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 IN ( + col2, - col1, 28 + - - 58 )
----

query I rowsort
SELECT + 95 FROM tab2 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----

query I rowsort
SELECT + col1 * - - 5 FROM tab0
----
105
405
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9681
SELECT - 70 DIV col2 DIV + 37 * + col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9681
SELECT - 70 / col2 / + 37 * + col1 FROM tab0
----
0
0
0

query II rowsort
SELECT ALL - 2 AS col2, - col2 AS col0 FROM tab2
----
-2
-23
-2
-40
-2
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT ( + SUM( ALL + 88 ) ) AS col1 FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-9683
SELECT ( + SUM ( ALL + 88 ) ) AS col1 FROM tab0
----
264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 col1 FROM tab1
----
19

query I rowsort
SELECT ALL - ( + 35 ) FROM tab1
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9686
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT col1 * - + 18 FROM tab0
----
-1458
-18
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT ALL SUM( ALL - - 52 ) * COUNT( * ) FROM tab2 cor0
----
468

skipif mysql # not compatible
query I rowsort label-9688
SELECT ALL SUM ( ALL - - 52 ) * COUNT ( * ) FROM tab2 cor0
----
468

query I rowsort
SELECT DISTINCT - ( col2 ) + - ( - col0 ) AS col2 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query II rowsort label-9690
SELECT - COUNT( DISTINCT - 31 ) AS col2, - 44 FROM tab1
----
-1
-44

skipif mysql # not compatible
query II rowsort label-9690
SELECT - COUNT ( DISTINCT - 31 ) AS col2, - 44 FROM tab1
----
-1
-44

query I rowsort
SELECT - 10 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9692
SELECT * FROM tab2 AS cor0 WHERE 20 + - CAST( - + ( + col0 ) AS SIGNED ) * - + col2 * 26 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9692
SELECT * FROM tab2 AS cor0 WHERE 20 + - CAST ( - + ( + col0 ) AS INTEGER ) * - + col2 * 26 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 41 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL > ( + ( 52 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9694
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL > ( + ( 52 ) )
----
0

query I rowsort
SELECT ALL col1 + + 94 FROM tab1 AS cor0
----
108
141
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9696
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9696
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT + + SUM( + + col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-9697
SELECT + + SUM ( + + col1 ) FROM tab1 cor0
----
66

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 99 + ( col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL 88 + - + col2 AS col0 FROM tab2
----
30
48
65

query II rowsort
SELECT DISTINCT - col2 AS col1, - 13 FROM tab2
----
-23
-13
-40
-13
-58
-13

query I rowsort
SELECT ALL - 73 - col2 AS col2 FROM tab2
----
-113
-131
-96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - ( - + 5 ) * + + ( + 45 ) * 9 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT - MIN( - ( - ( 75 ) ) ) AS col2 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9703
SELECT - MIN ( - ( - ( 75 ) ) ) AS col2 FROM tab1 AS cor0
----
-75

query I rowsort
SELECT DISTINCT + 75 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT DISTINCT - + MAX( - - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT - + MAX ( - - col2 ) FROM tab2 AS cor0
----
-58

query II rowsort
SELECT + - 63, - col2 - + + col0 AS col2 FROM tab0 AS cor0
----
-63
-196
-63
-62
-63
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9707
SELECT DISTINCT - 61 DIV col0 + + col2 AS col1 FROM tab2 AS cor0
----
22
40
58

skipif mysql # not compatible
query I rowsort label-9707
SELECT DISTINCT - 61 / col0 + + col2 AS col1 FROM tab2 AS cor0
----
22
40
58

query II rowsort
SELECT - - col1 AS col1, - 47 FROM tab0 AS cor0
----
1
-47
21
-47
81
-47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 41 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9710
SELECT ALL + 61 DIV + col2 col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9710
SELECT ALL + 61 / + col2 col2 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT - MIN( DISTINCT col1 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9711
SELECT - MIN ( DISTINCT col1 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT 29 + col0 - col0 FROM tab0
----
29
29
29

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 91 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT DISTINCT - MAX( 18 ) FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9714
SELECT DISTINCT - MAX ( 18 ) FROM tab2 AS cor0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9715
SELECT 36 + COUNT( col0 ) * - + CAST( + MAX( ALL - col2 ) AS SIGNED ) FROM tab2 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-9715
SELECT 36 + COUNT ( col0 ) * - + CAST ( + MAX ( ALL - col2 ) AS INTEGER ) FROM tab2 AS cor0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT DISTINCT - 38 + + COUNT( * ) FROM tab0 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-9716
SELECT DISTINCT - 38 + + COUNT ( * ) FROM tab0 AS cor0
----
-35

query I rowsort
SELECT ALL col2 + + col0 + - col1 AS col1 FROM tab2
----
18
27
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9718
SELECT ( 54 ) DIV - 41 AS col2 FROM tab1 WHERE - 73 IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9718
SELECT ( 54 ) / - 41 AS col2 FROM tab1 WHERE - 73 IS NOT NULL
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9719
SELECT 49, COUNT( * ) AS col2 FROM tab1
----
49
3

skipif mysql # not compatible
query II rowsort label-9719
SELECT 49, COUNT ( * ) AS col2 FROM tab1
----
49
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT + SUM( + col0 ) * - 69 - + - 79 FROM tab2 cor0
----
-12686

skipif mysql # not compatible
query I rowsort label-9720
SELECT + SUM ( + col0 ) * - 69 - + - 79 FROM tab2 cor0
----
-12686

onlyif mysql # DIV for integer division: 
query I rowsort label-9721
SELECT + 69 DIV + 99 * col1 - - + 98 FROM tab2 AS cor0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-9721
SELECT + 69 / + 99 * col1 - - + 98 FROM tab2 AS cor0
----
98
98
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 col2, + col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9723
SELECT DISTINCT - CAST( + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT ( + col0 ) <> col2 + + col0
----

skipif mysql # not compatible
query I rowsort label-9723
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT ( + col0 ) <> col2 + + col0
----

query I rowsort
SELECT ( - col0 ) - col0 AS col0 FROM tab0 AS cor0
----
-174
-194
-30

query I rowsort
SELECT + - 48 - + col0 + + + col0 AS col2 FROM tab1 AS cor0
----
-48
-48
-48

query II rowsort
SELECT ALL + + col1 AS col1, - col1 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT DISTINCT + - SUM( + col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9727
SELECT DISTINCT + - SUM ( + col1 ) AS col1 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT DISTINCT - 4 + col0 + + col2 * col2 FROM tab0 AS cor0
----
183
2220
9894

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9729
SELECT ALL + ( - col2 ) + + - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9729
SELECT ALL + ( - col2 ) + + - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - - 7 ) + + col2 FROM tab2
----
30
47
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 + - col2 * + col2 col2 FROM tab0
----
-2158
-49
-9750

query I rowsort
SELECT DISTINCT col2 * + - col1 AS col2 FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( + ( - col0 ) ) NOT BETWEEN NULL AND + - 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT - SUM( - + 75 ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-9734
SELECT - SUM ( - + 75 ) FROM tab2
----
225

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE col1 + - col0 NOT BETWEEN + ( + ( + ( + col1 ) ) ) + + + col0 AND ( 78 )
----
10
47
99

query I rowsort
SELECT - 33 + 2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT - - 78 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # aggregate syntax: 
query II rowsort label-9738
SELECT DISTINCT COUNT( * ) AS col0, + COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9738
SELECT DISTINCT COUNT ( * ) AS col0, + COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9739
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 51 ) col2 FROM tab1 cor0
----
51
51
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9741
SELECT DISTINCT + 54 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9741
SELECT DISTINCT + 54 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT DISTINCT + 24 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-9742
SELECT DISTINCT + 24 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
21

query I rowsort
SELECT + + col2 FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN - col0 / + 4 AND - - 32
----

query I rowsort
SELECT ALL + col0 + + 18 FROM tab0 AS cor0
----
105
115
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 + + + col0, col1 col1 FROM tab0
----
108
21
96
81
98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT DISTINCT - 6 + + SUM( DISTINCT col2 ) * - - ( COUNT( * ) ) FROM tab2
----
357

skipif mysql # not compatible
query I rowsort label-9746
SELECT DISTINCT - 6 + + SUM ( DISTINCT col2 ) * - - ( COUNT ( * ) ) FROM tab2
----
357

query I rowsort
SELECT - ( + col2 ) * - ( + - 99 ) AS col0 FROM tab2
----
-2277
-3960
-5742

onlyif mysql # DIV for integer division: 
query I rowsort label-9748
SELECT col0 DIV + - 85 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9748
SELECT col0 / + - 85 FROM tab0
----
-1
-1
0

query I rowsort
SELECT - - col0 FROM tab2 WHERE - - col2 + col1 IS NOT NULL
----
46
64
75

query I rowsort
SELECT col0 * 8 FROM tab2
----
368
512
600

onlyif mysql # aggregate syntax: 
query II rowsort label-9751
SELECT ALL 22 * + + 23 AS col0, COUNT( * ) FROM tab2
----
506
3

skipif mysql # not compatible
query II rowsort label-9751
SELECT ALL 22 * + + 23 AS col0, COUNT ( * ) FROM tab2
----
506
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 63 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + ( 30 ) * - + col0 + - + col0, + col0 FROM tab0 AS cor0 WHERE NULL < + col2 * - col0
----

query I rowsort
SELECT + col0 + - col1 * + col0 AS col2 FROM tab0 AS cor0 WHERE - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT ALL - + MIN( DISTINCT + col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL - + MIN ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-9756
SELECT col1 AS col2, 78 DIV col0 + col2 FROM tab2 AS cor0
----
51
24
67
59
77
41

skipif mysql # not compatible
query II rowsort label-9756
SELECT col1 AS col2, 78 / col0 + col2 FROM tab2 AS cor0
----
51
24
67
59
77
41

query I rowsort
SELECT - - 16 + col2 FROM tab2 AS cor0
----
39
56
74

query I rowsort
SELECT DISTINCT col0 * 94 + - 40 FROM tab0 AS cor0
----
1370
8138
9078

query I rowsort
SELECT 32 * + 39 FROM tab0 AS cor0
----
1248
1248
1248

query II rowsort
SELECT + + col2 * - col2 AS col1, col2 FROM tab2 cor0
----
-1600
40
-3364
58
-529
23

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 63 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9762
SELECT SUM( DISTINCT + col1 ) DIV + SUM( ALL + + col1 ) AS col0, - COUNT( - col1 ) FROM tab1 WHERE NOT + 27 * + col0 * - + col0 + + - 46 * - col1 IS NULL
----
1
-3

skipif mysql # not compatible
query II rowsort label-9762
SELECT SUM ( DISTINCT + col1 ) / + SUM ( ALL + + col1 ) AS col0, - COUNT ( - col1 ) FROM tab1 WHERE NOT + 27 * + col0 * - + col0 + + - 46 * - col1 IS NULL
----
1
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9763
SELECT DISTINCT * FROM tab0 WHERE CAST( col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9763
SELECT DISTINCT * FROM tab0 WHERE CAST ( col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9764
SELECT + COUNT( * ) AS col1, 50 + ( + COUNT( * ) ) * - 60 AS col2 FROM tab0
----
3
-130

skipif mysql # not compatible
query II rowsort label-9764
SELECT + COUNT ( * ) AS col1, 50 + ( + COUNT ( * ) ) * - 60 AS col2 FROM tab0
----
3
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT COUNT( * ) * - ( - + 86 ) FROM tab0 cor0
----
258

skipif mysql # not compatible
query I rowsort label-9765
SELECT COUNT ( * ) * - ( - + 86 ) FROM tab0 cor0
----
258

query I rowsort
SELECT DISTINCT + + 18 AS col0 FROM tab0 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT - ( MIN( 98 ) ) AS col2 FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-9767
SELECT - ( MIN ( 98 ) ) AS col2 FROM tab1
----
-98

query III rowsort
SELECT * FROM tab1 WHERE + 46 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 col2 FROM tab1
----
77
77
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( col0 - + 29 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9771
SELECT + ( - ( + 73 ) ) / - 91 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9771
SELECT + ( - ( + 73 ) ) / - 91 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 76 + col1 FROM tab0
----
-55
-75
5

query I rowsort
SELECT col0 * col0 AS col1 FROM tab2 WHERE NOT + col0 >= col1
----
2116
4096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9774
SELECT AVG ( DISTINCT + col0 ) - MAX( 89 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9774
SELECT AVG ( DISTINCT + col0 ) - MAX ( 89 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9775
SELECT DISTINCT 3 * + col0 col2 FROM tab2 WHERE NULL BETWEEN col0 + - CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9775
SELECT DISTINCT 3 * + col0 col2 FROM tab2 WHERE NULL BETWEEN col0 + - CAST ( NULL AS INTEGER ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 * + col1 + + 43 BETWEEN ( + col2 ) AND ( col0 * - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + ( 54 + 59 ) col2 FROM tab0
----
123
160
212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9778
SELECT 67 + - SUM( ALL CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9778
SELECT 67 + - SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9779
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9779
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > 51 - - col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 65 <> NULL
----

query I rowsort
SELECT DISTINCT + col1 * 37 AS col0 FROM tab2
----
1887
2479
2849

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9783
SELECT DISTINCT - 38 + CAST( NULL AS SIGNED ) * + MIN( ALL 93 + col2 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9783
SELECT DISTINCT - 38 + CAST ( NULL AS INTEGER ) * + MIN ( ALL 93 + col2 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT ALL SUM( ALL col0 ) * 63 FROM tab2
----
11655

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL SUM ( ALL col0 ) * 63 FROM tab2
----
11655

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77

query III rowsort
SELECT * FROM tab0 WHERE + 19 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 - - 44 col0 FROM tab2
----
116
116
116

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 NOT IN ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( 33 )
----

query I rowsort
SELECT ALL ( + 37 ) - 80 FROM tab1
----
-43
-43
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 43 ) + col2 * + col2 col1 FROM tab2
----
1557
3321
486

query I rowsort
SELECT + col2 * + 57 AS col2 FROM tab0
----
2679
5643
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 99 col2 FROM tab1
----
5049
8415
9009

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT ALL SUM( 16 ) FROM tab2 WHERE 20 IS NOT NULL
----
48

skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL SUM ( 16 ) FROM tab2 WHERE 20 IS NOT NULL
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT DISTINCT + 55 - - COUNT( * ) FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-9795
SELECT DISTINCT + 55 - - COUNT ( * ) FROM tab1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT ALL COUNT( * ) + + 33 AS col1 FROM tab1 WHERE ( 6 ) < 0 * col0
----
33

skipif mysql # not compatible
query I rowsort label-9796
SELECT ALL COUNT ( * ) + + 33 AS col1 FROM tab1 WHERE ( 6 ) < 0 * col0
----
33

query I rowsort
SELECT + 73 * col0 AS col1 FROM tab0
----
1095
6351
7081

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) >= + col1 * col2
----

query I rowsort
SELECT - 11 FROM tab2 WHERE ( NULL ) IS NULL
----
-11
-11
-11

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 ) NOT BETWEEN - ( col2 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 <> - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 + + 48 FROM tab2 AS cor0 WHERE NOT - 85 > ( NULL )
----

query I rowsort
SELECT 30 FROM tab2 AS cor0 WHERE col1 + col2 * - ( 22 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT ALL MAX( + col0 ) + 82 col0 FROM tab0 AS cor0
----
179

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9804
SELECT ALL MAX ( + col0 ) + 82 col0 FROM tab0 AS cor0
----
179

query I rowsort
SELECT + col2 AS col0 FROM tab1 cor0 WHERE - ( - col0 ) IN ( + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9806
SELECT ALL - COUNT( * ) DIV + 80 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL - COUNT ( * ) / + 80 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9807
SELECT DISTINCT - 46 * ( CAST( NULL AS SIGNED ) ) - col1 col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9807
SELECT DISTINCT - 46 * ( CAST ( NULL AS INTEGER ) ) - col1 col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT DISTINCT COUNT( * ) col1 FROM ( tab1 cor0 CROSS JOIN tab0 )
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9808
SELECT DISTINCT COUNT ( * ) col1 FROM ( tab1 cor0 CROSS JOIN tab0 )
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col2 * - 8 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE 6 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 + - col0 BETWEEN + col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 = 56
----

query I rowsort
SELECT - 65 - 50 * + 67 AS col1 FROM tab1 cor0
----
-3415
-3415
-3415

query I rowsort
SELECT 72 + col1 * - col2 FROM tab1 AS cor0
----
-1272
-223
-3124

onlyif mysql # DIV for integer division: 
query I rowsort label-9815
SELECT DISTINCT + col0 DIV + col2 col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9815
SELECT DISTINCT + col0 / + col2 col2 FROM tab2 AS cor0
----
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 col1 FROM tab2 AS cor0 WHERE NOT - 69 * col1 IN ( + col1 )
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + 81 * 21 > ( ( + 41 ) + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + 81 * 21 > ( ( + 41 ) + + col0 )
----
0

query I rowsort
SELECT DISTINCT ( 68 ) AS col2 FROM tab0 AS cor0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9819
SELECT - 93 DIV - col1 FROM tab0
----
1
4
93

skipif mysql # not compatible
query I rowsort label-9819
SELECT - 93 / - col1 FROM tab0
----
1
4
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT - ( MAX( ALL 54 ) ) AS col1 FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-9820
SELECT - ( MAX ( ALL 54 ) ) AS col1 FROM tab0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9821
SELECT * FROM tab1 WHERE - col2 + + 7 IS NULL OR col1 * + ( col2 / 37 ) NOT IN ( CAST( + 49 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9821
SELECT * FROM tab1 WHERE - col2 + + 7 IS NULL OR col1 * + ( col2 / 37 ) NOT IN ( CAST ( + 49 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9822
SELECT + 60 DIV col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9822
SELECT + 60 / col2 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9823
SELECT DISTINCT CAST( - - CAST( - COUNT( * ) AS DECIMAL ) AS SIGNED ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9823
SELECT DISTINCT CAST ( - - CAST ( - COUNT ( * ) AS REAL ) AS INTEGER ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT ALL MIN( - 18 ) FROM tab0 WHERE + col0 + - ( + 28 ) IS NOT NULL
----
-18

skipif mysql # not compatible
query I rowsort label-9824
SELECT ALL MIN ( - 18 ) FROM tab0 WHERE + col0 + - ( + 28 ) IS NOT NULL
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT DISTINCT + MIN( ALL col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-9825
SELECT DISTINCT + MIN ( ALL col0 ) FROM tab2
----
46

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 85 ) BETWEEN ( NULL ) AND 43 + - col1 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT + COUNT( ALL + col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9827
SELECT + COUNT ( ALL + col1 ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND col2
----

query I rowsort
SELECT DISTINCT - col1 * - + 65 FROM tab1 cor0
----
3055
325
910

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9830
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * + col1 - col0 col1 FROM tab0 AS cor0
----
123
2
3792

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 66 BETWEEN NULL AND ( 65 * + col2 )
----

query I rowsort
SELECT DISTINCT - ( - 41 ) FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN NULL AND col0 / - 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT DISTINCT MAX( ALL + col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9834
SELECT DISTINCT MAX ( ALL + col1 ) AS col1 FROM tab0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9835
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9835
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 88 / col0 + - col0 > ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + col0 + + + col2 * - 46 AS col1 FROM tab2 AS cor0
----
-1104
-1904
-2743

query I rowsort
SELECT DISTINCT + + ( ( - 95 ) ) AS col0 FROM tab0 AS cor0
----
-95

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL NOT IN ( + col1 + col0 ) ) OR NOT NULL BETWEEN col2 AND ( - 49 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9841
SELECT - col1 * - col0 AS col2 FROM tab1 cor0 WHERE CAST( NULL AS SIGNED ) * + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9841
SELECT - col1 * - col0 AS col2 FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) * + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * + + 83 IS NULL
----

query I rowsort
SELECT DISTINCT + - 39 + 41 FROM tab0 AS cor0
----
2

query I rowsort
SELECT 18 + + + col0 FROM tab1 AS cor0
----
103
109
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9845
SELECT - CAST( col0 AS SIGNED ) * col2 * 96 + + col0 * col0 FROM tab0 AS cor0
----
-67455
-75951
-912479

skipif mysql # not compatible
query I rowsort label-9845
SELECT - CAST ( col0 AS INTEGER ) * col2 * 96 + + col0 * col0 FROM tab0 AS cor0
----
-67455
-75951
-912479

query I rowsort
SELECT col1 * - + 18 AS col2 FROM tab1
----
-252
-846
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 52 col0 FROM tab1 WHERE + col1 * - col2 + + 52 < col1 * + col2
----
-52

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL col2 * + 50 FROM tab2
----
1150
2000
2900

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9850
SELECT * FROM tab0 WHERE - 73 * - col1 + CAST( NULL AS SIGNED ) NOT IN ( col0 / + col1 )
----

skipif mysql # not compatible
query III rowsort label-9850
SELECT * FROM tab0 WHERE - 73 * - col1 + CAST ( NULL AS INTEGER ) NOT IN ( col0 / + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT ALL - COUNT( * ) - + - ( - + 14 ) FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-9851
SELECT ALL - COUNT ( * ) - + - ( - + 14 ) FROM tab2
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9852
SELECT ALL 84 DIV + ( - - COUNT( * ) ) AS col1 FROM tab0 cor0
----
28

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL 84 / + ( - - COUNT ( * ) ) AS col1 FROM tab0 cor0
----
28

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 94 )
----

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE 66 > - - 0
----
-10
-47
-99

query I rowsort
SELECT ( - - 37 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT + col2 * + + 35 FROM tab1 AS cor0
----
2065
2380
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT SUM( + + col2 ) / + COUNT( col2 ) + 98 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9857
SELECT SUM ( + + col2 ) / + COUNT ( col2 ) + 98 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 10 + + + col2 col2 FROM tab1 cor0
----
-402
-44
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9859
SELECT ALL + - col2 DIV col0 AS col0 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL + - col2 / col0 AS col0 FROM tab1 cor0
----
-1
0
0

query II rowsort
SELECT DISTINCT col2 AS col2, 69 AS col2 FROM tab2 AS cor0
----
23
69
40
69
58
69

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + + ( + col2 ) IS NULL AND NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT - - COUNT( col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9863
SELECT - - COUNT ( col1 ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - - col1 col1 FROM tab1 AS cor0 WHERE NOT 66 <> col0
----

query II rowsort
SELECT + col1 AS col0, - ( - + col2 ) FROM tab1
----
14
96
47
68
5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + - col2 col2 FROM tab0
----
-100
-2209
-9801

query II rowsort
SELECT col1, - col2 FROM tab2
----
51
-23
67
-58
77
-40

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 ) >= ( - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col0 * col0 >= - + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col1 AS col2, + 94 FROM tab0 AS cor0
----
-1
94
-21
94
-81
94

query II rowsort
SELECT ALL 43 AS col1, col0 + col1 - + col0 AS col1 FROM tab1 AS cor0
----
43
14
43
47
43
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 / + 73 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9873
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) + - SUM( 74 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9873
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - SUM ( 74 ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + 18 + + 63 FROM tab1 AS cor0
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT + + COUNT( * ) + - - COUNT( * ) * + 61 + 7 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
565

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9875
SELECT + + COUNT ( * ) + - - COUNT ( * ) * + 61 + 7 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
565

query I rowsort
SELECT - 34 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT MAX( ALL + 74 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
74

skipif mysql # not compatible
query I rowsort label-9877
SELECT MAX ( ALL + 74 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
74

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9879
SELECT + + col2 DIV + col2 - - 62 FROM tab0 cor0
----
63
63
63

skipif mysql # not compatible
query I rowsort label-9879
SELECT + + col2 / + col2 - - 62 FROM tab0 cor0
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT - COUNT( * ) * + 32 + + - 26 FROM tab1 AS cor0
----
-122

skipif mysql # not compatible
query I rowsort label-9880
SELECT - COUNT ( * ) * + 32 + + - 26 FROM tab1 AS cor0
----
-122

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 8 IS NULL
----

query I rowsort
SELECT DISTINCT + 28 + - + 9 * 72 AS col2 FROM tab2 AS cor0
----
-620

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT ALL + - SUM( DISTINCT col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9883
SELECT ALL + - SUM ( DISTINCT col0 ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT DISTINCT - 58 + + + 77 + - 56 * + + col0 FROM tab2 AS cor0
----
-2557
-3565
-4181

query II rowsort
SELECT + - 40 - - col1, - col1 - + + col1 AS col1 FROM tab0 AS cor0 WHERE + 23 * + + 49 IS NOT NULL
----
-19
-42
-39
-2
41
-162

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 57 * 57 NOT IN ( - 29 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( 43 + 47 + + col0 ) NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT NULL > ( - col1 * col2 * + col2 + - - 62 + - col2 )
----

query I rowsort
SELECT ALL + - col0 - col1 + + 82 * col0 * 2 * + col0 + + col0 FROM tab2 AS cor0
----
346973
671667
922433

query I rowsort
SELECT DISTINCT 94 + + - col2 FROM tab0
----
-5
47
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT ALL COUNT( * ) + - 20 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-9891
SELECT ALL COUNT ( * ) + - 20 FROM tab2
----
-17

query I rowsort
SELECT + col1 + + - col1 + col0 FROM tab1 WHERE ( col2 ) BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9893
SELECT * FROM tab0 WHERE ( + 45 ) IN ( ( - 30 ) * + + col1 + - - 92 + - + col2 * - CAST( NULL AS SIGNED ) + + ( col2 ) )
----

skipif mysql # not compatible
query III rowsort label-9893
SELECT * FROM tab0 WHERE ( + 45 ) IN ( ( - 30 ) * + + col1 + - - 92 + - + col2 * - CAST ( NULL AS INTEGER ) + + ( col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 + + col0 col2 FROM tab1
----
102
62
96

query I rowsort
SELECT col2 + + col0 + 71 * - col0 FROM tab1
----
-3474
-5891
-6302

query II rowsort
SELECT + col1 AS col0, 50 AS col0 FROM tab2 AS cor0
----
51
50
67
50
77
50

query I rowsort
SELECT ( - 60 ) AS col1 FROM tab2
----
-60
-60
-60

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 73 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT - 10 * - COUNT( * ) * - 68 FROM tab1 AS cor0
----
-2040

skipif mysql # not compatible
query I rowsort label-9899
SELECT - 10 * - COUNT ( * ) * - 68 FROM tab1 AS cor0
----
-2040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col2 * + + 95 * + + 84 col0 FROM tab1
----
27778380
36899520
73543680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9901
SELECT ALL - 0 DIV - COUNT( + ( - col2 ) ) col1 FROM tab2 WHERE NOT ( - + col0 ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9901
SELECT ALL - 0 / - COUNT ( + ( - col2 ) ) col1 FROM tab2 WHERE NOT ( - + col0 ) IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 / + col0 * - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9903
SELECT 2 DIV - + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9903
SELECT 2 / - + col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col2 * ( 93 ) AS col2 FROM tab1
----
5487
6324
8928

onlyif mysql # DIV for integer division: 
query I rowsort label-9905
SELECT DISTINCT col2 DIV - 29 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-9905
SELECT DISTINCT col2 / - 29 FROM tab0
----
-1
-3
0

query I rowsort
SELECT col1 + - 36 FROM tab0 WHERE NOT - 62 IS NOT NULL
----

query I rowsort
SELECT ALL - 93 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + 75 AS col0, + col1 AS col0 FROM tab1
----
75
14
75
47
75
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT ALL - MAX( col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-9909
SELECT ALL - MAX ( col0 ) FROM tab2
----
-75

query I rowsort
SELECT ( + 0 ) FROM tab0
----
0
0
0

query I rowsort
SELECT + + 82 * - col0 + - ( - - col1 ) FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9912
SELECT - 80 DIV + + col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9912
SELECT - 80 / + + col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + 20 FROM tab1 AS cor0 WHERE NOT 26 <> - ( col1 ) + - col2 * - + col2
----

query II rowsort
SELECT DISTINCT col0 AS col2, 86 * - + 44 AS col2 FROM tab2
----
46
-3784
64
-3784
75
-3784

query I rowsort
SELECT col0 * - - 16 + - col1 + + + col0 - col1 FROM tab1
----
1435
1453
839

query III rowsort
SELECT * FROM tab0 WHERE + col0 - + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 + + ( col0 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= col2 / - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9919
SELECT 40 + + + col2 * - col2 / - 99 / + + 2 * + - 4 + - CAST( NULL AS DECIMAL ) + - 72 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9919
SELECT 40 + + + col2 * - col2 / - 99 / + + 2 * + - 4 + - CAST ( NULL AS REAL ) + - 72 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT DISTINCT + 87 + + SUM( - col2 ) FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-9920
SELECT DISTINCT + 87 + + SUM ( - col2 ) FROM tab2 AS cor0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT MAX( DISTINCT 53 ) AS col2 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-9921
SELECT MAX ( DISTINCT 53 ) AS col2 FROM tab0 AS cor0
----
53

query I rowsort
SELECT + ( + + col0 ) AS col1 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9923
SELECT DISTINCT + MAX( ALL + col0 ) * CAST( NULL AS DECIMAL ) - 4 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9923
SELECT DISTINCT + MAX ( ALL + col0 ) * CAST ( NULL AS REAL ) - 4 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col1 * + ( - col1 ) - - col2 AS col1 FROM tab0
----
-431
-6514
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9925
SELECT ALL - col2 DIV - 4 + - + col2 FROM tab1
----
-45
-51
-72

skipif mysql # not compatible
query I rowsort label-9925
SELECT ALL - col2 / - 4 + - + col2 FROM tab1
----
-45
-51
-72

query I rowsort
SELECT DISTINCT col0 - + + 0 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT COUNT( * ) FROM tab2 WHERE - 57 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9927
SELECT COUNT ( * ) FROM tab2 WHERE - 57 IS NULL
----
0

query I rowsort
SELECT ALL - 91 + + + 79 + - ( + col0 ) * col1 - + col2 AS col0 FROM tab2
----
-2381
-4980
-5095

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT DISTINCT + MAX( ALL 92 ) AS col1 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-9929
SELECT DISTINCT + MAX ( ALL 92 ) AS col1 FROM tab1
----
92

query I rowsort
SELECT DISTINCT + 78 * - 76 FROM tab1 WHERE - col0 - - + col0 IS NOT NULL
----
-5928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9931
SELECT 61 + - 76 + + CAST( NULL AS SIGNED ) + - + col2 * + - col2 + - - col0 * 41 + - 84 / + 42 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9931
SELECT 61 + - 76 + + CAST ( NULL AS INTEGER ) + - + col2 * + - col2 + - - col0 * 41 + - 84 / + 42 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * col2 <= + - col2 / + col1 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 67 BETWEEN NULL AND - 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT ALL + ( + - COUNT( * ) ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL + ( + - COUNT ( * ) ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> ( col1 + + 52 )
----

query I rowsort
SELECT - ( + 40 ) * + - ( + + 38 ) AS col2 FROM tab2 AS cor0
----
1520
1520
1520

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT - 78 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT MIN( 14 ) * + 66 * - ( - 71 ) AS col2 FROM tab2 AS cor0
----
65604

skipif mysql # not compatible
query I rowsort label-9938
SELECT MIN ( 14 ) * + 66 * - ( - 71 ) AS col2 FROM tab2 AS cor0
----
65604

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT DISTINCT - + COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT + col0 + - col1 <> - 54 / + col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9939
SELECT DISTINCT - + COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT + col0 + - col1 <> - 54 / + col0
----
0

query II rowsort
SELECT - col2, + col0 AS col2 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT DISTINCT + MIN( ALL ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9941
SELECT DISTINCT + MIN ( ALL ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9944
SELECT DISTINCT + 85 DIV SUM( col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9944
SELECT DISTINCT + 85 / SUM ( col1 ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT 26 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 5 col0 FROM tab0
----
-105
-405
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT ALL COUNT( * ) * + - 45 AS col1 FROM tab2
----
-135

skipif mysql # not compatible
query I rowsort label-9947
SELECT ALL COUNT ( * ) * + - 45 AS col1 FROM tab2
----
-135

query I rowsort
SELECT DISTINCT - 89 * - col1 + - + col0 FROM tab1 AS cor0
----
1195
360
4092

query I rowsort
SELECT + col1 + + + 81 AS col2 FROM tab1 AS cor0
----
128
86
95

query II rowsort
SELECT DISTINCT col2 * - col0, + ( + col0 ) FROM tab1 AS cor0
----
-4896
51
-5015
85
-6188
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9951
SELECT + 29 + + CAST( + col0 AS SIGNED ) - - ( - col2 ) AS col0 FROM tab2 AS cor0
----
46
52
53

skipif mysql # not compatible
query I rowsort label-9951
SELECT + 29 + + CAST ( + col0 AS INTEGER ) - - ( - col2 ) AS col0 FROM tab2 AS cor0
----
46
52
53

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT ALL 39 + + MAX( - col0 ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-9953
SELECT ALL 39 + + MAX ( - col0 ) FROM tab0 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT DISTINCT + COUNT( * ) + - MIN( - - 24 ) FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-9954
SELECT DISTINCT + COUNT ( * ) + - MIN ( - - 24 ) FROM tab2 AS cor0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9955
SELECT - col0 - + CAST( - + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9955
SELECT - col0 - + CAST ( - + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
0

query I rowsort
SELECT ALL + 21 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 65 col1 FROM tab0 AS cor0
----
-65
-65
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9958
SELECT + CAST( NULL AS SIGNED ) - - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9958
SELECT + CAST ( NULL AS INTEGER ) - - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9959
SELECT ALL 71 * COUNT( * ) * - + 88 AS col1, 43 FROM tab2 AS cor0
----
-18744
43

skipif mysql # not compatible
query II rowsort label-9959
SELECT ALL 71 * COUNT ( * ) * - + 88 AS col1, 43 FROM tab2 AS cor0
----
-18744
43

query I rowsort
SELECT DISTINCT + col2 * - - col0 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT MIN( + col2 ) - + COUNT( - col0 ) + 87 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-9961
SELECT MIN ( + col2 ) - + COUNT ( - col0 ) + 87 FROM tab0 AS cor0
----
94

query I rowsort
SELECT ALL + + col1 * - + col1 AS col2 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT - 55 + - col0 FROM tab1 cor0
----
-106
-140
-146

query II rowsort
SELECT ALL + col0 + - - col1 * + col0, + col2 * - - col1 AS col0 FROM tab2 AS cor0
----
2392
1173
4992
3080
5100
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 + - + 27 col0 FROM tab1
----
36
36
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9966
SELECT DISTINCT 0 * + - col1 + + 32 + - col1 * + col1 * + col2 col1 FROM tab1 WHERE CAST( - - col2 AS SIGNED ) IS NOT NULL
----
-1443
-150180
-18784

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9966
SELECT DISTINCT 0 * + - col1 + + 32 + - col1 * + col1 * + col2 col1 FROM tab1 WHERE CAST ( - - col2 AS INTEGER ) IS NOT NULL
----
-1443
-150180
-18784

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT DISTINCT COUNT( * ) + - MIN( DISTINCT - 47 ) * - 54 * + COUNT( * ) * - COUNT( * ) * + + 89 FROM tab1 WHERE + col2 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9967
SELECT DISTINCT COUNT ( * ) + - MIN ( DISTINCT - 47 ) * - 54 * + COUNT ( * ) * - COUNT ( * ) * + + 89 FROM tab1 WHERE + col2 NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 + - - 67 * - 13 AS col1 FROM tab0
----
-774
-784
-856

query II rowsort
SELECT + col0 AS col1, + 12 FROM tab2
----
46
12
64
12
75
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT ALL + 56 - COUNT( * ) AS col2 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-9970
SELECT ALL + 56 - COUNT ( * ) AS col2 FROM tab2
----
53

query II rowsort
SELECT - col1 AS col1, + col1 * 22 FROM tab1 WHERE ( - col1 ) + + - 67 >= - 46
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9972
SELECT DISTINCT - col2, + col0 + + 70 + - col1 + col2 + - col2 - - ( - + col1 ) DIV - 96 * + 59 + col0 AS col2 FROM tab1 AS cor0
----
-59
235
-68
205
-96
158

skipif mysql # not compatible
query II rowsort label-9972
SELECT DISTINCT - col2, + col0 + + 70 + - col1 + col2 + - col2 - - ( - + col1 ) / - 96 * + 59 + col0 AS col2 FROM tab1 AS cor0
----
-59
235
-68
205
-96
158

query II rowsort
SELECT 23 AS col0, col1 FROM tab2 AS cor0
----
23
51
23
67
23
77

query I rowsort
SELECT DISTINCT - + 97 FROM tab0 cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT DISTINCT - SUM( - col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-9975
SELECT DISTINCT - SUM ( - col0 ) AS col0 FROM tab0
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-9976
SELECT - 6 DIV 60 DIV + col1 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9976
SELECT - 6 / 60 / + col1 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - col0 * - + col2 FROM tab2 AS cor0
----
1058
2560
4350

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 91 NOT BETWEEN + 39 AND col0 + + col1
----

query II rowsort
SELECT DISTINCT + col2 * 1, + 65 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
65
68
65
96
65

query I rowsort
SELECT ALL col2 * col0 * 80 FROM tab0 AS cor0
----
56400
69600
768240

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9981
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( - - CAST( + col1 AS DECIMAL ) AS SIGNED ) + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9981
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( - - CAST ( + col1 AS REAL ) AS INTEGER ) + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-9982
SELECT DISTINCT - ( - + col1 ) + + + col2, - 18 DIV col2 * col0 AS col0 FROM tab1
----
110
0
115
0
64
0

skipif mysql # not compatible
query II rowsort label-9982
SELECT DISTINCT - ( - + col1 ) + + + col2, - 18 / col2 * col0 AS col0 FROM tab1
----
110
0
115
0
64
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 57 + - 77 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 45 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT col1 * - - 91 AS col0 FROM tab0
----
1911
7371
91

query I rowsort
SELECT DISTINCT col1 + + col2 + + - 42 * + col0 * + - col0 + col2 FROM tab0
----
317939
395377
9625

onlyif mysql # DIV for integer division: 
query I rowsort label-9987
SELECT - 6 DIV - + col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9987
SELECT - 6 / - + col1 FROM tab1
----
0
0
1

query II rowsort
SELECT DISTINCT 25 AS col0, + col2 FROM tab1
----
25
59
25
68
25
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT - MAX( ALL - + 49 ) FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-9989
SELECT - MAX ( ALL - + 49 ) FROM tab1
----
49

query II rowsort
SELECT 58, col2 AS col0 FROM tab1
----
58
59
58
68
58
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9991
SELECT ALL - col2 * - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9991
SELECT ALL - col2 * - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT ALL + COUNT( * ) * + 59 FROM tab0 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-9992
SELECT ALL + COUNT ( * ) * + 59 FROM tab0 AS cor0
----
177

query I rowsort
SELECT - + col1 * 93 + - col1 FROM tab1 AS cor0
----
-1316
-4418
-470

query I rowsort
SELECT 1 * - col0 + - 57 * - - col2 AS col2 FROM tab0
----
-2694
-5740
-657

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT ALL 91 - - COUNT( * ) col1 FROM tab0
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9995
SELECT ALL 91 - - COUNT ( * ) col1 FROM tab0
----
94

query I rowsort
SELECT col2 * 15 + col1 + + col0 + - - 79 AS col2 FROM tab1
----
1054
1237
1584

query II rowsort
SELECT DISTINCT - col0 * - 64, col0 AS col1 FROM tab1 AS cor0
----
3264
51
5440
85
5824
91

query I rowsort
SELECT ALL - col1 / + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 = NULL
----

