sqllogictest
Artifact Content
Not logged in

Artifact 6bb76a91c82ff6d89212dd00d0ce61f04cf46e7a:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE + col2 = + - 22 - + 96
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 55 * - col2 * - 97 col2 FROM tab1
----
314765
362780
512160

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4
SELECT DISTINCT col0 DIV + + 70 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-4
SELECT DISTINCT col0 / + + 70 FROM tab0
----
0
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + 19, + 26 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 24 * + 22 IN ( + 97 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7
SELECT DISTINCT - col2 * col0 * - CAST( NULL AS SIGNED ) AS col2, + ( - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) + + 19 AS col2 FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7
SELECT DISTINCT - col2 * col0 * - CAST ( NULL AS INTEGER ) AS col2, + ( - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) + + 19 AS col2 FROM tab2 AS cor0
----
NULL
NULL

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

query I rowsort
SELECT - + ( - 20 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-10
SELECT DISTINCT 89 DIV - COUNT( DISTINCT - + col1 ) AS col0 FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-10
SELECT DISTINCT 89 / - COUNT ( DISTINCT - + col1 ) AS col0 FROM tab2
----
-29

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE NOT + col1 IS NULL
----
15
87
97

query I rowsort
SELECT + + col2 FROM tab2 cor0 WHERE NOT NULL >= col1
----

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

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

query II rowsort
SELECT - col2 + col1 AS col2, - col1 FROM tab2
----
28
-51
37
-77
9
-67

query I rowsort
SELECT - col0 * + col2 * 63 + - 70 AS col1 FROM tab2
----
-161350
-274120
-66724

query I rowsort
SELECT - 22 + + col1 FROM tab1
----
-17
-8
25

query I rowsort
SELECT col1 * - 91 + 49 AS col2 FROM tab0
----
-1862
-42
-7322

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-19
SELECT DISTINCT + col2 + + 34 + - 62 * 80 * col1 * col0 * - + 96 - + col2 + CAST( NULL AS SIGNED ) / - - 11 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-19
SELECT DISTINCT + col2 + + 34 + - 62 * 80 * col1 * col0 * - + 96 - + col2 + CAST ( NULL AS INTEGER ) / - - 11 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE 92 * - col2 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-21
SELECT ALL SUM ( CAST ( NULL AS INTEGER ) ) * + - COUNT ( * ) + + - MAX ( ALL - + col1 ) AS col1 FROM tab0 AS cor0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-22
SELECT COUNT ( * ) * - - 97 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
873

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT 68 * - 73 * + COUNT( * ) FROM tab0
----
-14892

skipif mysql # not compatible
query I rowsort label-25
SELECT 68 * - 73 * + COUNT ( * ) FROM tab0
----
-14892

query I rowsort
SELECT ALL + 99 * - ( + - 2 ) AS col2 FROM tab1
----
198
198
198

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

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

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

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

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

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

query I rowsort
SELECT ALL + 3 * - col1 FROM tab0 WHERE NOT col1 IS NULL
----
-243
-3
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-31
SELECT + CAST( COUNT( DISTINCT - col1 ) AS SIGNED ) * - 24 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-31
SELECT + CAST ( COUNT ( DISTINCT - col1 ) AS INTEGER ) * - 24 FROM tab1
----
-72

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 49 * + 8 AS col2 FROM tab2 AS cor0
----
392

onlyif mysql # DIV for integer division: 
query I rowsort label-38
SELECT ALL + col0 DIV + 26 + + col2 col1 FROM tab1 AS cor0
----
62
71
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-38
SELECT ALL + col0 / + 26 + + col2 col1 FROM tab1 AS cor0
----
62
71
97

query I rowsort
SELECT 4 + + col1 + 32 AS col2 FROM tab0 AS cor0
----
117
37
57

onlyif mysql # aggregate syntax: 
query II rowsort label-40
SELECT ALL - 61 col2, - COUNT( * ) FROM tab0
----
-61
-3

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

query III rowsort
SELECT * FROM tab2 WHERE - 64 NOT IN ( 85 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-42
SELECT DISTINCT - ( - + COUNT ( * ) ) + 61 FROM tab1
----
64

query II rowsort
SELECT DISTINCT col1 AS col1, col0 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab0 WHERE + 31 * - - col1 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - 88 + + + col2 * - 93 FROM tab0
----
-1018
-4459
-9295

query I rowsort
SELECT - 3 + + + col0 FROM tab2 AS cor0
----
43
61
72

query I rowsort
SELECT DISTINCT - - col0 * - col2 * - - col0 FROM tab1 cor0 WHERE NOT + 71 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-48
SELECT + MAX( + + 81 ) AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
81
NULL

skipif mysql # not compatible
query II rowsort label-48
SELECT + MAX ( + + 81 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
81
NULL

query I rowsort
SELECT ALL - 39 + 58 AS col2 FROM tab0 AS cor0
----
19
19
19

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) NOT IN ( - + col2, ( + - 85 ) * col2 + - col0 )
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-52
SELECT CAST( + MAX( DISTINCT + col2 ) AS SIGNED ) AS col1 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-52
SELECT CAST ( + MAX ( DISTINCT + col2 ) AS INTEGER ) AS col1 FROM tab0 cor0
----
99

onlyif mysql # DIV for integer division: 
query II rowsort label-53
SELECT + 25 DIV + col2 AS col0, col1 FROM tab2 AS cor0
----
0
67
0
77
1
51

skipif mysql # not compatible
query II rowsort label-53
SELECT + 25 / + col2 AS col0, col1 FROM tab2 AS cor0
----
0
67
0
77
1
51

query I rowsort
SELECT ( - + 45 ) FROM tab1
----
-45
-45
-45

query II rowsort
SELECT col2, col1 * - col0 FROM tab0
----
10
-1827
47
-1215
99
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-56
SELECT ( col2 ) * + ( + + CAST( + - col0 AS SIGNED ) ) DIV + - col0 AS col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-56
SELECT ( col2 ) * + ( + + CAST ( + - col0 AS INTEGER ) ) / + - col0 AS col1 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-57
SELECT ALL - - CAST( NULL AS SIGNED ) FROM tab0 WHERE - col2 >= + 53
----

skipif mysql # not compatible
query I rowsort label-57
SELECT ALL - - CAST ( NULL AS INTEGER ) FROM tab0 WHERE - col2 >= + 53
----

query II rowsort
SELECT ALL + col1, 74 FROM tab2
----
51
74
67
74
77
74

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

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

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

query I rowsort
SELECT ALL - col0 FROM tab1 cor0 WHERE NOT NULL < 49
----

query I rowsort
SELECT + - col0 * - col0 * + col1 * 53 FROM tab2 AS cor0
----
16715776
19974375
5719548

onlyif mysql # DIV for integer division: 
query I rowsort label-63
SELECT DISTINCT 95 DIV + col0 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-63
SELECT DISTINCT 95 / + col0 FROM tab2 AS cor0
----
1
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 37 IS NOT NULL
----

query I rowsort
SELECT + 63 * + col1 AS col2 FROM tab0
----
1323
5103
63

onlyif mysql # DIV for integer division: 
query I rowsort label-66
SELECT DISTINCT + col0 + col0 + + 0 * - 65 DIV + 68 FROM tab0 AS cor0
----
174
194
30

skipif mysql # not compatible
query I rowsort label-66
SELECT DISTINCT + col0 + col0 + + 0 * - 65 / + 68 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT ALL - 95 + + COUNT( * ) + + COUNT( * ) * + COUNT( * ) * - + COUNT( * ) FROM tab2 AS cor0
----
-119

skipif mysql # not compatible
query I rowsort label-67
SELECT ALL - 95 + + COUNT ( * ) + + COUNT ( * ) * + COUNT ( * ) * - + COUNT ( * ) FROM tab2 AS cor0
----
-119

query I rowsort
SELECT DISTINCT + + col1 + - - col0 + + 23 FROM tab1 AS cor0
----
113
161
88

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

onlyif mysql # DIV for integer division: 
query I rowsort label-70
SELECT ALL - 72 DIV 63 + - - col0 FROM tab0 AS cor0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-70
SELECT ALL - 72 / 63 + - - col0 FROM tab0 AS cor0
----
14
86
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + 57 AND + 22
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-72
SELECT DISTINCT - col2 * 97 * - - 49 FROM tab2 WHERE NOT + col0 / - - col0 IN ( - - CAST( NULL AS SIGNED ) + + + 70 / + 7, + col0 / col2 + + col2 )
----

skipif mysql # not compatible
query I rowsort label-72
SELECT DISTINCT - col2 * 97 * - - 49 FROM tab2 WHERE NOT + col0 / - - col0 IN ( - - CAST ( NULL AS INTEGER ) + + + 70 / + 7, + col0 / col2 + + col2 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT + COUNT( * ) + 79 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-74
SELECT + COUNT ( * ) + 79 FROM tab0
----
82

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

query I rowsort
SELECT 30 + + - col1 * - + col0 + - - col0 FROM tab0
----
1260
1944
224

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

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

query I rowsort
SELECT DISTINCT - ( + col1 ) + - - col0 + - 68 AS col0 FROM tab2 AS cor0
----
-60
-73
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT ALL SUM( DISTINCT + 67 ) AS col0 FROM tab1 AS cor0 WHERE + 61 - - + col2 <> 79
----
67

skipif mysql # not compatible
query I rowsort label-79
SELECT ALL SUM ( DISTINCT + 67 ) AS col0 FROM tab1 AS cor0 WHERE + 61 - - + col2 <> 79
----
67

query I rowsort
SELECT ALL - 61 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT + 18 AS col1 FROM tab1 WHERE - 14 IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-83
SELECT ALL + 37 DIV - 99 * col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-83
SELECT ALL + 37 / - 99 * col1 FROM tab1 cor0
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-85
SELECT DISTINCT - col2 col1, + 19 DIV + col0 FROM tab1 AS cor0
----
-59
0
-68
0
-96
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-85
SELECT DISTINCT - col2 col1, + 19 / + col0 FROM tab1 AS cor0
----
-59
0
-68
0
-96
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 70 IS NOT NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

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

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

query III rowsort
SELECT DISTINCT - 40 AS col1, col0 AS col2, - + 73 AS col2 FROM tab0 cor0
----
9 values hashing to 0f0ae85b5919e58a3b87dd92bca3d10b

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

skipif mysql # not compatible
query I rowsort label-90
SELECT - MIN ( ALL + ( col0 ) ) FROM tab0
----
-15

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 75 BETWEEN - col2 AND + col0 / - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-93
SELECT + + 99 DIV + col0 + + col2 + col2 + col2 * - - col2 col2 FROM tab0 AS cor0
----
10000
121
2309

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-93
SELECT + + 99 / + col0 + + col2 + col2 + col2 * - - col2 col2 FROM tab0 AS cor0
----
10000
121
2309

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-94
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NOT NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-94
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NOT NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= + - col1 + - 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT COUNT( * ) * - 70 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-630

skipif mysql # not compatible
query I rowsort label-96
SELECT COUNT ( * ) * - 70 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-97
SELECT ALL - SUM( ALL 86 ) / - CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE + + col1 * + col2 + - 67 + + 8 = 88
----
NULL

skipif mysql # not compatible
query I rowsort label-97
SELECT ALL - SUM ( ALL 86 ) / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE + + col1 * + col2 + - 67 + + 8 = 88
----
NULL

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

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

query I rowsort
SELECT - col0 * col1 + - col0 + - + col2 * + - col1 AS col2 FROM tab1 AS cor0
----
-1172
-215
579

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

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

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

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

query I rowsort
SELECT DISTINCT 39 * - 41 FROM tab1
----
-1599

query I rowsort
SELECT ALL - 95 * - - col2 AS col0 FROM tab0 WHERE NOT - - 22 * + + 77 * col0 <> + 23
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT SUM( DISTINCT - - col2 ) - - MAX( ALL col1 ) * - 44 AS col0 FROM tab0
----
-3408

skipif mysql # not compatible
query I rowsort label-106
SELECT SUM ( DISTINCT - - col2 ) - - MAX ( ALL col1 ) * - 44 AS col0 FROM tab0
----
-3408

query I rowsort
SELECT DISTINCT + - 59 - + col0 + - col1 * 5 AS col1 FROM tab0 AS cor0
----
-161
-251
-479

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col1 / 31 ) < ( + - 72 )
----

query I rowsort
SELECT ALL 78 - - + 28 FROM tab1
----
106
106
106

query I rowsort
SELECT ALL + col0 * + 83 AS col0 FROM tab1
----
4233
7055
7553

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-112
SELECT ALL 92 DIV - - 25 AS col0 FROM tab2 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-112
SELECT ALL 92 / - - 25 AS col0 FROM tab2 AS cor0
----
3
3
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-113
SELECT DISTINCT - 50 DIV COUNT( + col0 ) AS col1 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-113
SELECT DISTINCT - 50 / COUNT ( + col0 ) AS col1 FROM tab0 AS cor0
----
-16

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( - 80 + + - 74 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 81 < NULL
----

query I rowsort
SELECT col0 * + 62 FROM tab0 AS cor0
----
5394
6014
930

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

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

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

query I rowsort
SELECT col1 * + col0 - - + col2 AS col2 FROM tab0 cor0
----
1262
1837
196

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

onlyif mysql # DIV for integer division: 
query I rowsort label-121
SELECT + ( 70 ) DIV + ( + col2 ) AS col2 FROM tab2 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-121
SELECT + ( 70 ) / + ( + col2 ) AS col2 FROM tab2 AS cor0
----
1
1
3

query I rowsort
SELECT ALL + col1 * + - 21 FROM tab1
----
-105
-294
-987

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

skipif mysql # not compatible
query I rowsort label-123
SELECT ALL CAST ( + - col1 AS INTEGER ) * - col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT DISTINCT - 10 * + col0 FROM tab1
----
-510
-850
-910

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 < - 88 )
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-128
SELECT CAST( - col0 AS SIGNED ), - col2 AS col0 FROM tab2
----
-46
-23
-64
-40
-75
-58

skipif mysql # not compatible
query II rowsort label-128
SELECT CAST ( - col0 AS INTEGER ), - col2 AS col0 FROM tab2
----
-46
-23
-64
-40
-75
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-129
SELECT ALL - CAST( NULL AS SIGNED ) + - 86, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-129
SELECT ALL - CAST ( NULL AS INTEGER ) + - 86, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT ALL - - 71 + - SUM( + 38 ) FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL - - 71 + - SUM ( + 38 ) FROM tab1 AS cor0
----
-43

query I rowsort
SELECT - 72 - + col1 - - col1 AS col1 FROM tab0 cor0
----
-72
-72
-72

query I rowsort
SELECT DISTINCT + 17 * + - ( - - col0 ) FROM tab2 cor0
----
-1088
-1275
-782

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-135
SELECT CAST( NULL AS SIGNED ) + - - col1 / 36, - col2 AS col1 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-135
SELECT CAST ( NULL AS INTEGER ) + - - col1 / 36, - col2 AS col1 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT - 36 + - - SUM( ALL 15 ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-136
SELECT - 36 + - - SUM ( ALL 15 ) AS col0 FROM tab0
----
9

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

query I rowsort
SELECT + ( - 18 ) * - col0 FROM tab1
----
1530
1638
918

query I rowsort
SELECT DISTINCT + ( 75 ) * + - col0 FROM tab1
----
-3825
-6375
-6825

onlyif mysql # DIV for integer division: 
query I rowsort label-140
SELECT - - col2 DIV - col2 + - + ( - 77 ) FROM tab0 cor0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-140
SELECT - - col2 / - col2 + - + ( - 77 ) FROM tab0 cor0
----
76
76
76

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

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

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

query I rowsort
SELECT - col2 * + 88 AS col2 FROM tab2
----
-2024
-3520
-5104

query I rowsort
SELECT ( + - ( - + col2 ) ) AS col0 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL 74 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-147
SELECT + ( + SUM( + + 10 ) ) DIV + COUNT( * ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-147
SELECT + ( + SUM ( + + 10 ) ) / + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-148
SELECT ALL - COUNT( * ) DIV 18 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-148
SELECT ALL - COUNT ( * ) / 18 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-149
SELECT DISTINCT col2 DIV - 28 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-149
SELECT DISTINCT col2 / - 28 FROM tab2
----
-1
-2
0

query II rowsort
SELECT ALL - 54 AS col2, col2 + - ( + 18 ) FROM tab1
----
-54
41
-54
50
-54
78

query I rowsort
SELECT DISTINCT col0 * + col2 + + 7 FROM tab2
----
1065
2567
4357

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 AS cor0 WHERE + col1 * - col2 * + + 17 IS NULL
----

query I rowsort
SELECT 89 + - 53 FROM tab1
----
36
36
36

query II rowsort
SELECT DISTINCT col1, + ( - - col1 ) * + col0 * + 6 AS col1 FROM tab2
----
51
14076
67
30150
77
29568

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

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT + SUM( 50 ) FROM tab0 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-156
SELECT + SUM ( 50 ) FROM tab0 AS cor0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT ALL - MIN( - col0 ) - + 77 * - + COUNT( * ) FROM tab0 AS cor0
----
328

skipif mysql # not compatible
query I rowsort label-157
SELECT ALL - MIN ( - col0 ) - + 77 * - + COUNT ( * ) FROM tab0 AS cor0
----
328

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

query I rowsort
SELECT - 13 - + + col0 AS col0 FROM tab0
----
-100
-110
-28

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

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

query I rowsort
SELECT ALL ( - 61 ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-164
SELECT DISTINCT 27 FROM tab2 WHERE NOT + + col1 * - 33 + col2 + CAST( NULL AS SIGNED ) IS NOT NULL
----
27

skipif mysql # not compatible
query I rowsort label-164
SELECT DISTINCT 27 FROM tab2 WHERE NOT + + col1 * - 33 + col2 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
27

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( - + 44 ) NOT BETWEEN + ( - + 91 ) AND - - col1 - - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 38 - + 39 col1, - col2 + - col0 * ( col2 ) * col1 AS col1 FROM tab2
----
-1
-197160
-1
-291508
-1
-53981

query I rowsort
SELECT ALL 7 + + ( col0 ) * - col0 AS col2 FROM tab0 AS cor0
----
-218
-7562
-9402

query I rowsort
SELECT DISTINCT - 36 * - col1 + + col0 FROM tab1 AS cor0
----
1783
265
555

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-172
SELECT + + 85 AS col2, + 13 * - COUNT( * ) col0 FROM tab0 AS cor0
----
85
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-172
SELECT + + 85 AS col2, + 13 * - COUNT ( * ) col0 FROM tab0 AS cor0
----
85
-39

query I rowsort
SELECT + col1 * + - col2 * + col1 * + 66 AS col0 FROM tab1 AS cor0
----
-1241856
-97350
-9913992

query I rowsort
SELECT ALL - + 56 * col0 + + - 20 FROM tab2 AS cor0
----
-2596
-3604
-4220

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

query II rowsort
SELECT - + col2, - col2 + - col2 AS col0 FROM tab2 AS cor0
----
-23
-46
-40
-80
-58
-116

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-179
SELECT - - 22 DIV 19 * col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-179
SELECT - - 22 / 19 * col2 FROM tab2 AS cor0
----
23
40
58

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

onlyif mysql # DIV for integer division: 
query I rowsort label-181
SELECT DISTINCT - 17 DIV + - col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-181
SELECT DISTINCT - 17 / + - col0 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab1 WHERE + + col0 * 62 - 0 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT 24 AS col0 FROM tab1 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-184
SELECT DISTINCT 91 DIV + COUNT( * ) AS col0 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-184
SELECT DISTINCT 91 / + COUNT ( * ) AS col0 FROM tab0
----
30

query III rowsort
SELECT * FROM tab0 WHERE NOT 46 IS NOT NULL
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 92 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + col2 col0 FROM tab1
----
4992
5074
6256

query I rowsort
SELECT ( - - col0 ) * - - 53 + - - ( col1 ) + - + col2 FROM tab2 AS cor0
----
2466
3429
3984

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-191
SELECT DISTINCT col1 + + + CAST( 79 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
130
146
156

skipif mysql # not compatible
query I rowsort label-191
SELECT DISTINCT col1 + + + CAST ( 79 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
130
146
156

query I rowsort
SELECT ALL + + col2 + - - 20 FROM tab0 cor0
----
119
30
67

query II rowsort
SELECT + 95, + 86 + + ( 47 ) AS col2 FROM tab2
----
95
133
95
133
95
133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 88, col1 col2 FROM tab0 WHERE NOT NULL >= - ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-195
SELECT - col2 + - + 18 AS col2 FROM tab0 WHERE 51 + + CAST( + 82 AS SIGNED ) / + col2 = + 16
----

skipif mysql # not compatible
query I rowsort label-195
SELECT - col2 + - + 18 AS col2 FROM tab0 WHERE 51 + + CAST ( + 82 AS INTEGER ) / + col2 = + 16
----

query I rowsort
SELECT - col0 - 84 + + - 50 + - 27 AS col0 FROM tab0 cor0
----
-176
-248
-258

onlyif mysql # DIV for integer division: 
query I rowsort label-197
SELECT ALL + col0 DIV + col0 + 13 FROM tab1 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-197
SELECT ALL + col0 / + col0 + 13 FROM tab1 AS cor0
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT DISTINCT - 32 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-198
SELECT DISTINCT - 32 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-29

query I rowsort
SELECT DISTINCT + - 78 + - - col0 FROM tab2 AS cor0
----
-14
-3
-32

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-201
SELECT ALL CAST( 35 AS SIGNED ) - + 0 AS col2 FROM tab0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-201
SELECT ALL CAST ( 35 AS INTEGER ) - + 0 AS col2 FROM tab0
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 - - col1 col0 FROM tab0
----
104
164
84

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-204
SELECT CAST( + MAX( col1 ) AS SIGNED ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-204
SELECT CAST ( + MAX ( col1 ) AS INTEGER ) AS col2 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-205
SELECT + COUNT( * ) AS col1, + 29 AS col0 FROM tab0
----
3
29

skipif mysql # not compatible
query II rowsort label-205
SELECT + COUNT ( * ) AS col1, + 29 AS col0 FROM tab0
----
3
29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-206
SELECT ALL 85, CAST( col1 AS SIGNED ) * + col0 AS col2, - - 22 AS col2 FROM tab1
----
9 values hashing to 2ce5bbbe03e61c9789b68b67abf55232

skipif mysql # not compatible
query III rowsort label-206
SELECT ALL 85, CAST ( col1 AS INTEGER ) * + col0 AS col2, - - 22 AS col2 FROM tab1
----
9 values hashing to 2ce5bbbe03e61c9789b68b67abf55232

query II rowsort
SELECT DISTINCT col1 AS col0, 58 + + col1 FROM tab0
----
1
59
21
79
81
139

query I rowsort
SELECT DISTINCT + - 20 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-20

onlyif mysql # DIV for integer division: 
query II rowsort label-209
SELECT + col1 DIV ( + col2 ) DIV + 5, - ( + 16 ) col2 FROM tab0 AS cor0
----
0
-16
0
-16
0
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-209
SELECT + col1 / ( + col2 ) / + 5, - ( + 16 ) col2 FROM tab0 AS cor0
----
0
-16
0
-16
0
-16

query II rowsort
SELECT + col0, + col0 * col0 AS col2 FROM tab2 AS cor0
----
46
2116
64
4096
75
5625

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-211
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + + + CAST( col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-211
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + + + CAST ( col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( - col1 * + + col1 / - 57 + - 51 IS NOT NULL )
----

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

query I rowsort
SELECT + 82 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 75 * - - 13 * - col2 >= + 29
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 35 * + col1 <> + col0
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 IS NULL AND NOT 84 = NULL
----

query I rowsort
SELECT DISTINCT - 15 * col1 * + 22 AS col2 FROM tab1 AS cor0
----
-15510
-1650
-4620

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

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

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

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

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE + 85 * - + 42 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query III rowsort
SELECT ALL * FROM tab0 WHERE 59 * - 41 IS NULL
----

query I rowsort
SELECT ALL col0 + + ( - + col1 ) AS col0 FROM tab2
----
-13
-5
8

query I rowsort
SELECT DISTINCT + ( - col0 ) + - + 92 FROM tab2 AS cor0
----
-138
-156
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT DISTINCT COUNT( * ) + - 4 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-225
SELECT DISTINCT COUNT ( * ) + - 4 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + 66 + 49 FROM tab0
----
115

query I rowsort
SELECT + 25 * + col1 AS col0 FROM tab2
----
1275
1675
1925

query I rowsort
SELECT - 73 * col2 + + col0 AS col2 FROM tab1
----
-4222
-4873
-6957

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

query I rowsort
SELECT - 25 * + 19 AS col0 FROM tab0
----
-475
-475
-475

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

onlyif mysql # DIV for integer division: 
query I rowsort label-232
SELECT DISTINCT col0 + - col2 DIV - col1 FROM tab1
----
57
92
96

skipif mysql # not compatible
query I rowsort label-232
SELECT DISTINCT col0 + - col2 / - col1 FROM tab1
----
57
92
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT - SUM( ALL - 20 ) * 51 AS col2 FROM tab1
----
3060

skipif mysql # not compatible
query I rowsort label-234
SELECT - SUM ( ALL - 20 ) * 51 AS col2 FROM tab1
----
3060

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

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

query III rowsort
SELECT * FROM tab0 WHERE NULL > - 29
----

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NULL <> - col0 - col2
----

query I rowsort
SELECT DISTINCT - col1 * - col2 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
1344
295
3196

query I rowsort
SELECT ALL + 48 FROM tab2 WHERE NOT - col1 + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + 83 ) / 86 AS col1 FROM tab0 WHERE ( col2 ) = + ( + 77 ) + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-241
SELECT - col1 DIV + 23 FROM tab1
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-241
SELECT - col1 / + 23 FROM tab1
----
-2
0
0

query I rowsort
SELECT ALL - 27 - col0 AS col1 FROM tab2
----
-102
-73
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT + 97 + COUNT( * ) AS col0 FROM tab2
----
100

skipif mysql # not compatible
query I rowsort label-243
SELECT + 97 + COUNT ( * ) AS col0 FROM tab2
----
100

query I rowsort
SELECT - col1 + + 99 FROM tab0
----
18
78
98

query I rowsort
SELECT DISTINCT + 68 + + 72 FROM tab2
----
140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 * - 2 col1 FROM tab1 WHERE NULL NOT IN ( - 84 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE - col2 BETWEEN col1 / 77 AND ( - 53 )
----
0

skipif mysql # not compatible
query I rowsort label-247
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE - col2 BETWEEN col1 / 77 AND ( - 53 )
----
0

query I rowsort
SELECT - col1 + 5 AS col0 FROM tab1 WHERE NOT - 95 * col1 IS NOT NULL
----

query I rowsort
SELECT ALL 26 + + 79 FROM tab0
----
105
105
105

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

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT DISTINCT + SUM( + 43 ) FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-251
SELECT DISTINCT + SUM ( + 43 ) FROM tab1
----
129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 * - col0 + + ( + 15 ) col1 FROM tab2
----
1809
2511
2940

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

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

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

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

query I rowsort
SELECT col1 * 84 FROM tab2 AS cor0
----
4284
5628
6468

query I rowsort
SELECT ALL col2 * 37 AS col0 FROM tab2 AS cor0
----
1480
2146
851

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 56 + col2 col0 FROM tab1 AS cor0
----
12
3
40

query I rowsort
SELECT ALL - ( col0 ) + - col1 AS col1 FROM tab0 cor0
----
-108
-96
-98

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

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

query I rowsort
SELECT DISTINCT + - col2 + + ( - 48 ) AS col2 FROM tab2 cor0
----
-106
-71
-88

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

query I rowsort
SELECT DISTINCT - 24 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN ( - 44 * ( - col0 ) + 20 ) AND NULL
----
-24

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 65 * col2 BETWEEN NULL AND + 30 * col0 - + col0
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 col2 FROM tab2 WHERE NULL > ( NULL )
----

query I rowsort
SELECT 56 + 83 AS col1 FROM tab2
----
139
139
139

query I rowsort
SELECT + 51 + + + 76 AS col2 FROM tab2
----
127
127
127

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT 82 + + SUM( ALL - col2 ) FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-271
SELECT 82 + + SUM ( ALL - col2 ) FROM tab2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT 72 + - MAX( - col2 ) FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-272
SELECT 72 + - MAX ( - col2 ) FROM tab2
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-273
SELECT + CAST( + + ( col0 ) AS SIGNED ) + 96 AS col0 FROM tab2 AS cor0
----
142
160
171

skipif mysql # not compatible
query I rowsort label-273
SELECT + CAST ( + + ( col0 ) AS INTEGER ) + 96 AS col0 FROM tab2 AS cor0
----
142
160
171

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT DISTINCT + SUM( ALL - 0 ) + - COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-274
SELECT DISTINCT + SUM ( ALL - 0 ) + - COUNT ( * ) FROM tab2 AS cor0
----
-3

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

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

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE ( 17 ) NOT IN ( col0 )
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - ( col2 ) ) <> ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT ALL + MAX( ALL + + col2 ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-279
SELECT ALL + MAX ( ALL + + col2 ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT DISTINCT SUM( col2 ) col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1 * - col2 + 66 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-280
SELECT DISTINCT SUM ( col2 ) col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1 * - col2 + 66 )
----
NULL

query I rowsort
SELECT DISTINCT + 18 * - 63 FROM tab1
----
-1134

query I rowsort
SELECT DISTINCT ( - + 26 ) - - col2 + 32 FROM tab0
----
105
16
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-283
SELECT ALL CAST( - col2 AS SIGNED ) AS col1 FROM tab2 WHERE NOT 17 * + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-283
SELECT ALL CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 WHERE NOT 17 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT - 14 * + + 57 + - 60 * COUNT( * ) AS col1 FROM tab2 cor0
----
-978

skipif mysql # not compatible
query I rowsort label-284
SELECT - 14 * + + 57 + - 60 * COUNT ( * ) AS col1 FROM tab2 cor0
----
-978

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-285
SELECT ALL + col1 * CAST( 87 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1218
4089
435

skipif mysql # not compatible
query I rowsort label-285
SELECT ALL + col1 * CAST ( 87 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1218
4089
435

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

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

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE - col0 * + - 32 * - col0 NOT IN ( ( col2 ) * + col1 )
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 <= ( - 62 * + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col2 * col2 col1 FROM tab2 AS cor0
----
123200
225388
26979

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-292
SELECT - + COUNT( * ) AS col2, COUNT( * ) DIV - - 15 FROM tab1 cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-292
SELECT - + COUNT ( * ) AS col2, COUNT ( * ) / - - 15 FROM tab1 cor0
----
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT ALL - 45 * + SUM( - col1 ) col2 FROM tab2
----
8775

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-293
SELECT ALL - 45 * + SUM ( - col1 ) col2 FROM tab2
----
8775

onlyif mysql # DIV for integer division: 
query I rowsort label-294
SELECT ALL - 39 DIV - col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL - 39 / - col0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT ALL - + COUNT( * ) FROM tab1 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-295
SELECT ALL - + COUNT ( * ) FROM tab1 WHERE NOT NULL < NULL
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-297
SELECT DISTINCT - 6 DIV + + MAX( ALL 48 ) col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-297
SELECT DISTINCT - 6 / + + MAX ( ALL 48 ) col1 FROM tab0
----
0

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

query I rowsort
SELECT - col0 * - 37 AS col0 FROM tab2
----
1702
2368
2775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-300
SELECT ALL 2 * - CAST( col1 AS SIGNED ) FROM tab1
----
-10
-28
-94

skipif mysql # not compatible
query I rowsort label-300
SELECT ALL 2 * - CAST ( col1 AS INTEGER ) FROM tab1
----
-10
-28
-94

query I rowsort
SELECT + 55 * - + ( - col1 ) FROM tab2
----
2805
3685
4235

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( col1 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-306
SELECT + col2 DIV + 87 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-306
SELECT + col2 / + 87 FROM tab0
----
0
0
1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-307
SELECT + COUNT ( * ) * + 6 col1 FROM tab2
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-308
SELECT DISTINCT col2 DIV - - col1 + - - col2 FROM tab0 AS cor0
----
10
198
47

skipif mysql # not compatible
query I rowsort label-308
SELECT DISTINCT col2 / - - col1 + - - col2 FROM tab0 AS cor0
----
10
198
47

query I rowsort
SELECT col1 * + col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
1215
1827
97

query II rowsort
SELECT ALL - 32 * col1 + - 11 AS col2, 92 + - col1 FROM tab2 cor0
----
-1643
41
-2155
25
-2475
15

query I rowsort
SELECT + col1 * - 57 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-1197
-4617
-57

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

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

query I rowsort
SELECT DISTINCT + 36 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
36

query I rowsort
SELECT + + col0 FROM tab1 WHERE ( - - 68 ) = - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-316
SELECT CAST( NULL AS SIGNED ) * 53 * - MAX( - - col1 ) FROM tab1
----
NULL

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

query III rowsort
SELECT * FROM tab0 WHERE ( NOT + 45 IS NOT NULL )
----

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

query I rowsort
SELECT ALL + col2 + + - 61 * + - col0 - + 24 AS col1 FROM tab1
----
3183
5220
5595

query I rowsort
SELECT + 93 * + col2 + - - ( ( + col0 ) ) + - - col0 FROM tab2 AS cor0
----
2231
3848
5544

onlyif mysql # DIV for integer division: 
query I rowsort label-321
SELECT col1 + - col0 - + col2 * col2 * - col1 * + col1 * + 60 + + col1 DIV col2 FROM tab0 AS cor0
----
2645936
587964
869595007

skipif mysql # not compatible
query I rowsort label-321
SELECT col1 + - col0 - + col2 * col2 * - col1 * + col1 * + 60 + + col1 / col2 FROM tab0 AS cor0
----
2645936
587964
869595007

query I rowsort
SELECT ( - 63 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT ALL - col0 * 57 AS col0 FROM tab0 AS cor0
----
-4959
-5529
-855

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 <= - 64
----
46
51
23

query I rowsort
SELECT col2 * + - col0 AS col0 FROM tab2 cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ALL + 33 * + col1 FROM tab1 AS cor0
----
1551
165
462

query I rowsort
SELECT DISTINCT ( + col0 ) AS col2 FROM tab1 WHERE NULL < ( 89 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-328
SELECT ALL + col1 DIV + - 3 AS col2 FROM tab0
----
-27
-7
0

skipif mysql # not compatible
query I rowsort label-328
SELECT ALL + col1 / + - 3 AS col2 FROM tab0
----
-27
-7
0

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

query I rowsort
SELECT DISTINCT col0 * 56 FROM tab0
----
4872
5432
840

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-333
SELECT + col2 AS col1, - 25 - - col0 * CAST( col0 AS SIGNED ) FROM tab1
----
59
7200
68
8256
96
2576

skipif mysql # not compatible
query II rowsort label-333
SELECT + col2 AS col1, - 25 - - col0 * CAST ( col0 AS INTEGER ) FROM tab1
----
59
7200
68
8256
96
2576

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-335
SELECT ALL - 84 DIV - col0 AS col1 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-335
SELECT ALL - 84 / - col0 AS col1 FROM tab0
----
0
0
5

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-336
SELECT DISTINCT + SUM ( DISTINCT 18 ) col1 FROM tab0 AS cor0
----
18

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 <> col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-338
SELECT - CAST( NULL AS SIGNED ) + - COUNT( DISTINCT - + 78 ) * + 47 * - - 60 AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-338
SELECT - CAST ( NULL AS INTEGER ) + - COUNT ( DISTINCT - + 78 ) * + 47 * - - 60 AS col1 FROM tab0 cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

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

onlyif mysql # DIV for integer division: 
query I rowsort label-342
SELECT ALL + 0 DIV - - 28 * + 64 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL + 0 / - - 28 * + 64 FROM tab1
----
0
0
0

query II rowsort
SELECT ALL col0 * - + col2 AS col0, - 41 AS col2 FROM tab1
----
-4896
-41
-5015
-41
-6188
-41

query I rowsort
SELECT + 5 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT + - 35 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

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

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT DISTINCT + + 56 * + COUNT( * ) * 92 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
46368

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-347
SELECT DISTINCT + + 56 * + COUNT ( * ) * 92 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
46368

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

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

query I rowsort
SELECT DISTINCT - - col1 + - + col2 + - - 95 AS col2 FROM tab2 AS cor0
----
104
123
132

query III rowsort
SELECT * FROM tab0 cor0 WHERE - ( + + 61 ) BETWEEN - 93 AND + + col0 * + col0 + ( + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-351
SELECT ALL + col1 DIV - 48 - + + 65 * - + col1 + col0 FROM tab0
----
1452
162
5279

skipif mysql # not compatible
query I rowsort label-351
SELECT ALL + col1 / - 48 - + + 65 * - + col1 + col0 FROM tab0
----
1452
162
5279

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT DISTINCT - MIN( - - 73 ) AS col2 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-352
SELECT DISTINCT - MIN ( - - 73 ) AS col2 FROM tab1
----
-73

query I rowsort
SELECT - col0 * col0 FROM tab1 WHERE ( + + col0 ) IS NOT NULL
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT + MAX( + ( - 72 ) ) AS col2 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-354
SELECT + MAX ( + ( - 72 ) ) AS col2 FROM tab2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-355
SELECT ( - COUNT( * ) ) * SUM( 80 ) FROM tab0
----
-720

skipif mysql # not compatible
query I rowsort label-355
SELECT ( - COUNT ( * ) ) * SUM ( 80 ) FROM tab0
----
-720

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

query I rowsort
SELECT DISTINCT + 11 * 8 AS col2 FROM tab2 AS cor0 WHERE ( ( + 66 * 53 * + col1 + col2 + 33 * - col1 ) < col0 / col2 + - 99 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT ALL + COUNT( * ) AS col0 FROM tab1 cor0 WHERE 83 = - col2
----
0

skipif mysql # not compatible
query I rowsort label-358
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 cor0 WHERE 83 = - col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-359
SELECT DISTINCT COUNT( * ) AS col0, 33 FROM tab0
----
3
33

skipif mysql # not compatible
query II rowsort label-359
SELECT DISTINCT COUNT ( * ) AS col0, 33 FROM tab0
----
3
33

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

query I rowsort
SELECT ALL - 24 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT - ( - COUNT( * ) ) * - 43 FROM tab0 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-362
SELECT - ( - COUNT ( * ) ) * - 43 FROM tab0 AS cor0
----
-129

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

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT ALL COUNT( * ) * + 62 + + 19 FROM tab2 AS cor0
----
205

skipif mysql # not compatible
query I rowsort label-364
SELECT ALL COUNT ( * ) * + 62 + + 19 FROM tab2 AS cor0
----
205

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-365
SELECT ALL col1 / + CAST( NULL AS SIGNED ) + - 13 - col2 / - col2, + ( - col2 ) col1 FROM tab2 AS cor0 WHERE NOT - 79 IS NULL
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-365
SELECT ALL col1 / + CAST ( NULL AS INTEGER ) + - 13 - col2 / - col2, + ( - col2 ) col1 FROM tab2 AS cor0 WHERE NOT - 79 IS NULL
----
NULL
-23
NULL
-40
NULL
-58

query I rowsort
SELECT DISTINCT + - 37 * + col2 AS col0 FROM tab0 AS cor0
----
-1739
-3663
-370

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-369
SELECT ALL 97 DIV + COUNT( * ) FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-369
SELECT ALL 97 / + COUNT ( * ) FROM tab1
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 72 col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-1008
-3384
-360

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT ALL - MIN( + col0 ) * - - COUNT( * ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL - MIN ( + col0 ) * - - COUNT ( * ) FROM tab1
----
-153

query I rowsort
SELECT DISTINCT + 81 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2, col2 * + col0, col0, 83 )
----

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

query I rowsort
SELECT - col1 * col2 - col1 + 97 * col1 AS col1 FROM tab0 AS cor0
----
-3
1806
3969

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-378
SELECT ALL CAST( NULL AS DECIMAL ) * - - 61 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-378
SELECT ALL CAST ( NULL AS REAL ) * - - 61 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + + col0 + + + 70 * + col2 FROM tab0
----
1570
16533
3995

query I rowsort
SELECT ALL col2 * + + col2 + - - col1 + + col1 FROM tab2 AS cor0
----
1754
3498
631

query I rowsort
SELECT ALL - 60 + - col1 FROM tab0 AS cor0
----
-141
-61
-81

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

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

query I rowsort
SELECT DISTINCT col1 - + col1 * col1 AS col2 FROM tab0 AS cor0
----
-420
-6480
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-384
SELECT ALL + CAST( - + col2 AS SIGNED ) * + col1 + ( + + ( + 64 ) ) AS col2 FROM tab0 AS cor0
----
-146
-35
-3743

skipif mysql # not compatible
query I rowsort label-384
SELECT ALL + CAST ( - + col2 AS INTEGER ) * + col1 + ( + + ( + 64 ) ) AS col2 FROM tab0 AS cor0
----
-146
-35
-3743

query I rowsort
SELECT DISTINCT col1 FROM tab2 cor0 WHERE - 15 * - - col2 BETWEEN + + col0 AND + col2 + + 15
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-386
SELECT - CAST( NULL AS SIGNED ) col1, 13 FROM tab1 AS cor0
----
NULL
13
NULL
13
NULL
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-386
SELECT - CAST ( NULL AS INTEGER ) col1, 13 FROM tab1 AS cor0
----
NULL
13
NULL
13
NULL
13

query II rowsort
SELECT - col2 AS col1, + col1 * 34 FROM tab1 AS cor0
----
-59
170
-68
1598
-96
476

query II rowsort
SELECT 33 AS col2, col2 AS col0 FROM tab0 AS cor0
----
33
10
33
47
33
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT DISTINCT + MAX( - col1 ) - + - COUNT( * ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-390
SELECT DISTINCT + MAX ( - col1 ) - + - COUNT ( * ) FROM tab1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT - COUNT( ALL col2 ) * - 93 FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-391
SELECT - COUNT ( ALL col2 ) * - 93 FROM tab0
----
279

query I rowsort
SELECT - 54 AS col0 FROM tab1 WHERE - col2 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-393
SELECT DISTINCT + COUNT ( * ) + + 53 FROM tab0
----
56

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

query I rowsort
SELECT + col1 + 97 * - + ( - 12 ) FROM tab1 AS cor0
----
1169
1178
1211

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 34 BETWEEN + 51 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT ALL ( + COUNT( * ) ) + + 61 AS col2 FROM tab2 cor0
----
64

skipif mysql # not compatible
query I rowsort label-397
SELECT ALL ( + COUNT ( * ) ) + + 61 AS col2 FROM tab2 cor0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-398
SELECT - col2 + col1 + - + col2 DIV - - 84 AS col1 FROM tab2 AS cor0
----
28
37
9

skipif mysql # not compatible
query I rowsort label-398
SELECT - col2 + col1 + - + col2 / - - 84 AS col1 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT DISTINCT + col0 + + 23 * col2 FROM tab1 AS cor0
----
1442
1655
2259

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-400
SELECT ALL 79 DIV + SUM( - + ( - 84 ) ) AS col1, MAX( + 62 ) AS col1 FROM tab0, tab0 AS cor0
----
0
62

skipif mysql # not compatible
query II rowsort label-400
SELECT ALL 79 / + SUM ( - + ( - 84 ) ) AS col1, MAX ( + 62 ) AS col1 FROM tab0, tab0 AS cor0
----
0
62

query I rowsort
SELECT DISTINCT 33 * - - 24 FROM tab1
----
792

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

query I rowsort
SELECT DISTINCT 88 * + - col0 FROM tab1 cor0
----
-4488
-7480
-8008

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 AS cor0 WHERE + 21 * col0 + 18 NOT BETWEEN - col0 AND + 48
----
15
87
97

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

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

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE col2 > + col1
----

query I rowsort
SELECT ALL + col2 + - 84 AS col1 FROM tab2
----
-26
-44
-61

query I rowsort
SELECT - col1 + 87 * + 33 + - + col0 + + col1 + + 28 AS col1 FROM tab1 AS cor0
----
2808
2814
2848

onlyif mysql # DIV for integer division: 
query I rowsort label-409
SELECT + col0 + col2 + + - col2 DIV col1 FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-409
SELECT + col0 + col2 + + - col2 / col1 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT - 48 + 28 FROM tab2 AS cor0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT MIN( + + col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-411
SELECT MIN ( + + col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - col1
----
NULL

query I rowsort
SELECT + col1 * + 79 FROM tab2
----
4029
5293
6083

query II rowsort
SELECT + col0 - - col0 AS col0, ( + - col2 ) * 78 FROM tab2 AS cor0
----
128
-3120
150
-4524
92
-1794

query I rowsort
SELECT ALL - ( + 77 ) * col2 FROM tab0 AS cor0
----
-3619
-7623
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT ALL + + COUNT( * ) + + + 72 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-415
SELECT ALL + + COUNT ( * ) + + + 72 FROM tab2 AS cor0
----
75

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

query II rowsort
SELECT DISTINCT - col1 + + 91, + col2 * + col0 AS col2 FROM tab0 AS cor0
----
10
705
70
870
90
9603

query I rowsort
SELECT ALL 99 + + ( - col0 ) + 37 + - + col0 AS col1 FROM tab2 AS cor0
----
-14
44
8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - col1 * - col2 / col1 - - 49
----

query I rowsort
SELECT ALL - 50 - + + col2 + + - ( - col2 ) * col1 + - col1 FROM tab2
----
1049
2913
3711

query I rowsort
SELECT - ( - col1 ) + - 53 AS col0 FROM tab1
----
-39
-48
-6

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 <> + + 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT ALL - COUNT( * ) * - - 42 AS col0 FROM tab1
----
-126

skipif mysql # not compatible
query I rowsort label-423
SELECT ALL - COUNT ( * ) * - - 42 AS col0 FROM tab1
----
-126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-424
SELECT - 65 DIV COUNT( * ) FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-424
SELECT - 65 / COUNT ( * ) FROM tab1
----
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 * - col1 col1 FROM tab2
----
119646
336675
379456

query I rowsort
SELECT - 96 * - col1 * - col0 FROM tab2
----
-225216
-473088
-482400

query I rowsort
SELECT + 51 FROM tab1 WHERE NULL > ( 31 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT + 63 * - COUNT( * ) AS col0 FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-429
SELECT + 63 * - COUNT ( * ) AS col0 FROM tab2
----
-189

query I rowsort
SELECT DISTINCT + 45 * - col2 AS col1 FROM tab0
----
-2115
-4455
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT ALL - MAX( ALL 17 ) FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-431
SELECT ALL - MAX ( ALL 17 ) FROM tab0
----
-17

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

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

query I rowsort
SELECT + 85 * + col0 FROM tab0 AS cor0
----
1275
7395
8245

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-439
SELECT 78 DIV + - MIN( + 28 ) AS col1 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-439
SELECT 78 / + - MIN ( + 28 ) AS col1 FROM tab0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT ( SUM( col1 ) ) col2 FROM tab2
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-440
SELECT ( SUM ( col1 ) ) col2 FROM tab2
----
195

query I rowsort
SELECT - 26 * - 36 - col0 AS col2 FROM tab2 AS cor0
----
861
872
890

onlyif mysql # DIV for integer division: 
query II rowsort label-442
SELECT - col1, + col0 DIV - 36 + + col0 AS col2 FROM tab0 AS cor0
----
-1
95
-21
85
-81
15

skipif mysql # not compatible
query II rowsort label-442
SELECT - col1, + col0 / - 36 + + col0 AS col2 FROM tab0 AS cor0
----
-1
95
-21
85
-81
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT ALL - MAX( DISTINCT - col0 ) + 99 FROM tab0 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-444
SELECT ALL - MAX ( DISTINCT - col0 ) + 99 FROM tab0 AS cor0
----
114

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

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

query I rowsort
SELECT DISTINCT 71 + + col2 FROM tab0 cor0
----
118
170
81

query II rowsort
SELECT - 85, + 50 + + + col1 AS col1 FROM tab0 AS cor0
----
-85
131
-85
51
-85
71

query I rowsort
SELECT DISTINCT - + col2 - - ( + 73 ) AS col0 FROM tab1 AS cor0
----
-23
14
5

query III rowsort
SELECT + - col2 AS col2, col2, + col1 + + 72 FROM tab1 AS cor0
----
9 values hashing to bfcac640da98c4ecc70cdcbb14a77bde

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

query I rowsort
SELECT - 55 - - - 49 AS col1 FROM tab0 AS cor0
----
-104
-104
-104

onlyif mysql # DIV for integer division: 
query I rowsort label-452
SELECT - col2 DIV col0 - + 27 * - - 72 - col2 AS col1 FROM tab1 cor0
----
-2003
-2012
-2041

skipif mysql # not compatible
query I rowsort label-452
SELECT - col2 / col0 - + 27 * - - 72 - col2 AS col1 FROM tab1 cor0
----
-2003
-2012
-2041

query I rowsort
SELECT - ( col0 ) * 28 + + - col0 - - 30 FROM tab2 cor0
----
-1304
-1826
-2145

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-454
SELECT - CAST( NULL AS SIGNED ) col0, 88 FROM tab2 WHERE + + col0 <> col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-454
SELECT - CAST ( NULL AS INTEGER ) col0, 88 FROM tab2 WHERE + + col0 <> col0
----

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

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

query I rowsort
SELECT DISTINCT + 47 * + col2 - + col2 FROM tab2
----
1058
1840
2668

onlyif mysql # DIV for integer division: 
query I rowsort label-457
SELECT ALL - col1 DIV + - 3 FROM tab1
----
1
15
4

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL - col1 / + - 3 FROM tab1
----
1
15
4

onlyif mysql # aggregate syntax: 
query I rowsort label-458
SELECT ALL + COUNT( * ) * 72 AS col2 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-458
SELECT ALL + COUNT ( * ) * 72 AS col2 FROM tab1
----
216

query I rowsort
SELECT 48 * + - col0 * 1 FROM tab0
----
-4176
-4656
-720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-460
SELECT col0 * + CAST( - 19 AS SIGNED ) AS col0 FROM tab0
----
-1653
-1843
-285

skipif mysql # not compatible
query I rowsort label-460
SELECT col0 * + CAST ( - 19 AS INTEGER ) AS col0 FROM tab0
----
-1653
-1843
-285

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + - 63 col0 FROM tab2 AS cor0
----
-3213
-4221
-4851

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 IN ( - col1, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-464
SELECT - 25 DIV - 36 - + col2 + - - col1 * + + col2 AS col2 FROM tab1 AS cor0
----
1248
236
3128

skipif mysql # not compatible
query I rowsort label-464
SELECT - 25 / - 36 - + col2 + - - col1 * + + col2 AS col2 FROM tab1 AS cor0
----
1248
236
3128

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT ALL + COUNT( DISTINCT - 30 ) * + 93 AS col2 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-465
SELECT ALL + COUNT ( DISTINCT - 30 ) * + 93 AS col2 FROM tab2 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT DISTINCT + COUNT( * ) * + - 81 AS col1 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-466
SELECT DISTINCT + COUNT ( * ) * + - 81 AS col1 FROM tab0
----
-243

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

query I rowsort
SELECT + col1 * + col1 + - 2 AS col2 FROM tab1 AS cor0
----
194
2207
23

onlyif mysql # aggregate syntax: 
query II rowsort label-469
SELECT 43, + MIN( - 60 ) AS col1 FROM tab2 AS cor0
----
43
-60

skipif mysql # not compatible
query II rowsort label-469
SELECT 43, + MIN ( - 60 ) AS col1 FROM tab2 AS cor0
----
43
-60

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 * 10 - ( - 42 ) - + col2 NOT IN ( - col1 + - ( col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-472
SELECT ALL 76 col1, CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
76
NULL
76
NULL
76
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-472
SELECT ALL 76 col1, CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
76
NULL
76
NULL
76
NULL

query I rowsort
SELECT DISTINCT - 40 * + col1 + - col1 - - 24 + 39 * - col2 FROM tab2 WHERE NOT - col1 * col0 - + col0 IS NULL
----
-2964
-4693
-4985

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT DISTINCT - SUM( ALL + ( - 11 ) ) AS col0 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-474
SELECT DISTINCT - SUM ( ALL + ( - 11 ) ) AS col0 FROM tab1
----
33

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

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

query I rowsort
SELECT - - 87 + - 13 AS col1 FROM tab0 AS cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT - 97 * - COUNT( * ) * - 87 AS col2 FROM tab1 AS cor0
----
-25317

skipif mysql # not compatible
query I rowsort label-477
SELECT - 97 * - COUNT ( * ) * - 87 AS col2 FROM tab1 AS cor0
----
-25317

query I rowsort
SELECT DISTINCT ( + - 10 ) * + 35 + - + 56 AS col0 FROM tab2 cor0
----
-406

query I rowsort
SELECT - + 11 FROM tab1 WHERE + 25 <> col1
----
-11
-11
-11

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

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

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

query I rowsort
SELECT 92 + + + col1 FROM tab2
----
143
159
169

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

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

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

query II rowsort
SELECT col0, + col2 * 37 AS col2 FROM tab2
----
46
851
64
1480
75
2146

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query III rowsort label-486
SELECT CAST( NULL AS DECIMAL ) AS col2, + col0 * + col0 + 43 col2, - + 78 * - - col1 - + + 3 DIV 98 * col2 AS col1 FROM tab2
----
9 values hashing to 6779ca1336b2a4fbb56b94081d5dd6d8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-486
SELECT CAST ( NULL AS REAL ) AS col2, + col0 * + col0 + 43 col2, - + 78 * - - col1 - + + 3 / 98 * col2 AS col1 FROM tab2
----
9 values hashing to 6779ca1336b2a4fbb56b94081d5dd6d8

query I rowsort
SELECT 28 * + - 60 * - + 38 FROM tab1
----
63840
63840
63840

query I rowsort
SELECT + 71 + - 54 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
17
17
17

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

skipif mysql # not compatible
query I rowsort label-489
SELECT DISTINCT SUM ( DISTINCT 13 ) AS col0 FROM tab2
----
13

onlyif mysql # DIV for integer division: 
query II rowsort label-490
SELECT DISTINCT + col2 DIV col2 AS col0, 69 FROM tab2
----
1
69

skipif mysql # not compatible
query II rowsort label-490
SELECT DISTINCT + col2 / col2 AS col0, 69 FROM tab2
----
1
69

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 76 * + col0 col2, - col1 + col0 AS col0 FROM tab2
----
3496
-5
4864
-13
5700
8

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

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

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

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

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

query II rowsort
SELECT DISTINCT + col1 * - col0, + col0 FROM tab2 cor0
----
-2346
46
-4928
64
-5025
75

query I rowsort
SELECT 33 + - col2 * + + 98 FROM tab2 AS cor0
----
-2221
-3887
-5651

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

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

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + + col1 AND + col2 / 37 * - 33 * col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT ALL - ( - COUNT( * ) ) + 46 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-502
SELECT ALL - ( - COUNT ( * ) ) + 46 FROM tab1
----
49

query II rowsort
SELECT + 8 AS col1, + 80 AS col1 FROM tab2
----
8
80
8
80
8
80

query I rowsort
SELECT ALL + 63 + - 90 FROM tab2
----
-27
-27
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + - - 30 col0 FROM tab0 AS cor0
----
-17
-69
20

query II rowsort
SELECT + ( - + col0 ) + + col0 AS col0, 58 FROM tab0 AS cor0
----
0
58
0
58
0
58

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT - - MAX( + col2 ) + - 83 AS col1 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-507
SELECT - - MAX ( + col2 ) + - 83 AS col1 FROM tab2 AS cor0
----
-25

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

query I rowsort
SELECT DISTINCT + + 26 + - + 78 + + col1 AS col2 FROM tab0 AS cor0
----
-31
-51
29

query I rowsort
SELECT DISTINCT + + col1 FROM tab0 AS cor0 WHERE NOT col1 + - 35 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 75 col1, - 33 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-512
SELECT + COUNT ( + + 61 ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-513
SELECT DISTINCT + col2 * CAST( - 28 AS SIGNED ) FROM tab0 AS cor0
----
-1316
-2772
-280

skipif mysql # not compatible
query I rowsort label-513
SELECT DISTINCT + col2 * CAST ( - 28 AS INTEGER ) FROM tab0 AS cor0
----
-1316
-2772
-280

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

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT - MIN( ALL - - 23 ) FROM tab1, tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-515
SELECT - MIN ( ALL - - 23 ) FROM tab1, tab2 AS cor0
----
-23

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-517
SELECT + CAST( 39 AS SIGNED ) col1 FROM tab1
----
39
39
39

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

query I rowsort
SELECT + 78 * - col2 * - col2 FROM tab2 cor0
----
124800
262392
41262

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT + MAX( DISTINCT - col2 ) + ( - MIN( + - col0 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-519
SELECT + MAX ( DISTINCT - col2 ) + ( - MIN ( + - col0 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 = NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-520
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE - CAST( 55 AS SIGNED ) + CAST( - col2 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-520
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE - CAST ( 55 AS INTEGER ) + CAST ( - col2 AS INTEGER ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-521
SELECT DISTINCT - col2 + + CAST( + + col2 AS SIGNED ) * + + col0 FROM tab2 AS cor0
----
1035
2520
4292

skipif mysql # not compatible
query I rowsort label-521
SELECT DISTINCT - col2 + + CAST ( + + col2 AS INTEGER ) * + + col0 FROM tab2 AS cor0
----
1035
2520
4292

query I rowsort
SELECT DISTINCT - - 90 * col1 * ( + 13 ) FROM tab1 AS cor0
----
16380
54990
5850

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-524
SELECT ALL + CAST( + col0 AS SIGNED ) * + 95 + 98 * - col0 AS col0 FROM tab0 cor0
----
-261
-291
-45

skipif mysql # not compatible
query I rowsort label-524
SELECT ALL + CAST ( + col0 AS INTEGER ) * + 95 + 98 * - col0 AS col0 FROM tab0 cor0
----
-261
-291
-45

query I rowsort
SELECT + col1 * + col2 * col1 FROM tab1 cor0
----
1475
150212
18816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-526
SELECT DISTINCT SUM( - - 75 ) DIV - - ( - MAX( + - col1 ) ) FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-526
SELECT DISTINCT SUM ( - - 75 ) / - - ( - MAX ( + - col1 ) ) FROM tab0 AS cor0
----
225

query II rowsort
SELECT ALL 18 + + col1, col2 * - col0 AS col0 FROM tab0 AS cor0
----
19
-9603
39
-870
99
-705

query I rowsort
SELECT col0 / - ( + col0 ) + - - col2 * - - 36 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IN ( + 76 + + + col1 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-530
SELECT col2 + - 7 * + 59 + ( - 71 ) * + + 52 - + col2 - - col0 + + col1 DIV - col2 FROM tab2
----
-4031
-4042
-4061

skipif mysql # not compatible
query I rowsort label-530
SELECT col2 + - 7 * + 59 + ( - 71 ) * + + 52 - + col2 - - col0 + + col1 / - col2 FROM tab2
----
-4031
-4042
-4061

query I rowsort
SELECT col1 * + 16 + - - 69 + + 62 FROM tab0
----
1427
147
467

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

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

query I rowsort
SELECT - + col2 / - 46 FROM tab2 AS cor0 WHERE NULL BETWEEN col0 * + 87 + - 22 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + col1 + + + 66 * col2 + + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 83 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col0 * + ( - col0 ) col1 FROM tab1 AS cor0
----
-2505
-7166
-8213

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 59 <= NULL
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-540
SELECT 51 DIV 46 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-540
SELECT 51 / 46 FROM tab1
----
1
1
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT DISTINCT + - MAX( ALL - 55 ) FROM tab0 cor0
----
55

skipif mysql # not compatible
query I rowsort label-543
SELECT DISTINCT + - MAX ( ALL - 55 ) FROM tab0 cor0
----
55

query II rowsort
SELECT ALL + col2, - 15 + - col2 AS col0 FROM tab1 AS cor0
----
59
-74
68
-83
96
-111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 55 AS col1, col1 col1 FROM tab1 cor0
----
55
14
55
47
55
5

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

query I rowsort
SELECT + ( 35 ) AS col2 FROM tab2 AS cor0
----
35
35
35

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

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

query I rowsort
SELECT ALL + - col2 FROM tab2 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-550
SELECT + 26 + - + COUNT( * ) * + + 94 DIV - 74 AS col1 FROM tab2 WHERE NOT - col0 DIV CAST( 54 AS SIGNED ) * - 87 + - col0 < + + CAST( NULL AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-550
SELECT + 26 + - + COUNT ( * ) * + + 94 / - 74 AS col1 FROM tab2 WHERE NOT - col0 / CAST ( 54 AS INTEGER ) * - 87 + - col0 < + + CAST ( NULL AS INTEGER )
----
26

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 58 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-58

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

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

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

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

query I rowsort
SELECT DISTINCT - 86 + + col0 FROM tab0 AS cor0
----
-71
1
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-558
SELECT DISTINCT - col2 col0, CAST( 78 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT 27 IS NULL
----
-23
78
-40
78
-58
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-558
SELECT DISTINCT - col2 col0, CAST ( 78 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 27 IS NULL
----
-23
78
-40
78
-58
78

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT - + 16 * 91 * - COUNT( + col1 ) FROM tab2 AS cor0
----
4368

skipif mysql # not compatible
query I rowsort label-559
SELECT - + 16 * 91 * - COUNT ( + col1 ) FROM tab2 AS cor0
----
4368

query I rowsort
SELECT - 77 * - - 97 * - + col0 AS col1 FROM tab1 AS cor0
----
380919
634865
679679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + - col2 + col0 - + 27 + col2 col2 FROM tab1 AS cor0
----
-4776
-4898
-6056

query I rowsort
SELECT + ( - ( - - col2 ) ) FROM tab2 AS cor0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - - 1 col2 FROM tab1 cor0
----
59
68
96

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

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

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

skipif mysql # not compatible
query I rowsort label-565
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - col2 + - 37 * 17 AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 34 col0, col0 FROM tab1
----
34
51
34
85
34
91

query I rowsort
SELECT + 42 + + col0 AS col0 FROM tab0 AS cor0
----
129
139
57

query I rowsort
SELECT - 47 + - - col1 AS col1 FROM tab0 AS cor0
----
-26
-46
34

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-570
SELECT - 89 DIV + 67 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-570
SELECT - 89 / + 67 AS col0 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT DISTINCT + MIN( DISTINCT + col0 ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-571
SELECT DISTINCT + MIN ( DISTINCT + col0 ) FROM tab2 cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + 97 col1 FROM tab0 cor0
----
4559
9603
970

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - ( + + col1 ) col1, + 96 - + 66 AS col2 FROM tab1 cor0
----
14
30
47
30
5
30

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT DISTINCT - MIN( ALL + 85 ) FROM tab0 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-576
SELECT DISTINCT - MIN ( ALL + 85 ) FROM tab0 AS cor0
----
-85

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE + col1 + + col0 BETWEEN - - 88 * + + col2 AND NULL
----

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

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

query I rowsort
SELECT + 69 * + col2 AS col2 FROM tab2
----
1587
2760
4002

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT + MAX( col1 ) * + - COUNT( * ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-581
SELECT + MAX ( col1 ) * + - COUNT ( * ) FROM tab2
----
-231

query I rowsort
SELECT DISTINCT col1 * + 26 AS col2 FROM tab1
----
1222
130
364

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 42 NOT IN ( 14 + + - col0 + - 5, + col2, col2 * + col1 * col1 )
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-586
SELECT col0 DIV - 80 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-586
SELECT col0 / - 80 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT + 60 * + 47 * + + col1 AS col1 FROM tab1
----
132540
14100
39480

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT - MIN( ALL - 15 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
15

skipif mysql # not compatible
query I rowsort label-588
SELECT - MIN ( ALL - 15 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
15

query I rowsort
SELECT + ( + col1 ) * - 38 FROM tab2
----
-1938
-2546
-2926

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT DISTINCT + MAX( ALL - col0 ) + + + ( - 71 ) AS col0 FROM tab1 AS cor0
----
-122

skipif mysql # not compatible
query I rowsort label-590
SELECT DISTINCT + MAX ( ALL - col0 ) + + + ( - 71 ) AS col0 FROM tab1 AS cor0
----
-122

query I rowsort
SELECT - + 58 * - 29 - - - 36 FROM tab1 AS cor0
----
1646
1646
1646

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-593
SELECT ALL - col2 + + CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-98
11
34

skipif mysql # not compatible
query I rowsort label-593
SELECT ALL - col2 + + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT - 62 + - - COUNT( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE + col0 <= 39
----
-61

skipif mysql # not compatible
query I rowsort label-594
SELECT - 62 + - - COUNT ( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE + col0 <= 39
----
-61

query III rowsort
SELECT ALL * FROM tab1 WHERE 58 / - 30 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-596
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 75 - + + col1 FROM tab1
----
-122
-80
-89

query I rowsort
SELECT DISTINCT 80 * 19 AS col0 FROM tab2
----
1520

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

onlyif mysql # DIV for integer division: 
query I rowsort label-600
SELECT DISTINCT + col1 DIV + - col1 AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-600
SELECT DISTINCT + col1 / + - col1 AS col0 FROM tab1
----
-1

query II rowsort
SELECT DISTINCT ( - col0 ) + col0 AS col1, col0 + col2 + col0 * + col1 AS col1 FROM tab0
----
0
1277
0
1924
0
293

query I rowsort
SELECT DISTINCT col2 * + 90 AS col0 FROM tab0
----
4230
8910
900

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-603
SELECT DISTINCT CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) + col2 AS col0, - col1 * - + 35 FROM tab2 AS cor0
----
NULL
1785
NULL
2345
NULL
2695

skipif mysql # not compatible
query II rowsort label-603
SELECT DISTINCT CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) + col2 AS col0, - col1 * - + 35 FROM tab2 AS cor0
----
NULL
1785
NULL
2345
NULL
2695

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, 55 col2 FROM tab2
----
51
55
67
55
77
55

onlyif mysql # DIV for integer division: 
query I rowsort label-605
SELECT DISTINCT - ( + + 96 ) DIV 18 AS col1 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-605
SELECT DISTINCT - ( + + 96 ) / 18 AS col1 FROM tab2
----
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-606
SELECT ALL - ( + + col0 ), - 10 - - col1 - + + ( + col1 ) DIV - - col2 AS col1 FROM tab2 AS cor0
----
-46
39
-64
66
-75
56

skipif mysql # not compatible
query II rowsort label-606
SELECT ALL - ( + + col0 ), - 10 - - col1 - + + ( + col1 ) / - - col2 AS col1 FROM tab2 AS cor0
----
-46
39
-64
66
-75
56

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 >= + 94 * 75
----
-3

skipif mysql # not compatible
query I rowsort label-609
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 >= + 94 * 75
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-610
SELECT DISTINCT col2 DIV + + col1 * + 14 col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-610
SELECT DISTINCT col2 / + + col1 * + 14 col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( + ( 73 ) ) col1 FROM tab0 AS cor0
----
3431
7227
730

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-614
SELECT DISTINCT + COUNT( * ) DIV + - 60, 90 AS col2 FROM tab0
----
0
90

skipif mysql # not compatible
query II rowsort label-614
SELECT DISTINCT + COUNT ( * ) / + - 60, 90 AS col2 FROM tab0
----
0
90

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

query I rowsort
SELECT + col1 + + col0 * col0 + + - col2 * - 43 AS col2 FROM tab0
----
13667
2327
8020

query I rowsort
SELECT ALL 37 * + col0 FROM tab1
----
1887
3145
3367

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT DISTINCT - + MIN( - col2 ) * COUNT( * ) + - COUNT( * ) FROM tab2 cor0
----
171

skipif mysql # not compatible
query I rowsort label-618
SELECT DISTINCT - + MIN ( - col2 ) * COUNT ( * ) + - COUNT ( * ) FROM tab2 cor0
----
171

query I rowsort
SELECT ALL 82 / + col1 AS col1 FROM tab2 AS cor0 WHERE + col2 <= - 11
----

query I rowsort
SELECT ALL + + col1 + + col2 + + + 91 - + col0 FROM tab2 AS cor0
----
119
141
144

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 25 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 17 >= 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT ALL - COUNT( * ) + + COUNT( * ) col1 FROM tab2 cor0
----
0

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

query I rowsort
SELECT DISTINCT + + 25 + 81 AS col2 FROM tab1 AS cor0
----
106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + - + ( 55 ) col1, + 18 col2 FROM tab0 AS cor0
----
-45
18
-8
18
44
18

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

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

query I rowsort
SELECT 42 - - col2 AS col0 FROM tab1
----
101
110
138

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

query II rowsort
SELECT ALL 62 * 16 AS col0, col2 FROM tab1
----
992
59
992
68
992
96

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

query I rowsort
SELECT 11 - - + col1 FROM tab2
----
62
78
88

query I rowsort
SELECT ALL + 82 * col2 FROM tab0
----
3854
8118
820

query III rowsort
SELECT * FROM tab0 WHERE - - col0 BETWEEN - 63 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-634
SELECT 90 DIV - col2 AS col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-634
SELECT 90 / - col2 AS col0 FROM tab1
----
-1
-1
0

query I rowsort
SELECT + 87 * - + 55 FROM tab0 AS cor0
----
-4785
-4785
-4785

query I rowsort
SELECT DISTINCT ( + 48 ) * + + col0 AS col0 FROM tab1 AS cor0
----
2448
4080
4368

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

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

query I rowsort
SELECT ALL - 45 FROM tab2 WHERE ( + col0 + 12 < - col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-639
SELECT ALL - COUNT( * ) * + - ( + 22 ) DIV + - 83 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-639
SELECT ALL - COUNT ( * ) * + - ( + 22 ) / + - 83 FROM tab0
----
0

query I rowsort
SELECT 79 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-641
SELECT * FROM tab0 AS cor0 JOIN tab0 AS cor1 ON NOT - + CAST( + + 45 AS SIGNED ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

skipif mysql # not compatible
query IIIIII rowsort label-641
SELECT * FROM tab0 AS cor0 JOIN tab0 AS cor1 ON NOT - + CAST ( + + 45 AS INTEGER ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

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

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

query I rowsort
SELECT 81 * col0 - + - col1 + - 50 FROM tab1 AS cor0
----
4095
6840
7368

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-645
SELECT DISTINCT + + 95 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-645
SELECT DISTINCT + + 95 / + col2 AS col2 FROM tab1 AS cor0
----
0
1

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

query II rowsort
SELECT DISTINCT col0 AS col0, ( + 25 ) FROM tab1
----
51
25
85
25
91
25

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

query I rowsort
SELECT ALL + 70 * + col0 AS col0 FROM tab2 WHERE NULL IN ( + ( 79 ) )
----

query I rowsort
SELECT col0 + + - col2 + + 3 AS col2 FROM tab1
----
-42
26
29

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

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

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

query I rowsort
SELECT - col0 + + + 20 FROM tab0
----
-67
-77
5

onlyif mysql # aggregate syntax: 
query II rowsort label-654
SELECT DISTINCT - - COUNT( * ) col1, 32 FROM tab1 cor0
----
3
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-654
SELECT DISTINCT - - COUNT ( * ) col1, 32 FROM tab1 cor0
----
3
32

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

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

query I rowsort
SELECT ALL + col1 + + 48 * + ( - 2 ) FROM tab2 AS cor0
----
-19
-29
-45

query I rowsort
SELECT DISTINCT 10 - col0 AS col0 FROM tab2 cor0
----
-36
-54
-65

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + - 58 * - - col1 - 55
----

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

query I rowsort
SELECT + col0 - 13 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
38
72
78

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-666
SELECT DISTINCT - CAST( NULL AS SIGNED ), 88 AS col1 FROM tab1
----
NULL
88

skipif mysql # not compatible
query II rowsort label-666
SELECT DISTINCT - CAST ( NULL AS INTEGER ), 88 AS col1 FROM tab1
----
NULL
88

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT COUNT( * ) * + 13 * COUNT( DISTINCT + col0 ) FROM tab0
----
117

skipif mysql # not compatible
query I rowsort label-667
SELECT COUNT ( * ) * + 13 * COUNT ( DISTINCT + col0 ) FROM tab0
----
117

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-669
SELECT + 52 DIV - - COUNT( * ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-669
SELECT + 52 / - - COUNT ( * ) FROM tab1
----
17

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 41 AS col2, - col0 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) < - - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 40 + 30 > 59
----

query I rowsort
SELECT 66 + - col2 AS col2 FROM tab0 WHERE 22 * + 40 < - col2
----

query I rowsort
SELECT - col1 + 0 AS col1 FROM tab2 WHERE 75 + col1 NOT BETWEEN NULL AND col2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-675
SELECT ALL - CAST( 98 AS SIGNED ) FROM tab0
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL - CAST ( 98 AS INTEGER ) FROM tab0
----
-98
-98
-98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-676
SELECT * FROM tab0 WHERE NOT CAST( + ( - col2 ) AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-676
SELECT * FROM tab0 WHERE NOT CAST ( + ( - col2 ) AS INTEGER ) = NULL
----

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

query I rowsort
SELECT + 12 + col2 FROM tab1
----
108
71
80

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 + col1 BETWEEN col2 AND col2 * + col1
----

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

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

query I rowsort
SELECT 35 * + 1 + - col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-12
-64
25

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT COUNT( * ) * 80 AS col2 FROM tab2
----
240

skipif mysql # not compatible
query I rowsort label-682
SELECT COUNT ( * ) * 80 AS col2 FROM tab2
----
240

query I rowsort
SELECT 37 * - col2 FROM tab0
----
-1739
-3663
-370

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-686
SELECT ALL CAST( - 56 AS SIGNED ) * COUNT( * ) AS col1 FROM tab2
----
-168

skipif mysql # not compatible
query I rowsort label-686
SELECT ALL CAST ( - 56 AS INTEGER ) * COUNT ( * ) AS col1 FROM tab2
----
-168

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-688
SELECT DISTINCT * FROM tab0 WHERE col2 NOT IN ( + CAST( 60 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-688
SELECT DISTINCT * FROM tab0 WHERE col2 NOT IN ( + CAST ( 60 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 55 * 10 FROM tab0 WHERE NOT 87 IS NULL
----
-550
-550
-550

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT - MAX( + col0 ) * COUNT( * ) - - COUNT( * ) AS col2 FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-690
SELECT - MAX ( + col0 ) * COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab1
----
-270

query I rowsort
SELECT DISTINCT + 38 + - col0 FROM tab2
----
-26
-37
-8

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 84 col2 FROM tab1
----
143
152
180

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

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

query I rowsort
SELECT DISTINCT 64 * - 18 AS col1 FROM tab2
----
-1152

query I rowsort
SELECT 84 - col2 FROM tab2
----
26
44
61

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT ALL COUNT( 47 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-698
SELECT ALL COUNT ( 47 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT MIN( ALL + ( + col0 ) ) * 43 - COUNT( * ) FROM tab0
----
642

skipif mysql # not compatible
query I rowsort label-699
SELECT MIN ( ALL + ( + col0 ) ) * 43 - COUNT ( * ) FROM tab0
----
642

query I rowsort
SELECT DISTINCT 11 + col1 * col1 FROM tab0 cor0
----
12
452
6572

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

query I rowsort
SELECT 99 + - col1 AS col1 FROM tab2 AS cor0
----
22
32
48

query I rowsort
SELECT - col0 + + col2 * - 26 FROM tab0 AS cor0
----
-1237
-2671
-347

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT DISTINCT - COUNT( - 25 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-704
SELECT DISTINCT - COUNT ( - 25 ) FROM tab1
----
-3

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + - 28 IS NULL
----

query I rowsort
SELECT DISTINCT + 22 + col2 * + col1 AS col2 FROM tab2 AS cor0
----
1195
3102
3908

query I rowsort
SELECT 42 AS col1 FROM tab0 AS cor0 WHERE - 87 / col0 NOT IN ( col1 + + 59 )
----
42
42
42

query I rowsort
SELECT + col2 * - col2 - col0 * - col1 FROM tab0 cor0
----
-9704
-994
1727

query I rowsort
SELECT 41 * - col2 - - col1 AS col1 FROM tab2 AS cor0 WHERE 96 / - col0 IS NULL
----

query I rowsort
SELECT + col0 - 98 AS col0 FROM tab0 AS cor0
----
-1
-11
-83

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

query I rowsort
SELECT ALL col2 - - col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1150
-3040
-3828

query I rowsort
SELECT - col1 - col2 * + 35 FROM tab1 AS cor0
----
-2070
-2427
-3374

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT + 13 + COUNT( * ) * + 78 AS col2 FROM tab2 WHERE NOT - 3 IS NULL
----
247

skipif mysql # not compatible
query I rowsort label-717
SELECT + 13 + COUNT ( * ) * + 78 AS col2 FROM tab2 WHERE NOT - 3 IS NULL
----
247

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 38 + 3 ) < + 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT DISTINCT + COUNT( DISTINCT - 93 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-719
SELECT DISTINCT + COUNT ( DISTINCT - 93 ) AS col2 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-720
SELECT col0 + - CAST( 12 AS SIGNED ) FROM tab2 WHERE NOT ( NULL ) > 77
----

skipif mysql # not compatible
query I rowsort label-720
SELECT col0 + - CAST ( 12 AS INTEGER ) FROM tab2 WHERE NOT ( NULL ) > 77
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * 68 col2 FROM tab2 AS cor0
----
-1564
-2720
-3944

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-722
SELECT DISTINCT - SUM( ALL 16 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - CAST( - col0 AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-722
SELECT DISTINCT - SUM ( ALL 16 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - CAST ( - col0 AS REAL ) )
----
NULL

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

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

query I rowsort
SELECT - 84 AS col0 FROM tab0 WHERE NOT + col0 < + 12
----
-84
-84
-84

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE ( NOT ( NULL ) NOT IN ( 34 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-727
SELECT ALL 21 DIV col1 + - col1 FROM tab1 AS cor0
----
-1
-13
-47

skipif mysql # not compatible
query I rowsort label-727
SELECT ALL 21 / col1 + - col1 FROM tab1 AS cor0
----
-1
-13
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-728
SELECT col0, col1 DIV + 30 col2 FROM tab2 AS cor0
----
46
1
64
2
75
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-728
SELECT col0, col1 / + 30 col2 FROM tab2 AS cor0
----
46
1
64
2
75
2

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL < ( col2 + - col2 ) OR NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 22 * 94 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-731
SELECT ALL - col2 + col1 + + 51 DIV col1 FROM tab0 AS cor0
----
-47
13
34

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL - col2 + col1 + + 51 / col1 FROM tab0 AS cor0
----
-47
13
34

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT ALL 56 * - COUNT( * ) FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND - col2 / ( 23 )
----
0

skipif mysql # not compatible
query I rowsort label-732
SELECT ALL 56 * - COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND - col2 / ( 23 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT - COUNT( + col1 ) col2 FROM tab0 AS cor0 WHERE ( col1 ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-734
SELECT - COUNT ( + col1 ) col2 FROM tab0 AS cor0 WHERE ( col1 ) IS NULL
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT ALL SUM( col1 ) + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - 97 ) IN ( col1 * + ( 40 * + 88 ) )
----
63

skipif mysql # not compatible
query I rowsort label-737
SELECT ALL SUM ( col1 ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - 97 ) IN ( col1 * + ( 40 * + 88 ) )
----
63

query II rowsort
SELECT col2 AS col2, 92 AS col1 FROM tab0 AS cor0
----
10
92
47
92
99
92

onlyif mysql # DIV for integer division: 
query II rowsort label-739
SELECT DISTINCT + + col2, - ( - + col0 ) DIV ( 36 + 52 ) FROM tab1 AS cor0
----
59
0
68
1
96
0

skipif mysql # not compatible
query II rowsort label-739
SELECT DISTINCT + + col2, - ( - + col0 ) / ( 36 + 52 ) FROM tab1 AS cor0
----
59
0
68
1
96
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-741
SELECT + 92 DIV - col1 + + col0 * ( 20 ) * - col2 FROM tab0
----
-14101
-17404
-192152

skipif mysql # not compatible
query I rowsort label-741
SELECT + 92 / - col1 + + col0 * ( 20 ) * - col2 FROM tab0
----
-14101
-17404
-192152

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-743
SELECT - col1 DIV - col0 + - ( + - col0 ) * col2 AS col2 FROM tab0
----
710
870
9603

skipif mysql # not compatible
query I rowsort label-743
SELECT - col1 / - col0 + - ( + - col0 ) * col2 AS col2 FROM tab0
----
710
870
9603

query III rowsort
SELECT * FROM tab2 WHERE ( 22 ) NOT IN ( - 58 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 22 + + 92 AS col0, 25 * col2 AS col1 FROM tab2
----
70
1000
70
1450
70
575

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT DISTINCT - COUNT( * ) * 32 FROM tab0 WHERE NOT + + 44 * + 90 NOT IN ( 27 )
----
0

skipif mysql # not compatible
query I rowsort label-746
SELECT DISTINCT - COUNT ( * ) * 32 FROM tab0 WHERE NOT + + 44 * + 90 NOT IN ( 27 )
----
0

query I rowsort
SELECT ALL col1 + - - 65 FROM tab2
----
116
132
142

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-749
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT CAST( + col1 AS SIGNED ) NOT BETWEEN - - col1 AND ( + col2 ) / col1
----

skipif mysql # not compatible
query I rowsort label-749
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT CAST ( + col1 AS INTEGER ) NOT BETWEEN - - col1 AND ( + col2 ) / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT DISTINCT MAX( - 46 ) AS col2 FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-750
SELECT DISTINCT MAX ( - 46 ) AS col2 FROM tab2 cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT DISTINCT - COUNT( * ) - - - COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( 13 )
----
0

skipif mysql # not compatible
query I rowsort label-751
SELECT DISTINCT - COUNT ( * ) - - - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( 13 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 39 < NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-754
SELECT DISTINCT ( - col0 ) - + - col0 DIV - col0 AS col2 FROM tab2
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-754
SELECT DISTINCT ( - col0 ) - + - col0 / - col0 AS col2 FROM tab2
----
-47
-65
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT - 59 + - COUNT( * ) + 68 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-755
SELECT - 59 + - COUNT ( * ) + 68 FROM tab0 AS cor0
----
6

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

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

query I rowsort
SELECT DISTINCT ( - ( AVG ( DISTINCT col1 ) ) ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN 75 AND ( + - col0 * + ( + col0 ) + - col0 / col0 )
----
NULL

query I rowsort
SELECT DISTINCT + 98 * + col1 AS col2 FROM tab1
----
1372
4606
490

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

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT + MIN( ( + col2 ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-760
SELECT + MIN ( ( + col2 ) ) FROM tab1
----
59

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

skipif mysql # not compatible
query II rowsort label-761
SELECT + MIN ( DISTINCT - 16 ) AS col1, - COUNT ( * ) FROM tab2
----
-16
-3

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-764
SELECT DISTINCT + MAX( DISTINCT - 86 ) col0, + 68 AS col2 FROM tab2 AS cor0
----
-86
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-764
SELECT DISTINCT + MAX ( DISTINCT - 86 ) col0, + 68 AS col2 FROM tab2 AS cor0
----
-86
68

query I rowsort
SELECT ALL + + 7 + - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-44
-78
-84

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

query I rowsort
SELECT DISTINCT 70 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT - 22 - - ( + + COUNT( * ) ) + - + ( 47 ) + - MIN( ALL col0 ) / 64 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-768
SELECT - 22 - - ( + + COUNT ( * ) ) + - + ( 47 ) + - MIN ( ALL col0 ) / 64 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 / 33 / 97 + col2 + 98 * 18 >= + 42
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT ALL COUNT( * ) + + MAX( - + 97 ) FROM tab1 cor0 WHERE NOT 36 / + - 84 IS NULL
----
-94

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL COUNT ( * ) + + MAX ( - + 97 ) FROM tab1 cor0 WHERE NOT 36 / + - 84 IS NULL
----
-94

query II rowsort
SELECT 76 * - 29 * col0 AS col2, - col0 * + col1 AS col0 FROM tab0
----
-191748
-1827
-213788
-97
-33060
-1215

query I rowsort
SELECT ALL 85 * - col0 * - + col2 AS col0 FROM tab0
----
59925
73950
816255

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT - COUNT( * ) * + AVG ( DISTINCT - col1 ) FROM tab2 WHERE - col0 + + 74 < - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-773
SELECT - COUNT ( * ) * + AVG ( DISTINCT - col1 ) FROM tab2 WHERE - col0 + + 74 < - col0
----
NULL

query II rowsort
SELECT + col2 * - 70 * + col2 AS col2, - col2 FROM tab0
----
-154630
-47
-686070
-99
-7000
-10

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( + 84 ) FROM tab2
----
84

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

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

query I rowsort
SELECT DISTINCT - 47 + - col0 FROM tab2 AS cor0
----
-111
-122
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-781
SELECT DISTINCT - + col0 DIV - col0 + + - col2 * col2 * 3 AS col2 FROM tab2 AS cor0
----
-10091
-1586
-4799

skipif mysql # not compatible
query I rowsort label-781
SELECT DISTINCT - + col0 / - col0 + + - col2 * col2 * 3 AS col2 FROM tab2 AS cor0
----
-10091
-1586
-4799

query I rowsort
SELECT 20 + + - 46 FROM tab0 AS cor0
----
-26
-26
-26

query I rowsort
SELECT + 60 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN NULL AND 79 * 59 - + 91
----

query I rowsort
SELECT + col2 * + - 38 AS col1 FROM tab0 cor0
----
-1786
-3762
-380

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 IN ( - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-788
SELECT ALL + + CAST( + ( + - AVG ( ALL + col2 ) ) AS SIGNED ) AS col2, - COUNT( * ) * + MAX( ALL + ( - - col0 ) ) AS col1 FROM tab2 AS cor0
----
-40
-225

skipif mysql # not compatible
query II rowsort label-788
SELECT ALL + + CAST ( + ( + - AVG ( ALL + col2 ) ) AS INTEGER ) AS col2, - COUNT ( * ) * + MAX ( ALL + ( - - col0 ) ) AS col1 FROM tab2 AS cor0
----
-40
-225

query I rowsort
SELECT + col2 * + - col0 + ( col1 ) - - col1 FROM tab0 AS cor0
----
-543
-828
-9601

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 38 >= NULL
----

query I rowsort
SELECT ALL + - col2 * col1 * + - col1 + - col1 * - + col2 AS col0 FROM tab1 AS cor0
----
153408
1770
20160

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

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

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE + col0 NOT BETWEEN + + col2 AND ( + + col0 + - col2 - - 64 * - + col2 - - 62 + - + col1 )
----
51
67
77

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

query I rowsort
SELECT + 79 FROM tab1 WHERE NOT + + col2 - - - 33 * - col0 * + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-796
SELECT CAST( - - AVG ( 66 ) AS SIGNED ) AS col0 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-796
SELECT CAST ( - - AVG ( 66 ) AS INTEGER ) AS col0 FROM tab0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-797
SELECT col1 * - ( col2 ) * col2 + - col1 DIV + + col0 - - 5 AS col0 FROM tab2
----
-123196
-225383
-26975

skipif mysql # not compatible
query I rowsort label-797
SELECT col1 * - ( col2 ) * col2 + - col1 / + + col0 - - 5 AS col0 FROM tab2
----
-123196
-225383
-26975

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

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

query I rowsort
SELECT - ( + + col1 ) * + col2 FROM tab1 cor0
----
-1344
-295
-3196

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

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

query I rowsort
SELECT - 73 * col0 FROM tab0 AS cor0
----
-1095
-6351
-7081

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT DISTINCT + COUNT( * ) * + - 65 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-585

skipif mysql # not compatible
query I rowsort label-802
SELECT DISTINCT + COUNT ( * ) * + - 65 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-585

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + - 16 ) IS NULL
----

query II rowsort
SELECT ALL + col0 + - col0 AS col1, + 59 FROM tab0 AS cor0
----
0
59
0
59
0
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-805
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 10 * CAST( NULL AS SIGNED ) * - 74 + + - col1 NOT IN ( col0 )
----

skipif mysql # not compatible
query III rowsort label-805
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 10 * CAST ( NULL AS INTEGER ) * - 74 + + - col1 NOT IN ( col0 )
----

query II rowsort
SELECT ALL - col0 AS col1, + col2 + + col2 FROM tab1 cor0
----
-51
192
-85
118
-91
136

query II rowsort
SELECT DISTINCT col2, 93 FROM tab0 AS cor0
----
10
93
47
93
99
93

onlyif mysql # aggregate syntax: 
query II rowsort label-808
SELECT DISTINCT - ( + 14 ) AS col0, ( 85 ) * - 56 + + COUNT( * ) FROM tab0 cor0
----
-14
-4757

skipif mysql # not compatible
query II rowsort label-808
SELECT DISTINCT - ( + 14 ) AS col0, ( 85 ) * - 56 + + COUNT ( * ) FROM tab0 cor0
----
-14
-4757

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 77 col2 FROM tab2
----
-3542
-4928
-5775

onlyif mysql # DIV for integer division: 
query I rowsort label-810
SELECT + col1 + 15 + - col1 DIV col2 * - col1 FROM tab0
----
16
177
78

skipif mysql # not compatible
query I rowsort label-810
SELECT + col1 + 15 + - col1 / col2 * - col1 FROM tab0
----
16
177
78

query III rowsort
SELECT * FROM tab2 WHERE - col2 IN ( + 0, col2, col2 + - col2 )
----

query II rowsort
SELECT - 15 * + 95, + 59 AS col0 FROM tab1
----
-1425
59
-1425
59
-1425
59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT ALL - 26 + MIN( ALL - col2 ) AS col2 FROM tab1
----
-122

skipif mysql # not compatible
query I rowsort label-814
SELECT ALL - 26 + MIN ( ALL - col2 ) AS col2 FROM tab1
----
-122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-815
SELECT + MAX( DISTINCT - col2 ) DIV - - 32 AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-815
SELECT + MAX ( DISTINCT - col2 ) / - - 32 AS col2 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT + + SUM( - + col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-816
SELECT + + SUM ( - + col2 ) AS col0 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT ALL - + 33 + + - col1 AS col0 FROM tab0 AS cor0
----
-114
-34
-54

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) >= + col2 * + 93 + + col0 + col1
----

query I rowsort
SELECT 80 * 94 FROM tab2
----
7520
7520
7520

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-820
SELECT DISTINCT col0 AS col2, CAST ( NULL AS INTEGER ) col1 FROM tab0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT + col1 * col1 * - 29 AS col2 FROM tab1
----
-5684
-64061
-725

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-823
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + col1
----

skipif mysql # not compatible
query I rowsort label-823
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + col1
----

query I rowsort
SELECT DISTINCT + + col0 * - 54 AS col2 FROM tab0 AS cor0
----
-4698
-5238
-810

query I rowsort
SELECT ALL - col2 * - col1 - col1 AS col0 FROM tab2 AS cor0
----
1122
3003
3819

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT COUNT( DISTINCT - - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-830
SELECT COUNT ( DISTINCT - - col1 ) FROM tab1
----
3

query II rowsort
SELECT ALL + 64 AS col1, 9 + col0 * - 16 + col0 AS col0 FROM tab0 WHERE - - col0 IS NOT NULL
----
64
-1296
64
-1446
64
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT COUNT( ALL + col2 ) FROM tab0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-832
SELECT COUNT ( ALL + col2 ) FROM tab0 WHERE NOT - col1 IS NOT NULL
----
0

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

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

query I rowsort
SELECT + 37 * + - ( - col1 ) AS col1 FROM tab2 AS cor0
----
1887
2479
2849

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT + MAX( ALL - 24 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-24

skipif mysql # not compatible
query I rowsort label-836
SELECT + MAX ( ALL - 24 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-24

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-837
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + CAST( NULL AS DECIMAL ), + col2, - col1, 71 - + - col0 )
----

skipif mysql # not compatible
query III rowsort label-837
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + CAST ( NULL AS REAL ), + col2, - col1, 71 - + - col0 )
----

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

query I rowsort
SELECT ALL col0 + 14 AS col2 FROM tab1
----
105
65
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT ALL + 44 * + SUM( col1 ) - + - 51 AS col1 FROM tab2 AS cor0
----
8631

skipif mysql # not compatible
query I rowsort label-841
SELECT ALL + 44 * + SUM ( col1 ) - + - 51 AS col1 FROM tab2 AS cor0
----
8631

onlyif mysql # aggregate syntax: 
query II rowsort label-842
SELECT COUNT( * ), + SUM( - 87 ) AS col0 FROM tab0 AS cor0
----
3
-261

skipif mysql # not compatible
query II rowsort label-842
SELECT COUNT ( * ), + SUM ( - 87 ) AS col0 FROM tab0 AS cor0
----
3
-261

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - 55 / + - col0 / - - col2, + col2 / - col0 / - col2 * - + 37 )
----

query I rowsort
SELECT DISTINCT + + 65 - - col2 FROM tab1 AS cor0
----
124
133
161

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-845
SELECT DISTINCT + col0, - CAST( NULL AS SIGNED ) * - CAST( - 42 AS DECIMAL ) * - + 81 / col1 + col1 * - col1 AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-845
SELECT DISTINCT + col0, - CAST ( NULL AS INTEGER ) * - CAST ( - 42 AS REAL ) * - + 81 / col1 + col1 * - col1 AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT 76 * - col2 FROM tab1
----
-4484
-5168
-7296

query I rowsort
SELECT ALL + col1 - col2 AS col1 FROM tab0
----
-98
11
34

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

onlyif mysql # DIV for integer division: 
query I rowsort label-849
SELECT DISTINCT + 48 - - 2 DIV + + col0 AS col2 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-849
SELECT DISTINCT + 48 - - 2 / + + col0 AS col2 FROM tab2
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-850
SELECT + ( - + col2 ) * - CAST( 53 AS SIGNED ) - - col0 FROM tab0
----
2506
5344
617

skipif mysql # not compatible
query I rowsort label-850
SELECT + ( - + col2 ) * - CAST ( 53 AS INTEGER ) - - col0 FROM tab0
----
2506
5344
617

query II rowsort
SELECT DISTINCT + col1 AS col1, col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT ALL + 23 + + + MIN( - col0 ) FROM tab1 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-852
SELECT ALL + 23 + + + MIN ( - col0 ) FROM tab1 AS cor0
----
-68

query I rowsort
SELECT + 16 - 18 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-855
SELECT DISTINCT col2 + - - 92 AS col0 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) NOT BETWEEN - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-855
SELECT DISTINCT col2 + - - 92 AS col0 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) NOT BETWEEN - col0 AND NULL
----

query II rowsort
SELECT col1 * - + col0, ( col2 ) FROM tab2
----
-2346
23
-4928
40
-5025
58

query I rowsort
SELECT ALL + + ( + - 85 ) * + - col1 * col2 AS col0 FROM tab2 cor0
----
261800
330310
99705

query II rowsort
SELECT - col0 * 25 AS col2, col2 FROM tab0 AS cor0
----
-2175
10
-2425
99
-375
47

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT MIN( DISTINCT + 11 ) AS col2 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-859
SELECT MIN ( DISTINCT + 11 ) AS col2 FROM tab1 AS cor0
----
11

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT DISTINCT SUM( DISTINCT + - 18 ) FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT SUM ( DISTINCT + - 18 ) FROM tab2
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-864
SELECT ALL - COUNT( * ) AS col1, - ( - COUNT( * ) ) FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-864
SELECT ALL - COUNT ( * ) AS col1, - ( - COUNT ( * ) ) FROM tab1
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT DISTINCT + SUM( ALL + 39 ) FROM tab0
----
117

skipif mysql # not compatible
query I rowsort label-865
SELECT DISTINCT + SUM ( ALL + 39 ) FROM tab0
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-866
SELECT ALL 76 DIV 81 + + + COUNT( * ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-866
SELECT ALL 76 / 81 + + + COUNT ( * ) AS col2 FROM tab0
----
3

query I rowsort
SELECT ALL 16 + - col2 * + col0 FROM tab1
----
-4880
-4999
-6172

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-868
SELECT * FROM tab2 AS cor0 WHERE + col2 / - col1 * - 29 NOT IN ( col2 * + CAST( + - 2 AS SIGNED ) * - col0 + + col2 + - col2 - + + col1 + + ( + CAST( NULL AS SIGNED ) ) * + + col2 )
----

skipif mysql # not compatible
query III rowsort label-868
SELECT * FROM tab2 AS cor0 WHERE + col2 / - col1 * - 29 NOT IN ( col2 * + CAST ( + - 2 AS INTEGER ) * - col0 + + col2 + - col2 - + + col1 + + ( + CAST ( NULL AS INTEGER ) ) * + + col2 )
----

query I rowsort
SELECT + 52 + col1 AS col0 FROM tab0 AS cor0
----
133
53
73

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-870
SELECT DISTINCT - 46 + + 44 * - + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-870
SELECT DISTINCT - 46 + + 44 * - + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT DISTINCT - COUNT( DISTINCT + - 22 ) AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-871
SELECT DISTINCT - COUNT ( DISTINCT + - 22 ) AS col1 FROM tab2 AS cor0
----
-1

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

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

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

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

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

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

query II rowsort
SELECT - + 5 + col2, col0 AS col0 FROM tab2 AS cor0
----
18
46
35
64
53
75

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT COUNT( DISTINCT + 17 ) AS col2 FROM tab2 AS cor0 WHERE col2 = col1
----
0

skipif mysql # not compatible
query I rowsort label-877
SELECT COUNT ( DISTINCT + 17 ) AS col2 FROM tab2 AS cor0 WHERE col2 = col1
----
0

query I rowsort
SELECT DISTINCT col1 + - 41 + + 88 AS col1 FROM tab1 AS cor0
----
52
61
94

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT ALL + SUM( - - col1 ) + 93 AS col0 FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL + SUM ( - - col1 ) + 93 AS col0 FROM tab1 AS cor0
----
159

query I rowsort
SELECT col1 + + ( + + col2 ) + 94 AS col2 FROM tab1 cor0
----
158
204
209

query I rowsort
SELECT 87 FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL + 92 - + 79 AS col1, col0 FROM tab0 AS cor0
----
13
15
13
87
13
97

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

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

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

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

query I rowsort
SELECT DISTINCT col2 - - 26 FROM tab2
----
49
66
84

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

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

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

query I rowsort
SELECT DISTINCT col2 + - col2 + col1 + + - col2 * + col1 * 91 * + col0 FROM tab1
----
-2281820
-26466029
-6237490

query I rowsort
SELECT 94 * + col0 AS col2 FROM tab0
----
1410
8178
9118

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

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

query I rowsort
SELECT DISTINCT + col1 * + 48 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 * col1 * - col0 + - ( + col1 ) BETWEEN - col2 AND + col0
----
2448
3216
3696

onlyif mysql # DIV for integer division: 
query II rowsort label-893
SELECT ALL - col1 AS col0, + 95 DIV - col0 AS col1 FROM tab1 AS cor0
----
-14
-1
-47
-1
-5
-1

skipif mysql # not compatible
query II rowsort label-893
SELECT ALL - col1 AS col0, + 95 / - col0 AS col1 FROM tab1 AS cor0
----
-14
-1
-47
-1
-5
-1

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + 67 > NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-898
SELECT * FROM tab0 cor0 WHERE NOT CAST( ( col2 ) AS SIGNED ) IN ( 33 * + ( 63 ) * + - col0 + + - 55 - - col1, col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-898
SELECT * FROM tab0 cor0 WHERE NOT CAST ( ( col2 ) AS INTEGER ) IN ( 33 * + ( 63 ) * + - col0 + + - 55 - - col1, col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT DISTINCT - MAX( ALL + 44 ) FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-900
SELECT DISTINCT - MAX ( ALL + 44 ) FROM tab1 AS cor0
----
-44

query I rowsort
SELECT + ( col0 ) * + 88 AS col0 FROM tab1 AS cor0
----
4488
7480
8008

onlyif mysql # DIV for integer division: 
query I rowsort label-902
SELECT + col2 DIV + 7 AS col2 FROM tab2
----
3
5
8

skipif mysql # not compatible
query I rowsort label-902
SELECT + col2 / + 7 AS col2 FROM tab2
----
3
5
8

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-905
SELECT + col2 DIV col1, col2 FROM tab0
----
0
10
0
47
99
99

skipif mysql # not compatible
query II rowsort label-905
SELECT + col2 / col1, col2 FROM tab0
----
0
10
0
47
99
99

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

onlyif mysql # DIV for integer division: 
query I rowsort label-907
SELECT DISTINCT - - 75 DIV + - col2 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-1
0

skipif mysql # not compatible
query I rowsort label-907
SELECT DISTINCT - - 75 / + - col2 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-1
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-909
SELECT + SUM( + 12 ) / + 64 + + CAST( NULL AS SIGNED ) + COUNT( col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-909
SELECT + SUM ( + 12 ) / + 64 + + CAST ( NULL AS INTEGER ) + COUNT ( col1 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT - COUNT( * ) + - 72 - + 14 AS col2 FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-910
SELECT - COUNT ( * ) + - 72 - + 14 AS col2 FROM tab2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT ALL 91 + + MAX( - col1 ) + 83 FROM tab0 AS cor0
----
173

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL 91 + + MAX ( - col1 ) + 83 FROM tab0 AS cor0
----
173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col1 - + + col1 + - 43, ( - + 96 ) col2 FROM tab1 cor0
----
-43
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-913
SELECT - CAST( NULL AS SIGNED ), col0 * 20 AS col1 FROM tab2 AS cor0
----
NULL
1280
NULL
1500
NULL
920

skipif mysql # not compatible
query II rowsort label-913
SELECT - CAST ( NULL AS INTEGER ), col0 * 20 AS col1 FROM tab2 AS cor0
----
NULL
1280
NULL
1500
NULL
920

query I rowsort
SELECT DISTINCT - 74 + - + col2 FROM tab2 AS cor0
----
-114
-132
-97

query I rowsort
SELECT - - 44 * col0 - - col1 * col0 FROM tab2 AS cor0
----
4370
7744
8325

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 17 * - + col2 - 93 AS col2, col2 col2 FROM tab0 AS cor0
----
1590
99
706
47
77
10

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT COUNT( * ) - 17 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-917
SELECT COUNT ( * ) - 17 FROM tab2 AS cor0
----
-14

query I rowsort
SELECT DISTINCT + col0 - - 24 AS col2 FROM tab0
----
111
121
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-919
SELECT DISTINCT - + 22 AS col2 FROM tab2 WHERE + + col0 - + CAST( + - col1 AS SIGNED ) NOT BETWEEN - - 36 AND NULL
----

skipif mysql # not compatible
query I rowsort label-919
SELECT DISTINCT - + 22 AS col2 FROM tab2 WHERE + + col0 - + CAST ( + - col1 AS INTEGER ) NOT BETWEEN - - 36 AND NULL
----

query I rowsort
SELECT DISTINCT ( - 74 ) AS col1 FROM tab0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT - COUNT( * ) * - 48 AS col1 FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-921
SELECT - COUNT ( * ) * - 48 AS col1 FROM tab2
----
144

query I rowsort
SELECT + - col0 * - 90 + + ( + + col0 ) + - col0 AS col2 FROM tab2 cor0
----
4140
5760
6750

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 + + 42 IS NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-925
SELECT DISTINCT COUNT( * ) DIV + 36 * 76 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-925
SELECT DISTINCT COUNT ( * ) / + 36 * 76 AS col1 FROM tab2
----
0

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

skipif mysql # not compatible
query I rowsort label-926
SELECT DISTINCT + 42 * + COUNT ( * ) FROM tab0
----
126

query I rowsort
SELECT DISTINCT - ( + ( - - col2 ) ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT - + 5 * + + 7 AS col2 FROM tab0 cor0
----
-35
-35
-35

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-930
SELECT COUNT( DISTINCT - 75 ) * + 20 * - 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-930
SELECT COUNT ( DISTINCT - 75 ) * + 20 * - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 51 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query II rowsort
SELECT DISTINCT col1, col2 * + col2 FROM tab2
----
51
529
67
3364
77
1600

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 WHERE ( NULL ) BETWEEN - 24 AND - - col2 * - + 70 * - - 63 + + ( ( 23 ) ) OR NOT 64 IS NOT NULL
----

query I rowsort
SELECT - 90 + col1 - - col1 FROM tab0
----
-48
-88
72

query I rowsort
SELECT 56 + col1 * + + 97 FROM tab1
----
1414
4615
541

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

query I rowsort
SELECT - col1 * - - col0 + col2 FROM tab1
----
-366
-4209
-618

onlyif mysql # DIV for integer division: 
query I rowsort label-938
SELECT ALL + col0 * col0 + - + col0 DIV + - 93 FROM tab1
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-938
SELECT ALL + col0 * col0 + - + col0 / + - 93 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT - col1 + - col0 + + col2 AS col0 FROM tab0 AS cor0 WHERE col2 * + 11 + + 81 + - 82 + - col2 + - - 99 NOT IN ( - col2, - col1 * - col0, + + col1, col1, + ( + col1 ) + - col2 )
----
-49
-98
1

query I rowsort
SELECT DISTINCT + + 32 + + 24 FROM tab1 AS cor0
----
56

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 WHERE ( - 98 ) NOT BETWEEN - + 76 + + - ( - col2 ) * - + col2 AND NULL
----

query I rowsort
SELECT ALL col1 * + 41 FROM tab1
----
1927
205
574

query II rowsort
SELECT col0 + col2 AS col2, - 36 FROM tab0 AS cor0
----
196
-36
62
-36
97
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-944
SELECT 77 DIV - col2 + + + col2 * - col2 + - + 92 AS col2 FROM tab1 AS cor0
----
-3574
-4717
-9308

skipif mysql # not compatible
query I rowsort label-944
SELECT 77 / - col2 + + + col2 * - col2 + - + 92 AS col2 FROM tab1 AS cor0
----
-3574
-4717
-9308

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT DISTINCT + COUNT( ALL - col1 ) * - 63 FROM tab1 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-945
SELECT DISTINCT + COUNT ( ALL - col1 ) * - 63 FROM tab1 AS cor0
----
-189

query I rowsort
SELECT + col1 * + 99 FROM tab0
----
2079
8019
99

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT DISTINCT 28 * + + COUNT( * ) AS col2 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-947
SELECT DISTINCT 28 * + + COUNT ( * ) AS col2 FROM tab2
----
84

query I rowsort
SELECT + 61 * col2 FROM tab1
----
3599
4148
5856

onlyif mysql # DIV for integer division: 
query I rowsort label-949
SELECT DISTINCT - col1 DIV + 96 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-949
SELECT DISTINCT - col1 / + 96 FROM tab1
----
0

query II rowsort
SELECT + + 6 AS col0, 33 AS col0 FROM tab0 AS cor0
----
6
33
6
33
6
33

onlyif mysql # DIV for integer division: 
query I rowsort label-951
SELECT + col0 DIV + - col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-951
SELECT + col0 / + - col1 FROM tab1 AS cor0
----
-1
-17
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-952
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-952
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT - MIN( col2 ) * + 7 FROM tab1 AS cor0
----
-413

skipif mysql # not compatible
query I rowsort label-953
SELECT - MIN ( col2 ) * + 7 FROM tab1 AS cor0
----
-413

query I rowsort
SELECT ALL - 56 * - + 24 * + - 0 FROM tab2
----
0
0
0

query I rowsort
SELECT ( + ( 74 ) ) FROM tab0
----
74
74
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + 36 col2 FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
1692
180
504

query II rowsort
SELECT DISTINCT 8, col2 FROM tab1
----
8
59
8
68
8
96

onlyif mysql # DIV for integer division: 
query I rowsort label-958
SELECT DISTINCT 26 DIV - + ( + col1 ) + + ( - col2 ) AS col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-958
SELECT DISTINCT 26 / - + ( + col1 ) + + ( - col2 ) AS col1 FROM tab2
----
-23
-40
-58

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

skipif mysql # not compatible
query I rowsort label-959
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + + COUNT ( * ) FROM tab2
----
12

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + + col0 + 13 + + 35 * - - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab2 AS cor0 WHERE NULL >= - col2
----

query I rowsort
SELECT ALL - col0 * - ( col1 ) * col1 + - col1 + col2 + + col2 FROM tab2 AS cor0
----
119641
336724
379459

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE 59 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query II rowsort
SELECT ALL + col0, 76 AS col2 FROM tab1
----
51
76
85
76
91
76

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 1 * - 20 * - col0 * - col0 col2, 18 FROM tab2 AS cor0
----
112500
18
42320
18
81920
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-968
SELECT + + COUNT( * ) DIV - 48 + 83 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-968
SELECT + + COUNT ( * ) / - 48 + 83 FROM tab2 AS cor0
----
83

query I rowsort
SELECT DISTINCT col2 * + ( - - 75 ) FROM tab1
----
4425
5100
7200

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-970
SELECT + 98 * CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT + col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-970
SELECT + 98 * CAST ( NULL AS REAL ) FROM tab0 WHERE NOT + col1 IS NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( col0 ) + + - col1 AS col0, 63 col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 6 * 84 AS col1 FROM tab1
----
504
504
504

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT DISTINCT COUNT( + + col0 ) col1 FROM tab2 WHERE NULL IS NULL
----
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT - 57 + - SUM( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-975
SELECT - 57 + - SUM ( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
NULL

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 * + col1 - + + 49 IS NULL
----
14
47
5

query II rowsort
SELECT - 19 AS col0, 34 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to a68eb11496a0cf93a7ae0973612c54b3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-979
SELECT DISTINCT + + ( COUNT( * ) ) + + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-979
SELECT DISTINCT + + ( COUNT ( * ) ) + + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
18

query I rowsort
SELECT ALL 64 + + - 97 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT DISTINCT + - MIN( + 90 ) + COUNT( * ) FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-981
SELECT DISTINCT + - MIN ( + 90 ) + COUNT ( * ) FROM tab1 AS cor0
----
-87

query I rowsort
SELECT ALL ( - 7 ) FROM tab0 AS cor0 WHERE - 96 / + 11 IS NOT NULL
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-983
SELECT DISTINCT - 18, - ( - ( COUNT( * ) ) ) AS col0 FROM tab0 AS cor0
----
-18
3

skipif mysql # not compatible
query II rowsort label-983
SELECT DISTINCT - 18, - ( - ( COUNT ( * ) ) ) AS col0 FROM tab0 AS cor0
----
-18
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + 7 + + 21 * 55 * + + col2 * - 14 col2 FROM tab2 cor0
----
-371926
-646833
-937911

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-986
SELECT ALL + 53, MAX( ALL col2 ) AS col0 FROM tab2 AS cor0
----
53
58

skipif mysql # not compatible
query II rowsort label-986
SELECT ALL + 53, MAX ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
53
58

query I rowsort
SELECT ALL + - col2 + - + col1 + + - 65 AS col0 FROM tab0 AS cor0
----
-165
-193
-96

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

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

query I rowsort
SELECT DISTINCT - 28 FROM tab2 AS cor0 WHERE NOT - col1 / 81 - - 36 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col1 col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
1
1
21
21
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 + col2 col2 FROM tab1
----
156
165
193

query I rowsort
SELECT + col2 * + + 41 + + + 53 FROM tab1
----
2472
2841
3989

query I rowsort
SELECT - ( - col2 ) * + col0 + + + 14 FROM tab1
----
4910
5029
6202

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-995
SELECT * FROM tab0 AS cor0 WHERE ( + 23 * + CAST( NULL AS DECIMAL ) * + + ( + col0 ) ) = col0 * - - col1 + + - col0 - - - col2
----

skipif mysql # not compatible
query III rowsort label-995
SELECT * FROM tab0 AS cor0 WHERE ( + 23 * + CAST ( NULL AS REAL ) * + + ( + col0 ) ) = col0 * - - col1 + + - col0 - - - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 89 + + col1 * 37 * + + 84 BETWEEN - 96 AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT + MIN( DISTINCT - + col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-998
SELECT + MIN ( DISTINCT - + col2 ) AS col0 FROM tab2 AS cor0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-999
SELECT - 70 DIV + + 56 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-999
SELECT - 70 / + + 56 FROM tab0 AS cor0
----
-1
-1
-1

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 + + - 41 / 87 + - col2 FROM tab2 WHERE NULL > NULL
----

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

query II rowsort
SELECT col1, - col2 + - - ( + 4 ) FROM tab1
----
14
-92
47
-64
5
-55

query I rowsort
SELECT ALL + ( - + 84 ) * + col1 AS col0 FROM tab0
----
-1764
-6804
-84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT ALL MIN( ALL 52 ) * COUNT( * ) FROM tab2 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-1009
SELECT ALL MIN ( ALL 52 ) * COUNT ( * ) FROM tab2 AS cor0
----
156

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1012
SELECT 48 AS col1, + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
48
NULL
48
NULL
48
NULL

skipif mysql # not compatible
query II rowsort label-1012
SELECT 48 AS col1, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
48
NULL
48
NULL
48
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1013
SELECT ALL - COUNT( * ) + - ( - COUNT( * ) ) AS col1, 6 * COUNT( DISTINCT - 61 ) FROM tab2 cor0
----
0
6

skipif mysql # not compatible
query II rowsort label-1013
SELECT ALL - COUNT ( * ) + - ( - COUNT ( * ) ) AS col1, 6 * COUNT ( DISTINCT - 61 ) FROM tab2 cor0
----
0
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - 40 col1 FROM tab0 AS cor0
----
3480
3880
600

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

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

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

query I rowsort
SELECT ALL + col1 + + 42 AS col1 FROM tab1 AS cor0
----
47
56
89

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

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

query I rowsort
SELECT + - 66 * + col1 AS col2 FROM tab0 AS cor0
----
-1386
-5346
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 11 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 * - 82 * - + ( 18 ) - 8 FROM tab1
----
100360
141688
87076

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 - + col2 - + col2 * + + 18 col0 FROM tab0
----
-182
-1873
-885

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

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

query I rowsort
SELECT DISTINCT ( + + col1 ) * - + col1 + + - col2 AS col2 FROM tab2
----
-2624
-4547
-5969

query I rowsort
SELECT col0 + + col1 AS col0 FROM tab2 AS cor0 WHERE + 9 NOT BETWEEN + col2 AND NULL
----
141
142
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1026
SELECT DISTINCT - COUNT( * ) DIV + 15 + 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-1026
SELECT DISTINCT - COUNT ( * ) / + 15 + MIN ( 20 ) col1 FROM tab0 AS cor0
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col2 ) col1 FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT - 26 * + COUNT( - col0 ) AS col1 FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-1028
SELECT - 26 * + COUNT ( - col0 ) AS col1 FROM tab1
----
-78

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 BETWEEN - 46 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT DISTINCT MAX( ALL 6 ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1030
SELECT DISTINCT MAX ( ALL 6 ) FROM tab2 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1031
SELECT DISTINCT + + col0 DIV - + 66 AS col1 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1031
SELECT DISTINCT + + col0 / - + 66 AS col1 FROM tab1 AS cor0
----
-1
0

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

query I rowsort
SELECT - + ( - + 42 ) * 0 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 12 col1 FROM tab0 AS cor0
----
1044
1164
180

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 70 * + ( - 9 ) / col2 + + 47 - + - col0 IS NOT NULL
----

query I rowsort
SELECT 6 + + col0 FROM tab0
----
103
21
93

query I rowsort
SELECT + col0 + - col2 + + col0 * + + 77 FROM tab1 AS cor0
----
3882
6571
7030

query I rowsort
SELECT ALL + col1 * - 39 + - - 71 FROM tab0 AS cor0
----
-3088
-748
32

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1040
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - col2 / + CAST( NULL AS DECIMAL ) * col1 * - col2 / - - col0 * + col0 * col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1040
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - col2 / + CAST ( NULL AS REAL ) * col1 * - col2 / - - col0 * + col0 * col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1041
SELECT 54 DIV COUNT( * ) + - 64 - - MIN( - col1 ) FROM tab2 cor0
----
-123

skipif mysql # not compatible
query I rowsort label-1041
SELECT 54 / COUNT ( * ) + - 64 - - MIN ( - col1 ) FROM tab2 cor0
----
-123

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT SUM( ( - - col1 ) ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-1045
SELECT SUM ( ( - - col1 ) ) AS col0 FROM tab2
----
195

query I rowsort
SELECT - col0 + 42 + - col1 AS col2 FROM tab2
----
-100
-55
-99

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

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

query I rowsort
SELECT ALL + ( - + col1 ) FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT col1 + + - 39 * col1 * + 34 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-107325
-1325
-27825

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

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

query I rowsort
SELECT DISTINCT col2 * + 46 FROM tab0 AS cor0
----
2162
4554
460

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0 col0, 70 * + + 33 FROM tab0 AS cor0 WHERE NOT 31 / - + 14 + + col0 <= + col2 + - col0
----
87
2310
97
2310

onlyif mysql # DIV for integer division: 
query I rowsort label-1053
SELECT DISTINCT 16 DIV - - col0 * - 75 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1053
SELECT DISTINCT 16 / - - col0 * - 75 FROM tab1
----
0

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

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

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

query II rowsort
SELECT DISTINCT - col2 + + + 76 * 22 AS col2, + col1 FROM tab2
----
1614
67
1632
77
1649
51

query I rowsort
SELECT - 2 * - 38 * + - col1 FROM tab1
----
-1064
-3572
-380

query I rowsort
SELECT DISTINCT - 29 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1059
SELECT + 14 - + - COUNT( * ) AS col0, ( - SUM( ALL + 58 ) ) col0 FROM tab1 AS cor0
----
17
-174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1059
SELECT + 14 - + - COUNT ( * ) AS col0, ( - SUM ( ALL + 58 ) ) col0 FROM tab1 AS cor0
----
17
-174

query I rowsort
SELECT ALL col1 + - + col1 * - 39 AS col1 FROM tab1 AS cor0
----
1880
200
560

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1063
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN - col2 AND + col0
----

skipif mysql # not compatible
query III rowsort label-1063
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN - col2 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL <> + col1
----
0

skipif mysql # not compatible
query I rowsort label-1064
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL <> + col1
----
0

query I rowsort
SELECT - col0 * - col0 * - + col2 AS col1 FROM tab2
----
-163840
-326250
-48668

query I rowsort
SELECT col1 FROM tab1 WHERE NOT 27 * - col0 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT MIN( 45 ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-1067
SELECT MIN ( 45 ) FROM tab0
----
45

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

query II rowsort
SELECT DISTINCT - col0 * - col0 AS col2, 70 + - 82 * - col0 FROM tab2 WHERE - ( - col1 ) - + col1 IS NOT NULL
----
2116
3842
4096
5318
5625
6220

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1071
SELECT ALL + COUNT( * ) + - 85 AS col1, + 17 FROM tab2
----
-82
17

skipif mysql # not compatible
query II rowsort label-1071
SELECT ALL + COUNT ( * ) + - 85 AS col1, + 17 FROM tab2
----
-82
17

query I rowsort
SELECT DISTINCT col0 * - + col2 + col0 AS col1 FROM tab0 AS cor0
----
-690
-783
-9506

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

query II rowsort
SELECT + col0 + + col0 AS col2, + col0 + col0 + - - 25 FROM tab2 AS cor0
----
128
153
150
175
92
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1075
SELECT + CAST( col1 AS SIGNED ) + - col2 AS col0 FROM tab1 AS cor0
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-1075
SELECT + CAST ( col1 AS INTEGER ) + - col2 AS col0 FROM tab1 AS cor0
----
-21
-54
-82

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1079
SELECT ALL + 0 * + col2 + - 61 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1079
SELECT ALL + 0 * + col2 + - 61 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 67 * + 39 AS col1 FROM tab0
----
2613
2613
2613

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

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

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

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

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

query II rowsort
SELECT - col0, - 66 AS col0 FROM tab2 AS cor0
----
-46
-66
-64
-66
-75
-66

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

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

query I rowsort
SELECT DISTINCT - 51 * - col0 * + 12 * - 39 FROM tab1 AS cor0
----
-1217268
-2028780
-2171988

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT ALL + 11 - - + MIN( ALL - 42 ) AS col2 FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-1087
SELECT ALL + 11 - - + MIN ( ALL - 42 ) AS col2 FROM tab2 AS cor0
----
-31

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 67 + - - col1 > NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1090
SELECT - col0 * + + col0 / col1 + 11 * + 53 FROM tab0 WHERE - col1 IN ( CAST( NULL AS SIGNED ) + + + 54 / + + col2 * col1 )
----

skipif mysql # not compatible
query I rowsort label-1090
SELECT - col0 * + + col0 / col1 + 11 * + 53 FROM tab0 WHERE - col1 IN ( CAST ( NULL AS INTEGER ) + + + 54 / + + col2 * col1 )
----

query I rowsort
SELECT ALL 0 - + - col2 + ( + - col0 ) AS col1 FROM tab0
----
-77
2
32

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1093
SELECT col0 DIV - 60 + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
63
74

skipif mysql # not compatible
query I rowsort label-1093
SELECT col0 / - 60 + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
63
74

query I rowsort
SELECT - col0 * + - 43 AS col2 FROM tab1
----
2193
3655
3913

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT - 96 * + - COUNT( * ) FROM tab1 WHERE NOT - ( + col0 ) IS NULL
----
288

skipif mysql # not compatible
query I rowsort label-1095
SELECT - 96 * + - COUNT ( * ) FROM tab1 WHERE NOT - ( + col0 ) IS NULL
----
288

onlyif mysql # DIV for integer division: 
query I rowsort label-1096
SELECT DISTINCT - col1 DIV - col1 + + col0 col1 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1096
SELECT DISTINCT - col1 / - col1 + + col0 col1 FROM tab1 AS cor0
----
52
86
92

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1098
SELECT DISTINCT - - COUNT( * ), MAX( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
3
-51

skipif mysql # not compatible
query II rowsort label-1098
SELECT DISTINCT - - COUNT ( * ), MAX ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
3
-51

query I rowsort
SELECT col0 + col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND 69 + 98
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col2 - - col2 / - col0 > - col0 + - col1 + + - 95 * - + 20
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * + - 81 NOT BETWEEN - col0 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT ALL - col2 * + + col1 + + - col1 FROM tab0 AS cor0
----
-100
-231
-3888

onlyif mysql # DIV for integer division: 
query I rowsort label-1104
SELECT - col1 DIV col1 * + 17 * col1 FROM tab1 AS cor0
----
-238
-799
-85

skipif mysql # not compatible
query I rowsort label-1104
SELECT - col1 / col1 * + 17 * col1 FROM tab1 AS cor0
----
-238
-799
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-1105
SELECT + - ( col0 ) DIV col2 + col1 FROM tab2 AS cor0
----
49
66
76

skipif mysql # not compatible
query I rowsort label-1105
SELECT + - ( col0 ) / col2 + col1 FROM tab2 AS cor0
----
49
66
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT ALL SUM( 55 ) FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-1106
SELECT ALL SUM ( 55 ) FROM tab0 AS cor0
----
165

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NULL <> 85
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1108
SELECT - + COUNT( * ) * + 8 AS col0, - 43 FROM tab2 cor0
----
-24
-43

skipif mysql # not compatible
query II rowsort label-1108
SELECT - + COUNT ( * ) * + 8 AS col0, - 43 FROM tab2 cor0
----
-24
-43

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 73 * - ( col2 ) col2 FROM tab0
----
-3431
-7227
-730

onlyif mysql # DIV for integer division: 
query I rowsort label-1112
SELECT ALL 91 DIV + col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1112
SELECT ALL 91 / + col0 FROM tab2
----
1
1
1

query I rowsort
SELECT col0 * col1 * - + 35 * + + col1 + + 38 FROM tab0
----
-1342807
-3357
-3444487

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

query I rowsort
SELECT ALL - 56 + - - col0 FROM tab0
----
-41
31
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT 17 * + COUNT( * ) * + - COUNT( ALL + - ( - col1 ) ) + 4 * ( - - 29 ) + - + 97 AS col0 FROM tab0
----
-134

skipif mysql # not compatible
query I rowsort label-1116
SELECT 17 * + COUNT ( * ) * + - COUNT ( ALL + - ( - col1 ) ) + 4 * ( - - 29 ) + - + 97 AS col0 FROM tab0
----
-134

query I rowsort
SELECT DISTINCT - - 11 + - col2 * + col2 AS col1 FROM tab1 cor0
----
-3470
-4613
-9205

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT + COUNT( - 76 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1118
SELECT + COUNT ( - 76 ) FROM tab1
----
3

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

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

skipif mysql # not compatible
query I rowsort label-1120
SELECT - COUNT ( * ) / 86 AS col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( 89 + - 2 ) IS NULL
----

query I rowsort
SELECT - col2 + - 89 * - 14 FROM tab0
----
1147
1199
1236

query I rowsort
SELECT ALL col0 - + 6 AS col1 FROM tab2
----
40
58
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT - COUNT( * ) * + COUNT( col2 ) + - SUM( DISTINCT col2 ) FROM tab0
----
-165

skipif mysql # not compatible
query I rowsort label-1124
SELECT - COUNT ( * ) * + COUNT ( col2 ) + - SUM ( DISTINCT col2 ) FROM tab0
----
-165

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

query I rowsort
SELECT ALL col0 - col1 AS col2 FROM tab2 WHERE + col2 >= ( + col0 )
----

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE col2 + + col2 < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN 5 AND ( 65 )
----

query I rowsort
SELECT col2 - + ( 8 ) FROM tab0
----
2
39
91

query I rowsort
SELECT DISTINCT - ( col2 ) AS col1 FROM tab1 WHERE ( - col1 + - col2 * 26 ) NOT IN ( + col1 )
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT COUNT( * ) * - 14 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-1131
SELECT COUNT ( * ) * - 14 FROM tab2
----
-42

query I rowsort
SELECT ALL - 90 * col2 FROM tab2
----
-2070
-3600
-5220

query I rowsort
SELECT DISTINCT ( 59 ) FROM tab1 WHERE NOT col1 <= + 30 * - col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1134
SELECT SUM( CAST( 87 AS SIGNED ) ) FROM tab1 WHERE NOT col2 > 15
----
NULL

skipif mysql # not compatible
query I rowsort label-1134
SELECT SUM ( CAST ( 87 AS INTEGER ) ) FROM tab1 WHERE NOT col2 > 15
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1135
SELECT ALL col2 DIV ( - 22 ) FROM tab0
----
-2
-4
0

skipif mysql # not compatible
query I rowsort label-1135
SELECT ALL col2 / ( - 22 ) FROM tab0
----
-2
-4
0

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE NOT ( + 69 * 1 ) <> col2 * col2
----

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

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - 12 AND ( + 64 * - ( - 95 / ( + col0 ) ) + - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1139
SELECT ALL - 38 DIV - 67 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL - 38 / - 67 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT 65 - + 35 * 4 FROM tab0
----
-75
-75
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-1141
SELECT col0 + + col2 DIV - col2 AS col0 FROM tab1 WHERE ( col0 ) IS NOT NULL
----
50
84
90

skipif mysql # not compatible
query I rowsort label-1141
SELECT col0 + + col2 / - col2 AS col0 FROM tab1 WHERE ( col0 ) IS NOT NULL
----
50
84
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) - + col2 col1 FROM tab1
----
-21
-54
-82

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 / + ( 62 ) <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

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

query I rowsort
SELECT - col1 - col2 * - col1 FROM tab0
----
189
3726
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT + MIN( DISTINCT col2 ) FROM tab0 AS cor0 WHERE NOT col2 + col1 NOT BETWEEN - col2 AND ( + 42 + 98 )
----
10

skipif mysql # not compatible
query I rowsort label-1150
SELECT + MIN ( DISTINCT col2 ) FROM tab0 AS cor0 WHERE NOT col2 + col1 NOT BETWEEN - col2 AND ( + 42 + 98 )
----
10

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 40 col0 FROM tab2 cor0
----
-1840
-2560
-3000

query III rowsort
SELECT * FROM tab0 WHERE NOT 51 * + 93 IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1154
SELECT - col2 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1154
SELECT - col2 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT ALL - - SUM( DISTINCT col2 ) FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-1155
SELECT ALL - - SUM ( DISTINCT col2 ) FROM tab0 cor0
----
156

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

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

query I rowsort
SELECT ALL 71 * col1 FROM tab1 AS cor0
----
3337
355
994

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT DISTINCT ( - ( - 66 ) ) * COUNT( * ) FROM tab0 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-1160
SELECT DISTINCT ( - ( - 66 ) ) * COUNT ( * ) FROM tab0 AS cor0
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1161
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST( + 99 AS SIGNED ) <= 67 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1161
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( + 99 AS INTEGER ) <= 67 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= - 84 OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1166
SELECT ALL - 78 DIV - col2 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL - 78 / - col2 AS col1 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1167
SELECT ALL * FROM tab0 WHERE + 1 + CAST( NULL AS DECIMAL ) * - 2 < + col1
----

skipif mysql # not compatible
query III rowsort label-1167
SELECT ALL * FROM tab0 WHERE + 1 + CAST ( NULL AS REAL ) * - 2 < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT SUM( + 47 ) * MAX( ( - col1 ) + + col2 ) FROM tab2
----
-1269

skipif mysql # not compatible
query I rowsort label-1168
SELECT SUM ( + 47 ) * MAX ( ( - col1 ) + + col2 ) FROM tab2
----
-1269

query I rowsort
SELECT DISTINCT + col1 * - col1 - + col0 AS col2 FROM tab2 WHERE ( - 24 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT ALL - MIN( + ( 84 ) ) AS col0 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-1170
SELECT ALL - MIN ( + ( 84 ) ) AS col0 FROM tab0
----
-84

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

query I rowsort
SELECT + col1 * - col0 * 60 FROM tab2
----
-140760
-295680
-301500

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( - 60 * + 20 ) AND + col0 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1174
SELECT ALL + CAST( - AVG ( - col1 ) AS SIGNED ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-1174
SELECT ALL + CAST ( - AVG ( - col1 ) AS INTEGER ) FROM tab1
----
22

query I rowsort
SELECT DISTINCT - 34 + 1 + col0 * col1 FROM tab0 AS cor0
----
1182
1794
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT ALL + + COUNT( * ) + - 38 AS col2 FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-1176
SELECT ALL + + COUNT ( * ) + - 38 AS col2 FROM tab2 AS cor0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT - 96 * + - 97 * COUNT( * ) + + SUM( col0 ) * 24 FROM tab0 AS cor0
----
32712

skipif mysql # not compatible
query I rowsort label-1177
SELECT - 96 * + - 97 * COUNT ( * ) + + SUM ( col0 ) * 24 FROM tab0 AS cor0
----
32712

query I rowsort
SELECT + col2 + - + col1 * + + 59 + + col0 FROM tab1
----
-151
-2614
-679

query I rowsort
SELECT 57 + col1 AS col0 FROM tab1
----
104
62
71

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

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

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

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

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

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

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

query I rowsort
SELECT - + col2 - + 19 AS col0 FROM tab2 AS cor0
----
-42
-59
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT ALL - COUNT( * ) * + + 94 AS col1 FROM tab0 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL - COUNT ( * ) * + + 94 AS col1 FROM tab0 AS cor0
----
-282

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2 col1, col1 + - col1 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, - 70 + - col1 col0 FROM tab0 cor0
----
-10
-91
-47
-151
-99
-71

query I rowsort
SELECT ALL col1 FROM tab2 WHERE ( NULL ) IN ( col2 )
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1193
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT + col1 < + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1193
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT + col1 < + col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1194
SELECT * FROM tab0 AS cor0 WHERE NOT ( 36 ) <= - CAST( 20 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1194
SELECT * FROM tab0 AS cor0 WHERE NOT ( 36 ) <= - CAST ( 20 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1196
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + CAST( NULL AS SIGNED ), 47 )
----

skipif mysql # not compatible
query III rowsort label-1196
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + CAST ( NULL AS INTEGER ), 47 )
----

query I rowsort
SELECT DISTINCT - col2 * + 79 FROM tab2 AS cor0
----
-1817
-3160
-4582

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT COUNT( ALL - - 5 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1198
SELECT COUNT ( ALL - - 5 ) FROM tab0
----
3

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1200
SELECT col1 FROM tab2 cor0 WHERE NOT col2 NOT IN ( + CAST( + + col2 AS DECIMAL ) )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1200
SELECT col1 FROM tab2 cor0 WHERE NOT col2 NOT IN ( + CAST ( + + col2 AS REAL ) )
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1201
SELECT + col1 * - 84 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( CAST( NULL AS SIGNED ) * + + ( + + col2 ) - 92 )
----

skipif mysql # not compatible
query I rowsort label-1201
SELECT + col1 * - 84 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( CAST ( NULL AS INTEGER ) * + + ( + + col2 ) - 92 )
----

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

skipif mysql # not compatible
query I rowsort label-1202
SELECT DISTINCT + col1 * col2 FROM tab0 AS cor0 WHERE 79 + col0 NOT BETWEEN col2 AND - CAST ( NULL AS INTEGER )
----

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

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

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE 55 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL AVG ( - col0 ) col2 FROM tab1 AS cor0 WHERE NOT 7 BETWEEN ( - 64 ) AND col2 + 30
----
NULL

query I rowsort
SELECT - col2 + ( - + 63 ) AS col2 FROM tab1 cor0
----
-122
-131
-159

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

query I rowsort
SELECT - col0 * - - 93 + + 32 FROM tab0
----
-1363
-8059
-8989

onlyif mysql # DIV for integer division: 
query I rowsort label-1210
SELECT 80 + ( + col2 ) DIV + + col2 AS col0 FROM tab2
----
81
81
81

skipif mysql # not compatible
query I rowsort label-1210
SELECT 80 + ( + col2 ) / + + col2 AS col0 FROM tab2
----
81
81
81

query I rowsort
SELECT ALL + 12 FROM tab1 WHERE NOT NULL IN ( - + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1212
SELECT DISTINCT col2 + + CAST( col2 AS SIGNED ) AS col1 FROM tab0
----
198
20
94

skipif mysql # not compatible
query I rowsort label-1212
SELECT DISTINCT col2 + + CAST ( col2 AS INTEGER ) AS col1 FROM tab0
----
198
20
94

query I rowsort
SELECT DISTINCT + col1 * - + col2 + + col2 * - - col0 AS col0 FROM tab2
----
-115
-520
464

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT SUM( + + col0 ) + 84 FROM tab1
----
311

skipif mysql # not compatible
query I rowsort label-1214
SELECT SUM ( + + col0 ) + 84 FROM tab1
----
311

query I rowsort
SELECT DISTINCT + col0 * - col0 FROM tab2 WHERE + + col0 <= + - 64 + 45 + + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1216
SELECT DISTINCT - CAST( + ( col1 ) AS SIGNED ) / col1 AS col0 FROM tab1 AS cor0 WHERE NULL IN ( + col2, + col1 * 85 + + - col2 )
----

skipif mysql # not compatible
query I rowsort label-1216
SELECT DISTINCT - CAST ( + ( col1 ) AS INTEGER ) / col1 AS col0 FROM tab1 AS cor0 WHERE NULL IN ( + col2, + col1 * 85 + + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1217
SELECT DISTINCT col1 * CAST( 83 AS SIGNED ) - + col0 FROM tab2 AS cor0
----
4187
5486
6327

skipif mysql # not compatible
query I rowsort label-1217
SELECT DISTINCT col1 * CAST ( 83 AS INTEGER ) - + col0 FROM tab2 AS cor0
----
4187
5486
6327

onlyif mysql # DIV for integer division: 
query I rowsort label-1218
SELECT ALL - + 68 DIV + col0 + - col2 col1 FROM tab0 AS cor0
----
-10
-51
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1218
SELECT ALL - + 68 / + col0 + - col2 col1 FROM tab0 AS cor0
----
-10
-51
-99

query I rowsort
SELECT DISTINCT - ( - + 12 ) AS col0 FROM tab1 AS cor0 WHERE - 48 NOT BETWEEN NULL AND ( 5 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT + 52 + - - SUM( ALL ( 63 ) ) col1 FROM tab1
----
241

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1220
SELECT + 52 + - - SUM ( ALL ( 63 ) ) col1 FROM tab1
----
241

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

skipif mysql # not compatible
query I rowsort label-1221
SELECT + CAST ( MAX ( ALL + col2 ) AS INTEGER ) + - + COUNT ( * ) AS col2 FROM tab0
----
96

query III rowsort
SELECT * FROM tab2 WHERE - 77 <= NULL
----

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

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

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

query I rowsort
SELECT 89 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1226
SELECT ALL + col1 / - col2 + + CAST( NULL AS SIGNED ) AS col2, + col1 + - + col2 AS col2, - col1 * - col1 col1 FROM tab2 AS cor0
----
9 values hashing to aa8825985985f0f0b2abdf95d29e0c5a

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-1226
SELECT ALL + col1 / - col2 + + CAST ( NULL AS INTEGER ) AS col2, + col1 + - + col2 AS col2, - col1 * - col1 col1 FROM tab2 AS cor0
----
9 values hashing to aa8825985985f0f0b2abdf95d29e0c5a

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT DISTINCT COUNT( * ) * - + 83 AS col2 FROM tab0
----
-249

skipif mysql # not compatible
query I rowsort label-1229
SELECT DISTINCT COUNT ( * ) * - + 83 AS col2 FROM tab0
----
-249

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 WHERE 83 <= 5
----

query II rowsort
SELECT DISTINCT - col0 AS col2, 8 FROM tab2
----
-46
8
-64
8
-75
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1232
SELECT col0, CAST( - col0 AS SIGNED ) FROM tab2
----
46
-46
64
-64
75
-75

skipif mysql # not compatible
query II rowsort label-1232
SELECT col0, CAST ( - col0 AS INTEGER ) FROM tab2
----
46
-46
64
-64
75
-75

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

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

query I rowsort
SELECT ALL + ( - + 60 ) + - 15 FROM tab1 AS cor0
----
-75
-75
-75

query I rowsort
SELECT DISTINCT - col1 + col2 * + + col2 AS col0 FROM tab1 AS cor0
----
3476
4577
9202

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

query I rowsort
SELECT ALL col2 * - + col1 + col2 + ( - - col1 ) FROM tab0 AS cor0
----
-179
-3679
1

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

skipif mysql # not compatible
query I rowsort label-1239
SELECT + col1 / 90 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - - 31 * - ( + - col2 ) AS col2 FROM tab1 cor0
----
1829
2108
2976

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE - + col2 <= - 52
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT ( 85 ) * COUNT( * ) AS col2 FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-1244
SELECT ( 85 ) * COUNT ( * ) AS col2 FROM tab1
----
255

query I rowsort
SELECT 19 * col1 AS col0 FROM tab1
----
266
893
95

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col1 = + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 - + + col2 FROM tab1
----
-45
23
26

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

query III rowsort
SELECT * FROM tab1 WHERE + 57 NOT BETWEEN - col2 / + + col0 + - col0 AND NULL
----

query I rowsort
SELECT col2 - - col0 + - col2 + + - 47 FROM tab2
----
-1
17
28

query III rowsort
SELECT * FROM tab2 WHERE - 55 NOT BETWEEN NULL AND ( col1 )
----

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

skipif mysql # not compatible
query I rowsort label-1252
SELECT ALL 95 + COUNT ( * ) FROM tab0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-1253
SELECT - - ( - + col0 ) + - col1 DIV + col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1253
SELECT - - ( - + col0 ) + - col1 / + col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT - 73 + + col1 AS col0 FROM tab2 AS cor0
----
-22
-6
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1255
SELECT DISTINCT col1 + - 34 * CAST( - 79 AS SIGNED ) FROM tab0 AS cor0
----
2687
2707
2767

skipif mysql # not compatible
query I rowsort label-1255
SELECT DISTINCT col1 + - 34 * CAST ( - 79 AS INTEGER ) FROM tab0 AS cor0
----
2687
2707
2767

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT DISTINCT - COUNT( * ) + + - AVG ( col0 ) AS col2 FROM tab1 WHERE + - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1257
SELECT DISTINCT - COUNT ( * ) + + - AVG ( col0 ) AS col2 FROM tab1 WHERE + - col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 * + 43 FROM tab0
----
3741
4171
645

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1260
SELECT - - 57 DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1260
SELECT - - 57 / - col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 47 * + 99 col2 FROM tab0 AS cor0
----
4653

query I rowsort
SELECT ALL - - 88 * - - col1 FROM tab0 AS cor0 WHERE - col1 * col0 * - - col0 / - 49 IS NOT NULL
----
1848
7128
88

onlyif mysql # aggregate syntax: 
query II rowsort label-1263
SELECT ALL COUNT( * ) AS col2, 28 * - + 7 FROM tab2, tab1 AS cor0
----
9
-196

skipif mysql # not compatible
query II rowsort label-1263
SELECT ALL COUNT ( * ) AS col2, 28 * - + 7 FROM tab2, tab1 AS cor0
----
9
-196

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1264
SELECT + COUNT( * ), - ( + 23 ) DIV 73 AS col1 FROM tab1, tab1 AS cor0
----
9
0

skipif mysql # not compatible
query II rowsort label-1264
SELECT + COUNT ( * ), - ( + 23 ) / 73 AS col1 FROM tab1, tab1 AS cor0
----
9
0

query I rowsort
SELECT col0 FROM tab1 WHERE NOT - 32 IN ( - - col0 * - - 59 )
----
51
85
91

query I rowsort
SELECT DISTINCT - 0 * 40 FROM tab1
----
0

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

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

query I rowsort
SELECT + 78 * + + col0 FROM tab2 AS cor0
----
3588
4992
5850

query I rowsort
SELECT DISTINCT - ( 0 ) + + + 15 + col1 FROM tab1 AS cor0
----
20
29
62

query I rowsort
SELECT - - 61 AS col1 FROM tab2 WHERE 49 IS NULL
----

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

query I rowsort
SELECT DISTINCT - - 93 + - - col2 FROM tab2 AS cor0
----
116
133
151

query I rowsort
SELECT ALL 34 + + - col1 FROM tab2 AS cor0
----
-17
-33
-43

query I rowsort
SELECT col1 + + 50 + + 43 FROM tab1 AS cor0 WHERE ( + 39 ) = - col1
----

query I rowsort
SELECT + col0 + - + 51 + + col0 + + 42 * - 32 * + 5 * col2 AS col1 FROM tab1 AS cor0
----
-396361
-456829
-645069

query I rowsort
SELECT ALL - 63 + - + 37 FROM tab1 AS cor0
----
-100
-100
-100

query I rowsort
SELECT - - col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 + col1 + 8 + + col1 * + col2 / col1 + 42, col0 * - - col0 + + col2, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT ALL + MAX( DISTINCT - 3 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL + MAX ( DISTINCT - 3 ) AS col0 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - col2 col0 FROM tab2
----
116
46
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1280
SELECT DISTINCT + MAX( ALL CAST( + col0 AS SIGNED ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-1280
SELECT DISTINCT + MAX ( ALL CAST ( + col0 AS INTEGER ) ) FROM tab0
----
97

query I rowsort
SELECT + 72 * 37 FROM tab2
----
2664
2664
2664

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1282
SELECT COUNT( * ) DIV 16 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1282
SELECT COUNT ( * ) / 16 FROM tab1
----
0

query I rowsort
SELECT col0 * - + 17 - + - col0 FROM tab2 WHERE - col2 * - col2 IS NOT NULL
----
-1024
-1200
-736

query III rowsort
SELECT * FROM tab1 WHERE + col1 * 32 / + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + - 0 FROM tab1
----
59
68
96

query I rowsort
SELECT - ( - 68 ) AS col2 FROM tab1
----
68
68
68

query I rowsort
SELECT ALL col0 + + 17 AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 * - + col2 * - + 78 = + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT DISTINCT + SUM( col2 ) * - + COUNT( * ) FROM tab2
----
-363

skipif mysql # not compatible
query I rowsort label-1289
SELECT DISTINCT + SUM ( col2 ) * - + COUNT ( * ) FROM tab2
----
-363

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1290
SELECT ALL 6 * - MIN( ALL - col0 ) AS col0, + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
582
NULL

skipif mysql # not compatible
query II rowsort label-1290
SELECT ALL 6 * - MIN ( ALL - col0 ) AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
582
NULL

query I rowsort
SELECT - col1 * + col1 + + col2 AS col1 FROM tab1 AS cor0
----
-100
-2141
34

onlyif mysql # DIV for integer division: 
query II rowsort label-1292
SELECT ALL - col1 * - - ( - col1 ) + 69 DIV - col1, - col2 DIV col2 AS col0 FROM tab0 AS cor0
----
-68
-1
438
-1
6561
-1

skipif mysql # not compatible
query II rowsort label-1292
SELECT ALL - col1 * - - ( - col1 ) + 69 / - col1, - col2 / col2 AS col0 FROM tab0 AS cor0
----
-68
-1
438
-1
6561
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1293
SELECT ALL - 90 * + + CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
2070
3600
5220

skipif mysql # not compatible
query I rowsort label-1293
SELECT ALL - 90 * + + CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
2070
3600
5220

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT ALL - + 72 * - - COUNT( * ) FROM tab0 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-1295
SELECT ALL - + 72 * - - COUNT ( * ) FROM tab0 AS cor0
----
-216

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT 32 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1298
SELECT + col2, - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT 0 IS NULL
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-1298
SELECT + col2, - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT 0 IS NULL
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE ( + col1 + col2 * - - 85 * + - col1 ) IS NULL
----

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

query II rowsort
SELECT DISTINCT 63 * - col0 AS col2, col0 * + - ( - col0 ) AS col0 FROM tab0
----
-5481
7569
-6111
9409
-945
225

query I rowsort
SELECT ALL + 14 AS col0 FROM tab1 WHERE 6 * - - col0 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-1303
SELECT - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1304
SELECT ALL + 56 DIV col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL + 56 / col2 FROM tab2
----
0
1
2

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1306
SELECT ALL - 36 DIV - col0 + - 32 AS col0 FROM tab2 AS cor0
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-1306
SELECT ALL - 36 / - col0 + - 32 AS col0 FROM tab2 AS cor0
----
-32
-32
-32

query I rowsort
SELECT - + col1 + + + col2 - + 38 AS col0 FROM tab2 cor0
----
-47
-66
-75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1308
SELECT + ( + + CAST( + 81 AS SIGNED ) ) * - - col1 + + + col0 * 11 DIV + col2 - ( + col1 ) FROM tab0
----
1775
6483
90

skipif mysql # not compatible
query I rowsort label-1308
SELECT + ( + + CAST ( + 81 AS INTEGER ) ) * - - col1 + + + col0 * 11 / + col2 - ( + col1 ) FROM tab0
----
1775
6483
90

query I rowsort
SELECT 96 + - 29 FROM tab2
----
67
67
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1310
SELECT + COUNT( * ) DIV + 11 + + MIN( ALL 30 ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-1310
SELECT + COUNT ( * ) / + 11 + + MIN ( ALL 30 ) FROM tab2
----
30

query II rowsort
SELECT DISTINCT - + 87, - col2 FROM tab0 WHERE + - col1 * 71 + + col2 BETWEEN + ( col0 ) * + col1 AND + col0
----

query I rowsort
SELECT + 96 * - col2 * - - col2 FROM tab2 AS cor0 WHERE NULL >= + col2
----

query II rowsort
SELECT + col2 * col2 + - 13, col1 * + 92 AS col2 FROM tab0 cor0
----
2196
7452
87
1932
9788
92

query I rowsort
SELECT DISTINCT - col1 FROM tab1 cor0 WHERE + col0 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT - + 72 - + 26 FROM tab0 AS cor0
----
-98
-98
-98

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1318
SELECT DISTINCT + col1 - + 71 DIV - col2 AS col2, + col2 + + 92 FROM tab0
----
1
191
28
102
82
139

skipif mysql # not compatible
query II rowsort label-1318
SELECT DISTINCT + col1 - + 71 / - col2 AS col2, + col2 + + 92 FROM tab0
----
1
191
28
102
82
139

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

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL + COUNT ( - + 89 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT ALL - COUNT( * ) - - 70 FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL - COUNT ( * ) - - 70 FROM tab0
----
67

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

skipif mysql # not compatible
query I rowsort label-1321
SELECT + MAX ( DISTINCT + col2 ) - + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1
----
93

query III rowsort
SELECT * FROM tab2 WHERE + 82 - - + ( - 39 ) * - - 10 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 7 / - col2 <> 69 + - col2 + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * + + col1 + 5 FROM tab1 AS cor0
----
-420
-4272
-709

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, - 41 + - col0 AS col0 FROM tab2 AS cor0
----
23
-87
40
-105
58
-116

query I rowsort
SELECT DISTINCT - col2 * - col1 * + col2 + col1 * - + col0 FROM tab2 AS cor0
----
118272
220363
24633

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 50 < NULL
----

query I rowsort
SELECT 1 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1329
SELECT * FROM tab0 AS cor0 WHERE NOT 42 / + col1 NOT BETWEEN + col1 * CAST( col2 AS SIGNED ) * + + 20 - + + col1 + + col1 / - 79 AND NULL
----

skipif mysql # not compatible
query III rowsort label-1329
SELECT * FROM tab0 AS cor0 WHERE NOT 42 / + col1 NOT BETWEEN + col1 * CAST ( col2 AS INTEGER ) * + + 20 - + + col1 + + col1 / - 79 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT DISTINCT - ( - + 84 ) * + COUNT( * ) col2 FROM tab2 AS cor0
----
252

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

query I rowsort
SELECT ALL + + col1 * 39 - col0 AS col2 FROM tab0 AS cor0
----
-58
3144
732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1332
SELECT - - ( + col1 ) * + CAST( - + col1 AS SIGNED ) FROM tab2 AS cor0
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-1332
SELECT - - ( + col1 ) * + CAST ( - + col1 AS INTEGER ) FROM tab2 AS cor0
----
-2601
-4489
-5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) * + + col2 col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT - 74 * + col1 + 12 * - 81 AS col1 FROM tab1
----
-1342
-2008
-4450

query I rowsort
SELECT ALL - 22 + - - 15 FROM tab2
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT DISTINCT MIN( DISTINCT - 32 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1336
SELECT DISTINCT MIN ( DISTINCT - 32 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT ALL - 27 + - 51 + - + MAX( ALL - - col0 ) FROM tab0 AS cor0
----
-175

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL - 27 + - 51 + - + MAX ( ALL - - col0 ) FROM tab0 AS cor0
----
-175

onlyif mysql # aggregate syntax: 
query II rowsort label-1338
SELECT DISTINCT - + COUNT( * ) AS col0, 62 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0
62

skipif mysql # not compatible
query II rowsort label-1338
SELECT DISTINCT - + COUNT ( * ) AS col0, 62 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT ALL + + 54 - + + COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
45

skipif mysql # not compatible
query I rowsort label-1340
SELECT ALL + + 54 - + + COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
45

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

query I rowsort
SELECT col1 + + - 5 AS col0 FROM tab0
----
-4
16
76

query I rowsort
SELECT col1 + - - 72 FROM tab0
----
153
73
93

query II rowsort
SELECT DISTINCT col2, col0 * - ( + + col2 ) AS col1 FROM tab2 AS cor0
----
23
-1058
40
-2560
58
-4350

query I rowsort
SELECT ALL col0 + col1 * - - col0 - + col2 * + col2 AS col0 FROM tab1 AS cor0
----
-256
-2971
-8451

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1346
SELECT CAST( + ( - + col0 ) AS SIGNED ) + col2 * - col2 * - - 56 FROM tab0 AS cor0
----
-123719
-548953
-5687

skipif mysql # not compatible
query I rowsort label-1346
SELECT CAST ( + ( - + col0 ) AS INTEGER ) + col2 * - col2 * - - 56 FROM tab0 AS cor0
----
-123719
-548953
-5687

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT ALL + 94 - - COUNT( * ) + + 20 FROM tab0 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-1347
SELECT ALL + 94 - - COUNT ( * ) + + 20 FROM tab0 AS cor0
----
117

query I rowsort
SELECT + col1 * col1 + - ( - col0 ) FROM tab1 AS cor0
----
110
2300
247

query II rowsort
SELECT ALL + col0 AS col0, 42 AS col0 FROM tab1 cor0
----
51
42
85
42
91
42

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

skipif mysql # not compatible
query I rowsort label-1350
SELECT + col2 / - + col0 AS col1 FROM tab2
----
0
0
0

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

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

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

query I rowsort
SELECT - - 41 * + + col2 FROM tab0 cor0
----
1927
4059
410

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

query II rowsort
SELECT DISTINCT 54 AS col2, + 58 * - col0 FROM tab0 AS cor0
----
54
-5046
54
-5626
54
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT - + SUM( DISTINCT + ( 45 ) ) * 23 * - MAX( - 59 ) * - - COUNT( + + 96 ) AS col1 FROM tab0 AS cor0
----
-183195

skipif mysql # not compatible
query I rowsort label-1356
SELECT - + SUM ( DISTINCT + ( 45 ) ) * 23 * - MAX ( - 59 ) * - - COUNT ( + + 96 ) AS col1 FROM tab0 AS cor0
----
-183195

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT - COUNT( col0 ) * - COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-1358
SELECT - COUNT ( col0 ) * - COUNT ( * ) FROM tab0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + 21 ) col0 FROM tab2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1360
SELECT + CAST( ( + col0 ) AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1360
SELECT + CAST ( ( + col0 ) AS INTEGER ) FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1361
SELECT * FROM tab2 WHERE 58 > - CAST( - col1 AS SIGNED )
----
46
51
23

skipif mysql # not compatible
query III rowsort label-1361
SELECT * FROM tab2 WHERE 58 > - CAST ( - col1 AS INTEGER )
----
46
51
23

query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE 58 = - col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1363
SELECT col2 DIV 90 * + 87 - col1 + - CAST( + + col0 AS SIGNED ) FROM tab0 AS cor0
----
-108
-11
-96

skipif mysql # not compatible
query I rowsort label-1363
SELECT col2 / 90 * + 87 - col1 + - CAST ( + + col0 AS INTEGER ) FROM tab0 AS cor0
----
-108
-11
-96

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

skipif mysql # not compatible
query I rowsort label-1364
SELECT DISTINCT + + COUNT ( * ) + + 54 FROM tab2 cor0
----
57

query I rowsort
SELECT ALL + 6 * col1 AS col1 FROM tab0 AS cor0
----
126
486
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT - COUNT( * ) - 98 + + - 90 col1 FROM tab1 AS cor0
----
-191

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1366
SELECT - COUNT ( * ) - 98 + + - 90 col1 FROM tab1 AS cor0
----
-191

query I rowsort
SELECT DISTINCT - - 29 - + 21 AS col0 FROM tab1 AS cor0
----
8

query I rowsort
SELECT - col0 * + col2 * + 54 - col0 AS col0 FROM tab0 AS cor0
----
-38085
-47067
-518659

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 2, col2 + + - col2 col0 FROM tab0
----
2
0
2
0
2
0

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

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

query I rowsort
SELECT ALL + 28 * col2 FROM tab0
----
1316
2772
280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1373
SELECT ALL - COUNT( * ) DIV 85 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1373
SELECT ALL - COUNT ( * ) / 85 col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1374
SELECT ALL 10 DIV - + col0 * + col0 * + 42 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1374
SELECT ALL 10 / - + col0 * + col0 * + 42 col2 FROM tab2
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT 92 * + COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
828

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1376
SELECT 92 * + COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
828

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT DISTINCT - - MAX( - 42 ) + COUNT( * ) * ( - 83 ) AS col2 FROM tab2 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-1377
SELECT DISTINCT - - MAX ( - 42 ) + COUNT ( * ) * ( - 83 ) AS col2 FROM tab2 AS cor0
----
-291

query I rowsort
SELECT DISTINCT + + 16 AS col0 FROM tab2 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT DISTINCT SUM( ALL + + 45 ) * - ( - + 52 ) FROM tab1
----
7020

skipif mysql # not compatible
query I rowsort label-1379
SELECT DISTINCT SUM ( ALL + + 45 ) * - ( - + 52 ) FROM tab1
----
7020

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 77 BETWEEN 79 AND + + 66 - - col1 / - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT ALL 28 + + col0 - - + col1 * + col0 AS col0 FROM tab0
----
1258
1942
222

query II rowsort
SELECT - 39, + col2 FROM tab2
----
-39
23
-39
40
-39
58

query II rowsort
SELECT - + 7, 74 * + + col0 + + col2 AS col0 FROM tab0 WHERE NULL IS NULL
----
-7
1157
-7
6448
-7
7277

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

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

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

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

query I rowsort
SELECT col1 / 9 AS col2 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL - 60 * + - col2 AS col1 FROM tab1 AS cor0
----
3540
4080
5760

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT ALL 71 * + MAX( DISTINCT + col1 ) AS col1 FROM tab2
----
5467

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL 71 * + MAX ( DISTINCT + col1 ) AS col1 FROM tab2
----
5467

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + 23 + col1 BETWEEN 86 + - col0 AND + 32
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * 26 FROM tab2
----
1040
1508
598

query I rowsort
SELECT DISTINCT - col2 * + 56 FROM tab2
----
-1288
-2240
-3248

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT COUNT( * ) * + - 46 FROM tab1
----
-138

skipif mysql # not compatible
query I rowsort label-1397
SELECT COUNT ( * ) * + - 46 FROM tab1
----
-138

query I rowsort
SELECT - 71 FROM tab2, tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL col1 / + 31 FROM tab0
----
0
0
2

query I rowsort
SELECT 70 * + 94 AS col2 FROM tab0
----
6580
6580
6580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 / - - 58 + + + col0 + + + 23 * + col1 AS col0, 15 col2 FROM tab1 AS cor0 WHERE ( col2 ) IS NULL
----

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

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

query I rowsort
SELECT ALL + 25 + + col1 - + + col2 FROM tab0 WHERE - ( + col0 ) IS NULL
----

query I rowsort
SELECT + ( col1 ) + + col0 * - - 77 FROM tab2
----
3593
5005
5842

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

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

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

query I rowsort
SELECT ALL col2 + - ( 44 ) + - + col1 * + col2 FROM tab0
----
-244
-3804
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1408
SELECT DISTINCT - - col1 * CAST( 4 AS SIGNED ) + 94 AS col0 FROM tab1 AS cor0
----
114
150
282

skipif mysql # not compatible
query I rowsort label-1408
SELECT DISTINCT - - col1 * CAST ( 4 AS INTEGER ) + 94 AS col0 FROM tab1 AS cor0
----
114
150
282

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

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

query I rowsort
SELECT ALL - + ( - col2 ) + + 82 * - col2 FROM tab0 cor0
----
-3807
-8019
-810

query I rowsort
SELECT ALL ( + ( + + 75 ) ) FROM tab2 AS cor0
----
75
75
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 24 < - col2
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1416
SELECT DISTINCT - - CAST( - 22 AS SIGNED ) DIV - MAX( DISTINCT + 5 ) FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-1416
SELECT DISTINCT - - CAST ( - 22 AS INTEGER ) / - MAX ( DISTINCT + 5 ) FROM tab2 AS cor0
----
4

query II rowsort
SELECT 84 * - col2, - col0 AS col1 FROM tab1
----
-4956
-85
-5712
-91
-8064
-51

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

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

query I rowsort
SELECT DISTINCT + 55 FROM tab2 WHERE NOT + + col1 <> NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1421
SELECT - 68 * ( ( - CAST( + ( + 37 ) AS SIGNED ) ) ) + - col0 + - col0 * - 31 * - ( + col1 ) FROM tab2 AS cor0
----
-150316
-153334
-70256

skipif mysql # not compatible
query I rowsort label-1421
SELECT - 68 * ( ( - CAST ( + ( + 37 ) AS INTEGER ) ) ) + - col0 + - col0 * - 31 * - ( + col1 ) FROM tab2 AS cor0
----
-150316
-153334
-70256

query I rowsort
SELECT DISTINCT - + col2 AS col0 FROM tab0 AS cor0 WHERE + col0 / - col0 + 23 + - - col2 <> NULL
----

query II rowsort
SELECT - + col0 + + col0 AS col0, 14 * - col0 FROM tab0 AS cor0
----
0
-1218
0
-1358
0
-210

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT DISTINCT + - 95 + - COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-104

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1426
SELECT DISTINCT - col2 + + col0 * - + col1 + - CAST( - - col1 AS DECIMAL ) + - + col0 * + - col0 * - col0 * - - col2 FROM tab1 AS cor0 WHERE NOT 47 + 82 * + col2 * - col0 <= NULL
----

skipif mysql # not compatible
query I rowsort label-1426
SELECT DISTINCT - col2 + + col0 * - + col1 + - CAST ( - - col1 AS REAL ) + - + col0 * + - col0 * - col0 * - - col2 FROM tab1 AS cor0 WHERE NOT 47 + 82 * + col2 * - col0 <= NULL
----

query II rowsort
SELECT - 97 AS col0, - 87 AS col0 FROM tab2 AS cor0
----
-97
-87
-97
-87
-97
-87

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1429
SELECT MIN( DISTINCT - col2 ) DIV - + COUNT( * ) - + MIN( 36 ) AS col2 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-1429
SELECT MIN ( DISTINCT - col2 ) / - + COUNT ( * ) - + MIN ( 36 ) AS col2 FROM tab1 AS cor0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1430
SELECT - col1 DIV - col1 + + col2 FROM tab1 cor0
----
60
69
97

skipif mysql # not compatible
query I rowsort label-1430
SELECT - col1 / - col1 + + col2 FROM tab1 cor0
----
60
69
97

onlyif mysql # aggregate syntax: 
query II rowsort label-1431
SELECT 63 AS col0, - MIN( + col1 ) FROM tab0 AS cor0
----
63
-1

skipif mysql # not compatible
query II rowsort label-1431
SELECT 63 AS col0, - MIN ( + col1 ) FROM tab0 AS cor0
----
63
-1

query I rowsort
SELECT ALL - ( - - col2 ) * + col2 FROM tab0
----
-100
-2209
-9801

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

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

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

skipif mysql # not compatible
query I rowsort label-1435
SELECT + - SUM ( ALL + - col0 ) FROM tab2 cor0
----
185

query I rowsort
SELECT - 45 * - 77 FROM tab0 AS cor0
----
3465
3465
3465

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + - - 99 >= NULL
----

query I rowsort
SELECT ALL - 19 * col0 AS col1 FROM tab1 AS cor0
----
-1615
-1729
-969

onlyif mysql # DIV for integer division: 
query I rowsort label-1439
SELECT + + col2 DIV col0 * + col1 FROM tab1 AS cor0
----
0
0
14

skipif mysql # not compatible
query I rowsort label-1439
SELECT + + col2 / col0 * + col1 FROM tab1 AS cor0
----
0
0
14

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - + ( + + col2 ) / - - col2 IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 66 AS col1, col1 col2 FROM tab0
----
-66
1
-66
21
-66
81

query I rowsort
SELECT + + col0 FROM tab1 AS cor0 WHERE - 69 BETWEEN - + col1 * - col1 - - col0 + - col0 AND - + col2 * - - 43
----

query II rowsort
SELECT + col1 AS col2, + col0 * - + 54 FROM tab1 AS cor0
----
14
-2754
47
-4914
5
-4590

query I rowsort
SELECT col1 + 35 AS col0 FROM tab0 AS cor0
----
116
36
56

query I rowsort
SELECT - col0 + - col2 + + col2 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < col2 / + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1449
SELECT ALL - - SUM( + col0 ) DIV + + CAST( - - 6 AS SIGNED ) FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-1449
SELECT ALL - - SUM ( + col0 ) / + + CAST ( - - 6 AS INTEGER ) FROM tab1 AS cor0
----
37

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1453
SELECT ALL - CAST( NULL AS SIGNED ), 78 AS col1 FROM tab2
----
NULL
78
NULL
78
NULL
78

skipif mysql # not compatible
query II rowsort label-1453
SELECT ALL - CAST ( NULL AS INTEGER ), 78 AS col1 FROM tab2
----
NULL
78
NULL
78
NULL
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1454
SELECT ALL + 52 + - CAST( + - COUNT( * ) AS SIGNED ) * + 77 AS col1 FROM tab1
----
283

skipif mysql # not compatible
query I rowsort label-1454
SELECT ALL + 52 + - CAST ( + - COUNT ( * ) AS INTEGER ) * + 77 AS col1 FROM tab1
----
283

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

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

query I rowsort
SELECT + 54 * + col0 FROM tab2
----
2484
3456
4050

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

query I rowsort
SELECT 94 * - 44 FROM tab0
----
-4136
-4136
-4136

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

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

query I rowsort
SELECT DISTINCT - - col0 - + + 72 FROM tab2 AS cor0
----
-26
-8
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1461
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1461
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 81 - col2 - ( + col0 ) < col0
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 cor0 WHERE NOT + col0 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT - MAX( DISTINCT + col1 ) col1 FROM tab2 AS cor0 WHERE NOT 9 IS NOT NULL
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1465
SELECT - col0 DIV - + 16 AS col1 FROM tab2 cor0
----
2
4
4

skipif mysql # not compatible
query I rowsort label-1465
SELECT - col0 / - + 16 AS col1 FROM tab2 cor0
----
2
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col0 FROM tab0 cor0 WHERE NOT + ( col1 ) - 41 NOT BETWEEN - 85 * + - col2 + - col1 AND NULL
----

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1472
SELECT ALL col1 AS col1, 19 DIV + + ( 88 ) AS col1 FROM tab0
----
1
0
21
0
81
0

skipif mysql # not compatible
query II rowsort label-1472
SELECT ALL col1 AS col1, 19 / + + ( 88 ) AS col1 FROM tab0
----
1
0
21
0
81
0

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

query II rowsort
SELECT DISTINCT + col2, - ( - + col0 ) FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT ALL + ( - - 69 ) + - col1 AS col0 FROM tab2
----
-8
18
2

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

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

query I rowsort
SELECT DISTINCT - 62 * - col0 + col2 FROM tab0 AS cor0
----
5404
6113
977

onlyif mysql # DIV for integer division: 
query I rowsort label-1478
SELECT ALL ( - col1 ) DIV + 15 AS col0 FROM tab2 AS cor0
----
-3
-4
-5

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL ( - col1 ) / + 15 AS col0 FROM tab2 AS cor0
----
-3
-4
-5

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1479
SELECT CAST ( NULL AS INTEGER ) + 28 col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + 26 AS col1 FROM tab0 AS cor0 WHERE 6 BETWEEN + col1 AND + col0 - - col1 * - 66
----
-2574

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

query I rowsort
SELECT + 49 * - - 0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - - 28 * - 38 AS col0 FROM tab2 AS cor0
----
-1064
-1064
-1064

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

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

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

query I rowsort
SELECT + 64 - - 5 AS col0 FROM tab2
----
69
69
69

query I rowsort
SELECT - col2 * - 62 * col1 - col2 AS col0 FROM tab0
----
13010
235987
6039

query I rowsort
SELECT 30 * - - 73 - - + col2 FROM tab2
----
2213
2230
2248

query I rowsort
SELECT + col1 - - + col2 AS col0 FROM tab1
----
110
115
64

query I rowsort
SELECT - col0 - + col1 * - col2 AS col2 FROM tab2
----
1127
3016
3811

query III rowsort
SELECT * FROM tab2 WHERE NULL <= + - col0 * ( + 53 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1493
SELECT + col0 + + CAST( + col0 AS SIGNED ) FROM tab0 cor0
----
174
194
30

skipif mysql # not compatible
query I rowsort label-1493
SELECT + col0 + + CAST ( + col0 AS INTEGER ) FROM tab0 cor0
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1494
SELECT ALL + CAST( - + col0 AS SIGNED ) + - CAST( + 74 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-161
-171
-89

skipif mysql # not compatible
query I rowsort label-1494
SELECT ALL + CAST ( - + col0 AS INTEGER ) + - CAST ( + 74 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-161
-171
-89

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1498
SELECT DISTINCT + - col1 DIV + 64 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1498
SELECT DISTINCT + - col1 / + 64 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1499
SELECT ALL col1 * + - 82 + col2 * + - col0 AS col0, + col1 + - col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
-5240
51
-8874
77
-9844
68

skipif mysql # not compatible
query II rowsort label-1499
SELECT ALL col1 * + - 82 + col2 * + - col0 AS col0, + col1 + - col0 / - col1 AS col0 FROM tab2 AS cor0
----
-5240
51
-8874
77
-9844
68

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

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

query II rowsort
SELECT DISTINCT - + 65, + 77 AS col2 FROM tab1 AS cor0
----
-65
77

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1504
SELECT ALL - 12 DIV col1 FROM tab2 AS cor0 WHERE + 18 * 71 + 56 * + + 68 NOT IN ( - + 23, col0, - - ( + ( + - 54 ) ) )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL - 12 / col1 FROM tab2 AS cor0 WHERE + 18 * 71 + 56 * + + 68 NOT IN ( - + 23, col0, - - ( + ( + - 54 ) ) )
----
0
0
0

query II rowsort
SELECT DISTINCT 47 AS col2, + ( 62 ) AS col1 FROM tab1 AS cor0
----
47
62

query I rowsort
SELECT ALL - 90 + + col1 AS col0 FROM tab1
----
-43
-76
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 20 * + col2 + + col2 - - col1 - - 44 col2 FROM tab0 cor0
----
-1925
-195876
-44008

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1509
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 97 * + - ( + col2 ) * 47 - + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1509
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 97 * + - ( + col2 ) * 47 - + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - col2 - + 7 AS col2 FROM tab0
----
-106
-17
-54

query I rowsort
SELECT 74 * + col2 + + - 54 FROM tab0 cor0
----
3424
686
7272

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

query I rowsort
SELECT ALL - col0 + - + col2 AS col2 FROM tab0 AS cor0
----
-196
-62
-97

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1515
SELECT DISTINCT col1 * - - col2 + + 99 - + 56 + + CAST( - col2 AS SIGNED ) - + + col1 * 63 FROM tab2 AS cor0
----
-1768
-2020
-350

skipif mysql # not compatible
query I rowsort label-1515
SELECT DISTINCT col1 * - - col2 + + 99 - + 56 + + CAST ( - col2 AS INTEGER ) - + + col1 * 63 FROM tab2 AS cor0
----
-1768
-2020
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT + COUNT( * ) * + 87 * + - 37 + - COUNT( * ) FROM tab2 cor0
----
-9660

skipif mysql # not compatible
query I rowsort label-1516
SELECT + COUNT ( * ) * + 87 * + - 37 + - COUNT ( * ) FROM tab2 cor0
----
-9660

query I rowsort
SELECT DISTINCT 98 * + 30 AS col0 FROM tab2 cor0
----
2940

query I rowsort
SELECT ALL - 89 - + col0 AS col0 FROM tab2
----
-135
-153
-164

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

query I rowsort
SELECT ALL - 62 * + 41 * + - col2 FROM tab1
----
149978
172856
244032

query I rowsort
SELECT ALL - col1 * + ( - col2 ) * + 36 + - + 65 + 57 * + - col0 AS col1 FROM tab0
----
-2030
136132
2536

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

query I rowsort
SELECT 53 * - - col2 FROM tab2
----
1219
2120
3074

onlyif mysql # DIV for integer division: 
query I rowsort label-1524
SELECT col0 DIV 84 * + 25 AS col1 FROM tab1
----
0
25
25

skipif mysql # not compatible
query I rowsort label-1524
SELECT col0 / 84 * + 25 AS col1 FROM tab1
----
0
25
25

query I rowsort
SELECT ALL 82 * - 2 FROM tab0
----
-164
-164
-164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1526
SELECT CAST( + col2 AS SIGNED ) - + - 79 FROM tab0
----
126
178
89

skipif mysql # not compatible
query I rowsort label-1526
SELECT CAST ( + col2 AS INTEGER ) - + - 79 FROM tab0
----
126
178
89

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 >= 65
----
15
81
47
87
21
10

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1532
SELECT + col0 DIV 29 + CAST( - col2 AS SIGNED ) * + - col1 AS col0 FROM tab1 AS cor0
----
1345
297
3199

skipif mysql # not compatible
query I rowsort label-1532
SELECT + col0 / 29 + CAST ( - col2 AS INTEGER ) * + - col1 AS col0 FROM tab1 AS cor0
----
1345
297
3199

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + - 42 + col0 ) <> col2
----

query I rowsort
SELECT DISTINCT - 56 * + 60 AS col1 FROM tab2
----
-3360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1535
SELECT - COUNT( * ) DIV - - SUM( 23 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1535
SELECT - COUNT ( * ) / - - SUM ( 23 ) AS col2 FROM tab1
----
0

query I rowsort
SELECT ALL + ( + col2 ) + ( col1 ) + + col0 FROM tab2
----
120
181
200

query I rowsort
SELECT DISTINCT + col1 + - 57 + + + col1 AS col0 FROM tab1
----
-29
-47
37

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

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

query I rowsort
SELECT - 20 + + 0 + + - col0 FROM tab2
----
-66
-84
-95

query I rowsort
SELECT 12 + + col0 - - col2 * + - col2 FROM tab1
----
-3384
-4521
-9153

query I rowsort
SELECT + col2 * + col2 * - col0 * 43 FROM tab0
----
-1424805
-374100
-40879971

query II rowsort
SELECT - col1 * + - col2, ( + col2 ) + 62 + - + col0 AS col2 FROM tab0
----
210
-15
3807
94
99
64

query I rowsort
SELECT DISTINCT 99 + + 26 FROM tab1 cor0
----
125

query I rowsort
SELECT ALL - col0 + 58 + + ( + col2 ) AS col0 FROM tab0 AS cor0
----
-19
60
90

query I rowsort
SELECT + 93 - col0 FROM tab1 cor0
----
2
42
8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1547
SELECT + col0 DIV CAST( + - col2 AS SIGNED ) - + - col2 FROM tab2 AS cor0
----
21
39
57

skipif mysql # not compatible
query I rowsort label-1547
SELECT + col0 / CAST ( + - col2 AS INTEGER ) - + - col2 FROM tab2 AS cor0
----
21
39
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT COUNT( * ) - - 26 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-1548
SELECT COUNT ( * ) - - 26 FROM tab1
----
29

query I rowsort
SELECT ALL - col2 * - 85 AS col0 FROM tab0
----
3995
8415
850

onlyif mysql # DIV for integer division: 
query I rowsort label-1550
SELECT col2 + col1 + - + col2 DIV col1 DIV - col1 AS col0 FROM tab1
----
110
115
66

skipif mysql # not compatible
query I rowsort label-1550
SELECT col2 + col1 + - + col2 / col1 / - col1 AS col0 FROM tab1
----
110
115
66

query I rowsort
SELECT col1 + - + 25 + + col0 FROM tab0
----
71
73
83

onlyif mysql # DIV for integer division: 
query II rowsort label-1552
SELECT ALL col2 DIV + col1 - col0 AS col2, col2 AS col1 FROM tab0
----
-15
47
-87
10
2
99

skipif mysql # not compatible
query II rowsort label-1552
SELECT ALL col2 / + col1 - col0 AS col2, col2 AS col1 FROM tab0
----
-15
47
-87
10
2
99

query I rowsort
SELECT ALL 37 * - col1 AS col0 FROM tab2
----
-1887
-2479
-2849

query II rowsort
SELECT - - col1 AS col1, col2 + - + 45 * - col2 AS col0 FROM tab0 AS cor0
----
1
4554
21
460
81
2162

query I rowsort
SELECT DISTINCT + 53 * + col0 * 46 * + col1 FROM tab0 AS cor0 WHERE - 3 < col2
----
236486
2962170
4454226

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT + SUM( + - 54 ) AS col2 FROM tab0 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-1556
SELECT + SUM ( + - 54 ) AS col2 FROM tab0 AS cor0
----
-162

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

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

query I rowsort
SELECT + col1 + 91 * col1 FROM tab0
----
1932
7452
92

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( + 37 * - 83 ) AND - 86 + col2
----

query I rowsort
SELECT col0 + 79 AS col1 FROM tab2
----
125
143
154

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 NOT IN ( + col1 + - col2 )
----

query I rowsort
SELECT DISTINCT - 35 / - 57 FROM tab0 WHERE NOT NULL <= col2
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 73 ) IS NOT NULL
----

query I rowsort
SELECT + col0 * + 81 - col2 AS col0 FROM tab1
----
4035
6826
7303

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

query I rowsort
SELECT + 23 + + 88 AS col1 FROM tab1
----
111
111
111

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 BETWEEN 30 AND ( 20 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) * col0 col1 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT col1 * + ( - 70 ) AS col0 FROM tab0
----
-1470
-5670
-70

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT 88 * - COUNT( * ) FROM tab1
----
-264

skipif mysql # not compatible
query I rowsort label-1574
SELECT 88 * - COUNT ( * ) FROM tab1
----
-264

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1575
SELECT * FROM tab0 WHERE col0 NOT BETWEEN col2 * col0 AND ( + col1 * CAST( + col2 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1575
SELECT * FROM tab0 WHERE col0 NOT BETWEEN col2 * col0 AND ( + col1 * CAST ( + col2 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 < + col0 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT DISTINCT - 95 + COUNT( * ) AS col0 FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-1577
SELECT DISTINCT - 95 + COUNT ( * ) AS col0 FROM tab2
----
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 * 18 col0 FROM tab1
----
702

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1579
SELECT - COUNT( DISTINCT + ( ( 67 ) ) ) - 55 DIV 44 AS col2 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-1579
SELECT - COUNT ( DISTINCT + ( ( 67 ) ) ) - 55 / 44 AS col2 FROM tab0
----
-2

query I rowsort
SELECT - 81 * + 26 FROM tab1 AS cor0
----
-2106
-2106
-2106

query I rowsort
SELECT ALL ( - col2 ) + + col1 AS col2 FROM tab0 AS cor0 WHERE col1 * ( + col2 / + 80 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 0 col0 FROM tab0 AS cor0 WHERE 78 * + ( col0 ) NOT BETWEEN + 59 AND NULL
----

query I rowsort
SELECT DISTINCT col0 * + ( - col2 * - 50 ) - col1 AS col1 FROM tab0
----
35169
43479
480149

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT DISTINCT 72 + - COUNT( * ) FROM tab2 WHERE NOT NULL NOT IN ( + col0 )
----
72

skipif mysql # not compatible
query I rowsort label-1584
SELECT DISTINCT 72 + - COUNT ( * ) FROM tab2 WHERE NOT NULL NOT IN ( + col0 )
----
72

query I rowsort
SELECT ALL + 27 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT ALL 14 * col1 + col2 FROM tab1
----
129
292
726

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

skipif mysql # not compatible
query I rowsort label-1587
SELECT DISTINCT + 60 * CAST ( NULL AS REAL ) + + 60 * - col0 FROM tab2 AS cor0 WHERE col1 + col2 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1588
SELECT ( - 42 ) + col0 DIV + col0 FROM tab2 AS cor0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-1588
SELECT ( - 42 ) + col0 / + col0 FROM tab2 AS cor0
----
-41
-41
-41

query I rowsort
SELECT ALL - + col1 * 41 + + col1 AS col1 FROM tab2 AS cor0
----
-2040
-2680
-3080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1590
SELECT + MIN( - 7 ) DIV COUNT( * ) + 70 FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-1590
SELECT + MIN ( - 7 ) / COUNT ( * ) + 70 FROM tab2 AS cor0
----
68

query I rowsort
SELECT col2 * 91 + + col2 FROM tab1 AS cor0
----
5428
6256
8832

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1593
SELECT col2 * col0 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE + 52 >= + col1 * col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1593
SELECT col2 * col0 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE + 52 >= + col1 * col1
----
NULL

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 30 / col1 ) >= ( - 19 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT ALL - 79 * - 58 + COUNT( * ) FROM tab0 AS cor0
----
4585

skipif mysql # not compatible
query I rowsort label-1597
SELECT ALL - 79 * - 58 + COUNT ( * ) FROM tab0 AS cor0
----
4585

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( - col2 )
----

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

query I rowsort
SELECT - 88 AS col0 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT DISTINCT - COUNT( * ) * + 36 FROM tab1
----
-108

skipif mysql # not compatible
query I rowsort label-1601
SELECT DISTINCT - COUNT ( * ) * + 36 FROM tab1
----
-108

query I rowsort
SELECT ALL + 86 * - col0 FROM tab0
----
-1290
-7482
-8342

query I rowsort
SELECT col0 * - 59 AS col0 FROM tab1
----
-3009
-5015
-5369

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT 37 + 54 * COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
37

skipif mysql # not compatible
query I rowsort label-1605
SELECT 37 + 54 * COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
37

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

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

query I rowsort
SELECT 63 * - col2 + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3712
-4237
-6034

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 >= + col2 / + 14
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 47 col1, 76 AS col0 FROM tab0
----
47
76

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

query I rowsort
SELECT ALL 14 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT - col1 * col2 AS col0 FROM tab1 AS cor0 WHERE NOT 17 / - col1 * - col1 <= - ( 15 )
----
-1344
-295
-3196

query I rowsort
SELECT ALL + 41 + col1 - + col0 * + 18 FROM tab2 AS cor0
----
-1034
-1242
-736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1614
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN - col0 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1614
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN - col0 AND ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1615
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) * - - 43 / + 85 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1615
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) * - - 43 / + 85 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT + 40 FROM tab2 AS cor0 WHERE NOT 36 * - - col2 + 70 NOT BETWEEN NULL AND NULL
----

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

skipif mysql # not compatible
query III rowsort label-1618
SELECT * FROM tab0 cor0 WHERE NOT NULL <> CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + + ( col0 ) * - - col2 + + col2 AS col2 FROM tab1 AS cor0
----
4992
5074
6256

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1622
SELECT ALL - col2 DIV - 17 FROM tab1 AS cor0
----
3
4
5

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL - col2 / - 17 FROM tab1 AS cor0
----
3
4
5

query I rowsort
SELECT ALL - 38 * - 42 AS col2 FROM tab2 AS cor0
----
1596
1596
1596

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1625
SELECT 18 DIV - 70 * + - col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1625
SELECT 18 / - 70 * + - col1 FROM tab1
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT COUNT( * ) FROM tab0 WHERE - - col0 NOT IN ( + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-1628
SELECT COUNT ( * ) FROM tab0 WHERE - - col0 NOT IN ( + col1 )
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT DISTINCT - COUNT( - col0 ) * + 16 FROM tab0 WHERE NOT - + col2 IS NULL
----
-48

skipif mysql # not compatible
query I rowsort label-1630
SELECT DISTINCT - COUNT ( - col0 ) * + 16 FROM tab0 WHERE NOT - + col2 IS NULL
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-1631
SELECT col0 DIV 28 + - + col0 - col2 AS col2 FROM tab1
----
-141
-146
-156

skipif mysql # not compatible
query I rowsort label-1631
SELECT col0 / 28 + - + col0 - col2 AS col2 FROM tab1
----
-141
-146
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-1632
SELECT ALL - + 2 + + col0 DIV - col2 FROM tab2 AS cor0
----
-3
-3
-4

skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL - + 2 + + col0 / - col2 FROM tab2 AS cor0
----
-3
-3
-4

query I rowsort
SELECT ALL col0 + - + 16 FROM tab0 AS cor0
----
-1
71
81

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab1 WHERE NOT - col0 > ( NULL )
----

query I rowsort
SELECT DISTINCT 58 - + 89 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT DISTINCT + SUM( DISTINCT - + 75 ) + + + 88 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
13

skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT + SUM ( DISTINCT - + 75 ) + + + 88 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
13

query I rowsort
SELECT DISTINCT + 47 + + + col2 FROM tab1
----
106
115
143

query I rowsort
SELECT - 65 - - 12 FROM tab0 cor0
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT ALL SUM( ALL + col2 ) FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1640
SELECT ALL SUM ( ALL + col2 ) FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT + COUNT( * ) * 40 AS col2 FROM tab0 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-1641
SELECT + COUNT ( * ) * 40 AS col2 FROM tab0 AS cor0
----
120

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

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

query II rowsort
SELECT - col0, 94 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-15
94
-87
94
-97
94

query I rowsort
SELECT + col2 - + - col0 * 8 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
504
739
796

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1646
SELECT - MAX( ALL - CAST( - col1 AS SIGNED ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-1646
SELECT - MAX ( ALL - CAST ( - col1 AS INTEGER ) ) FROM tab0
----
-81

query II rowsort
SELECT + 8, - col1 * - col1 AS col1 FROM tab1
----
8
196
8
2209
8
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, 39 col1 FROM tab0
----
1
39
21
39
81
39

query I rowsort
SELECT - 26 FROM tab2 WHERE NOT ( 36 IS NULL )
----
-26
-26
-26

query I rowsort
SELECT ALL + 5 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1652
SELECT DISTINCT 89 * + - CAST( NULL AS SIGNED ) + + - SUM( DISTINCT 43 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - ( - + 91 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1652
SELECT DISTINCT 89 * + - CAST ( NULL AS INTEGER ) + + - SUM ( DISTINCT 43 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - ( - + 91 ) AND NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT DISTINCT COUNT( * ) * + - SUM( DISTINCT + col2 ) FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-1654
SELECT DISTINCT COUNT ( * ) * + - SUM ( DISTINCT + col2 ) FROM tab1
----
-669

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT - 15 * + - COUNT( * ) * + + 14 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
1890

skipif mysql # not compatible
query I rowsort label-1655
SELECT - 15 * + - COUNT ( * ) * + + 14 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
1890

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 <= col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1658
SELECT - COUNT( * ) * 54 + COUNT( * ) * - ( - + COUNT( * ) ) DIV + 98 FROM tab0 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-1658
SELECT - COUNT ( * ) * 54 + COUNT ( * ) * - ( - + COUNT ( * ) ) / + 98 FROM tab0 AS cor0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT - SUM( + col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-227

skipif mysql # not compatible
query I rowsort label-1659
SELECT - SUM ( + col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-227

query I rowsort
SELECT 26 + col0 * + 63 AS col1 FROM tab1 AS cor0
----
3239
5381
5759

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1662
SELECT DISTINCT CAST( + AVG ( ALL - ( + col1 ) ) AS SIGNED ) col2 FROM tab1 AS cor0
----
-22

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1664
SELECT DISTINCT + MAX( + - col1 ) DIV 6 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1664
SELECT DISTINCT + MAX ( + - col1 ) / 6 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col0 AS col2 FROM tab1 cor0 WHERE - 2 / - + 78 * - + col2 NOT BETWEEN ( + + col1 ) AND NULL
----
51
85
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - 21 )
----

query I rowsort
SELECT + 83 + + 84 AS col1 FROM tab1
----
167
167
167

query I rowsort
SELECT 79 + col0 + + col1 * - col2 FROM tab2
----
-1048
-2937
-3732

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1671
SELECT DISTINCT - 87 AS col2, SUM( DISTINCT + col1 ) AS col0 FROM tab0
----
-87
103

skipif mysql # not compatible
query II rowsort label-1671
SELECT DISTINCT - 87 AS col2, SUM ( DISTINCT + col1 ) AS col0 FROM tab0
----
-87
103

query I rowsort
SELECT ALL col0 * + 18 AS col2 FROM tab2
----
1152
1350
828

query I rowsort
SELECT DISTINCT + col0 + 37 + - 86 + - + col1 FROM tab2
----
-41
-54
-62

query I rowsort
SELECT ( - 83 ) AS col1 FROM tab0 cor0
----
-83
-83
-83

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE 20 + col0 IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT ALL 84 * - - 58 + - 76 - 0 * - - MAX( DISTINCT + - ( col1 ) ) FROM tab2 AS cor0
----
4796

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL 84 * - - 58 + - 76 - 0 * - - MAX ( DISTINCT + - ( col1 ) ) FROM tab2 AS cor0
----
4796

query I rowsort
SELECT + 19 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

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

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1679
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-1679
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT col1 AS col1, col2 AS col1 FROM tab1 WHERE - col2 = NULL
----

query I rowsort
SELECT 70 * - col1 + col0 AS col1 FROM tab1 AS cor0
----
-265
-3199
-929

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

query I rowsort
SELECT - - 61 * + col0 * - - 49 AS col1 FROM tab0 AS cor0
----
260043
289933
44835

query I rowsort
SELECT + col1 * - 98 * + col0 AS col1 FROM tab2 AS cor0
----
-229908
-482944
-492450

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

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

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

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

query I rowsort
SELECT ALL - 60 * + ( - ( - col2 ) ) FROM tab2 AS cor0 WHERE - 52 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > 73
----

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE - + col0 NOT BETWEEN - 53 AND + col0
----
87
21
10
97
1
99

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
10
10

query I rowsort
SELECT ALL - col1 + + col2 - - 3 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
24
57
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1698
SELECT DISTINCT - + CAST( NULL AS SIGNED ), + col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-1698
SELECT DISTINCT - + CAST ( NULL AS INTEGER ), + col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 NOT BETWEEN NULL AND - 75
----

query I rowsort
SELECT col0 - - - 63 AS col2 FROM tab1
----
-12
22
28

query I rowsort
SELECT - 99 + + + 14 AS col0 FROM tab2
----
-85
-85
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 23, ( 27 ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
23
27

onlyif mysql # DIV for integer division: 
query II rowsort label-1704
SELECT DISTINCT + 19 DIV + 24 - - + col0 AS col0, - col2 AS col0 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

skipif mysql # not compatible
query II rowsort label-1704
SELECT DISTINCT + 19 / + 24 - - + col0 AS col0, - col2 AS col0 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 3 + + col1, col1 col1 FROM tab2 AS cor0
----
54
51
70
67
80
77

query I rowsort
SELECT - - col2 * 18 + + 74 * - col2 AS col2 FROM tab0 AS cor0
----
-2632
-5544
-560

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

skipif mysql # not compatible
query I rowsort label-1707
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL >= ( + ( - col0 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT DISTINCT + 29 - - + SUM( - 88 ) FROM tab2 AS cor0
----
-235

skipif mysql # not compatible
query I rowsort label-1708
SELECT DISTINCT + 29 - - + SUM ( - 88 ) FROM tab2 AS cor0
----
-235

query II rowsort
SELECT DISTINCT + col2 + - col1 AS col2, 79 * col2 + col1 * + + 78 * - col0 AS col0 FROM tab0 AS cor0
----
-11
-141716
-34
-91057
98
255

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT + - MIN( - - 87 ) AS col1 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-1710
SELECT + - MIN ( - - 87 ) AS col1 FROM tab2 AS cor0
----
-87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT DISTINCT - COUNT( * ) * - - 23 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-1712
SELECT DISTINCT - COUNT ( * ) * - - 23 FROM tab0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-1713
SELECT ALL col2 DIV 71 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1713
SELECT ALL col2 / 71 FROM tab0
----
0
0
1

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - - 87 AS col0 FROM tab1 AS cor0
----
87
87
87

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 6 * - + ( col2 ) AS col2 FROM tab2
----
-138
-240
-348

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT MIN( - 53 ) AS col0 FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-1725
SELECT MIN ( - 53 ) AS col0 FROM tab2
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1726
SELECT - + CAST( NULL AS SIGNED ), + col1 * - col1 FROM tab0 AS cor0 WHERE NOT + col2 NOT IN ( col0 * - - col1 * - + 43, col1 + + col1, - col1 )
----

skipif mysql # not compatible
query II rowsort label-1726
SELECT - + CAST ( NULL AS INTEGER ), + col1 * - col1 FROM tab0 AS cor0 WHERE NOT + col2 NOT IN ( col0 * - - col1 * - + 43, col1 + + col1, - col1 )
----

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

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

query I rowsort
SELECT DISTINCT - 25 * - - ( col2 ) FROM tab0 AS cor0
----
-1175
-2475
-250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 3 col1, - col1 AS col0 FROM tab1
----
3
-14
3
-47
3
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1730
SELECT DISTINCT col2 * + 69 + + col1 DIV - col1 col1 FROM tab1
----
4070
4691
6623

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1730
SELECT DISTINCT col2 * + 69 + + col1 / - col1 col1 FROM tab1
----
4070
4691
6623

query I rowsort
SELECT - col2 + - 88 * 29 FROM tab2
----
-2575
-2592
-2610

query I rowsort
SELECT col1 + + 79 FROM tab2 AS cor0
----
130
146
156

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

query I rowsort
SELECT DISTINCT 97 + - col2 FROM tab1 AS cor0
----
1
29
38

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

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

query I rowsort
SELECT ALL + + 66 + + col1 AS col2 FROM tab2 AS cor0
----
117
133
143

query I rowsort
SELECT - 69 * col2 + col0 FROM tab1 AS cor0
----
-3986
-4601
-6573

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

query II rowsort
SELECT ALL + 36 + - col2 * + col1 AS col2, col0 FROM tab0 AS cor0
----
-174
87
-3771
15
-63
97

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1741
SELECT DISTINCT + - 93 * + CAST( + col0 AS SIGNED ) - - 20 FROM tab2 AS cor0
----
-4258
-5932
-6955

skipif mysql # not compatible
query I rowsort label-1741
SELECT DISTINCT + - 93 * + CAST ( + col0 AS INTEGER ) - - 20 FROM tab2 AS cor0
----
-4258
-5932
-6955

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT COUNT( * ) + + - 61 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-1742
SELECT COUNT ( * ) + + - 61 FROM tab2
----
-58

query III rowsort
SELECT * FROM tab2 WHERE - - 7 * col2 / - col2 BETWEEN NULL AND 78
----

query I rowsort
SELECT ALL 9 * + 51 FROM tab2
----
459
459
459

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

skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL - COUNT ( * ) + 60 FROM tab0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT DISTINCT - + 38 * 24 + + COUNT( * ) FROM tab1 cor0
----
-909

skipif mysql # not compatible
query I rowsort label-1746
SELECT DISTINCT - + 38 * 24 + + COUNT ( * ) FROM tab1 cor0
----
-909

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT DISTINCT 15 * - COUNT( * ) AS col0 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-1747
SELECT DISTINCT 15 * - COUNT ( * ) AS col0 FROM tab0
----
-45

query I rowsort
SELECT + col1 * + col0 * - ( + 9 ) FROM tab1
----
-3825
-38493
-6426

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 30 * - 13, col2 * col1 col0 FROM tab2
----
390
1173
390
3080
390
3886

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1750
SELECT DISTINCT COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT col1 * - + CAST ( NULL AS INTEGER ) > NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col0 AND 69 + - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 39 * + 5 + col0 * - + col0 <= col0 + + ( + 60 )
----

query I rowsort
SELECT ALL ( + 74 ) * col0 - col2 AS col2 FROM tab1 AS cor0
----
3678
6231
6666

query I rowsort
SELECT ALL + - col2 * + 5 FROM tab2 cor0
----
-115
-200
-290

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT ALL + MAX( DISTINCT - col1 ) * MIN( DISTINCT + + 67 ) + - - 57 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL + MAX ( DISTINCT - col1 ) * MIN ( DISTINCT + + 67 ) + - - 57 FROM tab0
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1758
SELECT ALL + COUNT( * ) DIV - MAX( - 3 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1758
SELECT ALL + COUNT ( * ) / - MAX ( - 3 ) AS col2 FROM tab2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1759
SELECT - CAST( - - COUNT( + + 45 ) AS SIGNED ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1759
SELECT - CAST ( - - COUNT ( + + 45 ) AS INTEGER ) FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 65 ) + - col0 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-152
-162
-80

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1764
SELECT ALL + + col2 FROM tab0 WHERE 52 + - - col1 BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1764
SELECT ALL + + col2 FROM tab0 WHERE 52 + - - col1 BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - 74 * + + col1 * - - 10 * 12 + + col0 AS col0 FROM tab0
----
-186393
-719265
-8783

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1767
SELECT DISTINCT 28 + - CAST( col1 AS SIGNED ) + - 18 + + col2 + - 16 * - 29 FROM tab1 AS cor0
----
495
528
556

skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT 28 + - CAST ( col1 AS INTEGER ) + - 18 + + col2 + - 16 * - 29 FROM tab1 AS cor0
----
495
528
556

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 >= 2
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1770
SELECT + CAST( - 28 AS SIGNED ) + MAX( ALL col2 ) FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-1770
SELECT + CAST ( - 28 AS INTEGER ) + MAX ( ALL col2 ) FROM tab0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT ALL - ( 71 ) + + 6 * + SUM( col2 ) * + 7 * + MAX( + col2 ) - + - 36 AS col0 FROM tab0 AS cor0
----
648613

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL - ( 71 ) + + 6 * + SUM ( col2 ) * + 7 * + MAX ( + col2 ) - + - 36 AS col0 FROM tab0 AS cor0
----
648613

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1775
SELECT 36 * - COUNT( * ) - + COUNT( * ) DIV - - MAX( + + 32 ) FROM tab0
----
-108

skipif mysql # not compatible
query I rowsort label-1775
SELECT 36 * - COUNT ( * ) - + COUNT ( * ) / - - MAX ( + + 32 ) FROM tab0
----
-108

query I rowsort
SELECT - col0 + - col2 + - col2 * 80 FROM tab0
----
-3822
-8116
-897

query I rowsort
SELECT col1 + + - 3 FROM tab2
----
48
64
74

query I rowsort
SELECT ALL + 21 - - + col0 + - - 80 FROM tab1
----
152
186
192

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

query I rowsort
SELECT - 40 * + col0 + col0 AS col1 FROM tab1
----
-1989
-3315
-3549

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1782
SELECT col0 AS col1, col1 DIV - - col2 + + - col2 FROM tab0
----
15
-46
87
-8
97
-99

skipif mysql # not compatible
query II rowsort label-1782
SELECT col0 AS col1, col1 / - - col2 + + - col2 FROM tab0
----
15
-46
87
-8
97
-99

query II rowsort
SELECT col1 AS col0, 77 * col2 AS col2 FROM tab2 WHERE NOT + - 35 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * - 47 - - 90 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < ( col0 ) + + + 57
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1789
SELECT DISTINCT + col0 * col2 DIV 34 FROM tab0 AS cor0
----
20
25
282

skipif mysql # not compatible
query I rowsort label-1789
SELECT DISTINCT + col0 * col2 / 34 FROM tab0 AS cor0
----
20
25
282

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + 86 <= + ( - col0 )
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT + MIN( DISTINCT - col2 ) + + + 24 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-1798
SELECT + MIN ( DISTINCT - col2 ) + + + 24 FROM tab0
----
-75

query I rowsort
SELECT ALL + + 96 FROM tab0 WHERE NOT + 42 IS NULL
----
96
96
96

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

query I rowsort
SELECT ALL + col0 * 94 + 35 FROM tab2 AS cor0
----
4359
6051
7085

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT + 31 * + + SUM( DISTINCT + + col2 ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 25 AND - - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1802
SELECT + 31 * + + SUM ( DISTINCT + + col2 ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 25 AND - - col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1803
SELECT - - ( - 90 ) * - CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2070
-3600
-5220

skipif mysql # not compatible
query I rowsort label-1803
SELECT - - ( - 90 ) * - CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2070
-3600
-5220

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT DISTINCT - + COUNT( * ) + + 86 + ( - - 68 ) * + + 44 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
3069

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1804
SELECT DISTINCT - + COUNT ( * ) + + 86 + ( - - 68 ) * + + 44 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
3069

query I rowsort
SELECT DISTINCT 31 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
31

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 = - - col0
----

query I rowsort
SELECT + + 86 + - col0 * - - col0 FROM tab2 AS cor0
----
-2030
-4010
-5539

query I rowsort
SELECT col2 + + - col1 AS col0 FROM tab0 AS cor0
----
-11
-34
98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT MIN( + - ( col0 ) ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1810
SELECT MIN ( + - ( col0 ) ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 - 10 AS col1 FROM tab1
----
49
58
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 77 - + ( + + 94 ) col0 FROM tab0
----
-17
1523
6143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) col2 FROM tab1
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col1 = - 18 * + ( 56 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col1 <> NULL
----

query I rowsort
SELECT - col0 * - - 67 * + col1 FROM tab1
----
-28475
-286559
-47838

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * + col1 AS col0, + col1 col2 FROM tab1 AS cor0
----
425
5
4277
47
714
14

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

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

query I rowsort
SELECT + + 58 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT DISTINCT + SUM( DISTINCT - col2 ) FROM tab1 AS cor0 WHERE 35 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1821
SELECT DISTINCT + SUM ( DISTINCT - col2 ) FROM tab1 AS cor0 WHERE 35 > NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1822
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) / + col2 + + - col1 / - 73 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-1822
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) / + col2 + + - col1 / - 73 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( 35 + - col1, + 53 * + - col0, + col1 + + - col1 * 99 + + col1, - 52 / + col0 + 26, + col1 * 14 - ( col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1824
SELECT ALL CAST( NULL AS SIGNED ) AS col1, 73 * - - col2 AS col2 FROM tab2
----
NULL
1679
NULL
2920
NULL
4234

skipif mysql # not compatible
query II rowsort label-1824
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, 73 * - - col2 AS col2 FROM tab2
----
NULL
1679
NULL
2920
NULL
4234

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 89 * col0, col2 * - 67 col1 FROM tab0
----
1335
-3149
7743
-670
8633
-6633

query I rowsort
SELECT ALL + col0 + + 50 FROM tab2
----
114
125
96

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

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

query I rowsort
SELECT + 89 + - - col1 FROM tab2 cor0
----
140
156
166

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT ALL ( - - SUM( ALL col2 ) ) * + 75 AS col2 FROM tab2
----
9075

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL ( - - SUM ( ALL col2 ) ) * + 75 AS col2 FROM tab2
----
9075

query I rowsort
SELECT ALL + ( - col2 ) * 98 FROM tab2
----
-2254
-3920
-5684

query III rowsort
SELECT * FROM tab1 WHERE - - 21 IN ( - + col1 + + + 28, - col0 + - 20, col1 )
----

query I rowsort
SELECT DISTINCT + col1 + - col1 * - col2 * - 41 FROM tab1 cor0
----
-12090
-130989
-55090

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 - + - col1 col1 FROM tab0 AS cor0
----
16
36
96

query I rowsort
SELECT DISTINCT + 46 + + 94 / + col1 FROM tab2 AS cor0 WHERE ( + - col2 ) * + col1 BETWEEN NULL AND - + col0 / col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( - col0 ) BETWEEN NULL AND 70 - - - col0
----
87
21
10
97
1
99

query I rowsort
SELECT - ( 74 ) AS col0 FROM tab2
----
-74
-74
-74

onlyif mysql # DIV for integer division: 
query II rowsort label-1842
SELECT DISTINCT 97 AS col0, + 85 DIV col0 * - - 33 col1 FROM tab1
----
97
0
97
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1842
SELECT DISTINCT 97 AS col0, + 85 / col0 * - - 33 col1 FROM tab1
----
97
0
97
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT - - COUNT( * ) col2 FROM tab1 WHERE NOT col0 + - col0 = + col1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1843
SELECT - - COUNT ( * ) col2 FROM tab1 WHERE NOT col0 + - col0 = + col1
----
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1845
SELECT ALL - col1 DIV + 16 FROM tab2 AS cor0
----
-3
-4
-4

skipif mysql # not compatible
query I rowsort label-1845
SELECT ALL - col1 / + 16 FROM tab2 AS cor0
----
-3
-4
-4

query II rowsort
SELECT DISTINCT col1 AS col1, col1 - - + 27 + col0 + col2 FROM tab1 AS cor0
----
14
188
47
233
5
176

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT + - COUNT( * ) AS col1 FROM tab0 WHERE NOT + + 50 < - col0
----
-3

skipif mysql # not compatible
query I rowsort label-1847
SELECT + - COUNT ( * ) AS col1 FROM tab0 WHERE NOT + + 50 < - col0
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT + 98 * + SUM( DISTINCT - + 9 ) + - 60 FROM tab1 AS cor0
----
-942

skipif mysql # not compatible
query I rowsort label-1849
SELECT + 98 * + SUM ( DISTINCT - + 9 ) + - 60 FROM tab1 AS cor0
----
-942

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT ALL 59 * - 96 * MAX( ALL col1 ) * - COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1850
SELECT ALL 59 * - 96 * MAX ( ALL col1 ) * - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - 51, col1 + + col0, 66, 36 )
----

query I rowsort
SELECT ALL 6 + - 29 + 46 AS col1 FROM tab1 AS cor0
----
23
23
23

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1854
SELECT ALL MAX( ALL + - CAST( - + 48 AS SIGNED ) ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT 89 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL MAX ( ALL + - CAST ( - + 48 AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT 89 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col2 * + - col1 + - 13 - 62 FROM tab0
----
135
24
3732

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

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

query II rowsort
SELECT ALL 4 + 81 + - col2 AS col2, 12 * col1 FROM tab2
----
27
804
45
924
62
612

query I rowsort
SELECT DISTINCT 51 - + 90 AS col2 FROM tab1 AS cor0
----
-39

query I rowsort
SELECT ALL - - col0 + - 50 FROM tab0 AS cor0
----
-35
37
47

query I rowsort
SELECT ALL 46 - - col0 FROM tab0 AS cor0
----
133
143
61

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

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

query I rowsort
SELECT DISTINCT - col1 * 47 * 66 AS col0 FROM tab1 AS cor0
----
-145794
-15510
-43428

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1865
SELECT DISTINCT + - CAST( + - col1 AS DECIMAL ) FROM tab0 AS cor0 WHERE col0 + + - 87 * col1 = - 15
----

skipif mysql # not compatible
query I rowsort label-1865
SELECT DISTINCT + - CAST ( + - col1 AS REAL ) FROM tab0 AS cor0 WHERE col0 + + - 87 * col1 = - 15
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1866
SELECT ALL + 31 DIV ( + - col2 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL + 31 / ( + - col2 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 - + col0 AS col2 FROM tab2 cor0
----
-8
13
5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1868
SELECT ALL - + col2 AS col1, CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-1868
SELECT ALL - + col2 AS col1, CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 AS cor0 WHERE NULL < 37 + - - 78
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1870
SELECT ALL + CAST ( + 40 AS INTEGER ) col0 FROM tab1 AS cor0
----
40
40
40

query I rowsort
SELECT - - 43 AS col1 FROM tab0 WHERE NOT + col1 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1872
SELECT ALL + ( ( - MIN( DISTINCT + ( - col1 ) ) ) ) DIV COUNT( * ) AS col0 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL + ( ( - MIN ( DISTINCT + ( - col1 ) ) ) ) / COUNT ( * ) AS col0 FROM tab1
----
15

query I rowsort
SELECT ALL + col1 * col1 * - - col0 FROM tab2
----
119646
336675
379456

query I rowsort
SELECT + 62 * ( + col0 ) AS col2 FROM tab2
----
2852
3968
4650

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1876
SELECT + col0 + 37 * + col0, col0 + col0 * + + col2 + + + 44 AS col1 FROM tab0 WHERE NOT - + col1 - col1 + + CAST( NULL AS SIGNED ) * + - col2 * - col0 IS NOT NULL
----
3306
1001
3686
9744
570
764

skipif mysql # not compatible
query II rowsort label-1876
SELECT + col0 + 37 * + col0, col0 + col0 * + + col2 + + + 44 AS col1 FROM tab0 WHERE NOT - + col1 - col1 + + CAST ( NULL AS INTEGER ) * + - col2 * - col0 IS NOT NULL
----
3306
1001
3686
9744
570
764

query I rowsort
SELECT 92 * - + col2 FROM tab1
----
-5428
-6256
-8832

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT COUNT( * ) * - MAX( + col1 ) FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-1878
SELECT COUNT ( * ) * - MAX ( + col1 ) FROM tab2 AS cor0
----
-231

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

skipif mysql # not compatible
query II rowsort label-1879
SELECT ALL ( - + 37 ) * - COUNT ( * ) AS col1, - 35 FROM tab0
----
111
-35

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

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

query I rowsort
SELECT ALL col2 + + - col1 + + 63 * - - col1 + 35 FROM tab0
----
1347
196
5104

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

query I rowsort
SELECT ALL + 18 + + + ( - + ( - - 30 ) ) FROM tab2 AS cor0
----
-12
-12
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1884
SELECT DISTINCT + COUNT( ALL - CAST( + col2 AS SIGNED ) ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1884
SELECT DISTINCT + COUNT ( ALL - CAST ( + col2 AS INTEGER ) ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col0 * 9 + + + col2 * + + col2 + col0 AS col2 FROM tab1 AS cor0
----
2801
3896
8808

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT COUNT( * ) - + - SUM( 15 ) AS col1 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-1888
SELECT COUNT ( * ) - + - SUM ( 15 ) AS col1 FROM tab2
----
48

query I rowsort
SELECT ALL + col2 * + + 73 + col2 AS col2 FROM tab1
----
4366
5032
7104

query I rowsort
SELECT ALL col1 FROM tab1 cor0 WHERE ( 81 ) IS NOT NULL
----
14
47
5

query II rowsort
SELECT ALL col2 * + - 14, + 81 AS col2 FROM tab0 AS cor0
----
-1386
81
-140
81
-658
81

query I rowsort
SELECT DISTINCT + col1 - + - col1 * + 41 AS col1 FROM tab1 AS cor0
----
1974
210
588

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab0 WHERE NOT + col2 NOT BETWEEN - col2 / + col1 * 57 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1894
SELECT - col0 DIV - + CAST( - 62 AS SIGNED ), + col1 AS col0 FROM tab2 cor0
----
-1
67
-1
77
0
51

skipif mysql # not compatible
query II rowsort label-1894
SELECT - col0 / - + CAST ( - 62 AS INTEGER ), + col1 AS col0 FROM tab2 cor0
----
-1
67
-1
77
0
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + col0 * - 11 > - 31
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 * - - 13 AS col2 FROM tab1
----
182
611
65

query I rowsort
SELECT ( + 71 ) AS col0 FROM tab0
----
71
71
71

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

skipif mysql # not compatible
query I rowsort label-1898
SELECT DISTINCT + 49 / col1 FROM tab0
----
0
2
49

query III rowsort
SELECT * FROM tab0 WHERE NOT + 54 * + col1 IS NOT NULL
----

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

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

query I rowsort
SELECT col0 * - col1 * + col2 AS col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

query I rowsort
SELECT col2 * + col2 + + col1 + col2 + + + ( + 34 ) FROM tab2 AS cor0
----
1751
3523
637

query II rowsort
SELECT - 96 * + 47, + col0 FROM tab0 AS cor0
----
-4512
15
-4512
87
-4512
97

query I rowsort
SELECT 43 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT + COUNT( * ) + - 8 FROM tab1 AS cor0
----
-5

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT 70 + + - MIN( col2 ) col0 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1907
SELECT 70 + + - MIN ( col2 ) col0 FROM tab2 AS cor0
----
47

query I rowsort
SELECT - 52 * - - col2 + col2 * col2 FROM tab0 cor0
----
-235
-420
4653

onlyif mysql # DIV for integer division: 
query I rowsort label-1909
SELECT ALL - col2 DIV + 72 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1909
SELECT ALL - col2 / + 72 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1910
SELECT - COUNT( * ) + + + CAST( + AVG ( - col2 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-1910
SELECT - COUNT ( * ) + + + CAST ( + AVG ( - col2 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-43

query II rowsort
SELECT + 93 AS col0, - 6 FROM tab1
----
93
-6
93
-6
93
-6

query I rowsort
SELECT + 77 * + - col0 FROM tab1
----
-3927
-6545
-7007

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT - SUM( - 98 ) * COUNT( - col0 ) * - COUNT( * ) FROM tab0
----
-2646

skipif mysql # not compatible
query I rowsort label-1913
SELECT - SUM ( - 98 ) * COUNT ( - col0 ) * - COUNT ( * ) FROM tab0
----
-2646

query I rowsort
SELECT + 44 * + 60 FROM tab1
----
2640
2640
2640

query III rowsort
SELECT * FROM tab1 WHERE NULL > + col1 * 19
----

query I rowsort
SELECT ALL 18 AS col0 FROM tab2 cor0
----
18
18
18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1917
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( 84, CAST( NULL AS SIGNED ), col0 + - col0 + - col0 )
----

skipif mysql # not compatible
query III rowsort label-1917
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( 84, CAST ( NULL AS INTEGER ), col0 + - col0 + - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1918
SELECT 53 DIV - - col1 AS col0 FROM tab1
----
1
10
3

skipif mysql # not compatible
query I rowsort label-1918
SELECT 53 / - - col1 AS col0 FROM tab1
----
1
10
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT ALL - MAX( DISTINCT - - 15 ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-1919
SELECT ALL - MAX ( DISTINCT - - 15 ) FROM tab1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT ALL + SUM( ALL + 45 ) FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-1920
SELECT ALL + SUM ( ALL + 45 ) FROM tab0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT COUNT( * ) * + + 58 AS col1 FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-1921
SELECT COUNT ( * ) * + + 58 AS col1 FROM tab0
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1922
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) + - - col2 - - col2 * + col1 * - - 71 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) + - - col2 - - col2 * + col1 * - - 71 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1923
SELECT col0, ( + CAST( col2 AS SIGNED ) ) * + col0 FROM tab2 WHERE NOT NULL NOT BETWEEN 33 AND col0
----

skipif mysql # not compatible
query II rowsort label-1923
SELECT col0, ( + CAST ( col2 AS INTEGER ) ) * + col0 FROM tab2 WHERE NOT NULL NOT BETWEEN 33 AND col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( ( NULL ) = + 42 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT - COUNT( * ) * - - COUNT( * ) FROM tab0 AS cor0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1925
SELECT - COUNT ( * ) * - - COUNT ( * ) FROM tab0 AS cor0 WHERE + col0 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1926
SELECT + 20 * + + CAST( NULL AS SIGNED ) * 94 + ( 77 ) / AVG ( - col1 ) + - ( + 80 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1926
SELECT + 20 * + + CAST ( NULL AS INTEGER ) * 94 + ( 77 ) / AVG ( - col1 ) + - ( + 80 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT 78 * - COUNT( ALL - + ( - col1 ) ) FROM tab0
----
-234

skipif mysql # not compatible
query I rowsort label-1927
SELECT 78 * - COUNT ( ALL - + ( - col1 ) ) FROM tab0
----
-234

query I rowsort
SELECT ALL - + ( 8 ) + + col0 AS col1 FROM tab0 cor0
----
7
79
89

query II rowsort
SELECT DISTINCT + 79 + - col0 AS col0, + col2 * - - 88 FROM tab2 AS cor0
----
15
3520
33
2024
4
5104

query I rowsort
SELECT + 87 - col1 * - col2 + + + 77 AS col0 FROM tab1
----
1508
3360
459

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-1931
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1932
SELECT * FROM tab0 WHERE ( 28 * + - CAST( + col1 AS SIGNED ) + col2 NOT IN ( - col1, - col1 + - col1 + + + 37 * col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1932
SELECT * FROM tab0 WHERE ( 28 * + - CAST ( + col1 AS INTEGER ) + col2 NOT IN ( - col1, - col1 + - col1 + + + 37 * col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( + - 57 ) * + - col2 AS col2 FROM tab2
----
1311
2280
3306

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1934
SELECT * FROM tab0 WHERE col2 + - + CAST( + 87 AS SIGNED ) NOT BETWEEN col0 AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1934
SELECT * FROM tab0 WHERE col2 + - + CAST ( + 87 AS INTEGER ) NOT BETWEEN col0 AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 15 AS col2 FROM tab0 WHERE NOT + col1 + - - 88 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1936
SELECT DISTINCT - CAST( + 38 AS SIGNED ) + + + 42 AS col0 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-1936
SELECT DISTINCT - CAST ( + 38 AS INTEGER ) + + + 42 AS col0 FROM tab0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT MIN( - col2 ) - - COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1937
SELECT MIN ( - col2 ) - - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1938
SELECT - 62, + ( - + COUNT( * ) ) * - 76 AS col0 FROM tab0
----
-62
228

skipif mysql # not compatible
query II rowsort label-1938
SELECT - 62, + ( - + COUNT ( * ) ) * - 76 AS col0 FROM tab0
----
-62
228

query II rowsort
SELECT DISTINCT + 10 AS col1, - col1 * + col0 + + col2 * - + 32 AS col0 FROM tab2
----
10
-3082
10
-6208
10
-6881

query II rowsort
SELECT + col0 AS col0, + 27 * - 71 FROM tab0 AS cor0
----
15
-1917
87
-1917
97
-1917

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT SUM( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-1941
SELECT SUM ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1942
SELECT 74 / + CAST( NULL AS SIGNED ) * AVG ( ALL col2 ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1942
SELECT 74 / + CAST ( NULL AS INTEGER ) * AVG ( ALL col2 ) col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1943
SELECT + CAST( NULL AS SIGNED ), 96 + - col2 AS col2 FROM tab2 AS cor0
----
NULL
38
NULL
56
NULL
73

skipif mysql # not compatible
query II rowsort label-1943
SELECT + CAST ( NULL AS INTEGER ), 96 + - col2 AS col2 FROM tab2 AS cor0
----
NULL
38
NULL
56
NULL
73

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 <> + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1946
SELECT DISTINCT CAST( - col2 AS SIGNED ), - col2 col1 FROM tab1
----
-59
-59
-68
-68
-96
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1946
SELECT DISTINCT CAST ( - col2 AS INTEGER ), - col2 col1 FROM tab1
----
-59
-59
-68
-68
-96
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 / + col1 / + + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT + + COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN - col1 AND - 27
----
0

skipif mysql # not compatible
query I rowsort label-1948
SELECT + + COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN - col1 AND - 27
----
0

query I rowsort
SELECT DISTINCT 0 + col0 AS col0 FROM tab0
----
15
87
97

query I rowsort
SELECT ALL - 21 + - + col0 AS col1 FROM tab2
----
-67
-85
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 col2 FROM tab1 cor0
----
37
37
37

query I rowsort
SELECT DISTINCT - col2 * + col0 FROM tab1 AS cor0 WHERE NOT - 14 / - 73 IS NULL
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-1953
SELECT DISTINCT - 59 DIV + 81 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-1953
SELECT DISTINCT - 59 / + 81 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1954
SELECT 99 / + - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1954
SELECT 99 / + - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 26 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT - - col0 + + + 30 + - col1 * + col0 AS col2 FROM tab0 AS cor0
----
-1170
-1710
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1957
SELECT DISTINCT + col0 + + CAST( + + ( + 36 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
123
133
51

skipif mysql # not compatible
query I rowsort label-1957
SELECT DISTINCT + col0 + + CAST ( + + ( + 36 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
123
133
51

query I rowsort
SELECT DISTINCT - col1 - - ( - + col2 ) FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT - + col2 + + 31 AS col0 FROM tab0 AS cor0
----
-16
-68
21

query I rowsort
SELECT DISTINCT + col1 * - + col2 + - - 45 AS col1 FROM tab1 AS cor0
----
-1299
-250
-3151

query II rowsort
SELECT ALL + 98 AS col2, - 33 * - - col2 AS col0 FROM tab2 WHERE col1 IS NOT NULL
----
98
-1320
98
-1914
98
-759

query I rowsort
SELECT 20 AS col2 FROM tab0 WHERE NULL = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1963
SELECT DISTINCT col0 DIV - - col1 AS col1 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-1963
SELECT DISTINCT col0 / - - col1 AS col1 FROM tab0
----
0
4
97

query I rowsort
SELECT DISTINCT - col2 * + 5 AS col1 FROM tab1
----
-295
-340
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT + COUNT( * ) - 53 + - COUNT( * ) AS col2 FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-1965
SELECT + COUNT ( * ) - 53 + - COUNT ( * ) AS col2 FROM tab2
----
-53

query I rowsort
SELECT 52 * col0 - + col0 FROM tab0
----
4437
4947
765

query I rowsort
SELECT 60 - - + col2 + - - 98 * - 8 FROM tab1
----
-628
-656
-665

query I rowsort
SELECT ALL + + col2 + + + 45 * + + 18 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1970
SELECT + col2 DIV + + 14 FROM tab1 AS cor0
----
4
4
6

skipif mysql # not compatible
query I rowsort label-1970
SELECT + col2 / + + 14 FROM tab1 AS cor0
----
4
4
6

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN - col1 AND + col1 / 52 * + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1972
SELECT CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * col2 * - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1972
SELECT CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * col2 * - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 94 AS col2 FROM tab2 AS cor0
----
94
94
94

query I rowsort
SELECT - + col1 AS col2 FROM tab2 AS cor0 WHERE NOT col0 * + - col1 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT + - MAX( ALL + 99 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-1975
SELECT + - MAX ( ALL + 99 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT DISTINCT 97 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
97

query II rowsort
SELECT ALL 26, + col0 FROM tab2
----
26
46
26
64
26
75

query II rowsort
SELECT col1 AS col2, + 89 * - + col0 FROM tab0
----
1
-8633
21
-7743
81
-1335

query II rowsort
SELECT 45, - 15 * + col2 AS col0 FROM tab1
----
45
-1020
45
-1440
45
-885

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT - 52 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * - col0 * + col1 * ( - + 32 ) * - - col1 + - - 56 AS col0 FROM tab2
----
-176118856
-777125832
-808019944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1982
SELECT ALL CAST( - col0 AS SIGNED ) + + col2 FROM tab1
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-1982
SELECT ALL CAST ( - col0 AS INTEGER ) + + col2 FROM tab1
----
-23
-26
45

query II rowsort
SELECT DISTINCT col0 AS col1, 45 FROM tab0
----
15
45
87
45
97
45

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 < + + col2 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 67 + col1 ) BETWEEN ( 54 / 87 + 28 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT DISTINCT + COUNT( + col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1987
SELECT DISTINCT + COUNT ( + col2 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col0 ) IN ( col2 / - col1 + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT ALL MIN( ALL - 81 ) * + 8 AS col1 FROM tab0
----
-648

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL MIN ( ALL - 81 ) * + 8 AS col1 FROM tab0
----
-648

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE NOT - col0 NOT IN ( col2 )
----

query I rowsort
SELECT + 96 + col0 AS col0 FROM tab0
----
111
183
193

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT MAX( - 15 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-1992
SELECT MAX ( - 15 ) FROM tab0
----
-15

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col2 + + col0 ) IS NOT NULL
----

query I rowsort
SELECT 96 + col0 AS col2 FROM tab1
----
147
181
187

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 NOT BETWEEN ( 17 / - 80 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT DISTINCT - COUNT( ALL 36 ) * - 34 FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-1996
SELECT DISTINCT - COUNT ( ALL 36 ) * - 34 FROM tab1
----
102

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < ( + ( + 0 ) )
----

query I rowsort
SELECT ALL 97 * col0 AS col2 FROM tab1
----
4947
8245
8827

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1999
SELECT - MIN( + col2 ) AS col2 FROM tab0 WHERE col2 + - CAST( + 61 AS DECIMAL ) NOT BETWEEN NULL AND ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1999
SELECT - MIN ( + col2 ) AS col2 FROM tab0 WHERE col2 + - CAST ( + 61 AS REAL ) NOT BETWEEN NULL AND ( col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT + 20 - - COUNT( * ) FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-2000
SELECT + 20 - - COUNT ( * ) FROM tab1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2001
SELECT - col2 DIV 21 FROM tab0
----
-2
-4
0

skipif mysql # not compatible
query I rowsort label-2001
SELECT - col2 / 21 FROM tab0
----
-2
-4
0

query I rowsort
SELECT ALL col2 + + col1 * col0 FROM tab2
----
2369
4968
5083

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NULL NOT IN ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2004
SELECT 8 DIV 20 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2004
SELECT 8 / 20 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col0 - 87 FROM tab2
----
-12
-23
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-2006
SELECT + col1 DIV + 80 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2006
SELECT + col1 / + 80 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2007
SELECT + col0 DIV ( - 93 ) AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2007
SELECT + col0 / ( - 93 ) AS col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2008
SELECT DISTINCT - col1 DIV + 69 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2008
SELECT DISTINCT - col1 / + 69 AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL + col2 + - 5 * + 14 FROM tab0
----
-23
-60
29

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 + - col1 NOT BETWEEN - col0 AND 2 * - ( + col2 )
----

query I rowsort
SELECT col2 + 7 AS col1 FROM tab2
----
30
47
65

query III rowsort
SELECT * FROM tab2 WHERE ( 58 ) IS NULL
----

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 col1 FROM tab2 AS cor0
----
88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 33 * 5 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2016
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) * + SUM( ALL + ( col2 ) ) AS col1 FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-2016
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) * + SUM ( ALL + ( col2 ) ) AS col1 FROM tab0 AS cor0
----
468

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2017
SELECT + MAX( DISTINCT - col0 ) DIV + COUNT( * ) FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-2017
SELECT + MAX ( DISTINCT - col0 ) / + COUNT ( * ) FROM tab1 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT SUM( DISTINCT + 95 ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-2018
SELECT SUM ( DISTINCT + 95 ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
285

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2019
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) BETWEEN ( - 0 ) AND col0 + + CAST( 46 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2019
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) BETWEEN ( - 0 ) AND col0 + + CAST ( 46 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col0 + 44 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2022
SELECT ALL - 76 DIV col1 FROM tab0
----
-3
-76
0

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL - 76 / col1 FROM tab0
----
-3
-76
0

query I rowsort
SELECT - 10 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

onlyif mysql # DIV for integer division: 
query I rowsort label-2024
SELECT ALL 2 DIV col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL 2 / col0 FROM tab0
----
0
0
0

query I rowsort
SELECT 34 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( - 48 ) ) NOT BETWEEN col0 + - 47 / 70 AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( - 32 ) ) col0 FROM tab2
----
32
32
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2028
SELECT ALL - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( col0 ) AS col0 FROM tab1 cor0
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col0 * - col0 + 33 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2031
SELECT ALL * FROM tab2 cor0 WHERE NOT ( 64 ) <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2031
SELECT ALL * FROM tab2 cor0 WHERE NOT ( 64 ) <= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col0 * - 87 AS col1 FROM tab1 AS cor0 WHERE NOT col0 * col2 IS NULL
----
4437
7395
7917

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2033
SELECT - + CAST( + 82 AS SIGNED ) FROM tab0 AS cor0
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-2033
SELECT - + CAST ( + 82 AS INTEGER ) FROM tab0 AS cor0
----
-82
-82
-82

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 - 90 * 41 <> ( - 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT DISTINCT - MIN( - col1 ) * - 7 AS col2 FROM tab2 AS cor0
----
-539

skipif mysql # not compatible
query I rowsort label-2035
SELECT DISTINCT - MIN ( - col1 ) * - 7 AS col2 FROM tab2 AS cor0
----
-539

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2036
SELECT ALL col0 * + col2 FROM tab1 cor0 WHERE NOT - 99 * CAST( col1 AS SIGNED ) + + 68 < NULL
----

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL col0 * + col2 FROM tab1 cor0 WHERE NOT - 99 * CAST ( col1 AS INTEGER ) + + 68 < NULL
----

query I rowsort
SELECT ALL col0 + 11 FROM tab2 AS cor0
----
57
75
86

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 * 63 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2039
SELECT * FROM tab0 cor0 WHERE NOT + CAST( NULL AS SIGNED ) > + 45 + col0 * - col1
----

skipif mysql # not compatible
query III rowsort label-2039
SELECT * FROM tab0 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) > + 45 + col0 * - col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col2 ) <> - 20
----

query I rowsort
SELECT - col1 + - 51 FROM tab1 cor0
----
-56
-65
-98

query I rowsort
SELECT ALL - 14 * col0 AS col0 FROM tab0 WHERE NOT NULL IN ( 9 / col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 + - col0 * + 31 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE - col1 NOT IN ( col1 - - 29 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT - SUM( DISTINCT - 93 ) * - 17 AS col0 FROM tab0
----
-1581

skipif mysql # not compatible
query I rowsort label-2045
SELECT - SUM ( DISTINCT - 93 ) * - 17 AS col0 FROM tab0
----
-1581

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2046
SELECT ALL CAST( NULL AS SIGNED ) + + col1 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2046
SELECT ALL CAST ( NULL AS INTEGER ) + + col1 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE + col1 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2048
SELECT DISTINCT + 70 + CAST( - col1 AS SIGNED ) col0 FROM tab2
----
-7
19
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2048
SELECT DISTINCT + 70 + CAST ( - col1 AS INTEGER ) col0 FROM tab2
----
-7
19
3

query I rowsort
SELECT DISTINCT 79 AS col0 FROM tab2 WHERE col0 IS NOT NULL
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - ( - col2 ) ) col0 FROM tab1
----
59
68
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > - 28
----

query I rowsort
SELECT DISTINCT - ( + col2 ) + col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT AVG ( ALL 13 ) AS col2 FROM tab1 WHERE ( - col2 ) IS NULL
----
NULL

query I rowsort
SELECT ALL + 21 * ( + + col2 ) FROM tab1
----
1239
1428
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT DISTINCT + ( - COUNT( * ) ) FROM tab2 WHERE - ( col2 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2055
SELECT DISTINCT + ( - COUNT ( * ) ) FROM tab2 WHERE - ( col2 ) = NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 33 * - ( 0 ) + col0 < NULL
----

query I rowsort
SELECT - - col2 + - - col1 AS col0 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT + 68 + + + col1 FROM tab1 cor0
----
115
73
82

query I rowsort
SELECT ALL + - 99 + - col2 AS col2 FROM tab1 AS cor0
----
-158
-167
-195

query I rowsort
SELECT DISTINCT + col2 * col2 AS col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
3481
4624
9216

query I rowsort
SELECT DISTINCT + col1 * col1 + + - col0 + - 79 FROM tab2 cor0
----
2476
4335
5786

query I rowsort
SELECT ALL + - col0 - + 66 FROM tab0 AS cor0
----
-153
-163
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2063
SELECT + CAST( NULL AS SIGNED ) * + col2 FROM tab1 AS cor0 WHERE NULL <> col1
----

skipif mysql # not compatible
query I rowsort label-2063
SELECT + CAST ( NULL AS INTEGER ) * + col2 FROM tab1 AS cor0 WHERE NULL <> col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + col2 + - col2 * 5 IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 11 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( + + 49 ) * 0 NOT BETWEEN ( 42 - 19 ) AND + 13
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2067
SELECT ALL - 11 DIV - + SUM( - 34 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL - 11 / - + SUM ( - 34 ) AS col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + ( + col0 ) ) col1 FROM tab0
----
15
87
97

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 IN ( - col2 * - 24 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 76 * - ( col2 ) AS col0 FROM tab2
----
-1748
-3040
-4408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2071
SELECT + CAST( - COUNT( 72 ) AS SIGNED ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2071
SELECT + CAST ( - COUNT ( 72 ) AS INTEGER ) col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT - MIN( col0 ) * - - COUNT( * ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-2072
SELECT - MIN ( col0 ) * - - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-150

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + col0 + col0 / - ( 32 * - col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 - - - ( - 21 ) + col0 NOT IN ( + 71 + 14 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - - 96 IS NULL )
----

query I rowsort
SELECT DISTINCT col2 * 72 + col0 * col2 AS col1 FROM tab2 WHERE NULL > - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT - SUM( DISTINCT + - col1 ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2077
SELECT - SUM ( DISTINCT + - col1 ) AS col0 FROM tab0
----
103

query I rowsort
SELECT ALL 49 / - 50 + - col0 + + col2 / 48 FROM tab1 WHERE - col1 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 * - col0 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( + col1 ) * col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + + 59 + + - 71 FROM tab2 AS cor0
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - - col1 * col0 col1 FROM tab1 AS cor0
----
430
4324
728

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT DISTINCT + 39 * + COUNT( * ) FROM tab0 cor0
----
117

skipif mysql # not compatible
query I rowsort label-2083
SELECT DISTINCT + 39 * + COUNT ( * ) FROM tab0 cor0
----
117

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 2 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT COUNT( * ) * AVG ( - col1 ) FROM tab0 AS cor0 WHERE - col0 >= + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-2085
SELECT COUNT ( * ) * AVG ( - col1 ) FROM tab0 AS cor0 WHERE - col0 >= + 78
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2086
SELECT - - 70 DIV + col2 AS col1 FROM tab2 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-2086
SELECT - - 70 / + col2 AS col1 FROM tab2 AS cor0
----
1
1
3

query I rowsort
SELECT col1 * + 78 AS col0 FROM tab0 AS cor0
----
1638
6318
78

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( - 10 ) = ( NULL )
----

query I rowsort
SELECT DISTINCT - 41 * - col2 FROM tab2 AS cor0
----
1640
2378
943

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT ALL - - MAX( DISTINCT + + col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL - - MAX ( DISTINCT + + col1 ) FROM tab1 cor0
----
47

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND col2
----

query I rowsort
SELECT col0 * col1 * 69 FROM tab2
----
161874
340032
346725

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2093
SELECT ALL * FROM tab0 WHERE NOT col1 NOT IN ( + CAST( NULL AS SIGNED ), - col0 / col1 * col0 + - 12 )
----

skipif mysql # not compatible
query III rowsort label-2093
SELECT ALL * FROM tab0 WHERE NOT col1 NOT IN ( + CAST ( NULL AS INTEGER ), - col0 / col1 * col0 + - 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT DISTINCT - ( MIN( ALL - col1 ) ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-2094
SELECT DISTINCT - ( MIN ( ALL - col1 ) ) AS col2 FROM tab2
----
77

query II rowsort
SELECT ALL - col0, - col2 * + 8 AS col2 FROM tab1
----
-51
-768
-85
-472
-91
-544

onlyif mysql # DIV for integer division: 
query II rowsort label-2096
SELECT DISTINCT - ( - col2 ) + - col1 DIV col2 AS col1, - col0 + - - col1 FROM tab2 AS cor0
----
21
5
39
13
57
-8

skipif mysql # not compatible
query II rowsort label-2096
SELECT DISTINCT - ( - col2 ) + - col1 / col2 AS col1, - col0 + - - col1 FROM tab2 AS cor0
----
21
5
39
13
57
-8

query I rowsort
SELECT ALL + 10 + col1 AS col1 FROM tab1 AS cor0
----
15
24
57

query I rowsort
SELECT DISTINCT + 60 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT + MIN( DISTINCT + ( + col1 ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2099
SELECT + MIN ( DISTINCT + ( + col1 ) ) FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT - COUNT( * ) * - 6 AS col1 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-2100
SELECT - COUNT ( * ) * - 6 AS col1 FROM tab2
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2101
SELECT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-2101
SELECT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT DISTINCT + COUNT( 76 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT + COUNT ( 76 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT + col1 AS col2 FROM tab2 cor0 WHERE NOT 21 NOT BETWEEN - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2105
SELECT - 25 DIV - MAX( DISTINCT + col0 ) AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2105
SELECT - 25 / - MAX ( DISTINCT + col0 ) AS col0 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT - + COUNT( + col0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2106
SELECT - + COUNT ( + col0 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2107
SELECT CAST( NULL AS DECIMAL ) FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2107
SELECT CAST ( NULL AS REAL ) FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - col2 AS col0, - 61 FROM tab2
----
-23
-61
-40
-61
-58
-61

query II rowsort
SELECT DISTINCT - 23 AS col0, col2 - + col0 + - 35 * - 99 AS col0 FROM tab1 WHERE NOT - col1 <> ( - - 43 - + - 29 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2110
SELECT ALL * FROM tab0 WHERE + CAST( + col1 AS SIGNED ) - + ( + - 54 ) / - + col1 + - 81 = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2110
SELECT ALL * FROM tab0 WHERE + CAST ( + col1 AS INTEGER ) - + ( + - 54 ) / - + col1 + - 81 = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - col2, + 14 + - col2 * - 77 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( 39 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2113
SELECT + CAST( - col2 AS SIGNED ), col2 FROM tab1
----
-59
59
-68
68
-96
96

skipif mysql # not compatible
query II rowsort label-2113
SELECT + CAST ( - col2 AS INTEGER ), col2 FROM tab1
----
-59
59
-68
68
-96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT - MIN( ALL + col2 ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-2114
SELECT - MIN ( ALL + col2 ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-177

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2115
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST( - - 38 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2115
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( - - 38 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL col2 * - col0 + - ( 99 ) FROM tab1 AS cor0
----
-4995
-5114
-6287

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2117
SELECT - 37 + - CAST( - - 17 AS SIGNED ) * + col0 + ( + + 4 ) * - - 25 FROM tab2 AS cor0
----
-1025
-1212
-719

skipif mysql # not compatible
query I rowsort label-2117
SELECT - 37 + - CAST ( - - 17 AS INTEGER ) * + col0 + ( + + 4 ) * - - 25 FROM tab2 AS cor0
----
-1025
-1212
-719

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL BETWEEN + col1 * - - col2 * + + 31 AND col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 - - - 11 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT - MIN( col2 ) + - + 31 FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-2120
SELECT - MIN ( col2 ) + - + 31 FROM tab2 AS cor0
----
-54

query I rowsort
SELECT + 97 + - - 73 FROM tab2 AS cor0
----
170
170
170

query I rowsort
SELECT DISTINCT + + col0 * + col0 * col1 FROM tab2 WHERE NOT NULL >= - col2 * + col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) IN ( 41, + col1, + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT MIN( DISTINCT col0 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2124
SELECT MIN ( DISTINCT col0 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col0 * - 34 AS col2 FROM tab0
----
-2958
-3298
-510

query III rowsort
SELECT * FROM tab2 WHERE + col1 BETWEEN - + col2 AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2127
SELECT CAST( + col2 AS SIGNED ) * - col0 * - ( - col1 ) AS col1 FROM tab0
----
-18270
-57105
-9603

skipif mysql # not compatible
query I rowsort label-2127
SELECT CAST ( + col2 AS INTEGER ) * - col0 * - ( - col1 ) AS col1 FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT DISTINCT + + 90 + + - 27 AS col1 FROM tab0 AS cor0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2129
SELECT DISTINCT + 8 - + col2 + - CAST( - 86 AS SIGNED ) AS col1 FROM tab2 cor0
----
36
54
71

skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT + 8 - + col2 + - CAST ( - 86 AS INTEGER ) AS col1 FROM tab2 cor0
----
36
54
71

query I rowsort
SELECT + + 28 - + 14 AS col0 FROM tab2 AS cor0
----
14
14
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2131
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2131
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 - - col1 + 99 AS col1 FROM tab2 AS cor0
----
173
216
224

query I rowsort
SELECT ALL col0 FROM tab1 cor0 WHERE - col1 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2134
SELECT - 0 * + col1 DIV - col1 * - col2, col1 FROM tab2
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-2134
SELECT - 0 * + col1 / - col1 * - col2, col1 FROM tab2
----
0
51
0
67
0
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2135
SELECT ALL - col0 AS col0, - CAST( NULL AS SIGNED ) * - - col2 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-2135
SELECT ALL - col0 AS col0, - CAST ( NULL AS INTEGER ) * - - col2 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

query II rowsort
SELECT DISTINCT - ( - 15 ) AS col0, - 54 FROM tab1 AS cor0
----
15
-54

query II rowsort
SELECT ALL - col1 AS col2, - 47 * ( - + col0 ) FROM tab2 AS cor0
----
-51
2162
-67
3525
-77
3008

query I rowsort
SELECT - ( + + col0 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + 32 FROM tab1 AS cor0 WHERE - col0 * + ( - - 45 ) IS NULL
----

query I rowsort
SELECT ALL - col1 * - - 91 * + col0 AS col1 FROM tab2 AS cor0
----
-213486
-448448
-457275

query I rowsort
SELECT ALL + 37 + - col2 * - + 94 FROM tab1 AS cor0 WHERE col2 NOT BETWEEN - + 60 AND ( + col0 )
----
9061

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT + SUM( ALL + + col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-2142
SELECT + SUM ( ALL + + col2 ) FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT ALL + MIN( 50 ) col0 FROM tab0
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2143
SELECT ALL + MIN ( 50 ) col0 FROM tab0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2144
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2144
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 33 * 18 FROM tab0
----
594

query I rowsort
SELECT - ( - 68 ) AS col0 FROM tab2 AS cor0
----
68
68
68

query I rowsort
SELECT ALL + + ( + + 14 ) AS col1 FROM tab1 cor0
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT DISTINCT ( + COUNT( + - 23 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2148
SELECT DISTINCT ( + COUNT ( + - 23 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT + - ( - 23 ) + + 16 FROM tab2 WHERE col1 <> + col2
----
39
39
39

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( 4 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2151
SELECT ALL - - col2 * col1 + - col2 col2 FROM tab2 WHERE - CAST( - - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2151
SELECT ALL - - col2 * col1 + - col2 col2 FROM tab2 WHERE - CAST ( - - col1 AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col1 * 58 + + col2 NOT IN ( + ( - col0 ), - ( - + 64 ) - 83 * + col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2153
SELECT + CAST( + + col0 AS SIGNED ) / 40 + col0 + CAST( + 67 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2153
SELECT + CAST ( + + col0 AS INTEGER ) / 40 + col0 + CAST ( + 67 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2154
SELECT + CAST( NULL AS SIGNED ) / 74 FROM tab2 AS cor0 WHERE - col1 IN ( - + col0 * + - col0 / + col2 + - ( + col0 ) )
----

skipif mysql # not compatible
query I rowsort label-2154
SELECT + CAST ( NULL AS INTEGER ) / 74 FROM tab2 AS cor0 WHERE - col1 IN ( - + col0 * + - col0 / + col2 + - ( + col0 ) )
----

query I rowsort
SELECT DISTINCT + col0 * 62 + - col0 FROM tab0 AS cor0
----
5307
5917
915

query I rowsort
SELECT DISTINCT + 16 + col1 AS col2 FROM tab2 AS cor0
----
67
83
93

query I rowsort
SELECT + + col1 + - ( + col1 ) AS col0 FROM tab2 AS cor0 WHERE col1 * - - col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 ) = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - + col1 IN ( + 94 + - - 34, col2, - col2 ) )
----

query II rowsort
SELECT DISTINCT + 29, col1 AS col0 FROM tab2 AS cor0
----
29
51
29
67
29
77

query I rowsort
SELECT ALL 3 * ( 58 ) FROM tab1
----
174
174
174

query I rowsort
SELECT + col2 - - - 15 FROM tab1
----
44
53
81

query I rowsort
SELECT ALL col1 * + + 33 FROM tab2
----
1683
2211
2541

query I rowsort
SELECT DISTINCT - 33 * - col2 FROM tab1
----
1947
2244
3168

onlyif mysql # aggregate syntax: 
query II rowsort label-2165
SELECT 73 + + COUNT( * ) col0, MIN( DISTINCT 5 ) + + 28 FROM tab1
----
76
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2165
SELECT 73 + + COUNT ( * ) col0, MIN ( DISTINCT 5 ) + + 28 FROM tab1
----
76
33

onlyif mysql # DIV for integer division: 
query II rowsort label-2166
SELECT + 71 + + col2 col2, col0 DIV + col1 + + col1 AS col0 FROM tab0
----
118
81
170
98
81
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2166
SELECT + 71 + + col2 col2, col0 / + col1 + + col1 AS col0 FROM tab0
----
118
81
170
98
81
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT DISTINCT - MIN( + - 99 ) * 72 FROM tab1
----
7128

skipif mysql # not compatible
query I rowsort label-2167
SELECT DISTINCT - MIN ( + - 99 ) * 72 FROM tab1
----
7128

query I rowsort
SELECT 48 FROM tab1 WHERE + col1 * col0 + - 71 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2169
SELECT - 31 DIV col1 * + col1 + - 6 + + col0 AS col1 FROM tab1 cor0
----
17
49
85

skipif mysql # not compatible
query I rowsort label-2169
SELECT - 31 / col1 * + col1 + - 6 + + col0 AS col1 FROM tab1 cor0
----
17
49
85

query I rowsort
SELECT + 66 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 99 > + col2
----

query I rowsort
SELECT ALL - + ( 6 ) AS col1 FROM tab2 AS cor0
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT 58 * 97 * SUM( 67 ) FROM tab2 AS cor0
----
1130826

skipif mysql # not compatible
query I rowsort label-2173
SELECT 58 * 97 * SUM ( 67 ) FROM tab2 AS cor0
----
1130826

query II rowsort
SELECT + + col0, + col0 AS col2 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2175
SELECT - col0 DIV - 83 * col2 * 58 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2175
SELECT - col0 / - 83 * col2 * 58 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2176
SELECT 65 col0, COUNT( * ) DIV + + COUNT( * ) AS col1 FROM tab2
----
65
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2176
SELECT 65 col0, COUNT ( * ) / + + COUNT ( * ) AS col1 FROM tab2
----
65
1

query I rowsort
SELECT - - 17 / 54 FROM tab0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2179
SELECT ALL col2 + - CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2179
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 36 * + - 38 FROM tab1
----
-1368
-1368
-1368

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT ALL + MAX( ALL col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-2181
SELECT ALL + MAX ( ALL col1 ) AS col0 FROM tab1
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col0, col0 col1 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT - + COUNT( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2183
SELECT - + COUNT ( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + col1, col2 * + col1 + + 94 FROM tab0 AS cor0
----
1
193
21
304
81
3901

query I rowsort
SELECT 59 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2186
SELECT - COUNT( * ) + - SUM( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2186
SELECT - COUNT ( * ) + - SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - ( col1 ) * - 32 + - - 17 AS col0 FROM tab0 AS cor0
----
2609
49
689

onlyif mysql # DIV for integer division: 
query I rowsort label-2188
SELECT ALL + 45 DIV + - 74 + + col1 + - col0 * + 5 + 59 - - + col2 * ( + col0 ) DIV - col2 FROM tab0 AS cor0
----
-442
-522
50

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL + 45 / + - 74 + + col1 + - col0 * + 5 + 59 - - + col2 * ( + col0 ) / - col2 FROM tab0 AS cor0
----
-442
-522
50

query I rowsort
SELECT + + col1 + + col2 * + - 1 AS col1 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT DISTINCT + COUNT( + + 17 ) + - 52 AS col1 FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-2190
SELECT DISTINCT + COUNT ( + + 17 ) + - 52 AS col1 FROM tab0 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT ALL 54 + COUNT( col2 ) * - 26 FROM tab2 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2191
SELECT ALL 54 + COUNT ( col2 ) * - 26 FROM tab2 cor0
----
-24

query I rowsort
SELECT ALL 23 * + col2 - 35 AS col2 FROM tab1
----
1322
1529
2173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2193
SELECT - CAST( - MAX( ALL CAST( - + ( + col0 ) AS SIGNED ) ) AS SIGNED ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2193
SELECT - CAST ( - MAX ( ALL CAST ( - + ( + col0 ) AS INTEGER ) ) AS INTEGER ) AS col1 FROM tab0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2194
SELECT ALL ( + ( - + CAST( NULL AS SIGNED ) ) ) * + col0 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2194
SELECT ALL ( + ( - + CAST ( NULL AS INTEGER ) ) ) * + col0 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - - 89 - - 46 AS col2 FROM tab0 AS cor0
----
135
135
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2196
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 + + ( - ( col2 ) ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2196
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 + + ( - ( col2 ) ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - col2 * ( - col2 ) * - col0 + 77 AS col0 FROM tab0 AS cor0
----
-33058
-8623
-950620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2198
SELECT DISTINCT - 72 AS col1, + CAST( NULL AS SIGNED ) + + SUM( + + col1 ) AS col1 FROM tab0 AS cor0
----
-72
NULL

skipif mysql # not compatible
query II rowsort label-2198
SELECT DISTINCT - 72 AS col1, + CAST ( NULL AS INTEGER ) + + SUM ( + + col1 ) AS col1 FROM tab0 AS cor0
----
-72
NULL

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 JOIN tab0 AS cor1 ON NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2200
SELECT - + 29 * ( CAST( NULL AS SIGNED ) ) + - 15 * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2200
SELECT - + 29 * ( CAST ( NULL AS INTEGER ) ) + - 15 * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - ( - + col0 ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT - + 60 * + col0 FROM tab1 cor0
----
-3060
-5100
-5460

query I rowsort
SELECT DISTINCT + col2 * - 42 + + col0 AS col2 FROM tab1 AS cor0
----
-2393
-2765
-3981

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT DISTINCT + - 64 * COUNT( * ) FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-2205
SELECT DISTINCT + - 64 * COUNT ( * ) FROM tab1 AS cor0
----
-192

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2206
SELECT - + CAST( + col1 AS SIGNED ) DIV 68 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2206
SELECT - + CAST ( + col1 AS INTEGER ) / 68 FROM tab2 cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2207
SELECT DISTINCT - 71 DIV 90 col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2207
SELECT DISTINCT - 71 / 90 col2 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2208
SELECT DISTINCT CAST( NULL AS SIGNED ) + ( COUNT( * ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT CAST ( NULL AS INTEGER ) + ( COUNT ( * ) ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2209
SELECT ALL col0 DIV + - col2 + - 53 + - + col0 AS col1 FROM tab2
----
-101
-118
-129

skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL col0 / + - col2 + - 53 + - + col0 AS col1 FROM tab2
----
-101
-118
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 WHERE - + ( col1 ) / + + ( + col1 ) * - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2210
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 WHERE - + ( col1 ) / + + ( + col1 ) * - col2 IS NOT NULL
----
3

query I rowsort
SELECT ALL - - col1 + 32 AS col2 FROM tab1 AS cor0
----
37
46
79

query I rowsort
SELECT - col0 + - + col0 AS col0 FROM tab2 AS cor0
----
-128
-150
-92

query I rowsort
SELECT DISTINCT 40 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT - 21 + - col0 + col0 * - + col2 + + 49 + + col2 FROM tab0 AS cor0
----
-645
-919
-9573

query I rowsort
SELECT - col0 + + + 50 + + 54 + - 18 FROM tab0 AS cor0
----
-1
-11
71

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 <= + 36 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * - col2 + col0 AS col0 FROM tab2
----
-1012
-2496
-4275

query I rowsort
SELECT 94 FROM tab0 WHERE ( - col1 IS NULL )
----

query II rowsort
SELECT col0 AS col2, col2 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT col2 * - 77 AS col0 FROM tab2 WHERE - col1 / 25 IS NULL
----

query I rowsort
SELECT DISTINCT ( - 44 ) + col2 + - 31 FROM tab0
----
-28
-65
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2222
SELECT DISTINCT 60 + + SUM( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2222
SELECT DISTINCT 60 + + SUM ( - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - + 6 - col2 FROM tab2 AS cor0
----
-29
-46
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT ALL - COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2224
SELECT ALL - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT + col0 * + - col2 + + 33 FROM tab2 AS cor0
----
-1025
-2527
-4317

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2226
SELECT ALL + AVG ( DISTINCT + col1 ) FROM tab1 AS cor0 WHERE ( NULL ) < + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2226
SELECT ALL + AVG ( DISTINCT + col1 ) FROM tab1 AS cor0 WHERE ( NULL ) < + CAST ( NULL AS REAL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 55 - - col0, 76 col2 FROM tab1 AS cor0
----
106
76
140
76
146
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT - + COUNT( * ) - - 97 FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-2228
SELECT - + COUNT ( * ) - - 97 FROM tab1 AS cor0
----
94

query I rowsort
SELECT DISTINCT - - 29 - - col1 FROM tab2 AS cor0
----
106
80
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT + COUNT( * ) + - - COUNT( * ) * + 96 * - ( - 15 ) FROM tab1 AS cor0
----
4323

skipif mysql # not compatible
query I rowsort label-2230
SELECT + COUNT ( * ) + - - COUNT ( * ) * + 96 * - ( - 15 ) FROM tab1 AS cor0
----
4323

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + - - col0 + - 25 * - col0 * - col2 col1, + 2 + - + col1 FROM tab2
----
-108733
-65
-26427
-49
-63976
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2232
SELECT DISTINCT CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT 17 + - + col1 * - - col0 + + col0 FROM tab2
----
-2283
-4847
-4933

query I rowsort
SELECT + - col0 FROM tab2 WHERE 52 - - col1 IS NULL
----

query I rowsort
SELECT col1 + + + 80 * + 4 FROM tab2
----
371
387
397

query III rowsort
SELECT ALL * FROM tab0 WHERE - 7 NOT BETWEEN col1 AND + 52 * + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2237
SELECT + + 98 DIV - ( col1 ) AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2237
SELECT + + 98 / - ( col1 ) AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col0 * + - col2 AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT + col2 * col2 * + col1 FROM tab1 cor0
----
129024
17405
217328

onlyif mysql # DIV for integer division: 
query I rowsort label-2240
SELECT - 21 DIV + col1 FROM tab1 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-2240
SELECT - 21 / + col1 FROM tab1 AS cor0
----
-1
-4
0

query I rowsort
SELECT - col1 * + col1 + col0 * 26 FROM tab1 AS cor0
----
1130
157
2185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col0, col1 * - col0 AS col2 FROM tab1 AS cor0
----
59
-425
68
-4277
96
-714

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 NOT IN ( + ( col1 ), col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2244
SELECT DISTINCT + 30 DIV col1 FROM tab0 AS cor0
----
0
1
30

skipif mysql # not compatible
query I rowsort label-2244
SELECT DISTINCT + 30 / col1 FROM tab0 AS cor0
----
0
1
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT DISTINCT - MIN( DISTINCT - col0 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2245
SELECT DISTINCT - MIN ( DISTINCT - col0 ) AS col0 FROM tab2
----
75

query I rowsort
SELECT col1 * - col2 + + - 20 AS col2 FROM tab2
----
-1193
-3100
-3906

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT - MIN( DISTINCT + 35 ) + 69 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-2247
SELECT - MIN ( DISTINCT + 35 ) + 69 FROM tab1
----
34

query I rowsort
SELECT + - 48 + + col1 FROM tab1 cor0
----
-1
-34
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT ALL + - 30 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL + - 30 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-90

query I rowsort
SELECT + 8 + - 82 * + ( - col2 ) FROM tab1 AS cor0
----
4846
5584
7880

query II rowsort
SELECT + col1 AS col2, 13 FROM tab0 cor0
----
1
13
21
13
81
13

query I rowsort
SELECT DISTINCT col1 - - + 88 * - 93 FROM tab1 AS cor0
----
-8137
-8170
-8179

query I rowsort
SELECT DISTINCT ( + + 88 ) FROM tab1 AS cor0 WHERE + 74 BETWEEN + + col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2254
SELECT ALL - CAST( NULL AS SIGNED ) + + + MAX( col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL - CAST ( NULL AS INTEGER ) + + + MAX ( col1 ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col1, + col1 )
----

query I rowsort
SELECT DISTINCT + - 70 * + 14 + - - col1 - + 47 - + col2 * + - col2 FROM tab1 AS cor0
----
2459
3644
8203

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT COUNT( DISTINCT 95 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2258
SELECT COUNT ( DISTINCT 95 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT DISTINCT + 39 * + - ( + + SUM( ALL + + 35 ) ) col0 FROM tab0 WHERE NOT - 65 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2259
SELECT DISTINCT + 39 * + - ( + + SUM ( ALL + + 35 ) ) col0 FROM tab0 WHERE NOT - 65 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2260
SELECT + col2 DIV + 63 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2260
SELECT + col2 / + 63 AS col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 * + - col2 col1 FROM tab0
----
-1683
-170
-799

query I rowsort
SELECT ALL ( + ( - 7 ) ) AS col1 FROM tab2
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT ALL + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2263
SELECT ALL + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT - MIN( + 90 ) AS col2 FROM tab0 cor0
----
-90

skipif mysql # not compatible
query I rowsort label-2264
SELECT - MIN ( + 90 ) AS col2 FROM tab0 cor0
----
-90

query I rowsort
SELECT DISTINCT + - 57 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2266
SELECT ALL + 63 FROM tab0 WHERE - 46 + - col1 NOT IN ( - col1, - CAST( NULL AS SIGNED ), - col2 + col1 )
----

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL + 63 FROM tab0 WHERE - 46 + - col1 NOT IN ( - col1, - CAST ( NULL AS INTEGER ), - col2 + col1 )
----

query I rowsort
SELECT + - 90 * + col1 FROM tab2 cor0
----
-4590
-6030
-6930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2268
SELECT DISTINCT - col2 * - + CAST( - + col0 AS SIGNED ) AS col1 FROM tab2 cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-2268
SELECT DISTINCT - col2 * - + CAST ( - + col0 AS INTEGER ) AS col1 FROM tab2 cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ALL - col0 * - col0 + - 34 + ( - + col2 ) AS col0 FROM tab2 cor0
----
2059
4022
5533

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * 12 + col0 + - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 * + col0 * col2 * col1 * col0 FROM tab0
----
12848625
138285630
90354627

query II rowsort
SELECT + 88 AS col2, 11 AS col1 FROM tab1
----
88
11
88
11
88
11

query I rowsort
SELECT + col1 * + 42 AS col1 FROM tab2
----
2142
2814
3234

onlyif mysql # DIV for integer division: 
query II rowsort label-2274
SELECT + col1, + ( - 87 ) + - 94 DIV col2 * - 69 * - - col1 FROM tab2
----
51
13989
67
4536
77
10539

skipif mysql # not compatible
query II rowsort label-2274
SELECT + col1, + ( - 87 ) + - 94 / col2 * - 69 * - - col1 FROM tab2
----
51
13989
67
4536
77
10539

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT ALL + SUM( ALL + col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL + SUM ( ALL + col0 ) AS col0 FROM tab0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 + + + col0 col1 FROM tab2
----
111
122
93

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 31 * col1 / - col1 * + ( + 54 ) BETWEEN 98 AND - col2
----

query I rowsort
SELECT DISTINCT col2 - - + ( - 2 ) * + col1 * - + col0 AS col1 FROM tab1 cor0
----
1524
8622
909

query I rowsort
SELECT ALL + + ( + 20 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2280
SELECT ALL - CAST( - 73 AS SIGNED ) AS col0, + 79 FROM tab1
----
73
79
73
79
73
79

skipif mysql # not compatible
query II rowsort label-2280
SELECT ALL - CAST ( - 73 AS INTEGER ) AS col0, + 79 FROM tab1
----
73
79
73
79
73
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT DISTINCT + + MAX( ALL + 71 ) + - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT + + MAX ( ALL + 71 ) + - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
68

query I rowsort
SELECT + - 91 - + col1 AS col1 FROM tab2 AS cor0
----
-142
-158
-168

query I rowsort
SELECT DISTINCT 6 + col0 * col2 FROM tab1 AS cor0
----
4902
5021
6194

query I rowsort
SELECT + col1 - ( + col0 ) FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT - col1 - + + 20 FROM tab2 AS cor0
----
-71
-87
-97

query I rowsort
SELECT ALL ( + + col1 ) AS col1 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( - + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( + + 82 ) AS col0 FROM tab0
----
82
82
82

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT COUNT( + 20 ) FROM tab2 WHERE NOT NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2290
SELECT COUNT ( + 20 ) FROM tab2 WHERE NOT NULL > ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT ALL - COUNT( * ) * 73 AS col1 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL - COUNT ( * ) * 73 AS col1 FROM tab1
----
-219

onlyif mysql # DIV for integer division: 
query I rowsort label-2292
SELECT ALL - col1 DIV + - col2 AS col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2292
SELECT ALL - col1 / + - col2 AS col2 FROM tab0
----
0
1
2

query I rowsort
SELECT ( 80 ) AS col0 FROM tab2
----
80
80
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2294
SELECT - CAST( + 60 AS SIGNED ) FROM tab2
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-2294
SELECT - CAST ( + 60 AS INTEGER ) FROM tab2
----
-60
-60
-60

query II rowsort
SELECT - 98 * - col1 + - 34 + - 40 AS col0, + 39 + + + col1 AS col1 FROM tab0 cor0
----
1984
60
24
40
7864
120

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) = 32 * ( - + 72 ) * col2
----

query I rowsort
SELECT + - col2 + - 16 AS col0 FROM tab0 AS cor0
----
-115
-26
-63

query I rowsort
SELECT - col0 * col1 + - col2 AS col1 FROM tab1 AS cor0
----
-4345
-484
-810

query I rowsort
SELECT + col2 * + col2 * + 94 + col1 FROM tab0 AS cor0
----
207727
921295
9421

query I rowsort
SELECT DISTINCT + col1 + 13 FROM tab0 AS cor0
----
14
34
94

query II rowsort
SELECT DISTINCT + - col0, col2 AS col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2302
SELECT ( + col2 ) * col0 + + 32 AS col0, - col0 * CAST( NULL AS DECIMAL ) / + col2 + - col2 / + col2 AS col1 FROM tab1 AS cor0
----
4928
NULL
5047
NULL
6220
NULL

skipif mysql # not compatible
query II rowsort label-2302
SELECT ( + col2 ) * col0 + + 32 AS col0, - col0 * CAST ( NULL AS REAL ) / + col2 + - col2 / + col2 AS col1 FROM tab1 AS cor0
----
4928
NULL
5047
NULL
6220
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2303
SELECT ALL COUNT( * ) DIV - 36 AS col2 FROM tab2 WHERE NOT - col2 * 42 NOT BETWEEN - 71 AND + 92 * col2
----
0

skipif mysql # not compatible
query I rowsort label-2303
SELECT ALL COUNT ( * ) / - 36 AS col2 FROM tab2 WHERE NOT - col2 * 42 NOT BETWEEN - 71 AND + 92 * col2
----
0

query III rowsort
SELECT * FROM tab2 WHERE - + col2 * + col1 >= NULL
----

query I rowsort
SELECT DISTINCT + col2 * + + col1 + + - 98 FROM tab2 AS cor0
----
1075
2982
3788

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2306
SELECT ALL - 26 - - 78 - 13 DIV - MAX( ALL - 97 ) col1 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2306
SELECT ALL - 26 - - 78 - 13 / - MAX ( ALL - 97 ) col1 FROM tab2 AS cor0
----
52

query I rowsort
SELECT DISTINCT 82 * - + col0 AS col1 FROM tab0
----
-1230
-7134
-7954

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2308
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT DISTINCT col2 + - - 95 FROM tab1
----
154
163
191

query I rowsort
SELECT + col1 + - + col0 * col1 AS col1 FROM tab2
----
-2295
-4851
-4958

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + + + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1, - 2 col1 FROM tab0 AS cor0
----
-1
-2
-21
-2
-81
-2

query I rowsort
SELECT DISTINCT + 50 AS col0 FROM tab2 cor0
----
50

query I rowsort
SELECT DISTINCT - 51 * - - col0 * + 82 AS col1 FROM tab0 cor0
----
-363834
-405654
-62730

query I rowsort
SELECT + 36 * + col2 * - col0 * 19 * + + 44 AS col1 FROM tab1
----
-147350016
-150931440
-186234048

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col1 - - + 67 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col0 * - 4 FROM tab0
----
348
388
60

query II rowsort
SELECT ALL + col1, ( - 66 ) FROM tab2 WHERE NOT NULL >= col1 * + - col0
----

query I rowsort
SELECT col1 * + - 53 FROM tab2
----
-2703
-3551
-4081

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2320
SELECT DISTINCT 49 DIV + COUNT( * ) col0 FROM tab2
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2320
SELECT DISTINCT 49 / + COUNT ( * ) col0 FROM tab2
----
16

query I rowsort
SELECT - 2 * + + 4 FROM tab0
----
-8
-8
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-2322
SELECT + col1 + + - ( - + col1 ) + col1 DIV - col2 FROM tab2
----
100
133
153

skipif mysql # not compatible
query I rowsort label-2322
SELECT + col1 + + - ( - + col1 ) + col1 / - col2 FROM tab2
----
100
133
153

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT COUNT( * ) + + COUNT( * ) + - 75 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-57

skipif mysql # not compatible
query I rowsort label-2323
SELECT COUNT ( * ) + + COUNT ( * ) + - 75 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-57

query I rowsort
SELECT 51 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT ALL - 29 + - 2 * + - col1 * col0 FROM tab2
----
10021
4663
9827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 AS col1, col0 * col1 + + 40 col2 FROM tab1 AS cor0
----
59
465
68
4317
96
754

query I rowsort
SELECT ALL + + ( + 51 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT - COUNT( * ) * + + COUNT( 79 ) FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2328
SELECT - COUNT ( * ) * + + COUNT ( 79 ) FROM tab0 cor0
----
-9

query I rowsort
SELECT DISTINCT - 82 AS col2 FROM tab2 AS cor0
----
-82

query I rowsort
SELECT DISTINCT 45 + - col1 + + + ( + col0 ) * + col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
2340
4896
5003

query I rowsort
SELECT 59 * 84 FROM tab0
----
4956
4956
4956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2332
SELECT ALL COUNT( * ) * - CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2332
SELECT ALL COUNT ( * ) * - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL - + col1 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - col0 * col1 + 48 AS col1 FROM tab2
----
-2298
-4880
-4977

query I rowsort
SELECT - 97 * + col0 + + col0 * - col2 - col0 AS col0 FROM tab1
----
-13345
-15106
-9894

query I rowsort
SELECT - 39 + + col0 FROM tab0
----
-24
48
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT DISTINCT ( + COUNT( * ) ) + + 27 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT ( + COUNT ( * ) ) + + 27 FROM tab2
----
30

query I rowsort
SELECT col2 * - col1 + - col1 AS col1 FROM tab1
----
-1358
-300
-3243

query I rowsort
SELECT ALL 6 + - - col1 AS col0 FROM tab1
----
11
20
53

query I rowsort
SELECT ( 11 ) AS col2 FROM tab0 cor0
----
11
11
11

query II rowsort
SELECT + col0, col2 + + + col0 FROM tab1 AS cor0
----
51
147
85
144
91
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT + col1 + col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL <= col0 )
----

query I rowsort
SELECT ALL - + col1 * + ( - col0 ) + - + 51 + + col0 AS col1 FROM tab2 AS cor0
----
2341
4941
5049

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT + - COUNT( * ) * - - ( + + 33 ) - 7 AS col1 FROM tab1 AS cor0
----
-106

skipif mysql # not compatible
query I rowsort label-2345
SELECT + - COUNT ( * ) * - - ( + + 33 ) - 7 AS col1 FROM tab1 AS cor0
----
-106

onlyif mysql # DIV for integer division: 
query I rowsort label-2346
SELECT - 28 DIV col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2346
SELECT - 28 / col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 25 >= - col2
----
46
51
23

query I rowsort
SELECT ALL - 94 * - + col0 FROM tab1 AS cor0
----
4794
7990
8554

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2349
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE ( - col2 * - col2 ) < NULL
----

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE ( - col2 * - col2 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT SUM( DISTINCT + + ( - - col1 ) ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2350
SELECT SUM ( DISTINCT + + ( - - col1 ) ) AS col0 FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT DISTINCT - SUM( ALL - - col0 ) * 98 FROM tab2
----
-18130

skipif mysql # not compatible
query I rowsort label-2351
SELECT DISTINCT - SUM ( ALL - - col0 ) * 98 FROM tab2
----
-18130

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2352
SELECT 92, - CAST( 55 AS SIGNED ) DIV + col2 + + 35 AS col1 FROM tab1
----
92
35
92
35
92
35

skipif mysql # not compatible
query II rowsort label-2352
SELECT 92, - CAST ( 55 AS INTEGER ) / + col2 + + 35 AS col1 FROM tab1
----
92
35
92
35
92
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT + - 19 * COUNT( * ) FROM tab1 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-2353
SELECT + - 19 * COUNT ( * ) FROM tab1 cor0
----
-57

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= ( col0 ) / col1
----

query II rowsort
SELECT - + col2, - 41 AS col2 FROM tab1 cor0
----
-59
-41
-68
-41
-96
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2356
SELECT - SUM( + col2 ) DIV - + COUNT( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-2356
SELECT - SUM ( + col2 ) / - + COUNT ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 90 col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT + - 83 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2359
SELECT MIN( DISTINCT - 32 ) AS col2, CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-32
-9

skipif mysql # not compatible
query II rowsort label-2359
SELECT MIN ( DISTINCT - 32 ) AS col2, CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-32
-9

query I rowsort
SELECT ALL - + 26 * - 59 + + 98 AS col0 FROM tab0 AS cor0
----
1632
1632
1632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2361
SELECT + col0 / CAST( NULL AS SIGNED ) - - 39 + + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2361
SELECT + col0 / CAST ( NULL AS INTEGER ) - - 39 + + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2362
SELECT DISTINCT col0 * + 16 + + 15 DIV - col1 * + col0 AS col2 FROM tab2 AS cor0
----
1024
1200
736

skipif mysql # not compatible
query I rowsort label-2362
SELECT DISTINCT col0 * + 16 + + 15 / - col1 * + col0 AS col2 FROM tab2 AS cor0
----
1024
1200
736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2363
SELECT 40 * + COUNT( * ) + + AVG ( + CAST( NULL AS SIGNED ) ) + + SUM( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2363
SELECT 40 * + COUNT ( * ) + + AVG ( + CAST ( NULL AS INTEGER ) ) + + SUM ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL <= - 15
----

query I rowsort
SELECT ALL + + col0 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1, col0 + + col1 )
----

query I rowsort
SELECT ALL - - 56 * + 33 + + + 98 FROM tab1 AS cor0
----
1946
1946
1946

query I rowsort
SELECT ALL + col1 * ( - col2 ) * + col0 + + - col0 - col1 FROM tab0 AS cor0
----
-18378
-57201
-9701

onlyif mysql # DIV for integer division: 
query I rowsort label-2368
SELECT ALL + col2 DIV 64 * 21 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL + col2 / 64 * 21 FROM tab2
----
0
0
0

query I rowsort
SELECT - + 6 AS col1 FROM tab2 WHERE NULL IS NULL
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT DISTINCT + + COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2370
SELECT DISTINCT + + COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT ALL col0 + col2 * + 28 + - col1 FROM tab1
----
1732
1948
2725

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 * 90 - - ( + - 24 ) - col0 + - + 29 + 11 * - col2 col2, - col0 * - col2 AS col0 FROM tab0 AS cor0
----
-1329
9603
-2140
870
-7875
705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2373
SELECT DISTINCT + 60 / - + ( + COUNT( * ) ) * - 38 + + - 87 + + CAST( NULL AS SIGNED ) + + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2373
SELECT DISTINCT + 60 / - + ( + COUNT ( * ) ) * - 38 + + - 87 + + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + col0, 62 FROM tab1
----
51
62
85
62
91
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT SUM( - 42 ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-378

skipif mysql # not compatible
query I rowsort label-2375
SELECT SUM ( - 42 ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2376
SELECT - 21 DIV - COUNT( * ) AS col1 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-2376
SELECT - 21 / - COUNT ( * ) AS col1 FROM tab2
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2377
SELECT ALL + + CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL + + CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - ( - - col2 ) * + col1 - col1 + - - 66 IS NOT NULL
----

query II rowsort
SELECT 51 AS col1, col1 FROM tab1 AS cor0
----
51
14
51
47
51
5

query I rowsort
SELECT DISTINCT 24 * + - col1 * - + col0 * col2 FROM tab0 cor0
----
1370520
230472
438480

query II rowsort
SELECT DISTINCT + col1 AS col0, col1 + - col0 * col2 FROM tab2 cor0
----
51
-1007
67
-4283
77
-2483

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT ALL - MAX( ALL - col1 ) FROM tab0 AS cor0 WHERE NOT - 28 - col2 IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL - MAX ( ALL - col1 ) FROM tab0 AS cor0 WHERE NOT - 28 - col2 IS NULL
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2383
SELECT ALL + col1 DIV - 79 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL + col1 / - 79 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 7 * + col2 AS col1 FROM tab1
----
413
476
672

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT ALL - - 45 * MIN( col0 ) AS col2 FROM tab1 AS cor0
----
2295

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL - - 45 * MIN ( col0 ) AS col2 FROM tab1 AS cor0
----
2295

query I rowsort
SELECT DISTINCT + 73 * - col0 AS col1 FROM tab0 AS cor0
----
-1095
-6351
-7081

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT DISTINCT 85 * - 89 * 33 + + COUNT( * ) FROM tab1
----
-249642

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT 85 * - 89 * 33 + + COUNT ( * ) FROM tab1
----
-249642

query I rowsort
SELECT + 93 * 15 FROM tab1
----
1395
1395
1395

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT - 33 * + 13 + + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-420

skipif mysql # not compatible
query I rowsort label-2389
SELECT - 33 * + 13 + + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2390
SELECT ALL - 22 - - COUNT( * ) - SUM( DISTINCT CAST( NULL AS SIGNED ) ) col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2390
SELECT ALL - 22 - - COUNT ( * ) - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT - - col2 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( col2, + col0 )
----

query I rowsort
SELECT + 7 * - - 43 * - + col1 + + col1 - - - col1 - col0 FROM tab2 AS cor0
----
-15397
-20242
-23241

query I rowsort
SELECT - 60 * 95 + + 71 - + 19 FROM tab1 AS cor0
----
-5648
-5648
-5648

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT DISTINCT - 49 - + MAX( col2 ) - 38 - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-2394
SELECT DISTINCT - 49 - + MAX ( col2 ) - 38 - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) - + 20 col2 FROM tab1
----
39
48
76

query I rowsort
SELECT + 50 * - + col2 + col1 + - col2 AS col2 FROM tab0
----
-2316
-489
-5048

query I rowsort
SELECT + col1 + - 73 + - col1 AS col2 FROM tab0
----
-73
-73
-73

query I rowsort
SELECT ALL + - col1 / + col1 * 99 + col0 AS col2 FROM tab1 WHERE NOT NULL IN ( col0 + - col1, - col0 * + 91 - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT DISTINCT + COUNT( DISTINCT + + 99 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2399
SELECT DISTINCT + COUNT ( DISTINCT + + 99 ) FROM tab2
----
1

query I rowsort
SELECT ALL + col0 + 11 AS col1 FROM tab0
----
108
26
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT - - col1 FROM tab2 WHERE NOT + 20 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + - + col1 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT DISTINCT COUNT( 20 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2404
SELECT DISTINCT COUNT ( 20 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT MAX( ALL - 44 ) AS col0 FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-2405
SELECT MAX ( ALL - 44 ) AS col0 FROM tab0 AS cor0
----
-44

query II rowsort
SELECT + 87 AS col2, col0 FROM tab2 AS cor0
----
87
46
87
64
87
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2407
SELECT + ( - + 91 ) / - - CAST( NULL AS SIGNED ) * - - col0 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2407
SELECT + ( - + 91 ) / - - CAST ( NULL AS INTEGER ) * - - col0 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT + - MAX( DISTINCT + 26 ) FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-2408
SELECT + - MAX ( DISTINCT + 26 ) FROM tab0 AS cor0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2409
SELECT + + COUNT( * ) DIV + CAST( 11 AS SIGNED ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2409
SELECT + + COUNT ( * ) / + CAST ( 11 AS INTEGER ) FROM tab1 cor0
----
0

query II rowsort
SELECT ALL 79, + 83 * ( + - col2 ) AS col2 FROM tab2
----
79
-1909
79
-3320
79
-4814

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE ( + + 28 ) IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT col1 + + + 52 FROM tab0
----
133
53
73

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 <= NULL
----

query I rowsort
SELECT ALL - col2 + + ( 76 ) AS col1 FROM tab2
----
18
36
53

query I rowsort
SELECT DISTINCT 90 + ( - col1 ) AS col2 FROM tab2
----
13
23
39

query I rowsort
SELECT ALL + col1 + 10 * + 20 FROM tab1 AS cor0
----
205
214
247

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 98 * - - 79 + - col0 * + col2 / - - col1 IS NULL
----

query I rowsort
SELECT + 58 * + 92 + - - col1 FROM tab1 AS cor0
----
5341
5350
5383

query I rowsort
SELECT DISTINCT col1 + + 93 FROM tab1 AS cor0
----
107
140
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT ALL - + 74 + - + 63 * COUNT( * ) FROM tab0 AS cor0
----
-263

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL - + 74 + - + 63 * COUNT ( * ) FROM tab0 AS cor0
----
-263

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 13 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, 84 FROM tab2 AS cor0
----
46
84
64
84
75
84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NOT + col2 IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col2 AS col0, - ( col1 ) FROM tab1 AS cor0
----
-59
-5
-68
-47
-96
-14

query II rowsort
SELECT ALL 23 + - col1, + col1 FROM tab2
----
-28
51
-44
67
-54
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 + col0, + 18 + + col1 col2 FROM tab1
----
102
32
170
23
182
65

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NULL = NULL
----

query II rowsort
SELECT - 74 + - col0, 89 + + col1 AS col2 FROM tab1 AS cor0
----
-125
103
-159
94
-165
136

query I rowsort
SELECT ALL - col1 - - + col2 AS col1 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # DIV for integer division: 
query I rowsort label-2430
SELECT - + 85 + - 57 DIV - 86 FROM tab1 AS cor0
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-2430
SELECT - + 85 + - 57 / - 86 FROM tab1 AS cor0
----
-85
-85
-85

query I rowsort
SELECT + col1 / + col2 * - col1 * + 21 + - + col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 56 * + ( + + col2 ) - + 43 - + col0 - ( - + 24 ) * col0 * - + col1 FROM tab0 cor0
----
-26586
-43418
3076

query I rowsort
SELECT 96 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2434
SELECT DISTINCT - CAST( - 83 AS SIGNED ) * col1 * - col2 AS col0 FROM tab1
----
-111552
-24485
-265268

skipif mysql # not compatible
query I rowsort label-2434
SELECT DISTINCT - CAST ( - 83 AS INTEGER ) * col1 * - col2 AS col0 FROM tab1
----
-111552
-24485
-265268

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT ALL + 46 - SUM( - + 15 ) col1 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2435
SELECT ALL + 46 - SUM ( - + 15 ) col1 FROM tab1
----
91

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 * + col0 * + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 / + col2 + + + 20 + - col1 - col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT col0 * - col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 27 AS col2, col0 FROM tab1
----
27
51
27
85
27
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2440
SELECT DISTINCT - 80 DIV - col0 FROM tab0 AS cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-2440
SELECT DISTINCT - 80 / - col0 FROM tab0 AS cor0
----
0
5

query I rowsort
SELECT ALL col2 * + - 3 AS col2 FROM tab0 cor0 WHERE NOT col0 = - col2
----
-141
-297
-30

query II rowsort
SELECT DISTINCT 17 AS col1, 69 FROM tab2 AS cor0
----
17
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2443
SELECT col0 + 26 DIV 48 AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2443
SELECT col0 + 26 / 48 AS col0 FROM tab1
----
51
85
91

query I rowsort
SELECT col1 + - ( col0 ) AS col0 FROM tab0
----
-66
-96
66

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE + 69 IS NULL
----

query I rowsort
SELECT + 95 AS col1 FROM tab1 WHERE col1 IS NOT NULL
----
95
95
95

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) < ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT ALL - 19 * 16 + COUNT( col2 ) * - 5 AS col1 FROM tab1 WHERE NOT 42 * + col1 IS NULL
----
-319

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL - 19 * 16 + COUNT ( col2 ) * - 5 AS col1 FROM tab1 WHERE NOT 42 * + col1 IS NULL
----
-319

query III rowsort
SELECT * FROM tab1 WHERE - 18 + + col2 * + col2 BETWEEN col1 AND ( 53 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT - MAX( ALL + 89 ) FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-2450
SELECT - MAX ( ALL + 89 ) FROM tab0
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-2451
SELECT ALL col2 DIV 87 - - col0 * col1 AS col1 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL col2 / 87 - - col0 * col1 AS col1 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT MIN( 25 ) + COUNT( * ) AS col0 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-2452
SELECT MIN ( 25 ) + COUNT ( * ) AS col0 FROM tab2
----
28

query I rowsort
SELECT DISTINCT col1 * col2 + + col0 AS col1 FROM tab0 WHERE - col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 87 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2455
SELECT * FROM tab1 WHERE + ( CAST( + 92 AS DECIMAL ) ) * - 81 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2455
SELECT * FROM tab1 WHERE + ( CAST ( + 92 AS REAL ) ) * - 81 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT - COUNT( 6 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2456
SELECT - COUNT ( 6 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT DISTINCT SUM( DISTINCT - col2 ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-2457
SELECT DISTINCT SUM ( DISTINCT - col2 ) AS col0 FROM tab0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2458
SELECT ALL * FROM tab2 WHERE NOT + CAST( - col0 AS SIGNED ) / ( + CAST( NULL AS SIGNED ) + col0 / + col2 ) + 27 <= - 16
----

skipif mysql # not compatible
query III rowsort label-2458
SELECT ALL * FROM tab2 WHERE NOT + CAST ( - col0 AS INTEGER ) / ( + CAST ( NULL AS INTEGER ) + col0 / + col2 ) + 27 <= - 16
----

query I rowsort
SELECT col1 - 18 AS col1 FROM tab1
----
-13
-4
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT NULL BETWEEN + col2 * + ( - ( col0 ) ) AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-2460
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT NULL BETWEEN + col2 * + ( - ( col0 ) ) AND + col1
----
0

query I rowsort
SELECT ALL ( - 31 ) - + 63 * 50 AS col0 FROM tab0
----
-3181
-3181
-3181

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + 52 )
----

query I rowsort
SELECT ALL + 68 + ( col1 ) FROM tab2 AS cor0
----
119
135
145

query I rowsort
SELECT - col2 + + col1 * 55 AS col1 FROM tab0 AS cor0
----
-44
1145
4408

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT DISTINCT + MAX( + col2 ) + ( COUNT( * ) ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2465
SELECT DISTINCT + MAX ( + col2 ) + ( COUNT ( * ) ) FROM tab1 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT ALL COUNT( - 2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL COUNT ( - 2 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NULL <= col0 / col2
----

query I rowsort
SELECT DISTINCT - 2 * col0 AS col2 FROM tab2 AS cor0
----
-128
-150
-92

query I rowsort
SELECT ALL col2 + - ( - col2 ) * 29 FROM tab2
----
1200
1740
690

query III rowsort
SELECT * FROM tab0 WHERE - 90 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 0 AS col1 FROM tab2 cor0 WHERE 6 * 21 IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT DISTINCT - COUNT( ALL col1 ) + 79 FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-2472
SELECT DISTINCT - COUNT ( ALL col1 ) + 79 FROM tab1 AS cor0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2473
SELECT + col0 - col0 DIV - col2 AS col2 FROM tab1 AS cor0
----
51
86
92

skipif mysql # not compatible
query I rowsort label-2473
SELECT + col0 - col0 / - col2 AS col2 FROM tab1 AS cor0
----
51
86
92

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 77 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + col1 * ( col2 ) - 90 FROM tab0 cor0
----
-189
-300
-3897

query I rowsort
SELECT - col1 + 62 AS col1 FROM tab1 AS cor0
----
15
48
57

query I rowsort
SELECT DISTINCT 6 * 91 * col1 - - 57 FROM tab0
----
11523
44283
603

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2478
SELECT + CAST( col2 AS SIGNED ) DIV 95 + col2 FROM tab0
----
10
100
47

skipif mysql # not compatible
query I rowsort label-2478
SELECT + CAST ( col2 AS INTEGER ) / 95 + col2 FROM tab0
----
10
100
47

query I rowsort
SELECT ALL - col1 * + 33 * + 82 AS col2 FROM tab2
----
-138006
-181302
-208362

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2480
SELECT DISTINCT + COUNT( * ) DIV + 20 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2480
SELECT DISTINCT + COUNT ( * ) / + 20 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT ALL COUNT( * ) * + ( + ( COUNT( * ) ) ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2481
SELECT ALL COUNT ( * ) * + ( + ( COUNT ( * ) ) ) AS col0 FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2482
SELECT col1 * col1 FROM tab1 WHERE NOT + CAST( col0 AS SIGNED ) - col0 IS NULL OR NOT ( NULL ) <> + col2 * 9
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-2482
SELECT col1 * col1 FROM tab1 WHERE NOT + CAST ( col0 AS INTEGER ) - col0 IS NULL OR NOT ( NULL ) <> + col2 * 9
----
196
2209
25

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT ALL - 61 * - - MIN( ALL - col1 ) col2 FROM tab0
----
4941

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2484
SELECT ALL - 61 * - - MIN ( ALL - col1 ) col2 FROM tab0
----
4941

query I rowsort
SELECT ALL 94 * + col2 AS col2 FROM tab1
----
5546
6392
9024

query I rowsort
SELECT + col1 / col0 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col2 * - - 22 - - 78 AS col1 FROM tab0 AS cor0
----
-142
-2100
-956

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT NULL > - ( col0 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN col1 AND col1
----

query I rowsort
SELECT DISTINCT + 39 * - 1 FROM tab1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT ALL - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) <> ( NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2492
SELECT ALL + 1 DIV col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL + 1 / col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( col2 ) + + 34 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 ) NOT IN ( + col1 / - 1 )
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 45 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col1 + col2 ) NOT IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 40 AS col2 FROM tab1 AS cor0
----
40
40
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2498
SELECT - 67 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
3
67

skipif mysql # not compatible
query I rowsort label-2498
SELECT - 67 / - col1 AS col0 FROM tab0 AS cor0
----
0
3
67

query I rowsort
SELECT + + col0 * 20 + - + 11 + col1 FROM tab1 AS cor0
----
1023
1694
1856

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT DISTINCT - COUNT( * ) + 3 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2500
SELECT DISTINCT - COUNT ( * ) + 3 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - + col2 * - - col1 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT ALL ( - ( + - col0 ) ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2503
SELECT - MAX( + + col1 ) DIV - 24 + - 13 AS col1 FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2503
SELECT - MAX ( + + col1 ) / - 24 + - 13 AS col1 FROM tab2 AS cor0
----
-10

query I rowsort
SELECT DISTINCT - 32 FROM tab0 cor0 WHERE NOT ( 53 + col1 + 19 / 42 ) IN ( - 93 + 81 )
----
-32

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT 71 * col0 * col0 IS NULL
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 72 > + 53 * - col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 - - + 8 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2508
SELECT ALL COUNT( * ) DIV + - 95 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2508
SELECT ALL COUNT ( * ) / + - 95 AS col1 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( + col0 + + - col0 + + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT + 87 * + 1 BETWEEN NULL AND ( col0 * + col0 + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2510
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT + 87 * + 1 BETWEEN NULL AND ( col0 * + col0 + + col1 )
----
0

query I rowsort
SELECT - col2 - - col1 AS col0 FROM tab1 WHERE + 4 / - col0 IS NOT NULL
----
-21
-54
-82

query I rowsort
SELECT ALL 12 + col0 * col2 * + + col0 AS col2 FROM tab2
----
163852
326262
48680

query III rowsort
SELECT ALL * FROM tab1 WHERE 35 NOT BETWEEN col2 AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT ALL - + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) <= + col2
----
0

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL - + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) <= + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT ALL COUNT( * ) FROM tab1 cor0 WHERE ( NULL ) <> + - col1 - - + col1
----
0

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL COUNT ( * ) FROM tab1 cor0 WHERE ( NULL ) <> + - col1 - - + col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL + 71 * + col1 FROM tab0 WHERE NOT + 36 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2518
SELECT DISTINCT + CAST( - - col1 AS SIGNED ) + + col0 + 25 AS col0 FROM tab1 AS cor0
----
115
163
90

skipif mysql # not compatible
query I rowsort label-2518
SELECT DISTINCT + CAST ( - - col1 AS INTEGER ) + + col0 + 25 AS col0 FROM tab1 AS cor0
----
115
163
90

query I rowsort
SELECT + 63 + - 97 * - - col2 AS col0 FROM tab0 AS cor0
----
-4496
-907
-9540

query I rowsort
SELECT ALL col2 * - - 66 + 41 - + - col2 + + 2 AS col2 FROM tab1 AS cor0
----
3996
4599
6475

query I rowsort
SELECT - ( ( col2 ) ) + + col0 FROM tab2 AS cor0 WHERE + col2 > 61 + + 36
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 60 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 + + 78 * - col0 + col1 AS col1 FROM tab0 AS cor0
----
-1008
-6744
-7564

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT - COUNT( * ) * + + 19 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-2524
SELECT - COUNT ( * ) * + + 19 FROM tab0 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT ALL - COUNT( * ) * + + 65 AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL - COUNT ( * ) * + + 65 AS col0 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT DISTINCT + COUNT( * ) * + - 70 * ( - 16 ) AS col1 FROM tab1 AS cor0
----
3360

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT + COUNT ( * ) * + - 70 * ( - 16 ) AS col1 FROM tab1 AS cor0
----
3360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + ( - - col1 ) col2 FROM tab1 cor0
----
196
2209
25

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 IS NULL AND NOT col2 + + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 47 + col1 ) IN ( - col2 + + - col0 * 36 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT + COUNT( * ) * + COUNT( * ) FROM tab0 WHERE NOT + col2 < + col1 * - 82 + 0
----
9

skipif mysql # not compatible
query I rowsort label-2530
SELECT + COUNT ( * ) * + COUNT ( * ) FROM tab0 WHERE NOT + col2 < + col1 * - 82 + 0
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 BETWEEN ( NULL ) AND + col0 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT DISTINCT MAX( DISTINCT - + col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2532
SELECT DISTINCT MAX ( DISTINCT - + col0 ) FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query III rowsort label-2533
SELECT ALL + COUNT( * ), 3, + 52 col0 FROM tab0 AS cor0
----
3
3
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2533
SELECT ALL + COUNT ( * ), 3, + 52 col0 FROM tab0 AS cor0
----
3
3
52

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 <> + 84 + + - 89
----

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT 84 * col2 + - 67 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL + 92 * col2 * col2 AS col2 FROM tab0 AS cor0
----
203228
901692
9200

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1, - ( + col0 ), + - 77 )
----

query I rowsort
SELECT + ( + col0 ) * 28 + - col1 - + - col1 AS col1 FROM tab0
----
2436
2716
420

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT - MIN( ALL 12 ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-2539
SELECT - MIN ( ALL 12 ) FROM tab0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT + MAX( - col2 ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-2540
SELECT + MAX ( - col2 ) AS col1 FROM tab1
----
-59

query I rowsort
SELECT - + col1 AS col2 FROM tab2 WHERE NOT + col1 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT ALL - MAX( 49 ) + 45 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL - MAX ( 49 ) + 45 FROM tab1 AS cor0
----
-4

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE NOT ( NULL ) >= - 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE + 5 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2544
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE + 5 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 32 - - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( ( - col2 ) < NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2546
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( ( - col2 ) < NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 39 + - col0 + + 47 col2 FROM tab2 cor0
----
11
22
40

query I rowsort
SELECT ALL + - 16 AS col0 FROM tab1 AS cor0
----
-16
-16
-16

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = col1 * - col1 / 96
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 BETWEEN + 83 AND + 1 * col2
----

query III rowsort
SELECT * FROM tab1 WHERE - + 59 IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2552
SELECT DISTINCT 22 DIV col1 FROM tab0
----
0
1
22

skipif mysql # not compatible
query I rowsort label-2552
SELECT DISTINCT 22 / col1 FROM tab0
----
0
1
22

query I rowsort
SELECT + 75 + col0 FROM tab0
----
162
172
90

query I rowsort
SELECT 15 * + col2 + + col0 - col0 * - col0 + + col2 AS col0 FROM tab2
----
2530
4800
6628

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2555
SELECT DISTINCT + COUNT( * ) DIV 34 AS col2 FROM tab1 WHERE NOT col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT + COUNT ( * ) / 34 AS col2 FROM tab1 WHERE NOT col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT - COUNT( * ) + + - 16 AS col0 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-2556
SELECT - COUNT ( * ) + + - 16 AS col0 FROM tab1
----
-19

query I rowsort
SELECT ALL col2 + + 26 AS col1 FROM tab1
----
122
85
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2558
SELECT ALL + CAST( + ( - CAST( + 92 AS SIGNED ) ) AS SIGNED ) AS col1 FROM tab0
----
-92
-92
-92

skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL + CAST ( + ( - CAST ( + 92 AS INTEGER ) ) AS INTEGER ) AS col1 FROM tab0
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT ALL + - MIN( - - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL + - MIN ( - - col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT + - 63 FROM tab2, tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT COUNT( * ) * 3 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 53
----
0

skipif mysql # not compatible
query I rowsort label-2561
SELECT COUNT ( * ) * 3 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 53
----
0

query II rowsort
SELECT DISTINCT + col0 * - col1 * - col1 * + 39, - 84 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1496313
-84
3783
-84
3838185
-84

query I rowsort
SELECT - 61 FROM tab2 AS cor0 WHERE NOT + col1 < NULL
----

query I rowsort
SELECT DISTINCT col0 * - - ( - col0 ) AS col1 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT DISTINCT + SUM( DISTINCT + - 40 ) FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-2565
SELECT DISTINCT + SUM ( DISTINCT + - 40 ) FROM tab2 AS cor0
----
-40

query II rowsort
SELECT - col1 AS col0, col2 + 19 AS col1 FROM tab2
----
-51
42
-67
77
-77
59

query I rowsort
SELECT ALL + 40 * - col1 FROM tab2
----
-2040
-2680
-3080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2568
SELECT ALL + CAST( NULL AS SIGNED ) + - col0 * + - 62 FROM tab0 WHERE NOT - + 67 >= ( CAST( - col1 AS SIGNED ) * + ( + + col2 ) )
----

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL + CAST ( NULL AS INTEGER ) + - col0 * + - 62 FROM tab0 WHERE NOT - + 67 >= ( CAST ( - col1 AS INTEGER ) * + ( + + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT ALL SUM( ALL + - col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-2569
SELECT ALL SUM ( ALL + - col0 ) FROM tab2
----
-185

query I rowsort
SELECT ALL 94 * + 28 FROM tab1 WHERE NOT col1 * - col0 BETWEEN col0 * + + ( - - 50 ) * - col1 + col0 + + - ( 55 ) * + col1 AND + 51 + 56 * - 24
----
2632
2632

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2571
SELECT - COUNT( * ) DIV - - 11 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2571
SELECT - COUNT ( * ) / - - 11 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT 47 * - + COUNT( * ) FROM tab0 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-2572
SELECT 47 * - + COUNT ( * ) FROM tab0 AS cor0
----
-141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 * + + col0 col0 FROM tab2 AS cor0
----
3082
4288
5025

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 13 ) NOT BETWEEN 7 + - ( + + 84 ) AND + - 89 * - 76
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT ( col1 * + col1 + + col1 * - col2 + + col1 + - 96 ) BETWEEN + 29 * - col1 AND ( NULL )
----
97

query I rowsort
SELECT + 35 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL ( - col0 ) AS col2 FROM tab2 WHERE NULL < 15
----

query I rowsort
SELECT DISTINCT 31 + 86 * + col0 FROM tab1
----
4417
7341
7857

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 11 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-11

query I rowsort
SELECT - 33 + + col2 FROM tab1 AS cor0
----
26
35
63

query I rowsort
SELECT + 4 + col2 FROM tab1 cor0
----
100
63
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2582
SELECT DISTINCT ( - col0 ) AS col0 FROM tab1 AS cor0 WHERE + col1 * - CAST( NULL AS SIGNED ) IS NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT ( - col0 ) AS col0 FROM tab1 AS cor0 WHERE + col1 * - CAST ( NULL AS INTEGER ) IS NULL
----
-51
-85
-91

query I rowsort
SELECT - + col1 + + - 8 AS col0 FROM tab0 cor0
----
-29
-89
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= ( - 63 + - col1 * + col2 )
----

query I rowsort
SELECT - ( + - 50 ) + col2 * - - col2 FROM tab1 AS cor0
----
3531
4674
9266

query I rowsort
SELECT ALL 13 + - col1 - - col0 FROM tab1 AS cor0
----
50
57
93

query I rowsort
SELECT + - col1 + - col0 * - - col1 AS col1 FROM tab0 AS cor0
----
-1296
-1848
-98

query I rowsort
SELECT DISTINCT - + 66 + + - col0 AS col0 FROM tab0 AS cor0
----
-153
-163
-81

query I rowsort
SELECT DISTINCT + + 18 + - col0 AS col1 FROM tab0 AS cor0
----
-69
-79
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 IN ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + - - col0 AS col1 FROM tab0 cor0
----
-2
-32
77

query I rowsort
SELECT + col2 * 56 AS col2 FROM tab2
----
1288
2240
3248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2593
SELECT DISTINCT - COUNT( * ) / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2593
SELECT DISTINCT - COUNT ( * ) / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT + col0 * 18 * - col1 FROM tab1
----
-12852
-7650
-76986

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT COUNT( * ) * 29 / MAX( DISTINCT + col1 ) AS col1 FROM tab2 WHERE + + col2 < - - col1 - + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-2595
SELECT COUNT ( * ) * 29 / MAX ( DISTINCT + col1 ) AS col1 FROM tab2 WHERE + + col2 < - - col1 - + + 52
----
NULL

query I rowsort
SELECT - - col0 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - + col2 - - - col2 * - - col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 82 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2598
SELECT + - ( + - CAST( NULL AS SIGNED ) ), col0 + + 84 FROM tab2 AS cor0 WHERE - col1 BETWEEN 85 AND NULL
----

skipif mysql # not compatible
query II rowsort label-2598
SELECT + - ( + - CAST ( NULL AS INTEGER ) ), col0 + + 84 FROM tab2 AS cor0 WHERE - col1 BETWEEN 85 AND NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE ( 93 ) IS NOT NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2600
SELECT - col1 DIV ( + col0 ) + - 20 FROM tab0 AS cor0
----
-20
-20
-25

skipif mysql # not compatible
query I rowsort label-2600
SELECT - col1 / ( + col0 ) + - 20 FROM tab0 AS cor0
----
-20
-20
-25

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2601
SELECT DISTINCT col2 AS col0, col0 + + col2 - + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-2601
SELECT DISTINCT col2 AS col0, col0 + + col2 - + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT DISTINCT + + COUNT( - 18 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2602
SELECT DISTINCT + + COUNT ( - 18 ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-2603
SELECT ALL - col0 * col0 DIV col0, - col1 col2 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2603
SELECT ALL - col0 * col0 / col0, - col1 col2 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

query II rowsort
SELECT ALL - col2 AS col2, 50 AS col1 FROM tab0 AS cor0
----
-10
50
-47
50
-99
50

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 93 * + 45 > - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2606
SELECT ALL 80 DIV + - col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-2606
SELECT ALL 80 / + - col0 FROM tab0 AS cor0
----
-5
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT ALL + MIN( DISTINCT + ( 12 ) ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL + MIN ( DISTINCT + ( 12 ) ) FROM tab2
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 26 col0 FROM tab0 AS cor0
----
-26

query I rowsort
SELECT DISTINCT 49 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
49

query I rowsort
SELECT col0 * + col2 + - + ( ( + col1 ) ) FROM tab2
----
1007
2483
4283

onlyif mysql # aggregate syntax: 
query II rowsort label-2611
SELECT 29 AS col1, COUNT( * ) AS col1 FROM tab1
----
29
3

skipif mysql # not compatible
query II rowsort label-2611
SELECT 29 AS col1, COUNT ( * ) AS col1 FROM tab1
----
29
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2612
SELECT ALL - 47 + - MIN( - ( 16 ) ) DIV + - 88 * + + COUNT( * ) + - + COUNT( * ) col2 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2612
SELECT ALL - 47 + - MIN ( - ( 16 ) ) / + - 88 * + + COUNT ( * ) + - + COUNT ( * ) col2 FROM tab0 AS cor0
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-2613
SELECT DISTINCT - 52 DIV col2 - - 91 * - + col0 + - - col1 + + col1 + - + col1 AS col2 FROM tab2 AS cor0
----
-4137
-5748
-6758

skipif mysql # not compatible
query I rowsort label-2613
SELECT DISTINCT - 52 / col2 - - 91 * - + col0 + - - col1 + + col1 + - + col1 AS col2 FROM tab2 AS cor0
----
-4137
-5748
-6758

query I rowsort
SELECT ALL + col2 - - 2 * + col2 AS col0 FROM tab1 AS cor0
----
177
204
288

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT DISTINCT - ( - SUM( + - col1 ) ) + - + COUNT( * ) + + + 38 * + 94 AS col2 FROM tab2 AS cor0
----
3374

skipif mysql # not compatible
query I rowsort label-2615
SELECT DISTINCT - ( - SUM ( + - col1 ) ) + - + COUNT ( * ) + + + 38 * + 94 AS col2 FROM tab2 AS cor0
----
3374

query I rowsort
SELECT + - 24 FROM tab0 AS cor0 WHERE + col0 * - 59 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2617
SELECT DISTINCT col1 DIV - 38 - + 43 FROM tab0 AS cor0
----
-43
-45

skipif mysql # not compatible
query I rowsort label-2617
SELECT DISTINCT col1 / - 38 - + 43 FROM tab0 AS cor0
----
-43
-45

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= col0 * - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2619
SELECT ALL CAST( + + 38 AS SIGNED ) col2 FROM tab0 AS cor0
----
38
38
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2619
SELECT ALL CAST ( + + 38 AS INTEGER ) col2 FROM tab0 AS cor0
----
38
38
38

query I rowsort
SELECT + ( - 48 ) + - - col2 FROM tab1
----
11
20
48

onlyif mysql # DIV for integer division: 
query I rowsort label-2621
SELECT col1 + + 7 DIV - col2 AS col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2621
SELECT col1 + + 7 / - col2 AS col0 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT - 1 + + MIN( col0 ) AS col1 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-2622
SELECT - 1 + + MIN ( col0 ) AS col1 FROM tab1
----
50

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 IS NULL AND NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT COUNT( * ) + + 57 AS col0 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-2624
SELECT COUNT ( * ) + + 57 AS col0 FROM tab1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2625
SELECT col0 + + col2 * - CAST( col1 AS SIGNED ) * + - col0 * - col0 + col2 FROM tab0
----
-1589393
-856513
-931295

skipif mysql # not compatible
query I rowsort label-2625
SELECT col0 + + col2 * - CAST ( col1 AS INTEGER ) * + - col0 * - col0 + col2 FROM tab0
----
-1589393
-856513
-931295

query I rowsort
SELECT - 85 * ( + + col2 ) + - 79 FROM tab1
----
-5094
-5859
-8239

query I rowsort
SELECT DISTINCT col2 * col1 * col0 AS col1 FROM tab0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT 83 + MIN( col2 ) FROM tab1
----
142

skipif mysql # not compatible
query I rowsort label-2628
SELECT 83 + MIN ( col2 ) FROM tab1
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT ALL + 45 * COUNT( * ) FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL + 45 * COUNT ( * ) FROM tab2
----
135

query I rowsort
SELECT DISTINCT + 64 - 10 FROM tab2 AS cor0
----
54

query I rowsort
SELECT DISTINCT 86 * col1 FROM tab2
----
4386
5762
6622

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + 50 NOT BETWEEN - 92 AND NULL
----

query I rowsort
SELECT 67 - col1 * ( - + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT - col1 / 33 IS NOT NULL
----

query I rowsort
SELECT - col2 - - col0 FROM tab0 AS cor0 WHERE NOT - 2 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT DISTINCT - + COUNT( + col1 ) * - 81 AS col2 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-2635
SELECT DISTINCT - + COUNT ( + col1 ) * - 81 AS col2 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND + col2
----
0

query I rowsort
SELECT - 82 * + - col0 AS col2 FROM tab0 AS cor0
----
1230
7134
7954

query I rowsort
SELECT DISTINCT ( col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

query II rowsort
SELECT ALL - col0 AS col2, ( 64 ) AS col1 FROM tab1
----
-51
64
-85
64
-91
64

query I rowsort
SELECT + 32 * - 84 FROM tab0, tab1 AS cor0
----
9 values hashing to 400ffe244bdfd0b1aa396bc3fdf1890d

query I rowsort
SELECT DISTINCT ( + ( - col2 ) ) AS col0 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2641
SELECT 12 DIV + + COUNT( * ) AS col0 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-2641
SELECT 12 / + + COUNT ( * ) AS col0 FROM tab1
----
4

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 40 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + - col0
----

query I rowsort
SELECT + ( + col1 ) FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
51
67
77

query I rowsort
SELECT ( 73 ) * - 78 FROM tab1 AS cor0
----
-5694
-5694
-5694

query I rowsort
SELECT - col2 + col1 * - + 17 FROM tab0
----
-116
-1424
-367

query I rowsort
SELECT 25 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT ALL col1 * - col1 + + col2 AS col2 FROM tab1 AS cor0
----
-100
-2141
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2649
SELECT COUNT( * ) + - - CAST( - MAX( + 39 ) AS SIGNED ) DIV + COUNT( * ) AS col0 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2649
SELECT COUNT ( * ) + - - CAST ( - MAX ( + 39 ) AS INTEGER ) / + COUNT ( * ) AS col0 FROM tab0 cor0
----
-10

query I rowsort
SELECT DISTINCT col0 - 18 + col1 AS col2 FROM tab2 cor0
----
123
124
79

query I rowsort
SELECT DISTINCT - 27 - - + col2 FROM tab2 AS cor0
----
-4
13
31

query I rowsort
SELECT + + ( 63 ) AS col2 FROM tab1 AS cor0
----
63
63
63

query I rowsort
SELECT DISTINCT + 12 - - - 49 AS col2 FROM tab0
----
-37

query I rowsort
SELECT 11 * + 41 AS col2 FROM tab1
----
451
451
451

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT ALL COUNT( * ) * - COUNT( * ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-2655
SELECT ALL COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 * - + 28 * col2 col2, col0 + col0 FROM tab2 WHERE - col0 IS NULL
----

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT NULL IS NULL OR NOT col2 NOT BETWEEN - 52 AND - - col2 + + col1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT - COUNT( * ) - - + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2658
SELECT - COUNT ( * ) - - + COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT col2 - - + ( + col2 ) FROM tab2
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT DISTINCT + 35 * - MIN( ALL + col2 ) col2 FROM tab0
----
-350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2660
SELECT DISTINCT + 35 * - MIN ( ALL + col2 ) col2 FROM tab0
----
-350

query I rowsort
SELECT ( - - col0 ) - - col0 AS col2 FROM tab1
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT DISTINCT - + SUM( DISTINCT - 72 ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-2662
SELECT DISTINCT - + SUM ( DISTINCT - 72 ) FROM tab2 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT ALL - MIN( col2 ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL - MIN ( col2 ) AS col1 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT DISTINCT - col0 * - 27 + - col2 FROM tab2 AS cor0
----
1219
1688
1967

query II rowsort
SELECT DISTINCT + col1 AS col2, ( - col1 ) FROM tab2 WHERE ( + + col2 ) <> + 99 * col2
----
51
-51
67
-67
77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT ALL + MAX( ALL + 31 ) FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL + MAX ( ALL + 31 ) FROM tab0 AS cor0
----
31

query I rowsort
SELECT col2 * + col0 * - - col2 FROM tab2 AS cor0
----
102400
24334
252300

query I rowsort
SELECT - + col1 * - ( + 69 ) FROM tab2 AS cor0
----
3519
4623
5313

query I rowsort
SELECT DISTINCT 74 AS col0 FROM tab2 cor0
----
74

query II rowsort
SELECT ALL + - 35 AS col1, 96 FROM tab2 AS cor0
----
-35
96
-35
96
-35
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2671
SELECT DISTINCT COUNT( * ) DIV + - 24 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2671
SELECT DISTINCT COUNT ( * ) / + - 24 AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + 78 * + - ( + - col2 ) AS col0 FROM tab2
----
1794
3120
4524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2673
SELECT MIN( + + CAST( - 41 AS SIGNED ) ) FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-2673
SELECT MIN ( + + CAST ( - 41 AS INTEGER ) ) FROM tab1
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-2674
SELECT ( - COUNT( * ) ) AS col1, 61 col0 FROM tab0
----
-3
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2674
SELECT ( - COUNT ( * ) ) AS col1, 61 col0 FROM tab0
----
-3
61

query I rowsort
SELECT ALL + ( - 95 ) FROM tab0
----
-95
-95
-95

query I rowsort
SELECT ALL + col0 + - + col1 AS col1 FROM tab2
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT DISTINCT + MIN( ALL + ( - + col0 ) ) AS col0 FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2677
SELECT DISTINCT + MIN ( ALL + ( - + col0 ) ) AS col0 FROM tab0 cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT ALL + MIN( - + col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL + MIN ( - + col0 ) AS col0 FROM tab1 AS cor0
----
-91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + 76 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT DISTINCT SUM( ALL - - col1 ) col2 FROM tab1
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2680
SELECT DISTINCT SUM ( ALL - - col1 ) col2 FROM tab1
----
66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + ( - + col2 ) * col1 + 83 <= col1 * + - col0
----
15
81
47

query I rowsort
SELECT DISTINCT col1 * + + col0 FROM tab2 AS cor0 WHERE 63 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 38 + + - col2 * - 98 FROM tab2 AS cor0
----
2216
3882
5646

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2685
SELECT + col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( CAST( + - col0 AS SIGNED ), - col1 )
----

skipif mysql # not compatible
query I rowsort label-2685
SELECT + col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( CAST ( + - col0 AS INTEGER ), - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2686
SELECT - col0 + 52 DIV - 78 - + 20 - - col1 * + + 25 FROM tab1
----
1064
20
279

skipif mysql # not compatible
query I rowsort label-2686
SELECT - col0 + 52 / - 78 - + 20 - - col1 * + + 25 FROM tab1
----
1064
20
279

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT DISTINCT - SUM( DISTINCT + 37 ) FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT - SUM ( DISTINCT + 37 ) FROM tab0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2688
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) AS col1, + 68 col0 FROM tab0
----
-3
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2688
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col1, + 68 col0 FROM tab0
----
-3
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT DISTINCT - MIN( + + col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT - MIN ( + + col2 ) AS col2 FROM tab0 AS cor0
----
-10

query II rowsort
SELECT DISTINCT + + 49 * - + col1 AS col0, - col1 FROM tab0 AS cor0
----
-1029
-21
-3969
-81
-49
-1

query I rowsort
SELECT - col2 * + + col1 - - col1 FROM tab1 AS cor0
----
-1330
-290
-3149

query I rowsort
SELECT ( - ( - 67 ) ) FROM tab0
----
67
67
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 * - ( - + 43 ) col2 FROM tab0 AS cor0
----
1806

query II rowsort
SELECT - + 42, + col0 FROM tab2 cor0
----
-42
46
-42
64
-42
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2695
SELECT DISTINCT - col0 DIV - + col1 AS col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2695
SELECT DISTINCT - col0 / - + col1 AS col2 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT - col0 + - - 64 FROM tab2 AS cor0
----
-11
0
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2697
SELECT - ( CAST( + - col2 AS SIGNED ) ) + 65 AS col2 FROM tab1 AS cor0
----
124
133
161

skipif mysql # not compatible
query I rowsort label-2697
SELECT - ( CAST ( + - col2 AS INTEGER ) ) + 65 AS col2 FROM tab1 AS cor0
----
124
133
161

query I rowsort
SELECT + - ( - col1 ) FROM tab2 WHERE NOT - - col0 * - col0 IS NULL
----
51
67
77

query I rowsort
SELECT ALL + 97 FROM tab0 WHERE NOT NULL < + ( - 87 )
----

query I rowsort
SELECT ALL 94 * + col0 FROM tab0
----
1410
8178
9118

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT ALL - SUM( DISTINCT - 45 ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL - SUM ( DISTINCT - 45 ) FROM tab2
----
45

query I rowsort
SELECT 41 * - col1 + col0 FROM tab1
----
-120
-1836
-523

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2703
SELECT DISTINCT COUNT( * ) DIV 60 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2703
SELECT DISTINCT COUNT ( * ) / 60 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 71 + - 22 + - + 32 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2705
SELECT + COUNT( * ) AS col1, 18 * + COUNT( * ) FROM tab2
----
3
54

skipif mysql # not compatible
query II rowsort label-2705
SELECT + COUNT ( * ) AS col1, 18 * + COUNT ( * ) FROM tab2
----
3
54

query I rowsort
SELECT ALL + 53 FROM tab0 AS cor0 WHERE - col2 - col0 IS NOT NULL
----
53
53
53

query I rowsort
SELECT 19 * - + 79 * col1 * + col0 AS col0 FROM tab0 AS cor0
----
-145597
-1823715
-2742327

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 AND - 73
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2709
SELECT ALL + + col0 DIV - - col2 AS col0 FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-2709
SELECT ALL + + col0 / - - col2 AS col0 FROM tab0 AS cor0
----
0
0
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2710
SELECT ALL COUNT( * ) DIV - - COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL COUNT ( * ) / - - COUNT ( * ) FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, - ( - col2 ) * - 85 FROM tab1 AS cor0
----
14
-8160
47
-5780
5
-5015

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 * + - 51 col1 FROM tab0 WHERE NOT - 8 * + col1 * + 85 IS NULL
----
4947
61965
93177

query I rowsort
SELECT ALL col0 + - 5 AS col0 FROM tab0
----
10
82
92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + + 55 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + + - 61 AS col0 FROM tab1 AS cor0
----
-112
-146
-152

onlyif mysql # aggregate syntax: 
query II rowsort label-2716
SELECT + 79, - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col0 * + col0 NOT BETWEEN NULL AND + col2
----
79
-3

skipif mysql # not compatible
query II rowsort label-2716
SELECT + 79, - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col0 * + col0 NOT BETWEEN NULL AND + col2
----
79
-3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 NOT BETWEEN NULL AND + 34 - col1 * - col1
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2718
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 52 + - - col2 + 96 col1 FROM tab2 AS cor0
----
171
188
206

query I rowsort
SELECT DISTINCT - - col0 - + col2 + - col2 FROM tab1 AS cor0
----
-141
-33
-45

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN + - col1 AND - col2
----

query I rowsort
SELECT ALL + + 15 + - col2 AS col1 FROM tab2 AS cor0
----
-25
-43
-8

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) <> - - 37
----

query I rowsort
SELECT ALL - + col2 - + 62 - col2 - - col1 FROM tab1 AS cor0
----
-151
-175
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT ALL + SUM( + - col0 ) - - MAX( ALL 43 ) FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2725
SELECT ALL + SUM ( + - col0 ) - - MAX ( ALL 43 ) FROM tab0 cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2726
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, col0 AS col2 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-2726
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, col0 AS col2 FROM tab2
----
NULL
46
NULL
64
NULL
75

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 88 * col2 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( - - col2 ) AS col2 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2729
SELECT + col1 * CAST( - + 53 AS SIGNED ) AS col1 FROM tab1
----
-2491
-265
-742

skipif mysql # not compatible
query I rowsort label-2729
SELECT + col1 * CAST ( - + 53 AS INTEGER ) AS col1 FROM tab1
----
-2491
-265
-742

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( - col1 ) * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT ALL ( COUNT( - col1 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL ( COUNT ( - col1 ) ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT ALL - ( + SUM( ALL - + col2 ) ) FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-2732
SELECT ALL - ( + SUM ( ALL - + col2 ) ) FROM tab0 cor0
----
156

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 - + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1 * + 19, + col2 FROM tab0 cor0 WHERE + 77 <> NULL
----

query I rowsort
SELECT ALL col0 + + col0 + col1 * + - col1 * - 72 + + - ( + 40 ) FROM tab0 AS cor0
----
226
31886
472382

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT ALL SUM( DISTINCT + col2 ) * + MAX( DISTINCT col2 ) FROM tab2 cor0
----
7018

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL SUM ( DISTINCT + col2 ) * + MAX ( DISTINCT col2 ) FROM tab2 cor0
----
7018

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT 73 >= + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 75 BETWEEN + 3 + + + ( - + 7 ) AND + + col0
----
1

skipif mysql # not compatible
query I rowsort label-2738
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 75 BETWEEN + 3 + + + ( - + 7 ) AND + + col0
----
1

query I rowsort
SELECT ALL + 24 * - 73 - - + col2 AS col1 FROM tab1 AS cor0
----
-1656
-1684
-1693

query I rowsort
SELECT - 92 * - - col1 FROM tab2 AS cor0
----
-4692
-6164
-7084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2741
SELECT ALL + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + 26 AND + - col0 + - col1
----

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + 26 AND + - col0 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT DISTINCT MIN( ALL 85 ) FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-2742
SELECT DISTINCT MIN ( ALL 85 ) FROM tab2
----
85

query I rowsort
SELECT ALL + + 97 FROM tab1 WHERE NOT NULL <= + col0 + - ( - - 29 ) + 6 / - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2744
SELECT DISTINCT ( + 10 ) + - CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT ( + 10 ) + - CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT COUNT( * ) + - 40 * + - 83 FROM tab0
----
3323

skipif mysql # not compatible
query I rowsort label-2745
SELECT COUNT ( * ) + - 40 * + - 83 FROM tab0
----
3323

query III rowsort
SELECT * FROM tab0 WHERE col0 * col2 < - + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2747
SELECT ALL + - 20 - col2 + + col0 DIV + 88 FROM tab0 AS cor0
----
-118
-30
-67

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL + - 20 - col2 + + col0 / + 88 FROM tab0 AS cor0
----
-118
-30
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-2748
SELECT ALL - + 61 DIV + col1 + + 88 AS col1 FROM tab2 AS cor0
----
87
88
88

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL - + 61 / + col1 + + 88 AS col1 FROM tab2 AS cor0
----
87
88
88

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE col0 + - - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 42 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT SUM( + - 30 ) * COUNT( * ) FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-2751
SELECT SUM ( + - 30 ) * COUNT ( * ) FROM tab2
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT ALL + MAX( ALL + 67 ) col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2752
SELECT ALL + MAX ( ALL + 67 ) col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT ALL COUNT( * ) + + 98 + + 7 AS col2 FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL COUNT ( * ) + + 98 + + 7 AS col2 FROM tab1
----
108

query I rowsort
SELECT ALL 94 * - col1 FROM tab0
----
-1974
-7614
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT DISTINCT COUNT( * ) + - COUNT( * ) * + MIN( + + col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) * + MIN ( + + col1 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 WHERE - col2 IS NOT NULL AND NOT + col2 * col1 BETWEEN - col2 AND col1
----
-3

skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE - col2 IS NOT NULL AND NOT + col2 * col1 BETWEEN - col2 AND col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2757
SELECT * FROM tab2 WHERE ( + CAST( NULL AS SIGNED ) * col0 ) NOT BETWEEN - col2 * + col0 * col2 + CAST( NULL AS SIGNED ) / - col0 AND - col2 + - 24
----

skipif mysql # not compatible
query III rowsort label-2757
SELECT * FROM tab2 WHERE ( + CAST ( NULL AS INTEGER ) * col0 ) NOT BETWEEN - col2 * + col0 * col2 + CAST ( NULL AS INTEGER ) / - col0 AND - col2 + - 24
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2758
SELECT ALL ( - + 79 ) - col1 + + + 28 + - - CAST( NULL AS SIGNED ) / - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL ( - + 79 ) - col1 + + + 28 + - - CAST ( NULL AS INTEGER ) / - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 10 IN ( - col0 )
----

query II rowsort
SELECT col1 AS col2, col2 + + 73 FROM tab2 cor0
----
51
96
67
131
77
113

onlyif mysql # DIV for integer division: 
query I rowsort label-2761
SELECT DISTINCT col0 DIV col0 * + - col1 FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT col0 / col0 * + - col1 FROM tab0 cor0
----
-1
-21
-81

query II rowsort
SELECT DISTINCT + col2, ( + 10 ) AS col1 FROM tab2 AS cor0
----
23
10
40
10
58
10

query I rowsort
SELECT + - ( + - col1 ) AS col2 FROM tab1 cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT 47 * - SUM( + 88 ) col1 FROM tab0
----
-12408

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2764
SELECT 47 * - SUM ( + 88 ) col1 FROM tab0
----
-12408

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE NOT + col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2766
SELECT + col1 * CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2766
SELECT + col1 * CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2767
SELECT ALL 1 * col2 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2767
SELECT ALL 1 * col2 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 2 <= NULL
----

query I rowsort
SELECT + + col1 FROM tab2 WHERE NOT + col1 - - - col1 NOT BETWEEN col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2770
SELECT col0 * 37 DIV + col0 FROM tab2
----
37
37
37

skipif mysql # not compatible
query I rowsort label-2770
SELECT col0 * 37 / + col0 FROM tab2
----
37
37
37

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= - + col1 / ( - + col2 ) + - 67
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2772
SELECT - col2 * + + 30, CAST( + col2 AS SIGNED ) FROM tab0 WHERE NOT NULL NOT BETWEEN - - col0 + + 86 * col0 AND - col1
----

skipif mysql # not compatible
query II rowsort label-2772
SELECT - col2 * + + 30, CAST ( + col2 AS INTEGER ) FROM tab0 WHERE NOT NULL NOT BETWEEN - - col0 + + 86 * col0 AND - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2773
SELECT ALL + - CAST( MAX( - + col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL + - CAST ( MAX ( - + col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
59

query I rowsort
SELECT + ( 60 ) * - col2 AS col1 FROM tab0 AS cor0
----
-2820
-5940
-600

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + 12 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT - COUNT( * ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND - 74
----
0

skipif mysql # not compatible
query I rowsort label-2776
SELECT - COUNT ( * ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND - 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT MIN( DISTINCT - 80 ) FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-2777
SELECT MIN ( DISTINCT - 80 ) FROM tab2
----
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2778
SELECT + AVG ( DISTINCT - + 13 ) + - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2778
SELECT + AVG ( DISTINCT - + 13 ) + - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + + 76 * - 24 + col2 AS col0 FROM tab0 AS cor0
----
-1725
-1777
-1814

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2780
SELECT - CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2780
SELECT - CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + col0 + col0 + - + 22 * col2 FROM tab1 AS cor0
----
-1298
-1496
-2112

query I rowsort
SELECT col2 * + col2 - col1 + + 15 + - col1 AS col1 FROM tab0 AS cor0
----
2062
73
9814

onlyif mysql # DIV for integer division: 
query II rowsort label-2783
SELECT - + col0 DIV col0 + col1 AS col0, ( + col1 ) AS col0 FROM tab0 AS cor0
----
0
1
20
21
80
81

skipif mysql # not compatible
query II rowsort label-2783
SELECT - + col0 / col0 + col1 AS col0, ( + col1 ) AS col0 FROM tab0 AS cor0
----
0
1
20
21
80
81

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE + 77 BETWEEN NULL AND - col1 / 29 + - col1 * + - col2 - - 35 + - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2785
SELECT col0 DIV + + col0 AS col1, - col2 - col2 FROM tab2
----
1
-116
1
-46
1
-80

skipif mysql # not compatible
query II rowsort label-2785
SELECT col0 / + + col0 AS col1, - col2 - col2 FROM tab2
----
1
-116
1
-46
1
-80

query I rowsort
SELECT - ( - 78 ) AS col2 FROM tab2
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT + SUM( ALL col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2787
SELECT + SUM ( ALL col1 ) FROM tab0 AS cor0
----
103

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col1, + col2, + col1, + + 78, - col2 / - - col2 )
----

query I rowsort
SELECT ALL + col2 - 66 AS col1 FROM tab0 AS cor0
----
-19
-56
33

query I rowsort
SELECT ALL - col0 + - - 13 FROM tab0 AS cor0 WHERE NOT + 57 * - col2 + + + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 - + - col1 AS col2 FROM tab0
----
100
128
31

query I rowsort
SELECT ( - - col1 ) AS col1 FROM tab1 WHERE 18 >= - col2
----
14
47
5

query I rowsort
SELECT ALL - + 0 * + col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2794
SELECT ALL - 43 DIV 18 * + col0 * col1 AS col1 FROM tab1 AS cor0
----
-1428
-850
-8554

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL - 43 / 18 * + col0 * col1 AS col1 FROM tab1 AS cor0
----
-1428
-850
-8554

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 cor0 WHERE + col1 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE + col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2796
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE + col1 <> NULL
----
0

query I rowsort
SELECT col2 * - + 6 FROM tab0 cor0 WHERE NULL IS NULL AND ( - 54 * + - 12 ) <= + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = + col1 * - - 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT ALL MAX( DISTINCT + ( + col1 ) ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL MAX ( DISTINCT + ( + col1 ) ) AS col2 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT ALL SUM( 95 ) col0 FROM tab1
----
285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2800
SELECT ALL SUM ( 95 ) col0 FROM tab1
----
285

query I rowsort
SELECT ALL 20 FROM tab0 WHERE NOT ( NOT col2 IS NOT NULL )
----
20
20
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2802
SELECT DISTINCT + MAX( + - col2 ) DIV 96 * COUNT( DISTINCT - col1 ) * - + SUM( DISTINCT 1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT + MAX ( + - col2 ) / 96 * COUNT ( DISTINCT - col1 ) * - + SUM ( DISTINCT 1 ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT - col2 * col0 * - - col0 FROM tab0
----
-10575
-75690
-931491

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT ALL - COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2804
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE NOT ( 55 * 27 * + ( + col0 ) + - col1 BETWEEN - col2 + + + col2 / - col2 * - - col2 AND NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 75 AS col2, col2 * 12 col0 FROM tab1
----
-75
1152
-75
708
-75
816

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT DISTINCT - + COUNT( DISTINCT + + 54 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2807
SELECT DISTINCT - + COUNT ( DISTINCT + + 54 ) FROM tab2 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 > + col1
----
15
81
47

query II rowsort
SELECT ALL - col0 + + col1, col1 AS col0 FROM tab1
----
-37
14
-44
47
-80
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2810
SELECT ALL * FROM tab0 WHERE + - CAST( NULL AS SIGNED ) BETWEEN + col1 * col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2810
SELECT ALL * FROM tab0 WHERE + - CAST ( NULL AS INTEGER ) BETWEEN + col1 * col1 AND NULL
----

query I rowsort
SELECT DISTINCT col0 * + col0 * col2 AS col0 FROM tab0
----
10575
75690
931491

query II rowsort
SELECT DISTINCT - - col2 + + - col2, + col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT ALL - - MIN( DISTINCT col2 ) + + 87 col1 FROM tab1 cor0
----
146

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2813
SELECT ALL - - MIN ( DISTINCT col2 ) + + 87 col1 FROM tab1 cor0
----
146

query I rowsort
SELECT + - ( + 95 ) FROM tab2 AS cor0
----
-95
-95
-95

query I rowsort
SELECT DISTINCT - ( - col2 ) * + col1 * - col1 * + col0 - - col0 FROM tab2 cor0
----
-15178176
-19527075
-2751812

query II rowsort
SELECT DISTINCT col2 * col2 - - col0, col2 AS col2 FROM tab1 AS cor0
----
3566
59
4715
68
9267
96

query I rowsort
SELECT - 37 + + + 15 + + 83 * + col1 FROM tab1 AS cor0
----
1140
3879
393

query I rowsort
SELECT ALL + - 30 FROM tab1 WHERE NOT 49 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 NOT BETWEEN col1 AND + + col0 / col0
----

query I rowsort
SELECT + col2 FROM tab0 WHERE col1 - + 91 > - 85
----
10
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2821
SELECT DISTINCT MIN( DISTINCT + CAST( - - 66 AS SIGNED ) ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT MIN ( DISTINCT + CAST ( - - 66 AS INTEGER ) ) FROM tab0
----
66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2822
SELECT MIN( ALL + 18 ) + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2822
SELECT MIN ( ALL + 18 ) + - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + col1 + + 77 * + 93 * col2 FROM tab0
----
336648
708940
71631

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2824
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 WHERE 64 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2824
SELECT DISTINCT + - CAST ( NULL AS REAL ) AS col1 FROM tab0 WHERE 64 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 98 * 88 * - col0 FROM tab1
----
-439824
-733040
-784784

onlyif mysql # DIV for integer division: 
query I rowsort label-2826
SELECT DISTINCT col0 + - col0 DIV - col2 + 29 FROM tab2 AS cor0
----
105
77
94

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT col0 + - col0 / - col2 + 29 FROM tab2 AS cor0
----
105
77
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT + COUNT( + 99 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2827
SELECT + COUNT ( + 99 ) col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 - + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT - COUNT( * ) * + - 70 AS col0 FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-2829
SELECT - COUNT ( * ) * + - 70 AS col0 FROM tab2
----
210

query I rowsort
SELECT ALL 89 * + + col2 AS col0 FROM tab1
----
5251
6052
8544

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 7 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2832
SELECT + col0 * + - col0 + - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT - 60 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2832
SELECT + col0 * + - col0 + - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT - 60 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 ) < + col0 * + col2 * - 79 * - col0
----

query I rowsort
SELECT DISTINCT - 57 * + 62 FROM tab1 AS cor0
----
-3534

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT MAX( DISTINCT 18 ) FROM tab2 cor0
----
18

skipif mysql # not compatible
query I rowsort label-2835
SELECT MAX ( DISTINCT 18 ) FROM tab2 cor0
----
18

query I rowsort
SELECT + col1 * - + ( + col1 ) FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT - ( + col1 ) * + - col0 + + col0 FROM tab0
----
1230
1914
194

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT SUM( DISTINCT 97 ) FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-2838
SELECT SUM ( DISTINCT 97 ) FROM tab2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT ALL + 63 * + + COUNT( * ) FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL + 63 * + + COUNT ( * ) FROM tab2
----
189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 + - col1 col0 FROM tab0
----
-14
-74
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2841
SELECT ALL - col1 * + CAST( + - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL - col1 * + CAST ( + - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + - col2 * 29 FROM tab0 AS cor0
----
-1363
-2871
-290

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 > + col0
----
75
67
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2844
SELECT - col2 DIV + col1 + + col1 * + col0 col2 FROM tab0 AS cor0
----
-2
1215
1827

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2844
SELECT - col2 / + col1 + + col1 * + col0 col2 FROM tab0 AS cor0
----
-2
1215
1827

onlyif mysql # DIV for integer division: 
query I rowsort label-2845
SELECT + ( - col0 ) DIV + col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2845
SELECT + ( - col0 ) / + col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2846
SELECT ALL CAST( + + col1 AS SIGNED ) + + col1 AS col2 FROM tab1
----
10
28
94

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL CAST ( + + col1 AS INTEGER ) + + col1 AS col2 FROM tab1
----
10
28
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2847
SELECT DISTINCT - 52 + + + col0 DIV + + col1 FROM tab2
----
-51
-52

skipif mysql # not compatible
query I rowsort label-2847
SELECT DISTINCT - 52 + + + col0 / + + col1 FROM tab2
----
-51
-52

query I rowsort
SELECT + - col2 + + col1 * + col1 * - + 59 AS col2 FROM tab0 AS cor0
----
-158
-26029
-387146

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT 83 + - COUNT( * ) FROM tab2 cor0
----
80

skipif mysql # not compatible
query I rowsort label-2849
SELECT 83 + - COUNT ( * ) FROM tab2 cor0
----
80

query I rowsort
SELECT ALL + col0 + 13 AS col2 FROM tab1 AS cor0
----
104
64
98

query I rowsort
SELECT DISTINCT 27 - - col2 - + - 39 * - + 51 * - - col0 FROM tab0 AS cor0
----
-173006
-192807
-29761

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2852
SELECT DISTINCT - col2 * col1 * - - ( - CAST( NULL AS DECIMAL ) ) + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 >= - col2 * + + ( - + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2852
SELECT DISTINCT - col2 * col1 * - - ( - CAST ( NULL AS REAL ) ) + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 >= - col2 * + + ( - + col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2853
SELECT ALL - + CAST( NULL AS SIGNED ) AS col2, + col0 + - col0 FROM tab2 AS cor0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-2853
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col2, + col0 + - col0 FROM tab2 AS cor0
----
NULL
0
NULL
0
NULL
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2854
SELECT - MIN( ALL + - 72 ) DIV COUNT( ALL - col2 ) AS col0 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-2854
SELECT - MIN ( ALL + - 72 ) / COUNT ( ALL - col2 ) AS col0 FROM tab2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2855
SELECT * FROM tab2, tab2 cor0 WHERE NOT NULL NOT IN ( - + 94, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-2855
SELECT * FROM tab2, tab2 cor0 WHERE NOT NULL NOT IN ( - + 94, - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT ( - COUNT( * ) ) * + 45 - + COUNT( * ) FROM tab1
----
-138

skipif mysql # not compatible
query I rowsort label-2856
SELECT ( - COUNT ( * ) ) * + 45 - + COUNT ( * ) FROM tab1
----
-138

query I rowsort
SELECT - 1 FROM tab1 WHERE - col0 IS NULL
----

query I rowsort
SELECT - col2 - - col1 * + 5 AS col0 FROM tab2 cor0
----
232
277
345

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2859
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col0 + - col0 + ( - 89 ) * - col2 col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2859
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col0 + - col0 + ( - 89 ) * - col2 col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - col2 AS col0 FROM tab1 WHERE NOT - col2 IS NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NOT + col0 NOT BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2862
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 34 / - COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 34 / - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - ( col0 ) * - col1 * - col2 + - - col0 AS col2 FROM tab1 cor0 WHERE NOT ( col0 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2864
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( - col0 NOT BETWEEN CAST( - col0 AS SIGNED ) AND NULL ) )
----

skipif mysql # not compatible
query III rowsort label-2864
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( - col0 NOT BETWEEN CAST ( - col0 AS INTEGER ) AND NULL ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT DISTINCT + 85 * col2 AS col1 FROM tab2 AS cor0
----
1955
3400
4930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2867
SELECT ALL + ( - - 60 ) AS col2 FROM tab0 AS cor0 WHERE col2 - - CAST( NULL AS SIGNED ) * + col1 <> 53
----

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL + ( - - 60 ) AS col2 FROM tab0 AS cor0 WHERE col2 - - CAST ( NULL AS INTEGER ) * + col1 <> 53
----

query I rowsort
SELECT ALL 99 * + 30 FROM tab1
----
2970
2970
2970

query III rowsort
SELECT * FROM tab1 WHERE NOT + - ( col2 ) - - + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2870
SELECT DISTINCT + CAST( + col2 AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2870
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2871
SELECT - SUM( - CAST( NULL AS SIGNED ) ) * - 59 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2871
SELECT - SUM ( - CAST ( NULL AS INTEGER ) ) * - 59 AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2872
SELECT DISTINCT col0 DIV - 51, 86 AS col2 FROM tab0
----
-1
86
0
86

skipif mysql # not compatible
query II rowsort label-2872
SELECT DISTINCT col0 / - 51, 86 AS col2 FROM tab0
----
-1
86
0
86

query I rowsort
SELECT DISTINCT 71 + - col2 + + col1 FROM tab2
----
108
80
99

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 77 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2875
SELECT DISTINCT - + COUNT( * ) DIV - - MIN( DISTINCT - - 74 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2875
SELECT DISTINCT - + COUNT ( * ) / - - MIN ( DISTINCT - - 74 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL 98 + - col0 AS col1 FROM tab0 AS cor0
----
1
11
83

query I rowsort
SELECT DISTINCT - col0 - - - col2 FROM tab0 cor0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT - 45 + + 39 AS col0 FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT ALL 10 * + 9 + SUM( col0 ) FROM tab2 AS cor0 WHERE - col1 * + ( - - col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL 10 * + 9 + SUM ( col0 ) FROM tab2 AS cor0 WHERE - col1 * + ( - - col1 ) IS NULL
----
NULL

query I rowsort
SELECT 71 - - - 90 AS col0 FROM tab1 AS cor0
----
-19
-19
-19

query I rowsort
SELECT DISTINCT - ( - 79 ) FROM tab2
----
79

query II rowsort
SELECT DISTINCT col0 AS col2, + col1 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT - 37 + col1 + - col2 FROM tab2
----
-28
-9
0

query I rowsort
SELECT ALL col1 + ( - col2 ) + + 31 AS col2 FROM tab0
----
-67
42
65

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 16 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT MIN( ALL col0 ) AS col0 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-2886
SELECT MIN ( ALL col0 ) AS col0 FROM tab0 cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT DISTINCT COUNT( * ) col1 FROM tab0 AS cor0 WHERE - 84 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2887
SELECT DISTINCT COUNT ( * ) col1 FROM tab0 AS cor0 WHERE - 84 IS NOT NULL
----
3

query I rowsort
SELECT + col1 * + col2 + - col0 FROM tab1 AS cor0
----
1293
210
3105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2889
SELECT + + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2889
SELECT + + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query II rowsort
SELECT col1 * + col2 AS col0, + 23 FROM tab2
----
1173
23
3080
23
3886
23

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT - + 52 * - + col2 * col1 + + - col1 FROM tab0 AS cor0
----
10899
197883
5147

query II rowsort
SELECT ALL - col0 * - col1 AS col0, 97 FROM tab0 AS cor0
----
1215
97
1827
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0, tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-2896
SELECT DISTINCT - SUM( ( - 59 ) ), COUNT( * ) AS col2 FROM tab0
----
177
3

skipif mysql # not compatible
query II rowsort label-2896
SELECT DISTINCT - SUM ( ( - 59 ) ), COUNT ( * ) AS col2 FROM tab0
----
177
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * + col0 <> NULL
----

query I rowsort
SELECT ALL col0 * - + 68 + 49 * + 42 FROM tab2
----
-1070
-2294
-3042

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 98 * - + 17 + - 41 * + + col2 col0 FROM tab1 AS cor0
----
-4085
-4454
-5602

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT DISTINCT - + SUM( - + col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-2900
SELECT DISTINCT - + SUM ( - + col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 col0, + col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query II rowsort
SELECT ALL - 34, - 74 * 73 AS col1 FROM tab1 AS cor0
----
-34
-5402
-34
-5402
-34
-5402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2903
SELECT DISTINCT CAST( col0 AS SIGNED ) - CAST( col2 AS SIGNED ) FROM tab2
----
17
23
24

skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT CAST ( col0 AS INTEGER ) - CAST ( col2 AS INTEGER ) FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT - ( MIN( col2 ) ) FROM tab0 WHERE NOT - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2904
SELECT - ( MIN ( col2 ) ) FROM tab0 WHERE NOT - col2 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col2 * col0 + col1 IS NULL
----

query I rowsort
SELECT ALL ( col1 ) + col2 AS col1 FROM tab2
----
117
125
74

query I rowsort
SELECT + col2 * + 19 FROM tab2
----
1102
437
760

query I rowsort
SELECT 94 - 92 AS col1 FROM tab1 WHERE 82 = - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab2 WHERE NULL > + col0
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 + - 84 / - col0 < + 93
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2911
SELECT col0 + - CAST( + col1 AS SIGNED ) * 82 FROM tab1
----
-1097
-325
-3763

skipif mysql # not compatible
query I rowsort label-2911
SELECT col0 + - CAST ( + col1 AS INTEGER ) * 82 FROM tab1
----
-1097
-325
-3763

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT DISTINCT + 97 * SUM( ALL + col1 ) FROM tab2
----
18915

skipif mysql # not compatible
query I rowsort label-2912
SELECT DISTINCT + 97 * SUM ( ALL + col1 ) FROM tab2
----
18915

query I rowsort
SELECT 69 + + col0 FROM tab2
----
115
133
144

onlyif mysql # DIV for integer division: 
query I rowsort label-2914
SELECT DISTINCT 16 DIV col1 AS col1 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT 16 / col1 AS col1 FROM tab1
----
0
1
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 * col2 >= - ( col1 )
----

query I rowsort
SELECT ALL + 38 * col2 AS col2 FROM tab1
----
2242
2584
3648

query I rowsort
SELECT + 10 FROM tab0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT - ( COUNT( * ) ) + + 52 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-2918
SELECT - ( COUNT ( * ) ) + + 52 FROM tab1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-2919
SELECT ALL col2 DIV 94 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL col2 / 94 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2920
SELECT + CAST( NULL AS SIGNED ) - + ( COUNT( * ) + - ( + MAX( + 20 ) ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2920
SELECT + CAST ( NULL AS INTEGER ) - + ( COUNT ( * ) + - ( + MAX ( + 20 ) ) ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ( - ( col2 ) ) FROM tab2
----
-23
-40
-58

query I rowsort
SELECT - ( + col1 ) + + 85 FROM tab1
----
38
71
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2923
SELECT - col1 DIV + col2 AS col2 FROM tab2 WHERE NOT ( - 84 * - 92 ) IS NULL
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-2923
SELECT - col1 / + col2 AS col2 FROM tab2 WHERE NOT ( - 84 * - 92 ) IS NULL
----
-1
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2924
SELECT DISTINCT col2 DIV - 44 FROM tab1
----
-1
-2

skipif mysql # not compatible
query I rowsort label-2924
SELECT DISTINCT col2 / - 44 FROM tab1
----
-1
-2

query I rowsort
SELECT DISTINCT - ( col0 ) - - col0 FROM tab2
----
0

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE ( + col0 * 10 ) BETWEEN col0 - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT ALL 20 - - COUNT( * ) AS col2 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL 20 - - COUNT ( * ) AS col2 FROM tab0
----
23

query I rowsort
SELECT 53 + - col2 AS col1 FROM tab2
----
-5
13
30

query I rowsort
SELECT ALL - 45 * - 45 - col1 FROM tab2 WHERE col0 + col0 IN ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2930
SELECT DISTINCT 0 DIV col2 + col2 * + col0 AS col0 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT 0 / col2 + col2 * + col0 AS col0 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT - col0 * + 8 FROM tab1 WHERE ( NULL ) <= + ( - col1 ) * + col2 + col1 * col2
----

query I rowsort
SELECT 17 * col2 FROM tab1 cor0
----
1003
1156
1632

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT SUM( DISTINCT 7 ) AS col0 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-2933
SELECT SUM ( DISTINCT 7 ) AS col0 FROM tab1
----
7

query I rowsort
SELECT col2 FROM tab2 WHERE NOT + col2 >= NULL
----

query I rowsort
SELECT col0 * - col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - col2 * 37 + col1 ) BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT SUM( ALL + ( - col1 ) ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2939
SELECT SUM ( ALL + ( - col1 ) ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT DISTINCT ( 44 ) FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
44

query I rowsort
SELECT + 35 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
35
35
35

query I rowsort
SELECT ALL + + col1 + 87 * + col0 FROM tab0 AS cor0
----
1386
7590
8440

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= ( + col1 ) / col2 + - col2
----

query I rowsort
SELECT DISTINCT ( - col2 ) AS col2 FROM tab0 WHERE 96 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 WHERE ( 14 ) NOT BETWEEN col0 AND col2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT DISTINCT ( + MAX( 94 ) ) * + COUNT( * ) + 97 AS col0 FROM tab2
----
379

skipif mysql # not compatible
query I rowsort label-2946
SELECT DISTINCT ( + MAX ( 94 ) ) * + COUNT ( * ) + 97 AS col0 FROM tab2
----
379

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 + ( + 14 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2948
SELECT - COUNT( * ) / CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2948
SELECT - COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE 53 * - 53 = ( NULL )
----

query I rowsort
SELECT ALL + col0 + - + ( + col1 ) * 37 AS col0 FROM tab0
----
-2982
-690
60

query I rowsort
SELECT + ( + + col0 ) + + col1 * 49 FROM tab1
----
2394
330
737

query III rowsort
SELECT * FROM tab1 WHERE - col1 + + col0 * - 15 NOT IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 ) <= 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE + 24 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2954
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE + 24 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2955
SELECT COUNT( * ) * COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IN ( col1 + + CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-2955
SELECT COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IN ( col1 + + CAST ( NULL AS REAL ) )
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 * col1 > NULL
----

query I rowsort
SELECT DISTINCT - 40 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-40

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL BETWEEN col1 AND ( NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2959
SELECT DISTINCT col2 * - 46 * + + CAST( + 48 AS SIGNED ) + col1 FROM tab1
----
-130267
-150097
-211954

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT col2 * - 46 * + + CAST ( + 48 AS INTEGER ) + col1 FROM tab1
----
-130267
-150097
-211954

query I rowsort
SELECT DISTINCT + col2 * + + col2 + + + col0 FROM tab0 cor0
----
187
2224
9898

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 / - 10 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 65 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT DISTINCT - 76 - COUNT( * ) FROM tab1 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-2963
SELECT DISTINCT - 76 - COUNT ( * ) FROM tab1 AS cor0
----
-79

query I rowsort
SELECT ALL - 36 + + + col1 + - col1 * 23 AS col1 FROM tab2 AS cor0
----
-1158
-1510
-1730

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 84 * - col0 = 65
----

query I rowsort
SELECT + + col1 + col2 + - 77 * - 81 AS col0 FROM tab2 AS cor0
----
6311
6354
6362

query I rowsort
SELECT + - col2 + 94 AS col0 FROM tab0 AS cor0
----
-5
47
84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 80 = ( NULL )
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT ALL - 17 * + 29 FROM tab0 AS cor0
----
-493
-493
-493

query I rowsort
SELECT DISTINCT + col0 + col0 AS col1 FROM tab2 WHERE NULL NOT BETWEEN + 63 / + col0 + col0 * + 82 AND col1 * - col1 + - col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col0 / 46 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT + 65 NOT IN ( 53 * - ( - col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2974
SELECT ( - CAST( + + col0 AS SIGNED ) ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-2974
SELECT ( - CAST ( + + col0 AS INTEGER ) ) FROM tab0
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + 86 + - 11 )
----

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-23
-23

query I rowsort
SELECT ALL 0 FROM tab0 AS cor0 WHERE 1 <> ( col0 * col1 * - col2 + col0 + - col1 * 81 )
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab0 AS cor0 WHERE NOT + col2 * + col2 >= ( + col2 )
----

query I rowsort
SELECT DISTINCT - - 69 AS col1 FROM tab2 AS cor0
----
69

query II rowsort
SELECT ALL + 72 * + 96, - 16 * + + 19 + + 81 AS col2 FROM tab1 AS cor0
----
6912
-223
6912
-223
6912
-223

query I rowsort
SELECT ALL col0 * + 6 AS col0 FROM tab1 AS cor0 WHERE + ( - 8 ) > - col1
----
306
546

query I rowsort
SELECT ALL - - col2 * - 62 AS col2 FROM tab1 AS cor0
----
-3658
-4216
-5952

onlyif mysql # DIV for integer division: 
query I rowsort label-2984
SELECT 67 DIV - 37 + + col2 FROM tab2 AS cor0
----
22
39
57

skipif mysql # not compatible
query I rowsort label-2984
SELECT 67 / - 37 + + col2 FROM tab2 AS cor0
----
22
39
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2985
SELECT - 39 DIV - - MIN( + ( + col1 ) ) + ( MIN( - ( + col1 ) ) ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2985
SELECT - 39 / - - MIN ( + ( + col1 ) ) + ( MIN ( - ( + col1 ) ) ) FROM tab2 AS cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col1 * col1 col0 FROM tab2 AS cor0 WHERE NOT ( - col1 ) IS NULL
----
-2555
-4414
-5865

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 45 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2988
SELECT DISTINCT + + col1 * - - col1 + + - CAST( CAST( 63 AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-38
133
2146

skipif mysql # not compatible
query I rowsort label-2988
SELECT DISTINCT + + col1 * - - col1 + + - CAST ( CAST ( 63 AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-38
133
2146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2989
SELECT SUM( CAST( + 50 AS SIGNED ) ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2989
SELECT SUM ( CAST ( + 50 AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 96 NOT IN ( + 48 * + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * 70 + + col2 FROM tab1 WHERE ( NOT + 33 < + col2 )
----

query I rowsort
SELECT + ( col2 ) FROM tab2 WHERE NULL BETWEEN + 88 * col1 - + col1 * 52 AND - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2993
SELECT - 2 + + - CAST( NULL AS SIGNED ) + + - COUNT( * ) * - CAST( 26 AS SIGNED ) + COUNT( * ) / 67 FROM tab2, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2993
SELECT - 2 + + - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) * - CAST ( 26 AS INTEGER ) + COUNT ( * ) / 67 FROM tab2, tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 37 - - 8 FROM tab2 AS cor0
----
45
45
45

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col1 ) < + 79
----
15
81
47

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 IS NOT NULL AND - 95 / + 60 * + col0 < ( + col2 * + ( + col2 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 91 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> - 16
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= - 93 + - ( + 71 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3000
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT ( - 58 * CAST( + col0 AS DECIMAL ) IS NULL ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3000
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT ( - 58 * CAST ( + col0 AS REAL ) IS NULL ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * - + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT DISTINCT SUM( ALL col1 ) * COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3002
SELECT DISTINCT SUM ( ALL col1 ) * COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE ( NULL ) <> - 17
----

query I rowsort
SELECT DISTINCT 82 FROM tab2 WHERE ( NULL IS NULL ) OR NOT NULL <= + col1 * + col0 - + 2 / - 93
----
82

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) BETWEEN + col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3006
SELECT col1 DIV 66 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3006
SELECT col1 / 66 FROM tab2
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + + 49 ) col1 FROM tab0 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT ALL - MAX( DISTINCT + - col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL - MAX ( DISTINCT + - col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT DISTINCT - - col0 * ( - - 99 ) FROM tab2 AS cor0
----
4554
6336
7425

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN ( ( + 64 ) ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * + - 22 FROM tab1
----
-1122
-1870
-2002

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col2 + + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - 91 ) AS col1 FROM tab1
----
91
91
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3014
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - + MIN( ALL - - 96 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3014
SELECT DISTINCT - CAST ( NULL AS REAL ) + - + MIN ( ALL - - 96 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3015
SELECT ALL + COUNT( * ) * - MIN( - ( - col2 ) ), ( + 9 ) AS col0 FROM tab0 AS cor0
----
-30
9

skipif mysql # not compatible
query II rowsort label-3015
SELECT ALL + COUNT ( * ) * - MIN ( - ( - col2 ) ), ( + 9 ) AS col0 FROM tab0 AS cor0
----
-30
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab2 AS cor0 WHERE NOT col2 * col0 IN ( + col1 )
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 77 BETWEEN + col0 AND col1
----
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT ALL + - ( + MAX( - + ( + - col2 ) ) ) * + 31 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN col0 AND + + col1 + - - col1
----
-2976

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL + - ( + MAX ( - + ( + - col2 ) ) ) * + 31 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN col0 AND + + col1 + - - col1
----
-2976

query I rowsort
SELECT 44 * - ( - col2 ) * 7 + + col2 + + col2 AS col1 FROM tab0 AS cor0
----
14570
30690
3100

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( + - 3 ) NOT IN ( + - col2, 95 + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3021
SELECT 79 DIV - COUNT( * ) FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-3021
SELECT 79 / - COUNT ( * ) FROM tab0 AS cor0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3022
SELECT - col1 * + - CAST( col2 AS SIGNED ) AS col1 FROM tab1 cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-3022
SELECT - col1 * + - CAST ( col2 AS INTEGER ) AS col1 FROM tab1 cor0
----
1344
295
3196

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + col0
----

query I rowsort
SELECT col1 + + - 5 AS col1 FROM tab0
----
-4
16
76

query I rowsort
SELECT 41 + + 53 * + 78 AS col2 FROM tab0
----
4175
4175
4175

query I rowsort
SELECT + col1 + + col0 - - - 27 * + + col1 FROM tab0
----
-2091
-459
71

query I rowsort
SELECT - col0 * - + col2 + - col1 AS col1 FROM tab1
----
4882
5010
6141

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT COUNT( * ) * 91 * - COUNT( * ) + - 23 AS col2 FROM tab0
----
-842

skipif mysql # not compatible
query I rowsort label-3028
SELECT COUNT ( * ) * 91 * - COUNT ( * ) + - 23 AS col2 FROM tab0
----
-842

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 65 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3030
SELECT + col1 * + col1 * + ( - col2 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) > ( + CAST( + - 62 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3030
SELECT + col1 * + col1 * + ( - col2 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) > ( + CAST ( + - 62 AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( + + col1 * - - 20 ) NOT BETWEEN NULL AND col0 / ( + + col2 ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( 38 )
----

query I rowsort
SELECT + 71 * col1 - - 93 FROM tab0
----
1584
164
5844

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3034
SELECT ALL + ( CAST( + col2 AS SIGNED ) ) col1 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3034
SELECT ALL + ( CAST ( + col2 AS INTEGER ) ) col1 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT + col1 * + col1 * - ( + ( col2 ) ) AS col1 FROM tab2 AS cor0
----
-237160
-260362
-59823

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND - - col1 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT ( MAX( - 9 ) ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3037
SELECT ( MAX ( - 9 ) ) FROM tab0 AS cor0
----
-9

query II rowsort
SELECT ALL col1 AS col1, col2 * - 43 AS col1 FROM tab1 AS cor0
----
14
-4128
47
-2924
5
-2537

query I rowsort
SELECT + col1 + - col0 + 40 FROM tab0 WHERE NOT + col0 IS NULL
----
-26
-56
106

query I rowsort
SELECT DISTINCT - col0 * + col2 FROM tab2 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3041
SELECT + + col2 * CAST( NULL AS SIGNED ) / + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3041
SELECT + + col2 * CAST ( NULL AS INTEGER ) / + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3042
SELECT DISTINCT CAST( - ( - 30 ) AS SIGNED ) DIV col2 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3042
SELECT DISTINCT CAST ( - ( - 30 ) AS INTEGER ) / col2 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + - 18 * 86 FROM tab0 AS cor0
----
-1548
-1548
-1548

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3044
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col0 * col2 ) <= NULL
----

query I rowsort
SELECT ALL + 27 + - - col1 AS col0 FROM tab1 AS cor0
----
32
41
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT DISTINCT + 13 + + COUNT( DISTINCT + col0 ) * - + 11 AS col1 FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3047
SELECT DISTINCT + 13 + + COUNT ( DISTINCT + col0 ) * - + 11 AS col1 FROM tab1 AS cor0
----
-20

query II rowsort
SELECT - col0 + + ( ( + col2 ) ), 5 AS col2 FROM tab2 AS cor0
----
-17
5
-23
5
-24
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3049
SELECT DISTINCT 89 DIV + + col1 + col1 DIV + col0 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-3049
SELECT DISTINCT 89 / + + col1 + col1 / + col0 FROM tab2 AS cor0
----
1
2

onlyif mysql # aggregate syntax: 
query II rowsort label-3050
SELECT COUNT( * ) * + COUNT( * ) + 78 col1, 57 col0 FROM tab0 AS cor0
----
87
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3050
SELECT COUNT ( * ) * + COUNT ( * ) + 78 col1, 57 col0 FROM tab0 AS cor0
----
87
57

query I rowsort
SELECT DISTINCT + col2 + - + 92 + col0 FROM tab2 AS cor0
----
-23
12
41

query II rowsort
SELECT DISTINCT + col1, col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( + col2 * + col1 ) > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT + 69 * MIN( col1 ) AS col1 FROM tab2 AS cor0
----
3519

skipif mysql # not compatible
query I rowsort label-3053
SELECT + 69 * MIN ( col1 ) AS col1 FROM tab2 AS cor0
----
3519

onlyif mysql # DIV for integer division: 
query I rowsort label-3054
SELECT ALL + - 97 DIV + - col1 FROM tab1 AS cor0
----
19
2
6

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL + - 97 / + - col1 FROM tab1 AS cor0
----
19
2
6

query I rowsort
SELECT ALL 14 + + 20 FROM tab1
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT DISTINCT - COUNT( * ) + 18 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3056
SELECT DISTINCT - COUNT ( * ) + 18 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT ALL + - MIN( DISTINCT col0 ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL + - MIN ( DISTINCT col0 ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT + ( - 9 ) + - COUNT( * ) FROM tab0 cor0 WHERE + 70 IN ( col1, + col0 / + col2 )
----
-9

skipif mysql # not compatible
query I rowsort label-3058
SELECT + ( - 9 ) + - COUNT ( * ) FROM tab0 cor0 WHERE + 70 IN ( col1, + col0 / + col2 )
----
-9

query I rowsort
SELECT col0 * + col2 + + 5 AS col1 FROM tab2 AS cor0
----
1063
2565
4355

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT + + COUNT( * ) + ( 84 ) col1 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3060
SELECT + + COUNT ( * ) + ( 84 ) col1 FROM tab1 AS cor0
----
87

query I rowsort
SELECT DISTINCT + 5 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3062
SELECT DISTINCT * FROM tab1 WHERE - + col1 * + - CAST( - + col0 AS SIGNED ) NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3062
SELECT DISTINCT * FROM tab1 WHERE - + col1 * + - CAST ( - + col0 AS INTEGER ) NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3063
SELECT col0 * 99 DIV col2 DIV + + col1 FROM tab0
----
0
41
97

skipif mysql # not compatible
query I rowsort label-3063
SELECT col0 * 99 / col2 / + + col1 FROM tab0
----
0
41
97

query I rowsort
SELECT col2 * - + col0 * col0 AS col0 FROM tab0
----
-10575
-75690
-931491

onlyif mysql # DIV for integer division: 
query I rowsort label-3065
SELECT + col1 DIV 80 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3065
SELECT + col1 / 80 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT ALL - SUM( DISTINCT + 8 ) AS col2 FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-3066
SELECT ALL - SUM ( DISTINCT + 8 ) AS col2 FROM tab2
----
-8

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 28 >= + + col0 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT COUNT( * ) * + - ( COUNT( * ) ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3068
SELECT COUNT ( * ) * + - ( COUNT ( * ) ) FROM tab1 cor0
----
-9

query I rowsort
SELECT - 71 * col1 + - col2 + col2 AS col2 FROM tab0 AS cor0
----
-1491
-5751
-71

query I rowsort
SELECT ALL + 92 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 76 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + ( - - col2 ) FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - + 60 AS col1, col2 FROM tab0 AS cor0
----
-60
10
-60
47
-60
99

query II rowsort
SELECT - ( col1 ), col1 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-14
14
-47
47
-5
5

query II rowsort
SELECT DISTINCT col0, col0 * - + col1 * + - col1 FROM tab2
----
46
119646
64
379456
75
336675

onlyif mysql # aggregate syntax: 
query II rowsort label-3076
SELECT - COUNT( * ) AS col1, - ( 77 ) FROM tab1
----
-3
-77

skipif mysql # not compatible
query II rowsort label-3076
SELECT - COUNT ( * ) AS col1, - ( 77 ) FROM tab1
----
-3
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT + ( + COUNT( ALL + 1 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3077
SELECT + ( + COUNT ( ALL + 1 ) ) AS col0 FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> - + 24 + + 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT ( + + COUNT( * ) ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3079
SELECT ( + + COUNT ( * ) ) col2 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, col2 FROM tab0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT - col0 * ( - col1 ) FROM tab0
----
1215
1827
97

query I rowsort
SELECT 25 AS col1 FROM tab1 AS cor0 WHERE NOT ( col0 + + col0 + + - col2 * ( 91 ) BETWEEN - col0 AND ( NULL ) )
----
25
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 93 col1, col2 AS col1 FROM tab2 AS cor0
----
93
23
93
40
93
58

query I rowsort
SELECT ( - + 36 ) FROM tab1 AS cor0
----
-36
-36
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - ( 84 ) col2 FROM tab0 AS cor0
----
1764
6804
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + col0 ) + + 83 * col0 col2 FROM tab0 AS cor0
----
1230
7134
7954

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT - 68 * + - col0 IS NOT NULL
----

query I rowsort
SELECT - 17 + 47 FROM tab0 cor0
----
30
30
30

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 + - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 57 * + ( + col1 ) AS col1 FROM tab2 WHERE NOT + col1 = NULL
----

query I rowsort
SELECT + 56 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3093
SELECT ALL 4 DIV - 13 + COUNT( * ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3093
SELECT ALL 4 / - 13 + COUNT ( * ) AS col2 FROM tab2 cor0
----
3

query I rowsort
SELECT ALL + - col2 FROM tab1 AS cor0 WHERE NOT - col2 * 15 IS NULL
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3095
SELECT - 13 DIV - col0 + + + 4 AS col1 FROM tab0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-3095
SELECT - 13 / - col0 + + + 4 AS col1 FROM tab0
----
4
4
4

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 58 >= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * 62 FROM tab1
----
3658
4216
5952

query I rowsort
SELECT + col0 * col1 + + 35 * - + col2 FROM tab1
----
-1640
-2646
1897

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT + MIN( + col1 ) + MIN( + col1 ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-3099
SELECT + MIN ( + col1 ) + MIN ( + col1 ) FROM tab1
----
10

query I rowsort
SELECT DISTINCT 5 + 23 AS col0 FROM tab2
----
28

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( NULL ) < - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT ALL - COUNT( * ) * - + COUNT( * ) * - 25 col2 FROM tab2
----
-225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3102
SELECT ALL - COUNT ( * ) * - + COUNT ( * ) * - 25 col2 FROM tab2
----
-225

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 = - col0 + + col1 + - col1 * 88
----

query I rowsort
SELECT + ( 36 ) + + col0 FROM tab0
----
123
133
51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 < 14 + - 94 * + col0 * - col1
----

query I rowsort
SELECT DISTINCT - - ( col0 ) AS col1 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT - + 53 * - col0 FROM tab1 AS cor0
----
2703
4505
4823

query II rowsort
SELECT - 9, - col0 + - - col0 FROM tab2 WHERE NOT + 61 IS NOT NULL
----

query I rowsort
SELECT ALL - 11 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT ALL + - COUNT( * ) AS col1 FROM tab2 WHERE NOT - col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL + - COUNT ( * ) AS col1 FROM tab2 WHERE NOT - col1 < NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col2 AND - + 53
----

query II rowsort
SELECT + - ( col1 ) AS col0, - col2 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT ALL MIN( - + ( + - col1 ) ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL MIN ( - + ( + - col1 ) ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT - ( - 35 ) AS col0 FROM tab1 cor0
----
35
35
35

query I rowsort
SELECT ALL + 97 * - - 14 FROM tab0
----
1358
1358
1358

onlyif mysql # DIV for integer division: 
query III rowsort label-3116
SELECT DISTINCT col1, col0 * + + col1, 19 DIV col0 col0 FROM tab0
----
9 values hashing to 1f93862952add019d24a68fdd1b516aa

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3116
SELECT DISTINCT col1, col0 * + + col1, 19 / col0 col0 FROM tab0
----
9 values hashing to 1f93862952add019d24a68fdd1b516aa

onlyif mysql # aggregate syntax: 
query II rowsort label-3117
SELECT ALL 14 + COUNT( * ) + + 70 AS col2, - 33 + - 11 AS col2 FROM tab0 WHERE + 98 = 25 + + col2 * + col2 + - col0
----
84
-44

skipif mysql # not compatible
query II rowsort label-3117
SELECT ALL 14 + COUNT ( * ) + + 70 AS col2, - 33 + - 11 AS col2 FROM tab0 WHERE + 98 = 25 + + col2 * + col2 + - col0
----
84
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT DISTINCT + MIN( + 25 ) AS col1 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-3118
SELECT DISTINCT + MIN ( + 25 ) AS col1 FROM tab1 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT DISTINCT MAX( ALL + col1 ) col0 FROM tab0 cor0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3119
SELECT DISTINCT MAX ( ALL + col1 ) col0 FROM tab0 cor0 WHERE NOT NULL <= NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3120
SELECT + - COUNT( * ) * + - MIN( - col0 ) FROM tab1 AS cor0 WHERE NULL > CAST( NULL AS DECIMAL ) / - col2 * - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3120
SELECT + - COUNT ( * ) * + - MIN ( - col0 ) FROM tab1 AS cor0 WHERE NULL > CAST ( NULL AS REAL ) / - col2 * - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT + - MAX( - - 42 ) + - 78 AS col1 FROM tab0 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-3121
SELECT + - MAX ( - - 42 ) + - 78 AS col1 FROM tab0 AS cor0
----
-120

query I rowsort
SELECT - - col0 * + + col1 + + ( - col0 ) AS col2 FROM tab2 AS cor0
----
2300
4864
4950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3123
SELECT DISTINCT + MAX( ALL + + col0 ) + + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * - ( - 62 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT + MAX ( ALL + + col0 ) + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * - ( - 62 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 58 + + col0 AS col0 FROM tab0 cor0
----
145
155
73

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE - 90 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT + 45 + + col1 FROM tab0 AS cor0
----
126
46
66

query I rowsort
SELECT ALL + col2 * + + 14 * - col0 * col2 - col0 FROM tab2 AS cor0
----
-1433664
-340722
-3532275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3128
SELECT + + CAST( - + ( + 77 ) AS SIGNED ) FROM tab2 AS cor0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-3128
SELECT + + CAST ( - + ( + 77 ) AS INTEGER ) FROM tab2 AS cor0
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-3129
SELECT + COUNT( * ), + 9 + 34 + + + 27 AS col1 FROM tab2 AS cor0
----
3
70

skipif mysql # not compatible
query II rowsort label-3129
SELECT + COUNT ( * ), + 9 + 34 + + + 27 AS col1 FROM tab2 AS cor0
----
3
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3130
SELECT ALL COUNT( * ) * - - AVG ( CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3130
SELECT ALL COUNT ( * ) * - - AVG ( CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NOT - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 - + - 53 FROM tab0
----
100
152
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3132
SELECT ALL - MAX( DISTINCT - col0 ) * + + MAX( ALL col2 ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3132
SELECT ALL - MAX ( DISTINCT - col0 ) * + + MAX ( ALL col2 ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col0 * + - ( - col1 ) * col0 AS col0 FROM tab0
----
158949
18225
9409

query I rowsort
SELECT - + 29 AS col0 FROM tab1 cor0
----
-29
-29
-29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3135
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-3135
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 + col2 * - + 87 + - 93 + + col2 col1 FROM tab1 AS cor0
----
-5167
-5941
-8349

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 = + 68 + col0
----

query I rowsort
SELECT DISTINCT 75 * col2 AS col0 FROM tab0
----
3525
7425
750

onlyif mysql # DIV for integer division: 
query I rowsort label-3139
SELECT DISTINCT - 75 DIV + col1 - + - 28 FROM tab0 AS cor0
----
-47
25
28

skipif mysql # not compatible
query I rowsort label-3139
SELECT DISTINCT - 75 / + col1 - + - 28 FROM tab0 AS cor0
----
-47
25
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT DISTINCT + COUNT( - - 61 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3140
SELECT DISTINCT + COUNT ( - - 61 ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 96 >= ( col2 )
----

query I rowsort
SELECT ALL - + 93 AS col1 FROM tab0 cor0
----
-93
-93
-93

query I rowsort
SELECT col1 * col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( col0 ) = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3144
SELECT COUNT( - + 36 ), COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-3144
SELECT COUNT ( - + 36 ), COUNT ( * ) FROM tab1
----
3
3

query II rowsort
SELECT ( - col2 ), col0 FROM tab2
----
-23
46
-40
64
-58
75

query I rowsort
SELECT 60 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3147
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 4 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3147
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 4 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 24 * + 51 + - - 96 AS col1 FROM tab2
----
1320

query I rowsort
SELECT - 59 * col2 FROM tab1 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT DISTINCT MIN( + col1 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT MIN ( + col1 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT 98 + - 54, col2 FROM tab0
----
44
10
44
47
44
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT DISTINCT COUNT( * ) + 12 col2 FROM tab1
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3152
SELECT DISTINCT COUNT ( * ) + 12 col2 FROM tab1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT COUNT( DISTINCT + col1 ) + - + 0 AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3153
SELECT COUNT ( DISTINCT + col1 ) + - + 0 AS col0 FROM tab2
----
3

query I rowsort
SELECT ALL + - 68 AS col1 FROM tab2 AS cor0
----
-68
-68
-68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <> + col2 + - - 48
----

query II rowsort
SELECT ALL col0 + - col1, + col1 AS col0 FROM tab2 AS cor0
----
-13
77
-5
51
8
67

query I rowsort
SELECT DISTINCT 93 * + - 36 AS col2 FROM tab2
----
-3348

query I rowsort
SELECT col1 * - 34 AS col2 FROM tab1
----
-1598
-170
-476

query I rowsort
SELECT ALL 27 + - 14 FROM tab2
----
13
13
13

query I rowsort
SELECT DISTINCT - col0 + + 73 + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-4295
-437
-692

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3161
SELECT - CAST( NULL AS SIGNED ) + - CAST( + 28 AS SIGNED ), col2 AS col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-3161
SELECT - CAST ( NULL AS INTEGER ) + - CAST ( + 28 AS INTEGER ), col2 AS col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT + - col1 + + + 55 + + 61 + + col2 + col0 AS col1 FROM tab2 AS cor0
----
134
143
182

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT ALL - SUM( ALL + + 9 ) FROM tab2 AS cor0 WHERE ( + col2 ) IN ( + col0 * + 40 - 10, - col0 / + 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL - SUM ( ALL + + 9 ) FROM tab2 AS cor0 WHERE ( + col2 ) IN ( + col0 * + 40 - 10, - col0 / + 69 )
----
NULL

query I rowsort
SELECT DISTINCT 97 - + col1 + - col0 FROM tab2 AS cor0
----
-44
-45
0

query I rowsort
SELECT - col0 + - + 29 + + - col1 FROM tab1 AS cor0
----
-119
-167
-94

query I rowsort
SELECT ALL + - col0 - + col2 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT ALL col0 - ( col2 ) FROM tab1
----
-45
23
26

query I rowsort
SELECT ALL col2 * 7 AS col1 FROM tab0
----
329
693
70

query I rowsort
SELECT ALL - col1 * + ( - col2 ) AS col2 FROM tab0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3170
SELECT DISTINCT - 66 DIV ( - col0 ) FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-3170
SELECT DISTINCT - 66 / ( - col0 ) FROM tab2
----
0
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 69 BETWEEN - 64 * col2 + - 41 + + + 44 - + - col0 / 26 AND + col2
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT col2 * + col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1058
2560
4350

query II rowsort
SELECT ALL col1 AS col0, - 92 FROM tab2 cor0
----
51
-92
67
-92
77
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT ALL - 18 * COUNT( * ) col2 FROM tab0 cor0
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3174
SELECT ALL - 18 * COUNT ( * ) col2 FROM tab0 cor0
----
-54

query I rowsort
SELECT ALL 73 * - + 75 AS col2 FROM tab1 AS cor0
----
-5475
-5475
-5475

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND - - col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 5 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3178
SELECT DISTINCT + - col1 + 0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND - col1 - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3178
SELECT DISTINCT + - col1 + 0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND - col1 - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - - ( - - 23 ) + + + col2 FROM tab2 AS cor0
----
46
63
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= + col2 + + - col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3181
SELECT ALL + SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) * + - ( + 86 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3181
SELECT ALL + SUM ( DISTINCT + CAST ( NULL AS REAL ) ) * + - ( + 86 ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + - col2 + + col0 AS col0, - col0 FROM tab2 AS cor0
----
17
-75
23
-46
24
-64

query I rowsort
SELECT DISTINCT col1 * - ( 3 ) + - col1 AS col1 FROM tab1 AS cor0
----
-188
-20
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-3184
SELECT ALL col0 DIV + + 42 AS col1 FROM tab0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL col0 / + + 42 AS col1 FROM tab0
----
0
2
2

onlyif mysql # DIV for integer division: 
query II rowsort label-3185
SELECT + col1, + 16 DIV + - col2 AS col2 FROM tab1
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-3185
SELECT + col1, + 16 / + - col2 AS col2 FROM tab1
----
14
0
47
0
5
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3186
SELECT * FROM tab1 WHERE + 78 + + CAST( 44 AS DECIMAL ) NOT BETWEEN + 74 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3186
SELECT * FROM tab1 WHERE + 78 + + CAST ( 44 AS REAL ) NOT BETWEEN + 74 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3187
SELECT DISTINCT 68 DIV - COUNT( * ) + - + 0 AS col0 FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-3187
SELECT DISTINCT 68 / - COUNT ( * ) + - + 0 AS col0 FROM tab0
----
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 68 + - col0 col0 FROM tab2 AS cor0
----
-114
-132
-143

query II rowsort
SELECT ALL + 8 AS col2, - 86 AS col2 FROM tab0 AS cor0
----
8
-86
8
-86
8
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3190
SELECT - ( CAST( - COUNT( * ) AS SIGNED ) ), + 39 AS col1 FROM tab0 AS cor0
----
3
39

skipif mysql # not compatible
query II rowsort label-3190
SELECT - ( CAST ( - COUNT ( * ) AS INTEGER ) ), + 39 AS col1 FROM tab0 AS cor0
----
3
39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3191
SELECT DISTINCT + col1 - + 10 DIV + - CAST( col0 AS SIGNED ) + + 8 + - col2 - + col1 FROM tab2 AS cor0
----
-15
-32
-50

skipif mysql # not compatible
query I rowsort label-3191
SELECT DISTINCT + col1 - + 10 / + - CAST ( col0 AS INTEGER ) + + 8 + - col2 - + col1 FROM tab2 AS cor0
----
-15
-32
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-3192
SELECT ALL + ( 96 ) DIV + + col1 FROM tab1 AS cor0
----
19
2
6

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL + ( 96 ) / + + col1 FROM tab1 AS cor0
----
19
2
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3193
SELECT - + MAX( DISTINCT - + 33 ), + 1 + 22 AS col1 FROM tab1 AS cor0
----
33
23

skipif mysql # not compatible
query II rowsort label-3193
SELECT - + MAX ( DISTINCT - + 33 ), + 1 + 22 AS col1 FROM tab1 AS cor0
----
33
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 - - 93 col0 FROM tab1 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT ALL - - COUNT( * ) + - 42 AS col2 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL - - COUNT ( * ) + - 42 AS col2 FROM tab1 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-3196
SELECT ALL - 10 col2, MAX( DISTINCT - 7 ) AS col0 FROM tab2
----
-10
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3196
SELECT ALL - 10 col2, MAX ( DISTINCT - 7 ) AS col0 FROM tab2
----
-10
-7

query II rowsort
SELECT ALL 98 AS col1, - col0 FROM tab2
----
98
-46
98
-64
98
-75

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 IN ( 70 + col1, + col1 * + + col2 / col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3199
SELECT CAST( - col2 AS SIGNED ) * - + col0 * - 30 AS col0 FROM tab0
----
-21150
-26100
-288090

skipif mysql # not compatible
query I rowsort label-3199
SELECT CAST ( - col2 AS INTEGER ) * - + col0 * - 30 AS col0 FROM tab0
----
-21150
-26100
-288090

query I rowsort
SELECT ALL - ( + col2 ) + + + 67 + - - col0 FROM tab2 AS cor0
----
84
90
91

query I rowsort
SELECT ALL - 17 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query II rowsort
SELECT ALL col1, + 37 AS col2 FROM tab2 AS cor0
----
51
37
67
37
77
37

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 / - col0 * - 23 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * col2 * + col0 FROM tab0 cor0
----
-33135
-8700
-950697

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 2 NOT BETWEEN + 11 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( 74 ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3207
SELECT ALL + 99 DIV + + MAX( + col0 ) col1 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3207
SELECT ALL + 99 / + + MAX ( + col0 ) col1 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT 6 * ( - COUNT( * ) ) + COUNT( * ) FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-3208
SELECT 6 * ( - COUNT ( * ) ) + COUNT ( * ) FROM tab2
----
-15

query I rowsort
SELECT + col1 + + 34 * - col0 - - - 24 FROM tab1
----
-1744
-2909
-3071

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3210
SELECT col2 + - 54 AS col0, + col0 DIV + ( + CAST( col1 AS SIGNED ) ) col0 FROM tab0
----
-44
4
-7
0
45
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3210
SELECT col2 + - 54 AS col0, + col0 / + ( + CAST ( col1 AS INTEGER ) ) col0 FROM tab0
----
-44
4
-7
0
45
97

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 NOT BETWEEN NULL AND - 20
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - col0 + - 49 col1, col1, + + col1 AS col2 FROM tab2
----
9 values hashing to 80a2d2414ef28938326836f5f390f4ce

query I rowsort
SELECT ALL 13 + - - col1 AS col0 FROM tab0
----
14
34
94

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( + - 69 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 84 + + col2 AS col0 FROM tab0 AS cor0 WHERE NOT 11 <= - - col1 * - 55 * + col1 + - col1 * - 14
----
-37
-74
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 56 + 95 IS NULL
----

query II rowsort
SELECT col0 * - ( col2 ), 97 AS col1 FROM tab2
----
-1058
97
-2560
97
-4350
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3218
SELECT - + col0 * CAST( col2 AS DECIMAL ) AS col0 FROM tab2 WHERE + - 68 * - + col2 * + col1 + - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3218
SELECT - + col0 * CAST ( col2 AS REAL ) AS col0 FROM tab2 WHERE + - 68 * - + col2 * + col1 + - col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 * - col1 * - col1 IS NULL
----

query I rowsort
SELECT + 7 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT ALL + col0 * col1 - 89 * + 12 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-354
-643
3209

query I rowsort
SELECT - col0 + 69 * + col2 FROM tab0 AS cor0
----
3228
603
6734

onlyif mysql # DIV for integer division: 
query I rowsort label-3223
SELECT DISTINCT + + 50 DIV + col1 FROM tab0 cor0
----
0
2
50

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT + + 50 / + col1 FROM tab0 cor0
----
0
2
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3224
SELECT - SUM( + ( + + ( - CAST( NULL AS SIGNED ) ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3224
SELECT - SUM ( + ( + + ( - CAST ( NULL AS INTEGER ) ) ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 75 AS col0 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3226
SELECT ALL - - CAST( + 35 AS SIGNED ) FROM tab2 AS cor0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL - - CAST ( + 35 AS INTEGER ) FROM tab2 AS cor0
----
35
35
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3227
SELECT + - CAST( NULL AS SIGNED ) AS col1, col1 AS col2 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-3227
SELECT + - CAST ( NULL AS INTEGER ) AS col1, col1 AS col2 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT DISTINCT - COUNT( col2 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3228
SELECT DISTINCT - COUNT ( col2 ) FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT ALL SUM( + + 54 ) AS col2 FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL SUM ( + + 54 ) AS col2 FROM tab2 AS cor0
----
162

query I rowsort
SELECT ALL ( - 66 ) AS col2 FROM tab0
----
-66
-66
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 44 * + 71 col1 FROM tab0
----
146828
309276
31240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 col0 FROM tab0
----
69
69
69

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - + col0 ) <= NULL
----

query I rowsort
SELECT DISTINCT - 32 * - + col1 AS col0 FROM tab1 AS cor0
----
1504
160
448

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT + MAX( ALL + 16 ) FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-3235
SELECT + MAX ( ALL + 16 ) FROM tab0 AS cor0
----
16

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + + 13 - + - 0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT ALL - COUNT( ALL - ( + - col0 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL - COUNT ( ALL - ( + - col0 ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3238
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - ( 23 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-23

query I rowsort
SELECT ALL + + 6 + - col0 AS col0 FROM tab1 AS cor0
----
-45
-79
-85

query II rowsort
SELECT ALL col0 AS col0, 85 AS col2 FROM tab2 AS cor0
----
46
85
64
85
75
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3242
SELECT DISTINCT + + 55 DIV - col1 + + + 6 + col2 FROM tab1 AS cor0
----
54
73
99

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT + + 55 / - col1 + + + 6 + col2 FROM tab1 AS cor0
----
54
73
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3243
SELECT + col2 * 14 / - 26 + CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3243
SELECT + col2 * 14 / - 26 + CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 26 + 43 FROM tab1 AS cor0
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT DISTINCT + MIN( DISTINCT + - col0 ) AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT + MIN ( DISTINCT + - col0 ) AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - 53 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - ( 10 ) - 47
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE 46 * 63 IS NULL
----

query I rowsort
SELECT + + col0 AS col0 FROM tab2 WHERE - col0 = + + 50 * + - col0
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT ALL COUNT( * ) FROM tab0 WHERE NULL NOT IN ( + 55 * + - ( col1 ), + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL COUNT ( * ) FROM tab0 WHERE NULL NOT IN ( + 55 * + - ( col1 ), + col0 )
----
0

query I rowsort
SELECT DISTINCT col0 * - 29 FROM tab0
----
-2523
-2813
-435

onlyif mysql # DIV for integer division: 
query I rowsort label-3252
SELECT DISTINCT 33 DIV - - 29 + - col2 AS col1 FROM tab2
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-3252
SELECT DISTINCT 33 / - - 29 + - col2 AS col1 FROM tab2
----
-22
-39
-57

query I rowsort
SELECT ALL - col0 + + col2 FROM tab1 WHERE + + 66 + col0 IS NULL
----

query II rowsort
SELECT 22 AS col2, - col2 AS col0 FROM tab1
----
22
-59
22
-68
22
-96

query I rowsort
SELECT - 95 - - 96 AS col2 FROM tab2 cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3257
SELECT DISTINCT + MAX( DISTINCT col2 ) AS col1, COUNT( * ) - - + 47 AS col1 FROM tab1 AS cor0
----
96
50

skipif mysql # not compatible
query II rowsort label-3257
SELECT DISTINCT + MAX ( DISTINCT col2 ) AS col1, COUNT ( * ) - - + 47 AS col1 FROM tab1 AS cor0
----
96
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT ALL 98 - + + COUNT( * ) FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL 98 - + + COUNT ( * ) FROM tab0
----
95

onlyif mysql # DIV for integer division: 
query II rowsort label-3259
SELECT ALL - col0 DIV + + 77 AS col2, col0 AS col1 FROM tab2 AS cor0
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-3259
SELECT ALL - col0 / + + 77 AS col2, col0 AS col1 FROM tab2 AS cor0
----
0
46
0
64
0
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT + MIN( + - col2 ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3260
SELECT + MIN ( + - col2 ) FROM tab1 cor0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3261
SELECT col0 DIV - 83 - - 40 AS col0 FROM tab2 AS cor0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-3261
SELECT col0 / - 83 - - 40 AS col0 FROM tab2 AS cor0
----
40
40
40

query I rowsort
SELECT ALL 52 - + col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-15
-25
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 >= 23 / col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= 14
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3265
SELECT DISTINCT * FROM tab0 WHERE NOT - - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3265
SELECT DISTINCT * FROM tab0 WHERE NOT - - CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT + 75, - 2 AS col1 FROM tab1
----
75
-2
75
-2
75
-2

query III rowsort
SELECT * FROM tab0 WHERE NOT - 86 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3268
SELECT COUNT( * ), + 30 AS col2 FROM tab0
----
3
30

skipif mysql # not compatible
query II rowsort label-3268
SELECT COUNT ( * ), + 30 AS col2 FROM tab0
----
3
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3269
SELECT DISTINCT CAST( NULL AS SIGNED ), col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-3269
SELECT DISTINCT CAST ( NULL AS INTEGER ), col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT ( - 75 ) FROM tab1
----
-75
-75
-75

query I rowsort
SELECT - ( + 91 ) FROM tab1
----
-91
-91
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-3272
SELECT ALL COUNT( * ) AS col1, ( COUNT( * ) ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3272
SELECT ALL COUNT ( * ) AS col1, ( COUNT ( * ) ) FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT ALL - + 87 AS col2 FROM tab0 AS cor0
----
-87
-87
-87

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - + col2, - col2 / - col2 * + 53 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT ( - COUNT( * ) ) FROM tab1, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3275
SELECT ( - COUNT ( * ) ) FROM tab1, tab0 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-3276
SELECT ALL - 36 DIV + col1 * + col2 + - + 17, 76 AS col2 FROM tab2
----
-17
76
-17
76
-17
76

skipif mysql # not compatible
query II rowsort label-3276
SELECT ALL - 36 / + col1 * + col2 + - + 17, 76 AS col2 FROM tab2
----
-17
76
-17
76
-17
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT DISTINCT + + COUNT( * ) + + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3277
SELECT DISTINCT + + COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
68
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <> + col0
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 AND - - col1 + col0
----

query I rowsort
SELECT - - col1 + ( - + 38 ) FROM tab1 AS cor0
----
-24
-33
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT DISTINCT - + SUM( - - col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3283
SELECT DISTINCT - + SUM ( - - col0 ) AS col1 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT - 22 + - col1 AS col0 FROM tab0
----
-103
-23
-43

query I rowsort
SELECT 32 + + col1 * - col2 AS col2 FROM tab1
----
-1312
-263
-3164

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT ALL ( - - MIN( ALL + + col2 ) ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL ( - - MIN ( ALL + + col2 ) ) AS col0 FROM tab2
----
23

query I rowsort
SELECT ALL - 16 + + 37 AS col1 FROM tab1
----
21
21
21

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + col2 AND - + col0 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT ALL 8 * + COUNT( * ) FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL 8 * + COUNT ( * ) FROM tab1
----
24

query I rowsort
SELECT ALL + col2 * + - col2 AS col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT DISTINCT MIN( DISTINCT - col1 ) col1 FROM tab2 WHERE 18 IS NOT NULL
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3291
SELECT DISTINCT MIN ( DISTINCT - col1 ) col1 FROM tab2 WHERE 18 IS NOT NULL
----
-77

query I rowsort
SELECT ALL - + ( + 83 ) * - 66 - + 90 + 43 * col0 + - - 4 AS col0 FROM tab2 AS cor0
----
7370
8144
8617

query I rowsort
SELECT DISTINCT - ( + col1 ) + 30 * - col1 FROM tab1 AS cor0
----
-1457
-155
-434

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE + 14 / + col1 IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3295
SELECT - col2 - CAST( NULL AS DECIMAL ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3295
SELECT - col2 - CAST ( NULL AS REAL ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3296
SELECT ALL MIN( + + CAST( - - ( - CAST( 59 AS DECIMAL ) ) AS SIGNED ) ) * + 55 AS col2 FROM tab0
----
-3245

skipif mysql # not compatible
query I rowsort label-3296
SELECT ALL MIN ( + + CAST ( - - ( - CAST ( 59 AS REAL ) ) AS INTEGER ) ) * + 55 AS col2 FROM tab0
----
-3245

query I rowsort
SELECT DISTINCT - + 4 * + col2 * - - col0 - + - 50 FROM tab1 AS cor0
----
-19534
-20010
-24702

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT + COUNT( ALL col1 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3298
SELECT + COUNT ( ALL col1 ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3299
SELECT CAST( - col0 AS SIGNED ) FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3299
SELECT CAST ( - col0 AS INTEGER ) FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3300
SELECT DISTINCT col0 DIV col2 * + col1 FROM tab1
----
0
47
5

skipif mysql # not compatible
query I rowsort label-3300
SELECT DISTINCT col0 / col2 * + col1 FROM tab1
----
0
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3301
SELECT - CAST( NULL AS SIGNED ), col2 AS col2 FROM tab1 WHERE NOT - col1 * - col0 IS NULL
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-3301
SELECT - CAST ( NULL AS INTEGER ), col2 AS col2 FROM tab1 WHERE NOT - col1 * - col0 IS NULL
----
NULL
59
NULL
68
NULL
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( 96 ) / - ( - ( 80 ) ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 99 + 64 col1 FROM tab2
----
163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3304
SELECT + 79 * + CAST( NULL AS SIGNED ) + - 70 + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3304
SELECT + 79 * + CAST ( NULL AS INTEGER ) + - 70 + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + ( - + ( - + 48 ) ) AS col0 FROM tab0 AS cor0
----
-48
-48
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 + - col0 + + col2 * - col2 * col1 * - col1 + - col1 col0 FROM tab0 AS cor0
----
14493168
44007
9718

query I rowsort
SELECT + - 7 AS col1 FROM tab1 cor0
----
-7
-7
-7

query I rowsort
SELECT + + 55 * + + 9 FROM tab1 AS cor0
----
495
495
495

onlyif mysql # DIV for integer division: 
query I rowsort label-3309
SELECT ALL - col1 DIV col1 + + - col1 - + ( + 96 ) - - 0 FROM tab0 AS cor0
----
-118
-178
-98

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL - col1 / col1 + + - col1 - + ( + 96 ) - - 0 FROM tab0 AS cor0
----
-118
-178
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-3310
SELECT DISTINCT col0 * + col2 DIV + - col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT col0 * + col2 / + - col2 FROM tab0
----
-15
-87
-97

query II rowsort
SELECT 1 - + col1, col2 FROM tab0
----
-20
10
-80
47
0
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3312
SELECT DISTINCT col2 DIV + - col2 + 11 * - 13 FROM tab0
----
-144

skipif mysql # not compatible
query I rowsort label-3312
SELECT DISTINCT col2 / + - col2 + 11 * - 13 FROM tab0
----
-144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 8 ) + + + col2 col1 FROM tab2 AS cor0
----
15
32
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 * - col1 col2 FROM tab2
----
-3927
-5159
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT MIN( col1 ) * + - COUNT( * ) AS col0 FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-3315
SELECT MIN ( col1 ) * + - COUNT ( * ) AS col0 FROM tab2
----
-153

query II rowsort
SELECT DISTINCT + col2 AS col0, - 56 * + col2 AS col1 FROM tab2
----
23
-1288
40
-2240
58
-3248

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT ALL col2 * - ( + col0 ) + - + ( + - 89 ) FROM tab1 AS cor0
----
-4807
-4926
-6099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 70 col1 FROM tab0 AS cor0
----
1470
5670
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3320
SELECT + CAST( NULL AS SIGNED ) / + + 10 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3320
SELECT + CAST ( NULL AS INTEGER ) / + + 10 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3321
SELECT ALL + 55 DIV + ( - col1 ) FROM tab0
----
-2
-55
0

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL + 55 / + ( - col1 ) FROM tab0
----
-2
-55
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 48 - col2 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3323
SELECT DISTINCT col0 DIV + ( 3 ) FROM tab2
----
15
21
25

skipif mysql # not compatible
query I rowsort label-3323
SELECT DISTINCT col0 / + ( 3 ) FROM tab2
----
15
21
25

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 90 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3325
SELECT + COUNT( * ) AS col1, 61 + CAST( NULL AS SIGNED ) FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3325
SELECT + COUNT ( * ) AS col1, 61 + CAST ( NULL AS INTEGER ) FROM tab0
----
3
NULL

query II rowsort
SELECT + 38, + col2 + - 88 AS col0 FROM tab0
----
38
-41
38
-78
38
11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3327
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN + CAST( NULL AS SIGNED ) * + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3327
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN + CAST ( NULL AS INTEGER ) * + col1 AND NULL
----

query I rowsort
SELECT + 51 + col1 - + - col2 FROM tab1 AS cor0
----
115
161
166

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT DISTINCT + + 82 * - + COUNT( * ) - + - MIN( ALL - 18 ) - + COUNT( * ) FROM tab1 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-3329
SELECT DISTINCT + + 82 * - + COUNT ( * ) - + - MIN ( ALL - 18 ) - + COUNT ( * ) FROM tab1 AS cor0
----
-267

query II rowsort
SELECT DISTINCT + - 37, col0 FROM tab0 cor0
----
-37
15
-37
87
-37
97

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - - 78, 93, 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT ALL COUNT( * ) + COUNT( * ) FROM tab0 WHERE NOT - col1 = + col1
----
6

skipif mysql # not compatible
query I rowsort label-3332
SELECT ALL COUNT ( * ) + COUNT ( * ) FROM tab0 WHERE NOT - col1 = + col1
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3333
SELECT - + 53 - COUNT( * ) - + COUNT( * ) DIV + 56 FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-3333
SELECT - + 53 - COUNT ( * ) - + COUNT ( * ) / + 56 FROM tab2 AS cor0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3334
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) / ( + - MIN( ALL CAST( + 50 AS SIGNED ) ) ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3334
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) / ( + - MIN ( ALL CAST ( + 50 AS INTEGER ) ) ) AS col0 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT DISTINCT - - COUNT( * ) - + 20 + - - 72 FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-3335
SELECT DISTINCT - - COUNT ( * ) - + 20 + - - 72 FROM tab1 AS cor0
----
55

query I rowsort
SELECT + col2 + + col2 * + - col2 FROM tab1 AS cor0
----
-3422
-4556
-9120

query I rowsort
SELECT DISTINCT - col1 - + 42 * - + 65 FROM tab1 AS cor0
----
2683
2716
2725

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT 62 + + + COUNT( * ) FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-3338
SELECT 62 + + + COUNT ( * ) FROM tab0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT DISTINCT + 21 * - COUNT( * ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-3339
SELECT DISTINCT + 21 * - COUNT ( * ) FROM tab0
----
-63

query I rowsort
SELECT DISTINCT ( - + col2 ) * - - 34 + - - 10 AS col0 FROM tab0 WHERE NOT col0 IS NULL
----
-1588
-330
-3356

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT ALL + 71 + - - COUNT( * ) AS col1 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL + 71 + - - COUNT ( * ) AS col1 FROM tab2
----
74

query II rowsort
SELECT - col2 AS col2, col1 * + 95 AS col1 FROM tab2
----
-23
4845
-40
7315
-58
6365

query II rowsort
SELECT DISTINCT col1 AS col1, 66 * - col2 AS col2 FROM tab1
----
14
-6336
47
-4488
5
-3894

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT ALL - 43 * SUM( DISTINCT + - col2 ) * 67 AS col1 FROM tab0 cor0
----
449436

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL - 43 * SUM ( DISTINCT + - col2 ) * 67 AS col1 FROM tab0 cor0
----
449436

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE NOT ( NULL ) < col0 + - ( - 91 )
----

query I rowsort
SELECT 50 FROM tab1 WHERE ( NULL ) NOT BETWEEN + col2 AND ( col1 )
----

query I rowsort
SELECT 59 * col2 + 79 AS col2 FROM tab1
----
3560
4091
5743

query I rowsort
SELECT DISTINCT + 1 AS col1 FROM tab2 WHERE - col0 NOT IN ( - 88 * - col0 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3349
SELECT 8 * 22 + 43 DIV 41 AS col2 FROM tab0
----
177
177
177

skipif mysql # not compatible
query I rowsort label-3349
SELECT 8 * 22 + 43 / 41 AS col2 FROM tab0
----
177
177
177

onlyif mysql # DIV for integer division: 
query I rowsort label-3350
SELECT DISTINCT + 19 DIV - 4 AS col0 FROM tab1 WHERE NOT col0 IS NULL
----
-4

skipif mysql # not compatible
query I rowsort label-3350
SELECT DISTINCT + 19 / - 4 AS col0 FROM tab1 WHERE NOT col0 IS NULL
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT DISTINCT MIN( ALL + 18 ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT MIN ( ALL + 18 ) FROM tab1
----
18

query I rowsort
SELECT ALL 80 / 68 FROM tab1 WHERE NOT + col0 * 42 IS NOT NULL
----

query I rowsort
SELECT + 12 + + col0 FROM tab1
----
103
63
97

query I rowsort
SELECT col2 FROM tab0 WHERE NOT 86 * + 52 IN ( col0 )
----
10
47
99

query I rowsort
SELECT + 76 FROM tab2 WHERE col0 IS NOT NULL
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT ALL + COUNT( ALL 60 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL + COUNT ( ALL 60 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT ALL 93 + - 58 * COUNT( * ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL 93 + - 58 * COUNT ( * ) FROM tab0
----
-81

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT col1 * 56 AS col1 FROM tab0
----
1176
4536
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3360
SELECT col0 FROM tab1 WHERE NOT + ( col1 ) + CAST( NULL AS SIGNED ) * col2 = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3360
SELECT col0 FROM tab1 WHERE NOT + ( col1 ) + CAST ( NULL AS INTEGER ) * col2 = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 + - col2 * + 71 col1 FROM tab1
----
-4183
-4822
-6810

query I rowsort
SELECT DISTINCT 17 * col2 FROM tab0
----
1683
170
799

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3363
SELECT ALL * FROM tab0 WHERE CAST( NULL AS SIGNED ) * + col1 IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-3363
SELECT ALL * FROM tab0 WHERE CAST ( NULL AS INTEGER ) * + col1 IN ( col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( + 17 * 91 - - 68 * - col2 ) < NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 88 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3366
SELECT DISTINCT 31 / - 51 FROM tab2 WHERE NOT ( 47 * CAST( NULL AS SIGNED ) ) < - col0
----

skipif mysql # not compatible
query I rowsort label-3366
SELECT DISTINCT 31 / - 51 FROM tab2 WHERE NOT ( 47 * CAST ( NULL AS INTEGER ) ) < - col0
----

query I rowsort
SELECT - 0 FROM tab2 WHERE col2 IS NOT NULL
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 + + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT DISTINCT col0 + - 5 FROM tab0 AS cor0
----
10
82
92

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN col0 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3371
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 + - 19 / + col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3371
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 + - 19 / + col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col0 col0 FROM tab2 AS cor0
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT SUM( ALL + 76 ) * + 26 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
5931

skipif mysql # not compatible
query I rowsort label-3373
SELECT SUM ( ALL + 76 ) * + 26 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
5931

query I rowsort
SELECT + 38 + - 26 FROM tab0
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT DISTINCT - COUNT( * ) + 20 col2 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3375
SELECT DISTINCT - COUNT ( * ) + 20 col2 FROM tab2 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT + MIN( + 41 ) FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-3376
SELECT + MIN ( + 41 ) FROM tab0 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT 64 * + COUNT( * ) FROM tab1 AS cor0 WHERE ( 0 * + col1 ) <> 45 + col1
----
192

skipif mysql # not compatible
query I rowsort label-3377
SELECT 64 * + COUNT ( * ) FROM tab1 AS cor0 WHERE ( 0 * + col1 ) <> 45 + col1
----
192

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 / - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + AVG ( DISTINCT ( - 71 ) ) col0 FROM tab0 AS cor0 WHERE - col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3380
SELECT + col0 * + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3380
SELECT + col0 * + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT DISTINCT + 56 - - COUNT( * ) * ( COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-3381
SELECT DISTINCT + 56 - - COUNT ( * ) * ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
65

query I rowsort
SELECT DISTINCT + col0 * + col2 + - col0 AS col1 FROM tab0 AS cor0
----
690
783
9506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3383
SELECT ALL 31 - 28 * + MAX( 11 DIV - col2 ) FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL 31 - 28 * + MAX ( 11 / - col2 ) FROM tab1 AS cor0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3384
SELECT ALL + - 52 * + 63 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL + - 52 * + 63 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3385
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + - col2 < col1
----

skipif mysql # not compatible
query III rowsort label-3385
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + - col2 < col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3386
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE + CAST( + col1 AS SIGNED ) * - col0 NOT BETWEEN ( col0 + + 73 ) AND - col1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE + CAST ( + col1 AS INTEGER ) * - col0 NOT BETWEEN ( col0 + + 73 ) AND - col1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3387
SELECT ALL - CAST( NULL AS SIGNED ) * 54 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL - CAST ( NULL AS INTEGER ) * 54 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 93 - + - col0 FROM tab0
----
108
180
190

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 >= ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 * col0 BETWEEN col2 * + 11 AND col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN 64 * - col1 AND ( NULL )
----

query I rowsort
SELECT + col0 / col1 AS col1 FROM tab2 WHERE NOT + col0 / - col0 NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT DISTINCT SUM( DISTINCT - 2 ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-3393
SELECT DISTINCT SUM ( DISTINCT - 2 ) FROM tab1 AS cor0
----
-2

query I rowsort
SELECT DISTINCT - 30 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-30

query II rowsort
SELECT col0, 11 FROM tab2
----
46
11
64
11
75
11

query I rowsort
SELECT DISTINCT - 77 + - 49 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3397
SELECT ALL - col2 FROM tab1 WHERE - 83 + 99 * col2 NOT IN ( - CAST( col1 AS SIGNED ) )
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL - col2 FROM tab1 WHERE - 83 + 99 * col2 NOT IN ( - CAST ( col1 AS INTEGER ) )
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT ( - MIN( + ( col1 ) ) ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3398
SELECT ( - MIN ( + ( col1 ) ) ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT COUNT( ALL + + 17 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3400
SELECT COUNT ( ALL + + 17 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - - ( + 1 ) FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT col0 / col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT ALL - + 38, + col1 AS col0 FROM tab0 AS cor0
----
-38
1
-38
21
-38
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3404
SELECT col2 DIV 80 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3404
SELECT col2 / 80 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + ( 98 ) AS col1 FROM tab2
----
98

query I rowsort
SELECT col1 + - - 3 FROM tab0
----
24
4
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3407
SELECT + col2 + ( ( + - ( col1 ) ) ) DIV 20 AS col0 FROM tab0
----
43
9
99

skipif mysql # not compatible
query I rowsort label-3407
SELECT + col2 + ( ( + - ( col1 ) ) ) / 20 AS col0 FROM tab0
----
43
9
99

query I rowsort
SELECT - ( - col0 ) + - col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 16 * 57 AS col0 FROM tab0
----
912

query I rowsort
SELECT ( col0 ) FROM tab1 cor0 WHERE 84 IN ( - 20 + 35 )
----

query I rowsort
SELECT ALL + ( - + col2 ) * - col0 + + col1 * col1 + + 89 FROM tab0 AS cor0
----
1400
7355
9693

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT DISTINCT MIN( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3412
SELECT DISTINCT MIN ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3413
SELECT ALL 46 - + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0 WHERE + col2 IS NOT NULL AND NOT ( NULL ) > - 75
----

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL 46 - + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0 WHERE + col2 IS NOT NULL AND NOT ( NULL ) > - 75
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3414
SELECT DISTINCT + COUNT( * ), - MAX( DISTINCT + 40 ) * - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
3
120

skipif mysql # not compatible
query II rowsort label-3414
SELECT DISTINCT + COUNT ( * ), - MAX ( DISTINCT + 40 ) * - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3
120

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT + ( - - COUNT( * ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3415
SELECT + ( - - COUNT ( * ) ) AS col1 FROM tab0
----
3

query I rowsort
SELECT + ( 55 ) AS col2 FROM tab0
----
55
55
55

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3418
SELECT - CAST( 79 AS SIGNED ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

skipif mysql # not compatible
query I rowsort label-3418
SELECT - CAST ( 79 AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 + - 13 col0 FROM tab0 WHERE NOT NULL IN ( + 64 / 19 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3420
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NOT + 54 IN ( - - col1 + + col1 * + + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-3420
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NOT + 54 IN ( - - col1 + + col1 * + + CAST ( NULL AS REAL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3421
SELECT + 95 DIV - col0 + col1 AS col1 FROM tab0 AS cor0
----
1
20
75

skipif mysql # not compatible
query I rowsort label-3421
SELECT + 95 / - col0 + col1 AS col1 FROM tab0 AS cor0
----
1
20
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * + 33 - - col0 * 42 col0, + col1 AS col2 FROM tab1 AS cor0
----
1680
14
2271
47
3405
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT + + COUNT( + + 68 ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3423
SELECT + + COUNT ( + + 68 ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query II rowsort
SELECT - col1 + col2 AS col1, 81 FROM tab1 AS cor0
----
21
81
54
81
82
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3425
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( - col0 AS SIGNED ) >= - + 37
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-3425
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( - col0 AS INTEGER ) >= - + 37
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3426
SELECT CAST( NULL AS SIGNED ) * col2 + - col2 - + CAST( 82 AS SIGNED ) col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3426
SELECT CAST ( NULL AS INTEGER ) * col2 + - col2 - + CAST ( 82 AS INTEGER ) col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 16 AS col1 FROM tab2 AS cor0
----
16

query I rowsort
SELECT DISTINCT + col2 + + + col1 AS col2 FROM tab2 cor0 WHERE NOT - 16 + - - col1 >= + col2
----
125

query II rowsort
SELECT + col2 AS col0, - 91 AS col2 FROM tab2 WHERE - + ( col1 ) * - 28 IS NULL
----

query I rowsort
SELECT DISTINCT 13 + 44 AS col1 FROM tab2
----
57

query II rowsort
SELECT DISTINCT col0, + col2 FROM tab2 WHERE ( NULL ) IS NULL
----
46
23
64
40
75
58

query II rowsort
SELECT ALL - col1 AS col0, - col2 FROM tab2
----
-51
-23
-67
-58
-77
-40

query I rowsort
SELECT ALL col2 * + + col2 + - + col2 + - 96 FROM tab1
----
3326
4460
9024

onlyif mysql # DIV for integer division: 
query I rowsort label-3434
SELECT + - col1 DIV col2 + + 87 + col2 FROM tab2 AS cor0
----
108
126
144

skipif mysql # not compatible
query I rowsort label-3434
SELECT + - col1 / col2 + + 87 + col2 FROM tab2 AS cor0
----
108
126
144

query I rowsort
SELECT DISTINCT + + ( - col0 ) - - col2 FROM tab0 cor0
----
-77
2
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3436
SELECT DISTINCT + COUNT( * ) DIV - + 47 - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT + COUNT ( * ) / - + 47 - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3437
SELECT DISTINCT - AVG ( + CAST( NULL AS SIGNED ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3437
SELECT DISTINCT - AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

query II rowsort
SELECT 42 * col0 * 30 * col2 AS col1, 93 FROM tab1 AS cor0
----
6168960
93
6318900
93
7796880
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT DISTINCT + - MIN( + col2 ) * - - 81 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * + 64 AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT + - MIN ( + col2 ) * - - 81 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * + 64 AND col1
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * + - col2 + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + ( + + col1 ), 0 FROM tab2 AS cor0
----
51
0
67
0
77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT ALL - MIN( + - col0 ) AS col1 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL - MIN ( + - col0 ) AS col1 FROM tab2 cor0
----
75

query II rowsort
SELECT + ( 26 ) AS col0, + ( + col0 ) * + - col2 - + 11 + + col2 FROM tab1 AS cor0
----
26
-4811
26
-4967
26
-6131

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col1, col0 * + 99 )
----

query I rowsort
SELECT DISTINCT col2 * + 59 AS col2 FROM tab1 AS cor0
----
3481
4012
5664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3446
SELECT ALL col1 FROM tab0 WHERE - + 86 NOT IN ( 71 * 17 * + + col0, + col0 + - 47 + col0 + - col2 / - 29 * CAST( NULL AS SIGNED ) * + col2 )
----

skipif mysql # not compatible
query I rowsort label-3446
SELECT ALL col1 FROM tab0 WHERE - + 86 NOT IN ( 71 * 17 * + + col0, + col0 + - 47 + col0 + - col2 / - 29 * CAST ( NULL AS INTEGER ) * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3447
SELECT col2 FROM tab0 WHERE NOT ( CAST( - - CAST( 13 AS SIGNED ) AS SIGNED ) ) > NULL
----

skipif mysql # not compatible
query I rowsort label-3447
SELECT col2 FROM tab0 WHERE NOT ( CAST ( - - CAST ( 13 AS INTEGER ) AS INTEGER ) ) > NULL
----

query I rowsort
SELECT DISTINCT - 84 * + 46 FROM tab2
----
-3864

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3449
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST( + - 70 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3449
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST ( + - 70 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3450
SELECT DISTINCT 71 DIV + + 13 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3450
SELECT DISTINCT 71 / + + 13 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT MAX( 87 ) AS col0 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-3451
SELECT MAX ( 87 ) AS col0 FROM tab0
----
87

query I rowsort
SELECT col0 * - 39 FROM tab2
----
-1794
-2496
-2925

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT + MAX( 52 ) AS col2 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-3453
SELECT + MAX ( 52 ) AS col2 FROM tab0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT DISTINCT - COUNT( * ) * + 13 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT - COUNT ( * ) * + 13 FROM tab0
----
-39

query I rowsort
SELECT DISTINCT ( - 6 ) FROM tab2
----
-6

query I rowsort
SELECT ALL - 37 * - + col0 AS col1 FROM tab0 AS cor0
----
3219
3589
555

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IN ( col1 / col0, 8 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3458
SELECT DISTINCT + 61 DIV 91 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3458
SELECT DISTINCT + 61 / 91 FROM tab0
----
0

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 97 AS col2, + col0 col0 FROM tab1 AS cor0 WHERE NULL > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( + col0 * + col2 ) AND ( + + 4 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 44 / - col1 - + - 56 = - + col2 * + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 + + + 37 FROM tab1 AS cor0
----
-10
23
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3464
SELECT DISTINCT - MAX( - 9 ) DIV + COUNT( * ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3464
SELECT DISTINCT - MAX ( - 9 ) / + COUNT ( * ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3465
SELECT + CAST( NULL AS SIGNED ) + col2 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3465
SELECT + CAST ( NULL AS INTEGER ) + col2 col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3466
SELECT * FROM tab1 WHERE - - CAST( - 19 AS DECIMAL ) NOT IN ( + 15 + - + col2 + + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-3466
SELECT * FROM tab1 WHERE - - CAST ( - 19 AS REAL ) NOT IN ( + 15 + - + col2 + + CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT + 43 + col0 - + col0 + col1 * 5 FROM tab2
----
298
378
428

query I rowsort
SELECT col0 * + + col0 + + col0 + - - 11 + + col1 FROM tab0
----
332
7688
9518

onlyif mysql # DIV for integer division: 
query I rowsort label-3469
SELECT DISTINCT ( col0 ) DIV 76 * - col1 FROM tab0
----
-1
-21
0

skipif mysql # not compatible
query I rowsort label-3469
SELECT DISTINCT ( col0 ) / 76 * - col1 FROM tab0
----
-1
-21
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-3471
SELECT + 43 * - + 4 + + 97 AS col0, + ( + + COUNT( * ) ) FROM tab0
----
-75
3

skipif mysql # not compatible
query II rowsort label-3471
SELECT + 43 * - + 4 + + 97 AS col0, + ( + + COUNT ( * ) ) FROM tab0
----
-75
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT DISTINCT - COUNT( ALL + col2 ) + + + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3472
SELECT DISTINCT - COUNT ( ALL + col2 ) + + + COUNT ( * ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT 55 + + SUM( 75 ) AS col1 FROM tab0
----
280

skipif mysql # not compatible
query I rowsort label-3473
SELECT 55 + + SUM ( 75 ) AS col1 FROM tab0
----
280

query I rowsort
SELECT col1 FROM tab1 WHERE - + col1 IS NULL
----

query I rowsort
SELECT 20 * - + 33 + - ( - - 60 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 7eeeb5eae8ec6d5d723237a0cf42c298

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3476
SELECT col1 * CAST( NULL AS SIGNED ) + + col0 * - ( + col1 ) * - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3476
SELECT col1 * CAST ( NULL AS INTEGER ) + + col0 * - ( + col1 ) * - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT ALL 8 * + COUNT( * ) col2 FROM tab1
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3477
SELECT ALL 8 * + COUNT ( * ) col2 FROM tab1
----
24

query I rowsort
SELECT DISTINCT + col2 + - col0 - + col2 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN 95 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3479
SELECT * FROM tab1 WHERE NOT NULL <> - 94 + - CAST( NULL AS SIGNED ) + + 30 * + + 72 AND col0 NOT BETWEEN 39 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3479
SELECT * FROM tab1 WHERE NOT NULL <> - 94 + - CAST ( NULL AS INTEGER ) + + 30 * + + 72 AND col0 NOT BETWEEN 39 AND ( NULL )
----

query II rowsort
SELECT DISTINCT col0, - col1 FROM tab2 cor0
----
46
-51
64
-77
75
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col2, 57 col0 FROM tab0 AS cor0
----
1
57
21
57
81
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT + + COUNT( * ) * - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3482
SELECT + + COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT - MIN( DISTINCT + + col0 ) * + 2 + - COUNT( * ) FROM tab2 cor0 WHERE NOT 93 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3483
SELECT - MIN ( DISTINCT + + col0 ) * + 2 + - COUNT ( * ) FROM tab2 cor0 WHERE NOT 93 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT - MIN( + - 1 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3484
SELECT - MIN ( + - 1 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT ( + 51 ) AS col1 FROM tab1 AS cor0
----
51
51
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3486
SELECT ALL - col0 * ( col2 ) * + col2 * + CAST( NULL AS SIGNED ) + + col0 + + 46 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL - col0 * ( col2 ) * + col2 * + CAST ( NULL AS INTEGER ) + + col0 + + 46 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3487
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 11 * col1 * - CAST( 57 AS DECIMAL ) <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3487
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 11 * col1 * - CAST ( 57 AS REAL ) <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 15 <= NULL
----

query I rowsort
SELECT DISTINCT + + col1 + + col2 + - 83 + + + col1 AS col0 FROM tab0 WHERE - col1 IS NULL
----

query I rowsort
SELECT 25 * - + col1 * - - 10 - + ( + - col1 ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-11703
-1245
-3486

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT ALL + COUNT( - + ( + + col2 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL + COUNT ( - + ( + + col2 ) ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = + - ( col2 ) + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 * + col2 * col0 BETWEEN NULL AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT DISTINCT - COUNT( * ) * + MAX( col0 ) AS col2 FROM tab2 cor0
----
-225

skipif mysql # not compatible
query I rowsort label-3494
SELECT DISTINCT - COUNT ( * ) * + MAX ( col0 ) AS col2 FROM tab2 cor0
----
-225

onlyif mysql # DIV for integer division: 
query II rowsort label-3495
SELECT - col1 DIV - - col2, 40 AS col0 FROM tab2 cor0
----
-1
40
-1
40
-2
40

skipif mysql # not compatible
query II rowsort label-3495
SELECT - col1 / - - col2, 40 AS col0 FROM tab2 cor0
----
-1
40
-1
40
-2
40

query I rowsort
SELECT col1 * col2 + - - col0 AS col1 FROM tab1 AS cor0
----
1395
3287
380

query I rowsort
SELECT DISTINCT col2 * + 25 AS col1 FROM tab2
----
1000
1450
575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3498
SELECT 78 DIV + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
8

skipif mysql # not compatible
query I rowsort label-3498
SELECT 78 / + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3499
SELECT DISTINCT - COUNT( * ) * - + CAST( NULL AS SIGNED ) col0 FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3499
SELECT DISTINCT - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) col0 FROM tab1, tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT DISTINCT COUNT( * ) + - MIN( ALL col0 ) FROM tab1 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-3500
SELECT DISTINCT COUNT ( * ) + - MIN ( ALL col0 ) FROM tab1 cor0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3501
SELECT col1 + + col2 * 28 AS col0, + CAST( NULL AS SIGNED ) * - 12 + - + CAST( - + col1 AS SIGNED ) FROM tab0 AS cor0
----
1397
NULL
2773
NULL
301
NULL

skipif mysql # not compatible
query II rowsort label-3501
SELECT col1 + + col2 * 28 AS col0, + CAST ( NULL AS INTEGER ) * - 12 + - + CAST ( - + col1 AS INTEGER ) FROM tab0 AS cor0
----
1397
NULL
2773
NULL
301
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT COUNT( * ) + - + 15 AS col1 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3502
SELECT COUNT ( * ) + - + 15 AS col1 FROM tab0 AS cor0
----
-12

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * - col0 * + col2 >= 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT DISTINCT - COUNT( * ) FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - - col2 * 95
----
0

skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT - COUNT ( * ) FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - - col2 * 95
----
0

query I rowsort
SELECT - col0 + - + col0 * + + 2 AS col0 FROM tab1 AS cor0
----
-153
-255
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT DISTINCT 85 + + COUNT( ALL + col0 ) FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT 85 + + COUNT ( ALL + col0 ) FROM tab0 AS cor0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3507
SELECT DISTINCT 52 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3507
SELECT DISTINCT 52 / - col1 AS col0 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT + col0 * - col2 * + col1 FROM tab0 AS cor0
----
-18270
-57105
-9603

query I rowsort
SELECT 46 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT 51 AS col1, ( - 51 ) + col0 FROM tab2
----
51
-5
51
13
51
24

query II rowsort
SELECT ALL - 86 AS col2, col2 AS col2 FROM tab2
----
-86
23
-86
40
-86
58

query I rowsort
SELECT col0 - + col0 + + 32 * - + 41 FROM tab2
----
-1312
-1312
-1312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3513
SELECT ALL + - 54 + CAST( col1 AS SIGNED ) + - 52 + + - col0 FROM tab1 AS cor0
----
-143
-150
-186

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL + - 54 + CAST ( col1 AS INTEGER ) + - 52 + + - col0 FROM tab1 AS cor0
----
-143
-150
-186

query I rowsort
SELECT - col2 + + ( + 70 ) FROM tab1 cor0
----
-26
11
2

query I rowsort
SELECT ALL col0 + + col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
102
170
182

query I rowsort
SELECT DISTINCT - 4 - + 96 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3517
SELECT DISTINCT CAST( + 61 AS SIGNED ) AS col0 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-3517
SELECT DISTINCT CAST ( + 61 AS INTEGER ) AS col0 FROM tab0
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3518
SELECT MIN( ALL + 10 ) DIV + COUNT( * ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3518
SELECT MIN ( ALL + 10 ) / + COUNT ( * ) AS col1 FROM tab0
----
3

query I rowsort
SELECT - 30 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT - col2 * + + col0 FROM tab2 cor0
----
-1058
-2560
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-3521
SELECT - + 76 * - - col1 + + col2 * col0 DIV 74 FROM tab2 AS cor0
----
-3862
-5034
-5818

skipif mysql # not compatible
query I rowsort label-3521
SELECT - + 76 * - - col1 + + col2 * col0 / 74 FROM tab2 AS cor0
----
-3862
-5034
-5818

query I rowsort
SELECT - + col2 * + col1 * + col2 FROM tab1 AS cor0
----
-129024
-17405
-217328

query I rowsort
SELECT ALL - - 20 * - 3 * - col1 + + col2 FROM tab1 AS cor0
----
2888
359
936

query I rowsort
SELECT ALL - col1 * + col0 * + - col1 * + + ( 43 ) AS col0 FROM tab0 cor0
----
1649781
4171
4231845

onlyif mysql # aggregate syntax: 
query II rowsort label-3525
SELECT - COUNT( * ) AS col0, - 50 AS col0 FROM tab1
----
-3
-50

skipif mysql # not compatible
query II rowsort label-3525
SELECT - COUNT ( * ) AS col0, - 50 AS col0 FROM tab1
----
-3
-50

query I rowsort
SELECT DISTINCT ( + - ( - 95 ) ) FROM tab1
----
95

query I rowsort
SELECT - 39 * - col2 AS col1 FROM tab0
----
1833
3861
390

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * - - col2 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT 91 + - ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
91

skipif mysql # not compatible
query I rowsort label-3529
SELECT 91 + - ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3530
SELECT CAST( - col2 AS SIGNED ) * + + col2 FROM tab2
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-3530
SELECT CAST ( - col2 AS INTEGER ) * + + col2 FROM tab2
----
-1600
-3364
-529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + 1 ) col2, col1 + + + 81 AS col1 FROM tab1
----
1
128
1
86
1
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3532
SELECT CAST( NULL AS SIGNED ) * - 59 AS col1, col1 + col2 + - + ( + - 49 ) FROM tab0
----
NULL
149
NULL
177
NULL
80

skipif mysql # not compatible
query II rowsort label-3532
SELECT CAST ( NULL AS INTEGER ) * - 59 AS col1, col1 + col2 + - + ( + - 49 ) FROM tab0
----
NULL
149
NULL
177
NULL
80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3533
SELECT DISTINCT CAST( col1 AS SIGNED ) + + col1 + + - col1 DIV + col2 FROM tab0 AS cor0
----
161
2
40

skipif mysql # not compatible
query I rowsort label-3533
SELECT DISTINCT CAST ( col1 AS INTEGER ) + + col1 + + - col1 / + col2 FROM tab0 AS cor0
----
161
2
40

query I rowsort
SELECT ALL - col0 - - - 13 * - - 98 AS col1 FROM tab2 AS cor0
----
-1320
-1338
-1349

query I rowsort
SELECT + col1 * + col0 + - col0 + 52 AS col0 FROM tab2 AS cor0
----
2352
4916
5002

query I rowsort
SELECT col0 + ( + 50 ) FROM tab0
----
137
147
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT COUNT( * ) * + - 95 * - + COUNT( * ) + + COUNT( * ) AS col2 FROM tab2
----
858

skipif mysql # not compatible
query I rowsort label-3537
SELECT COUNT ( * ) * + - 95 * - + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2
----
858

query I rowsort
SELECT + 62 + + + col1 AS col0 FROM tab1
----
109
67
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT + SUM( - col0 ) + COUNT( * ) col2 FROM tab2
----
-182

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3539
SELECT + SUM ( - col0 ) + COUNT ( * ) col2 FROM tab2
----
-182

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3540
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) <= + 47
----

skipif mysql # not compatible
query III rowsort label-3540
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) <= + 47
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3541
SELECT - 29 + + ( + col0 ) - + - col0 + + + col1 + + 82 + + col1 DIV col1 * - col2 FROM tab2
----
173
212
218

skipif mysql # not compatible
query I rowsort label-3541
SELECT - 29 + + ( + col0 ) - + - col0 + + + col1 + + 82 + + col1 / col1 * - col2 FROM tab2
----
173
212
218

query I rowsort
SELECT ( - - col0 ) * - 13 FROM tab1
----
-1105
-1183
-663

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT DISTINCT MAX( DISTINCT - col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT MAX ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-3544
SELECT + col1, - col2 DIV - - 71 AS col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-3544
SELECT + col1, - col2 / - - 71 AS col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

query II rowsort
SELECT + col1, 25 * col2 * - - col0 * - ( - col1 ) FROM tab1 AS cor0
----
14
1713600
47
7270900
5
626875

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT DISTINCT + MIN( ALL + + ( + + 65 ) ) FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT + MIN ( ALL + + ( + + 65 ) ) FROM tab0 AS cor0
----
65

onlyif mysql # DIV for integer division: 
query II rowsort label-3547
SELECT DISTINCT - 75 AS col1, + 34 DIV + col0 AS col0 FROM tab0
----
-75
0
-75
2

skipif mysql # not compatible
query II rowsort label-3547
SELECT DISTINCT - 75 AS col1, + 34 / + col0 AS col0 FROM tab0
----
-75
0
-75
2

query I rowsort
SELECT + 83 * + col0 AS col0 FROM tab2
----
3818
5312
6225

onlyif mysql # DIV for integer division: 
query I rowsort label-3549
SELECT DISTINCT 70 DIV + col1 AS col1 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-3549
SELECT DISTINCT 70 / + col1 AS col1 FROM tab2
----
0
1

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 78 IS NOT NULL
----

query I rowsort
SELECT - ( + ( + col2 ) ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3552
SELECT + col1 DIV + ( + 94 ) AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3552
SELECT + col1 / + ( + 94 ) AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT COUNT( DISTINCT 2 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3553
SELECT COUNT ( DISTINCT 2 ) FROM tab2 AS cor0
----
1

query II rowsort
SELECT col2, - ( col0 ) - + col0 * + col2 AS col1 FROM tab1 cor0
----
59
-5100
68
-6279
96
-4947

query II rowsort
SELECT + 73 AS col0, - 59 FROM tab1 AS cor0
----
73
-59
73
-59
73
-59

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( - 12 * + + col1 * + - col1 * - 95 )
----

query I rowsort
SELECT - 12 * + + col2 FROM tab1 WHERE NOT ( NULL ) IS NULL AND NOT NULL >= 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT DISTINCT + + COUNT( DISTINCT - + col1 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3558
SELECT DISTINCT + + COUNT ( DISTINCT - + col1 ) AS col1 FROM tab2 cor0
----
3

query I rowsort
SELECT ALL - 75 + 14 AS col0 FROM tab2 cor0 WHERE ( NOT + 76 / + + col2 + col2 NOT IN ( - col1 + + - col0 ) )
----

query I rowsort
SELECT ALL + + col0 * + + col2 + col1 + - 96 FROM tab1 AS cor0
----
4814
4924
6139

query I rowsort
SELECT + + col2 * - 8 * 34 + col2 AS col0 FROM tab0 AS cor0
----
-12737
-26829
-2710

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3562
SELECT + - COUNT( * ) * COUNT( * ) DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3562
SELECT + - COUNT ( * ) * COUNT ( * ) / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3563
SELECT - CAST( - col0 AS SIGNED ) + ( col0 ) AS col1 FROM tab1 AS cor0
----
102
170
182

skipif mysql # not compatible
query I rowsort label-3563
SELECT - CAST ( - col0 AS INTEGER ) + ( col0 ) AS col1 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT + col1 + + ( - 29 ) + col2 AS col2 FROM tab2
----
45
88
96

query I rowsort
SELECT DISTINCT col1 * 40 * + + col0 + + + col1 FROM tab0
----
3881
48681
73101

query I rowsort
SELECT col1 + - col2 + - 20 FROM tab2
----
-11
17
8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - 98 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3568
SELECT DISTINCT ( + col2 ) + - col0, + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 cor0
----
-77
NULL
2
NULL
32
NULL

skipif mysql # not compatible
query II rowsort label-3568
SELECT DISTINCT ( + col2 ) + - col0, + CAST ( NULL AS REAL ) AS col0 FROM tab0 cor0
----
-77
NULL
2
NULL
32
NULL

query II rowsort
SELECT - - 50, ( + - col2 ) AS col0 FROM tab0 AS cor0
----
50
-10
50
-47
50
-99

query II rowsort
SELECT col2, + 73 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
23
73
40
73
58
73

query II rowsort
SELECT + - 85, col1 FROM tab0 AS cor0
----
-85
1
-85
21
-85
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 <= + 8
----

query I rowsort
SELECT DISTINCT + 87 + + + 31 AS col2 FROM tab1 AS cor0
----
118

query I rowsort
SELECT ALL - + 62 - - 62 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 66 AS col1, - col0 + - - col1 + ( + col1 ) col1 FROM tab0 AS cor0 WHERE NOT + 39 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 * + + col2 col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL - + 67 - + col1 FROM tab0 AS cor0
----
-148
-68
-88

query III rowsort
SELECT * FROM tab0 WHERE 97 BETWEEN col0 - + col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - ( + col0 ) * - - ( - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT ALL ( 51 ) * + - COUNT( * ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-3580
SELECT ALL ( 51 ) * + - COUNT ( * ) FROM tab1
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-3581
SELECT col2 - - + 14 DIV col2 FROM tab0
----
11
47
99

skipif mysql # not compatible
query I rowsort label-3581
SELECT col2 - - + 14 / col2 FROM tab0
----
11
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3582
SELECT ALL 12 DIV + + ( - COUNT( * ) ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL 12 / + + ( - COUNT ( * ) ) FROM tab0
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - col1 col0 FROM tab2 WHERE NOT 90 IS NULL
----
-2346
-4928
-5025

query I rowsort
SELECT ALL + 50 * - col0 FROM tab2
----
-2300
-3200
-3750

query I rowsort
SELECT DISTINCT 52 * - - ( + 62 ) + ( + - col0 ) AS col1 FROM tab1 AS cor0
----
3133
3139
3173

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3586
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col0 + - ( - - CAST( NULL AS SIGNED ) ) * + + col0 )
----

skipif mysql # not compatible
query III rowsort label-3586
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col0 + - ( - - CAST ( NULL AS INTEGER ) ) * + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT DISTINCT + MAX( - col1 ) col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3587
SELECT DISTINCT + MAX ( - col1 ) col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT 98 * + col0 FROM tab0
----
1470
8526
9506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3589
SELECT CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3589
SELECT CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2 AS col1, col0 * col0 FROM tab2 AS cor0
----
23
2116
40
4096
58
5625

query I rowsort
SELECT 76 * 76 FROM tab0 AS cor0
----
5776
5776
5776

query I rowsort
SELECT - col0 * - 99 AS col1 FROM tab2 AS cor0
----
4554
6336
7425

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT ALL + - SUM( col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3593
SELECT ALL + - SUM ( col0 ) AS col1 FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT DISTINCT + ( - - SUM( - col0 ) ) * - + COUNT( * ) FROM tab2 AS cor0
----
555

skipif mysql # not compatible
query I rowsort label-3594
SELECT DISTINCT + ( - - SUM ( - col0 ) ) * - + COUNT ( * ) FROM tab2 AS cor0
----
555

query II rowsort
SELECT 57, 55 AS col2 FROM tab0
----
57
55
57
55
57
55

query I rowsort
SELECT 58 * - - 16 + + - 12 FROM tab2
----
916
916
916

query I rowsort
SELECT ALL col0 + - - col2 * - col0 AS col2 FROM tab2
----
-1012
-2496
-4275

query I rowsort
SELECT - ( col2 ) + - col2 - - col0 * col1 + + 44 FROM tab2
----
2344
4892
4953

query I rowsort
SELECT 89 * + + col1 + col2 FROM tab1
----
1342
4251
504

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE ( col2 ) > col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3601
SELECT + col1 * - CAST( NULL AS SIGNED ) col2, ( - col1 ) FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3601
SELECT + col1 * - CAST ( NULL AS INTEGER ) col2, ( - col1 ) FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

query I rowsort
SELECT + ( + - 20 ) AS col1 FROM tab2
----
-20
-20
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-3603
SELECT ALL - 47 * - + 45 * + - 95 + - - 39 DIV + - col0 + col1 FROM tab1 AS cor0
----
-200878
-200911
-200920

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL - 47 * - + 45 * + - 95 + - - 39 / + - col0 + col1 FROM tab1 AS cor0
----
-200878
-200911
-200920

query I rowsort
SELECT ALL 15 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
15
15

query I rowsort
SELECT DISTINCT + 37 + col1 * + col0 + - col0 AS col2 FROM tab0 AS cor0 WHERE NULL < ( col2 / - col0 )
----

query I rowsort
SELECT DISTINCT col0 - + 9 FROM tab1 AS cor0
----
42
76
82

query I rowsort
SELECT ALL - 18 * - 93 AS col1 FROM tab0
----
1674
1674
1674

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT - COUNT( ALL - 11 ) * + MIN( - col0 ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-3608
SELECT - COUNT ( ALL - 11 ) * + MIN ( - col0 ) FROM tab2
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT ALL + COUNT( + col2 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3609
SELECT ALL + COUNT ( + col2 ) col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT + MAX( col0 ) * 16 FROM tab0
----
1552

skipif mysql # not compatible
query I rowsort label-3610
SELECT + MAX ( col0 ) * 16 FROM tab0
----
1552

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT DISTINCT + 24 * + + COUNT( * ) AS col0 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT + 24 * + + COUNT ( * ) AS col0 FROM tab2
----
72

query II rowsort
SELECT ALL - col0 AS col0, col0 * - - col0 * + - col1 FROM tab0
----
-15
-18225
-87
-158949
-97
-9409

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( - - ( col2 ), + ( + col2 ), col2, - col1 - + + col1 - col1 * col2 * 19, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT + COUNT( ALL 71 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3614
SELECT + COUNT ( ALL 71 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL ( 4 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3616
SELECT DISTINCT - CAST( + + col1 AS SIGNED ) AS col0, + ( + - col2 ) FROM tab0 cor0
----
-1
-99
-21
-10
-81
-47

skipif mysql # not compatible
query II rowsort label-3616
SELECT DISTINCT - CAST ( + + col1 AS INTEGER ) AS col0, + ( + - col2 ) FROM tab0 cor0
----
-1
-99
-21
-10
-81
-47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * + + col1 * - - col0 >= 47
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3618
SELECT - CAST( NULL AS SIGNED ) / - col1 + + + 1 + + - col2 + - + col1 + 39 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3618
SELECT - CAST ( NULL AS INTEGER ) / - col1 + + + 1 + + - col2 + - + col1 + 39 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + - 14 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col2 * + col2 * + 35 FROM tab2 AS cor0
----
-117740
-18515
-56000

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 83 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3622
SELECT DISTINCT - col0 DIV + col2 + + 11 AS col2 FROM tab0 AS cor0
----
11
3

skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT - col0 / + col2 + + 11 AS col2 FROM tab0 AS cor0
----
11
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT ALL 66 * - + COUNT( * ) FROM tab0 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL 66 * - + COUNT ( * ) FROM tab0 AS cor0
----
-198

onlyif mysql # aggregate syntax: 
query II rowsort label-3624
SELECT + COUNT( * ) * - COUNT( * ) col0, 57 AS col1 FROM tab1 AS cor0
----
-9
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3624
SELECT + COUNT ( * ) * - COUNT ( * ) col0, 57 AS col1 FROM tab1 AS cor0
----
-9
57

query I rowsort
SELECT ( col0 ) - + 78 - + - col1 FROM tab0 AS cor0
----
18
20
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT DISTINCT - 80 + - + COUNT( * ) FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-3626
SELECT DISTINCT - 80 + - + COUNT ( * ) FROM tab1
----
-83

query I rowsort
SELECT - + 77 * - col2 + + - 22 AS col1 FROM tab2 AS cor0
----
1749
3058
4444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3628
SELECT DISTINCT - ( - col0 ) - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT DISTINCT - ( - col0 ) - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 + + ( 26 ) + + 3 * - 44 AS col0 FROM tab1 AS cor0
----
-111
-120
-153

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3630
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) - col2 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3630
SELECT DISTINCT - - CAST ( NULL AS REAL ) - col2 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3631
SELECT - 51, MIN( ALL 1 ) AS col2 FROM tab0 AS cor0
----
-51
1

skipif mysql # not compatible
query II rowsort label-3631
SELECT - 51, MIN ( ALL 1 ) AS col2 FROM tab0 AS cor0
----
-51
1

query I rowsort
SELECT DISTINCT - 13 * + 20 + + 48 FROM tab0 cor0
----
-212

query I rowsort
SELECT ( ( - col2 ) ) AS col0 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT ALL + COUNT( * ) * MAX( + + col0 ) FROM tab2 cor0
----
225

skipif mysql # not compatible
query I rowsort label-3634
SELECT ALL + COUNT ( * ) * MAX ( + + col0 ) FROM tab2 cor0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT + COUNT( * ) * - 29 AS col2 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-3635
SELECT + COUNT ( * ) * - 29 AS col2 FROM tab0
----
-87

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * 33 IS NOT NULL
----

query I rowsort
SELECT ALL + - col0 * - + col1 - + 23 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3638
SELECT + col1 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-3638
SELECT + col1 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) >= NULL
----

query II rowsort
SELECT + col0 AS col2, - 24 FROM tab1
----
51
-24
85
-24
91
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-3640
SELECT DISTINCT - 39, COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-39
9

skipif mysql # not compatible
query II rowsort label-3640
SELECT DISTINCT - 39, COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-39
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT + 66 + ( + COUNT( * ) ) FROM tab1, tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3641
SELECT + 66 + ( + COUNT ( * ) ) FROM tab1, tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT DISTINCT - COUNT( - - col1 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3642
SELECT DISTINCT - COUNT ( - - col1 ) AS col0 FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 + - col1 <> + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + 86 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-86

query I rowsort
SELECT ALL - col2 * + col0 - + col2 + col0 * + - 5 FROM tab1 AS cor0
----
-5247
-5499
-6711

query I rowsort
SELECT ALL col0 + 96 AS col2 FROM tab1 AS cor0 WHERE NOT + 41 * - - 55 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 78 * - + col2 + - col1 FROM tab0 AS cor0
----
-3747
-7723
-801

query II rowsort
SELECT + col0 * + - col2 + + col1 AS col0, col1 - + ( col1 ) * - 40 * - col1 * - - 51 * - col0 + + + col2 FROM tab2 AS cor0
----
-1007
244077914
-2483
774090357
-4283
686817125

query I rowsort
SELECT ALL col2 + + col2 + + 88 FROM tab1 AS cor0
----
206
224
280

query I rowsort
SELECT ALL 45 * + col0 FROM tab0 cor0
----
3915
4365
675

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3651
SELECT ALL + + CAST( 13 AS SIGNED ) DIV - 70 * - col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3651
SELECT ALL + + CAST ( 13 AS INTEGER ) / - 70 * - col1 FROM tab2 cor0
----
0
0
0

query II rowsort
SELECT ALL 67 * + + col0 AS col0, + 38 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3082
38
4288
38
5025
38

onlyif mysql # DIV for integer division: 
query I rowsort label-3653
SELECT ALL - + col2 DIV - - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL - + col2 / - - col1 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL + 55, col1 * - col1 AS col2 FROM tab1 AS cor0
----
55
-196
55
-2209
55
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT ALL COUNT( * ) + + 87 FROM tab0 cor0
----
90

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL COUNT ( * ) + + 87 FROM tab0 cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3656
SELECT CAST( col2 AS SIGNED ) + - col0 AS col2 FROM tab1
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-3656
SELECT CAST ( col2 AS INTEGER ) + - col0 AS col2 FROM tab1
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT DISTINCT + SUM( - ( - 49 ) ) AS col2 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-3657
SELECT DISTINCT + SUM ( - ( - 49 ) ) AS col2 FROM tab2
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-3658
SELECT ALL 38 + + + col1 + col0 DIV + 13 FROM tab1
----
49
55
92

skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL 38 + + + col1 + col0 / + 13 FROM tab1
----
49
55
92

query I rowsort
SELECT - col0 + col0 * - 59 FROM tab1
----
-3060
-5100
-5460

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT ALL 5 + MAX( ALL - ( - col2 ) ) AS col1 FROM tab1
----
101

skipif mysql # not compatible
query I rowsort label-3660
SELECT ALL 5 + MAX ( ALL - ( - col2 ) ) AS col1 FROM tab1
----
101

query I rowsort
SELECT DISTINCT + + 59 + - + col2 * 37 AS col1 FROM tab0 AS cor0
----
-1680
-311
-3604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3662
SELECT ( + + col0 ) + + - CAST( - 17 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
102
108
68

skipif mysql # not compatible
query I rowsort label-3662
SELECT ( + + col0 ) + + - CAST ( - 17 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
102
108
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT DISTINCT - 60 * - - 26 - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-1557

skipif mysql # not compatible
query I rowsort label-3663
SELECT DISTINCT - 60 * - - 26 - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-1557

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT DISTINCT - MIN( DISTINCT - col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3664
SELECT DISTINCT - MIN ( DISTINCT - col1 ) FROM tab1
----
47

query I rowsort
SELECT ALL + - 41 AS col0 FROM tab0 cor0
----
-41
-41
-41

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 38 * - 29 + + + 8 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = - col1 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT ALL - MIN( + col1 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3668
SELECT ALL - MIN ( + col1 ) FROM tab0 cor0
----
-1

query I rowsort
SELECT DISTINCT col2 * - - col0 * 99 FROM tab1 AS cor0
----
484704
496485
612612

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT + SUM( DISTINCT - 56 ) FROM tab2 cor0
----
-56

skipif mysql # not compatible
query I rowsort label-3670
SELECT + SUM ( DISTINCT - 56 ) FROM tab2 cor0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT ALL + SUM( ALL col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3671
SELECT ALL + SUM ( ALL col2 ) FROM tab2
----
121

query I rowsort
SELECT + 2 * - col0 AS col0 FROM tab1 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT + col1, - 45 - - - col0 - - ( 87 ) AS col2 FROM tab2
----
51
-4
67
-33
77
-22

query II rowsort
SELECT - ( + col2 ) AS col0, col2 + 61 + - + col1 AS col1 FROM tab1
----
-59
115
-68
82
-96
143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 60, 90 col2 FROM tab0
----
-60
90
-60
90
-60
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT DISTINCT - MIN( DISTINCT - + col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT - MIN ( DISTINCT - + col2 ) FROM tab2
----
58

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3678
SELECT ALL CAST( - + SUM( + + CAST( col0 AS SIGNED ) ) AS SIGNED ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL CAST ( - + SUM ( + + CAST ( col0 AS INTEGER ) ) AS INTEGER ) AS col1 FROM tab0
----
-199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, + col2 * - + 56 FROM tab1 AS cor0
----
-51
-5376
-85
-3304
-91
-3808

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 = - + 5
----

query I rowsort
SELECT ( - 35 ) FROM tab1 AS cor0
----
-35
-35
-35

query II rowsort
SELECT DISTINCT + 6, - 85 AS col1 FROM tab1 AS cor0
----
6
-85

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT - 54 IS NULL
----
10
47
99

query II rowsort
SELECT - 78 + + - col0 AS col1, - col1 FROM tab2 WHERE NOT + - col2 BETWEEN + 75 AND + - col2
----
-124
-51
-142
-77
-153
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3685
SELECT ALL - CAST( - - col1 AS SIGNED ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL - CAST ( - - col1 AS INTEGER ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT - col0 + 90 AS col1 FROM tab1
----
-1
39
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( col2 ) BETWEEN + 9 AND - 57 + - 93
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) + 39 + - col1 col1 FROM tab1 AS cor0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT ALL - COUNT( col1 ) + - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3689
SELECT ALL - COUNT ( col1 ) + - COUNT ( * ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT + col2 + 39 AS col1 FROM tab2 AS cor0
----
62
79
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3691
SELECT ALL + col1 / - - col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3691
SELECT ALL + col1 / - - col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3692
SELECT 94 DIV + - col2 FROM tab0 AS cor0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-3692
SELECT 94 / + - col2 FROM tab0 AS cor0
----
-2
-9
0

query I rowsort
SELECT ALL - - ( - col1 ) + + 7 AS col2 FROM tab0 AS cor0
----
-14
-74
6

query III rowsort
SELECT * FROM tab2 WHERE NULL > + 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT DISTINCT - 40 * + + 41 * - MAX( col1 ) FROM tab0
----
132840

skipif mysql # not compatible
query I rowsort label-3695
SELECT DISTINCT - 40 * + + 41 * - MAX ( col1 ) FROM tab0
----
132840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * col2 + - col0, - col2 col0 FROM tab1
----
4845
-96
4930
-59
6097
-68

query I rowsort
SELECT DISTINCT + 13 + + + 92 * col1 - + 17 AS col2 FROM tab2
----
4688
6160
7080

query I rowsort
SELECT ALL - col2 + + - 68 * col0 AS col2 FROM tab1
----
-3564
-5839
-6256

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT ALL + COUNT( * ) + + MAX( + 11 ) * + 43 + + 68 * + COUNT( ALL + 34 ) AS col2 FROM tab1
----
680

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL + COUNT ( * ) + + MAX ( + 11 ) * + 43 + + 68 * + COUNT ( ALL + 34 ) AS col2 FROM tab1
----
680

query II rowsort
SELECT col0 - - ( - col0 ) AS col1, col2 AS col1 FROM tab1 AS cor0
----
0
59
0
68
0
96

query I rowsort
SELECT DISTINCT + col1 + 87 + - + col1 * + 95 + 14 FROM tab0 AS cor0
----
-1873
-7513
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3702
SELECT MIN( - col2 ) * - 1 + + - COUNT( * ) AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
93
NULL

skipif mysql # not compatible
query II rowsort label-3702
SELECT MIN ( - col2 ) * - 1 + + - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
93
NULL

query III rowsort
SELECT * FROM tab2 WHERE 39 + + + col2 * - 22 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3704
SELECT 27 * - AVG ( DISTINCT col2 ) AS col1, COUNT( * ) FROM tab2 WHERE 34 + + 88 + - col1 = - col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3704
SELECT 27 * - AVG ( DISTINCT col2 ) AS col1, COUNT ( * ) FROM tab2 WHERE 34 + + 88 + - col1 = - col0
----
NULL
0

query II rowsort
SELECT DISTINCT 88 - - 15, - col0 + + col0 AS col1 FROM tab2
----
103
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT MAX( ALL - - 90 ) FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-3706
SELECT MAX ( ALL - - 90 ) FROM tab0 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT 68 * MAX( - ( - + col2 ) ) AS col1 FROM tab2 AS cor0
----
3944

skipif mysql # not compatible
query I rowsort label-3707
SELECT 68 * MAX ( - ( - + col2 ) ) AS col1 FROM tab2 AS cor0
----
3944

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + - col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3709
SELECT DISTINCT - AVG ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT - AVG ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3710
SELECT DISTINCT - - 4 DIV - 69 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3710
SELECT DISTINCT - - 4 / - 69 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - 8 AS col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT + MIN( DISTINCT + 17 ) FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-3712
SELECT + MIN ( DISTINCT + 17 ) FROM tab2 AS cor0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3713
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3713
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 80 AS col1 FROM tab0 WHERE 84 IS NOT NULL
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT ALL SUM( DISTINCT - 32 ) FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL SUM ( DISTINCT - 32 ) FROM tab0
----
-32

query III rowsort
SELECT * FROM tab0 WHERE NOT - 96 = NULL
----

query I rowsort
SELECT 32 * - + 3 FROM tab0
----
-96
-96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 col1 FROM tab0
----
87
87
87

query I rowsort
SELECT DISTINCT col2 + + - col0 * 46 AS col2 FROM tab0 AS cor0
----
-3992
-4363
-643

query II rowsort
SELECT + - 25, col1 AS col1 FROM tab1 AS cor0
----
-25
14
-25
47
-25
5

query I rowsort
SELECT ALL - ( 43 ) FROM tab1 cor0
----
-43
-43
-43

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT - - col0 IS NULL )
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 - + ( + + col0 ) >= + 5
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3725
SELECT col1, + col0 * CAST( NULL AS SIGNED ) + - col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-3725
SELECT col1, + col0 * CAST ( NULL AS INTEGER ) + - col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT + + COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3726
SELECT + + COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT + 68 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
68
68
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3728
SELECT DISTINCT - col1 DIV - col0 + - 8 FROM tab0 AS cor0
----
-3
-8

skipif mysql # not compatible
query I rowsort label-3728
SELECT DISTINCT - col1 / - col0 + - 8 FROM tab0 AS cor0
----
-3
-8

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 48 * - 32 * + col2 IS NOT NULL
----

query I rowsort
SELECT + col1 + - + ( + col2 ) AS col1 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT col2 + + + col1 + + + col2 AS col0 FROM tab2 cor0
----
157
183
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 * + col2 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + 72 AS col1 FROM tab0
----
153
73
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3734
SELECT CAST( - col0 AS SIGNED ) + - col2 * col1 FROM tab1
----
-1395
-3287
-380

skipif mysql # not compatible
query I rowsort label-3734
SELECT CAST ( - col0 AS INTEGER ) + - col2 * col1 FROM tab1
----
-1395
-3287
-380

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab0 WHERE NOT 53 BETWEEN + col0 AND col2
----
-1
-21
-81

query I rowsort
SELECT + ( - col0 ) AS col2 FROM tab1 WHERE - - ( - + col2 ) * - 71 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + 44 * 76 * - 61 FROM tab1 AS cor0
----
10403184
17338640
18562544

query I rowsort
SELECT - + 5 AS col0 FROM tab2 AS cor0
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT DISTINCT COUNT( * ) * - COUNT( * ) * 55 AS col0 FROM tab1 AS cor0
----
-495

skipif mysql # not compatible
query I rowsort label-3739
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) * 55 AS col0 FROM tab1 AS cor0
----
-495

query I rowsort
SELECT ALL + - 21 AS col1 FROM tab1 AS cor0
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-3741
SELECT DISTINCT COUNT( * ) AS col0, - 55 FROM tab0
----
3
-55

skipif mysql # not compatible
query II rowsort label-3741
SELECT DISTINCT COUNT ( * ) AS col0, - 55 FROM tab0
----
3
-55

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-10
-47
-99

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT + 50, + col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 21, col0 AS col1 FROM tab2 AS cor0
----
21
46
21
64
21
75

query I rowsort
SELECT - 36 FROM tab2 AS cor0 WHERE NOT ( NOT ( + col2 + ( + 37 ) IS NOT NULL ) )
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT + COUNT( + 78 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3747
SELECT + COUNT ( + 78 ) AS col1 FROM tab1 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 47 <= + + 41 * - col1 + - ( + ( 84 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT DISTINCT - ( - 28 ) * - COUNT( * ) + - ( - COUNT( ALL + col2 ) ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT - ( - 28 ) * - COUNT ( * ) + - ( - COUNT ( ALL + col2 ) ) FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT + SUM( ALL + + col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3750
SELECT + SUM ( ALL + + col2 ) AS col1 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 <> + col2 * + col2
----
0

skipif mysql # not compatible
query I rowsort label-3751
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 <> + col2 * + col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3752
SELECT DISTINCT - + 38 * - CAST( NULL AS SIGNED ) * - + col0 + + col2 - - col2 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3752
SELECT DISTINCT - + 38 * - CAST ( NULL AS INTEGER ) * - + col0 + + col2 - - col2 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ( - + 6 ) AS col1 FROM tab0
----
-6
-6
-6

query II rowsort
SELECT DISTINCT - ( + col1 ) AS col2, + ( + 57 ) FROM tab1
----
-14
57
-47
57
-5
57

query III rowsort
SELECT * FROM tab2 WHERE NOT - 13 * - - 36 + + 5 * + + ( - col1 ) BETWEEN NULL AND - col1 * + - 98 - col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( - + col2 ) BETWEEN + col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + ( 0 ) <= + col0 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT + SUM( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3758
SELECT + SUM ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT - MIN( - col2 ) col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3759
SELECT - MIN ( - col2 ) col0 FROM tab2 AS cor0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3760
SELECT - col0 DIV + - 72 AS col0 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3760
SELECT - col0 / + - 72 AS col0 FROM tab0
----
0
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3761
SELECT ALL - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3762
SELECT * FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NULL = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-3762
SELECT * FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NULL = + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3763
SELECT ALL CAST( + col0 AS SIGNED ) + - + col2 AS col2 FROM tab0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL CAST ( + col0 AS INTEGER ) + - + col2 AS col2 FROM tab0
----
-2
-32
77

query I rowsort
SELECT - + col0 FROM tab0 WHERE col0 IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3765
SELECT + + 86 / CAST( NULL AS SIGNED ) + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3765
SELECT + + 86 / CAST ( NULL AS INTEGER ) + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 42 + + 49 AS col1 FROM tab1 AS cor0
----
7

query I rowsort
SELECT 36 + + 52 FROM tab0 AS cor0
----
88
88
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3768
SELECT - col0 DIV + col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3768
SELECT - col0 / + col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 86 col2 FROM tab2 AS cor0
----
-86

query I rowsort
SELECT ALL 96 - - - col1 AS col2 FROM tab2 AS cor0
----
19
29
45

onlyif mysql # aggregate syntax: 
query II rowsort label-3771
SELECT + SUM( + ( 96 ) ), SUM( DISTINCT + - 22 ) AS col2 FROM tab1 AS cor0
----
288
-22

skipif mysql # not compatible
query II rowsort label-3771
SELECT + SUM ( + ( 96 ) ), SUM ( DISTINCT + - 22 ) AS col2 FROM tab1 AS cor0
----
288
-22

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + col0 * - - 65 + 30 * + + col1 >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * 53 col1 FROM tab1 AS cor0
----
-2703
-4505
-4823

query I rowsort
SELECT DISTINCT + col0 + - 70 FROM tab2
----
-24
-6
5

query I rowsort
SELECT - col2 - - col0 * - + 38 AS col2 FROM tab2
----
-1771
-2472
-2908

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT DISTINCT SUM( DISTINCT + + 2 ) + - - 73 AS col2 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-3776
SELECT DISTINCT SUM ( DISTINCT + + 2 ) + - - 73 AS col2 FROM tab1
----
75

query I rowsort
SELECT 18 - 0 * + col2 FROM tab2
----
18
18
18

query I rowsort
SELECT DISTINCT + + 8 FROM tab1 WHERE NOT 94 NOT IN ( + 1 / col1 + col0 + + + col2 + - col1, + 28 ) AND col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3779
SELECT ( CAST( NULL AS SIGNED ) ) / + 22 * + + CAST( 41 AS DECIMAL ) * - col2 + - + col2 + col2 + + + col2 * 51 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT ( CAST ( NULL AS INTEGER ) ) / + 22 * + + CAST ( 41 AS REAL ) * - col2 + - + col2 + col2 + + + col2 * 51 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + - 46 * col0 FROM tab2 AS cor0
----
-2070
-2880
-3375

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT - + COUNT( - col2 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3781
SELECT - + COUNT ( - col2 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + + col1 * 74 * col1 AS col1 FROM tab0 AS cor0
----
32634
485514
74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 83 * 66 BETWEEN NULL AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3784
SELECT + 34 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3784
SELECT + 34 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3785
SELECT - - SUM( + + 81 ) AS col2, + MIN( - + col2 ) AS col0 FROM tab2 cor0
----
243
-58

skipif mysql # not compatible
query II rowsort label-3785
SELECT - - SUM ( + + 81 ) AS col2, + MIN ( - + col2 ) AS col0 FROM tab2 cor0
----
243
-58

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT NULL <= 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT + - SUM( + - col1 ) FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-3787
SELECT + - SUM ( + - col1 ) FROM tab0 cor0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3788
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( - - CAST( 79 AS SIGNED ) ) + + 57 + col1 * - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3788
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( - - CAST ( 79 AS INTEGER ) ) + + 57 + col1 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT ALL - MAX( ALL col2 ) * + MAX( col1 ) col1 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3789
SELECT ALL - MAX ( ALL col2 ) * + MAX ( col1 ) col1 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----
NULL

query II rowsort
SELECT + col2 * - col2 + + 37 AS col2, col0 FROM tab2 AS cor0
----
-1563
64
-3327
75
-492
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT - SUM( DISTINCT + + col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-3791
SELECT - SUM ( DISTINCT + + col0 ) FROM tab2
----
-185

onlyif mysql # DIV for integer division: 
query II rowsort label-3792
SELECT + 30, - col1 + - 96 * col2 DIV col2 col1 FROM tab2
----
30
-147
30
-163
30
-173

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3792
SELECT + 30, - col1 + - 96 * col2 / col2 col1 FROM tab2
----
30
-147
30
-163
30
-173

query I rowsort
SELECT DISTINCT + col2 + - - 31 FROM tab1
----
127
90
99

query I rowsort
SELECT - + 72 FROM tab1 WHERE NOT 1 * + - col1 IS NULL
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT ALL + 85 + + - SUM( DISTINCT col0 ) AS col0 FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL + 85 + + - SUM ( DISTINCT col0 ) AS col0 FROM tab0
----
-114

query I rowsort
SELECT col1 + - 64 AS col1 FROM tab2
----
-13
13
3

query I rowsort
SELECT ALL 23 + - col1 AS col1 FROM tab2 AS cor0
----
-28
-44
-54

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + col2 AND - - col1 + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT DISTINCT SUM( 29 ) AS col2 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT SUM ( 29 ) AS col2 FROM tab1
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-3801
SELECT DISTINCT + col1 DIV col0 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
1

skipif mysql # not compatible
query I rowsort label-3801
SELECT DISTINCT + col1 / col0 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
1

query I rowsort
SELECT col2 * col0 + - 23 * + col0 AS col1 FROM tab2
----
0
1088
2625

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 + 23 NOT BETWEEN col0 AND col0
----

query I rowsort
SELECT - col1 + - 79 AS col0 FROM tab0
----
-100
-160
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3805
SELECT COUNT( DISTINCT CAST( col2 AS SIGNED ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3805
SELECT COUNT ( DISTINCT CAST ( col2 AS INTEGER ) ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT 21 * col0 AS col0 FROM tab2
----
1344
1575
966

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT DISTINCT + 59 * SUM( DISTINCT col0 * - 24 ) FROM tab1
----
-321432

skipif mysql # not compatible
query I rowsort label-3807
SELECT DISTINCT + 59 * SUM ( DISTINCT col0 * - 24 ) FROM tab1
----
-321432

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NOT + 64 * 36 IN ( - 77 * 3 )
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3809
SELECT - col0 + 75 AS col2 FROM tab2 WHERE NOT ( - CAST( NULL AS SIGNED ) * col0 - + col2 ) < + col2 * col0
----

skipif mysql # not compatible
query I rowsort label-3809
SELECT - col0 + 75 AS col2 FROM tab2 WHERE NOT ( - CAST ( NULL AS INTEGER ) * col0 - + col2 ) < + col2 * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3810
SELECT 78 DIV 18 AS col1 FROM tab1
----
4
4
4

skipif mysql # not compatible
query I rowsort label-3810
SELECT 78 / 18 AS col1 FROM tab1
----
4
4
4

query I rowsort
SELECT 47 + + col0 FROM tab2
----
111
122
93

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 45 * - 27 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT - COUNT( * ) * - 2 col0 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3813
SELECT - COUNT ( * ) * - 2 col0 FROM tab0
----
6

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col0 * col0 + 68 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3815
SELECT CAST( + ( col2 ) AS SIGNED ) + 69 * - col1 AS col2 FROM tab2
----
-3496
-4565
-5273

skipif mysql # not compatible
query I rowsort label-3815
SELECT CAST ( + ( col2 ) AS INTEGER ) + 69 * - col1 AS col2 FROM tab2
----
-3496
-4565
-5273

query I rowsort
SELECT col1 * - 80 AS col2 FROM tab0
----
-1680
-6480
-80

query I rowsort
SELECT ALL + 49 * col1 FROM tab1
----
2303
245
686

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 45 * 39 + col0 * 16 FROM tab1
----
2571
3115
3211

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3820
SELECT DISTINCT 69 DIV COUNT( * ) FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-3820
SELECT DISTINCT 69 / COUNT ( * ) FROM tab0
----
23

query I rowsort
SELECT 45 * + 0 FROM tab1
----
0
0
0

query I rowsort
SELECT 51 * 65 FROM tab0
----
3315
3315
3315

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3823
SELECT ALL * FROM tab1 WHERE NOT + CAST( 17 AS SIGNED ) <> ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-3823
SELECT ALL * FROM tab1 WHERE NOT + CAST ( 17 AS INTEGER ) <> ( - col2 )
----

query I rowsort
SELECT - col2 * + 22 AS col2 FROM tab2
----
-1276
-506
-880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3825
SELECT ALL COUNT( * ) DIV COUNT( * ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL COUNT ( * ) / COUNT ( * ) AS col1 FROM tab2
----
1

query I rowsort
SELECT 50 FROM tab0 WHERE NOT ( - col0 ) IS NULL
----
50
50
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3827
SELECT - col1 * CAST( - col1 AS SIGNED ) AS col2 FROM tab1 WHERE col2 + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3827
SELECT - col1 * CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 WHERE col2 + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( 64 / + col2 - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col0 NOT IN ( 37 )
----
3

skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col0 NOT IN ( 37 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3830
SELECT ALL * FROM tab0 WHERE + CAST( col1 AS SIGNED ) > ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3830
SELECT ALL * FROM tab0 WHERE + CAST ( col1 AS INTEGER ) > ( NULL )
----

query I rowsort
SELECT - 46 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT - col1 * + col0 FROM tab2 WHERE NOT - 9 >= + col1
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 68 * col2 col1 FROM tab1 AS cor0
----
4012
4624
6528

query I rowsort
SELECT ALL - 52 * + col2 AS col1 FROM tab1 AS cor0
----
-3068
-3536
-4992

query I rowsort
SELECT DISTINCT - 22 * - ( - ( col1 ) * col2 ) FROM tab0 cor0
----
-2178
-4620
-83754

onlyif mysql # DIV for integer division: 
query I rowsort label-3836
SELECT ALL + - col2 DIV 30 AS col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3836
SELECT ALL + - col2 / 30 AS col1 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT - col2 * ( 42 ) AS col0 FROM tab0 AS cor0
----
-1974
-4158
-420

query I rowsort
SELECT col2 + col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
198
20
94

query I rowsort
SELECT DISTINCT - 84 * - + col0 FROM tab2
----
3864
5376
6300

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 * - col0 + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT DISTINCT MIN( ALL - + col0 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-3841
SELECT DISTINCT MIN ( ALL - + col0 ) AS col2 FROM tab2
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3842
SELECT DISTINCT + MIN( ALL col1 ) + 78 DIV + 88 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3842
SELECT DISTINCT + MIN ( ALL col1 ) + 78 / + 88 FROM tab0
----
1

query I rowsort
SELECT ALL col1 * col1 AS col2 FROM tab0 WHERE ( 36 ) IN ( 24 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) NOT BETWEEN NULL AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT DISTINCT + COUNT( * ) + - COUNT( - col0 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3845
SELECT DISTINCT + COUNT ( * ) + - COUNT ( - col0 ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT - ( - SUM( ALL col2 ) ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3846
SELECT - ( - SUM ( ALL col2 ) ) AS col2 FROM tab1 AS cor0
----
223

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE 46 * 48 < ( - col0 - 23 )
----

query I rowsort
SELECT + ( - - 18 ) * - ( - col0 - + col2 ) FROM tab2 cor0
----
1242
1872
2394

query I rowsort
SELECT ALL + 15 FROM tab1 cor0 WHERE NULL IS NULL
----
15
15
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3850
SELECT * FROM tab2 AS cor0 WHERE ( ( CAST( + col2 AS SIGNED ) ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3850
SELECT * FROM tab2 AS cor0 WHERE ( ( CAST ( + col2 AS INTEGER ) ) ) IS NULL
----

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE col0 IS NULL AND NOT NULL NOT IN ( 78 )
----

query I rowsort
SELECT - 2 FROM tab2 WHERE ( NOT + col1 * col2 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3853
SELECT col1 + - + ( + col2 ) + - ( - CAST( + col1 AS SIGNED ) ) FROM tab0
----
-97
115
32

skipif mysql # not compatible
query I rowsort label-3853
SELECT col1 + - + ( + col2 ) + - ( - CAST ( + col1 AS INTEGER ) ) FROM tab0
----
-97
115
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT DISTINCT - 97 + + COUNT( * ) FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-3854
SELECT DISTINCT - 97 + + COUNT ( * ) FROM tab1 AS cor0
----
-94

query I rowsort
SELECT DISTINCT + 87 + + + col2 FROM tab0 AS cor0
----
134
186
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT DISTINCT ( col0 ) + + col2 AS col1 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT col1 * + ( - col2 ) + - col2 FROM tab1 AS cor0
----
-1440
-3264
-354

query I rowsort
SELECT + col0 * col0 FROM tab0 cor0 WHERE col1 * - - col1 + col1 NOT BETWEEN NULL AND ( - col2 )
----
225
7569
9409

query II rowsort
SELECT + 20 AS col2, - col2 FROM tab1 AS cor0
----
20
-59
20
-68
20
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3861
SELECT DISTINCT + - COUNT( * ) - - - 97 + + COUNT( * ) * COUNT( * ) DIV - COUNT( DISTINCT - 57 ) FROM tab1 AS cor0
----
-109

skipif mysql # not compatible
query I rowsort label-3861
SELECT DISTINCT + - COUNT ( * ) - - - 97 + + COUNT ( * ) * COUNT ( * ) / - COUNT ( DISTINCT - 57 ) FROM tab1 AS cor0
----
-109

query I rowsort
SELECT DISTINCT - - col1 FROM tab2 cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col0 - + + col2 FROM tab1 cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT ALL - 85 - COUNT( * ) col2 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3865
SELECT ALL - 85 - COUNT ( * ) col2 FROM tab1 AS cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT DISTINCT - COUNT( col2 ) AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3866
SELECT DISTINCT - COUNT ( col2 ) AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3867
SELECT + 21 DIV + + 33 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3867
SELECT + 21 / + + 33 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + + ( + 4 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3869
SELECT - 88 DIV + - MIN( ALL + col1 ) col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3869
SELECT - 88 / + - MIN ( ALL + col1 ) col0 FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 + + col1 col2 FROM tab1 cor0
----
430
4324
728

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( NOT - col0 + + col1 * - 1 IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT + COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3872
SELECT + COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT ALL + 4 + + col0 + col0 FROM tab0 cor0
----
178
198
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3874
SELECT DISTINCT - - AVG ( - ( 38 ) ) * + ( - + 17 ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3874
SELECT DISTINCT - - AVG ( - ( 38 ) ) * + ( - + 17 ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 45 * col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 43 - - col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 54 < - 52
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT SUM( - 10 ) FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-3877
SELECT SUM ( - 10 ) FROM tab1 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT ALL - + COUNT( ALL + + 55 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL - + COUNT ( ALL + + 55 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - col2 * + col1 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT col2 * 56 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( ( + - col2 ) + - col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 60 + - 55 + - 19 < ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE 53 IN ( - - 12 - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3883
SELECT 22 + - - 86 + + CAST( + AVG ( - 69 ) AS SIGNED ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-3883
SELECT 22 + - - 86 + + CAST ( + AVG ( - 69 ) AS INTEGER ) FROM tab1
----
39

query I rowsort
SELECT - + col2 FROM tab1 WHERE ( NULL ) = + col1
----

query I rowsort
SELECT DISTINCT + col1 * - 77 FROM tab2 WHERE ( ( NULL NOT BETWEEN ( + col0 + - col0 ) AND NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NULL <> + 70
----
0

skipif mysql # not compatible
query I rowsort label-3886
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NULL <> + 70
----
0

query I rowsort
SELECT ALL col0 - 60 AS col1 FROM tab0 AS cor0
----
-45
27
37

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN col1 AND col1 * - 12 / + + 59
----
46
64
75

query I rowsort
SELECT DISTINCT 74 - 74 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3890
SELECT ALL + CAST( NULL AS SIGNED ) * - + ( + col1 ) + + - col1 - + - 63 * + 23 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL + CAST ( NULL AS INTEGER ) * - + ( + col1 ) + + - col1 - + - 63 * + 23 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col2 - 7 FROM tab1 AS cor0
----
-103
-66
-75

query I rowsort
SELECT col2 - + ( - - ( - - col1 ) ) + - 86 FROM tab0
----
-120
-97
12

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE ( - + 66 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3894
SELECT ALL 95 / - - col2 + + + col2 + + col1 * - col1 - col1 + + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3894
SELECT ALL 95 / - - col2 + + + col2 + + col1 * - col1 - col1 + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT - 75 + - - COUNT( - col1 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-72

skipif mysql # not compatible
query I rowsort label-3895
SELECT - 75 + - - COUNT ( - col1 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-72

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN - col0 AND col1
----
14
47
5

query I rowsort
SELECT col0 * + + 96 * - 76 AS col0 FROM tab2 AS cor0 WHERE NOT ( + 38 + - + col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 22 * - col0 * + + col1 AND ( NULL )
----

query I rowsort
SELECT + 90 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
90
90
90

query I rowsort
SELECT + 96 * - col1 * - col0 FROM tab0 AS cor0
----
116640
175392
9312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3901
SELECT ALL + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT ( - 76 ) AS col0 FROM tab2
----
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 * + 94 * - 99 col2 FROM tab2
----
-111672

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3904
SELECT - - CAST( - col1 AS DECIMAL ) AS col0 FROM tab0 WHERE NOT 74 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3904
SELECT - - CAST ( - col1 AS REAL ) AS col0 FROM tab0 WHERE NOT 74 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 82 <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT DISTINCT COUNT( - 36 ) FROM tab1 AS cor0 WHERE 5 IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3906
SELECT DISTINCT COUNT ( - 36 ) FROM tab1 AS cor0 WHERE 5 IN ( + col2 )
----
0

query I rowsort
SELECT ALL 85 * + col1 AS col2 FROM tab2
----
4335
5695
6545

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab2 cor1 ON NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * - + col1 * + - 61 * + 57 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * col2 + - col0 FROM tab2
----
1536
3289
483

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT DISTINCT 1 + + COUNT( * ) AS col2 FROM tab2 cor0
----
4

skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT 1 + + COUNT ( * ) AS col2 FROM tab2 cor0
----
4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - + col1 * - - 95 * - 28 )
----

query I rowsort
SELECT - 72 * - + col1 + + col2 * col1 * - 99 - + col2 FROM tab2 AS cor0
----
-112478
-299416
-379948

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * - col2 * - 47 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3915
SELECT - col2 * - + col0 + - 53 + 36 DIV col2 FROM tab0 AS cor0
----
652
820
9550

skipif mysql # not compatible
query I rowsort label-3915
SELECT - col2 * - + col0 + - 53 + 36 / col2 FROM tab0 AS cor0
----
652
820
9550

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 46 - + - col1 >= 48
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 92 * + + 29 AS col2, - col2 FROM tab1 WHERE + - 92 IS NOT NULL
----
-2668
-59
-2668
-68
-2668
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT DISTINCT MAX( DISTINCT + - col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT MAX ( DISTINCT + - col0 ) AS col2 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT DISTINCT + MIN( - col0 ) + - COUNT( * ) FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-3919
SELECT DISTINCT + MIN ( - col0 ) + - COUNT ( * ) FROM tab0
----
-100

query I rowsort
SELECT DISTINCT + col2 + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT - + col2 + + - 21 FROM tab2 AS cor0
----
-44
-61
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3922
SELECT DISTINCT ( + + CAST( - col1 AS SIGNED ) ) AS col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3922
SELECT DISTINCT ( + + CAST ( - col1 AS INTEGER ) ) AS col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL - 46 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT DISTINCT + MAX( + 92 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
92

skipif mysql # not compatible
query I rowsort label-3924
SELECT DISTINCT + MAX ( + 92 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3925
SELECT - ( + 82 ) DIV col1 * - - col0 DIV + col0 AS col0 FROM tab1 AS cor0
----
-1
-16
-5

skipif mysql # not compatible
query I rowsort label-3925
SELECT - ( + 82 ) / col1 * - - col0 / + col0 AS col0 FROM tab1 AS cor0
----
-1
-16
-5

query II rowsort
SELECT + + col2, + col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT DISTINCT 88 * 50 FROM tab1 AS cor0
----
4400

query I rowsort
SELECT - + 80 AS col1 FROM tab1 cor0 WHERE NOT - ( + + col1 ) * + 23 + - col2 <> 80 * + col0
----

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3930
SELECT ALL + COUNT( * ) DIV + - COUNT( * ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL + COUNT ( * ) / + - COUNT ( * ) FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3931
SELECT col0 DIV 83 * + CAST( - col1 AS SIGNED ) FROM tab0
----
-1
-21
0

skipif mysql # not compatible
query I rowsort label-3931
SELECT col0 / 83 * + CAST ( - col1 AS INTEGER ) FROM tab0
----
-1
-21
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3932
SELECT ALL col0 * + CAST( NULL AS SIGNED ) * - col1 / col1 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3932
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) * - col1 / col1 col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT ALL 14 + - - COUNT( * ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-3933
SELECT ALL 14 + - - COUNT ( * ) FROM tab0
----
17

query I rowsort
SELECT ALL col2 * + 38 - + - col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3935
SELECT DISTINCT SUM( - ( - col0 ) ) DIV + ( - 53 ) + + 2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT SUM ( - ( - col0 ) ) / + ( - 53 ) + + 2 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3936
SELECT col1 AS col0, 47 + + - col1 - - CAST( NULL AS SIGNED ) + - col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-3936
SELECT col1 AS col0, 47 + + - col1 - - CAST ( NULL AS INTEGER ) + - col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3937
SELECT DISTINCT + - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3937
SELECT DISTINCT + - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

query II rowsort
SELECT ALL - 32 AS col2, 81 AS col1 FROM tab2 cor0
----
-32
81
-32
81
-32
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 11 / - - ( - - ( - - 4 ) ) = NULL
----

query I rowsort
SELECT - 74 FROM tab0 AS cor0 WHERE + col0 > + - 14 * col1
----
-74
-74
-74

query I rowsort
SELECT col1 + + + ( - 16 ) - - + col0 AS col1 FROM tab0 AS cor0
----
80
82
92

query I rowsort
SELECT 6 + + col1 AS col0 FROM tab0
----
27
7
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - 76 ) + + + 26 col0 FROM tab2
----
102
102
102

query II rowsort
SELECT 14 + col2, + col1 FROM tab1
----
110
14
73
5
82
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT + COUNT( * ) * + COUNT( * ) * + - COUNT( * ) + - COUNT( * ) AS col1 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-3945
SELECT + COUNT ( * ) * + COUNT ( * ) * + - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT - COUNT( * ) + 75 + - 16 AS col0 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-3946
SELECT - COUNT ( * ) + 75 + - 16 AS col0 FROM tab1
----
56

query I rowsort
SELECT - col0 + + col0 - - - 71 * + col0 * col1 FROM tab1
----
-30175
-303667
-50694

onlyif mysql # aggregate syntax: 
query II rowsort label-3948
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) + MAX( - + col2 ) AS col0, COUNT( * ) * + + 52 + - COUNT( * ) AS col0 FROM tab1
----
-50
153

skipif mysql # not compatible
query II rowsort label-3948
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) + MAX ( - + col2 ) AS col0, COUNT ( * ) * + + 52 + - COUNT ( * ) AS col0 FROM tab1
----
-50
153

onlyif mysql # DIV for integer division: 
query I rowsort label-3949
SELECT DISTINCT + 85 + + - 41 DIV + 31 FROM tab1 cor0
----
84

skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT + 85 + + - 41 / + 31 FROM tab1 cor0
----
84

query I rowsort
SELECT DISTINCT - col0 - + col1 - - col1 AS col2 FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT + col2 AS col2 FROM tab0 cor0 WHERE col1 <= NULL
----

query I rowsort
SELECT + col1 - 80 * col1 AS col1 FROM tab2 AS cor0
----
-4029
-5293
-6083

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT ALL + SUM( - - col0 ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL + SUM ( - - col0 ) AS col0 FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT - MIN( ALL col0 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3954
SELECT - MIN ( ALL col0 ) AS col0 FROM tab0
----
-15

query I rowsort
SELECT DISTINCT col0 * - col1 * - col0 FROM tab1 AS cor0 WHERE NOT + col0 * - - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + 30 * col1 + 63 FROM tab2 AS cor0
----
134733
177933
78093

query II rowsort
SELECT col0, 7 * + col2 FROM tab0 AS cor0
----
15
329
87
70
97
693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + col2, + col1 col1, + + col1 * - col0 FROM tab1 AS cor0 WHERE ( - col0 * - 53 / + col2 ) IS NOT NULL
----
9 values hashing to bc7e0f4121269fcd8050408e6bcaf106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3959
SELECT CAST( COUNT( + - 94 ) AS SIGNED ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3959
SELECT CAST ( COUNT ( + - 94 ) AS INTEGER ) FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT ( + col2 ) * + 97 AS col0 FROM tab0
----
4559
9603
970

query I rowsort
SELECT ALL - + col2 - + 84 * + - col1 + + col0 FROM tab1 WHERE col2 / + col2 + - + col0 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col2 - + col1 = + ( - + 60 ) * + 6
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE NOT col1 = 20
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT ALL ( SUM( DISTINCT - 29 ) ) FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL ( SUM ( DISTINCT - 29 ) ) FROM tab1 AS cor0
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) * - - col2 col0 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query II rowsort label-3966
SELECT 47 AS col2, MAX( + 53 ) AS col1 FROM tab1 AS cor0
----
47
53

skipif mysql # not compatible
query II rowsort label-3966
SELECT 47 AS col2, MAX ( + 53 ) AS col1 FROM tab1 AS cor0
----
47
53

query I rowsort
SELECT DISTINCT col2 + + - 49 * - col0 * + + 37 AS col1 FROM tab1
----
154164
165051
92559

onlyif mysql # DIV for integer division: 
query II rowsort label-3968
SELECT DISTINCT + col1 DIV + 6, col0 FROM tab2 AS cor0
----
11
75
12
64
8
46

skipif mysql # not compatible
query II rowsort label-3968
SELECT DISTINCT + col1 / + 6, col0 FROM tab2 AS cor0
----
11
75
12
64
8
46

query I rowsort
SELECT ALL - - col0 + - col1 + - - col0 AS col1 FROM tab0 AS cor0
----
-51
153
193

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT ALL COUNT( * ) FROM tab2 cor0 WHERE + 68 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3970
SELECT ALL COUNT ( * ) FROM tab2 cor0 WHERE + 68 IS NOT NULL
----
3

query I rowsort
SELECT ALL - 5 AS col1 FROM tab1 cor0
----
-5
-5
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 10 / + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3973
SELECT ALL - col2 - col0 DIV - + col0 FROM tab0 AS cor0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL - col2 - col0 / - + col0 FROM tab0 AS cor0
----
-46
-9
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT ALL + SUM( 83 ) FROM tab2 cor0
----
249

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL + SUM ( 83 ) FROM tab2 cor0
----
249

query III rowsort
SELECT * FROM tab2 WHERE ( NOT - col2 + + col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 25 + 4 FROM tab0
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-3977
SELECT DISTINCT COUNT( * ) AS col0, + 66 AS col0 FROM tab1
----
3
66

skipif mysql # not compatible
query II rowsort label-3977
SELECT DISTINCT COUNT ( * ) AS col0, + 66 AS col0 FROM tab1
----
3
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3978
SELECT - col2 - - 22 * + CAST( NULL AS SIGNED ) * - 75 * + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3978
SELECT - col2 - - 22 * + CAST ( NULL AS INTEGER ) * - 75 * + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT + COUNT( ALL + - col2 ) - - + 49 AS col0 FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-3979
SELECT + COUNT ( ALL + - col2 ) - - + 49 AS col0 FROM tab2
----
52

query I rowsort
SELECT 61 AS col0 FROM tab1 cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT - 1 + + + ( col2 ) FROM tab2 AS cor0
----
22
39
57

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3982
SELECT + col0 + - CAST( NULL AS SIGNED ) + - col1 + + + CAST( + col2 AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3982
SELECT + col0 + - CAST ( NULL AS INTEGER ) + - col1 + + + CAST ( + col2 AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col2 = NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 83 + + 36 - col0 * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - + 12 ) AS col0 FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT MIN( - 43 ) FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-3986
SELECT MIN ( - 43 ) FROM tab1
----
-43

query I rowsort
SELECT + - 59 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3988
SELECT CAST( NULL AS SIGNED ) * + - 42 - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3988
SELECT CAST ( NULL AS INTEGER ) * + - 42 - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - + col0 AS col2, col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT - 60 IS NOT NULL )
----
-46
46
-64
64
-75
75

query I rowsort
SELECT - - col1 * + col1 + - + col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( + - 4 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3991
SELECT - 42 DIV col2 AS col1, col2 * - col1 FROM tab0 AS cor0
----
-4
-210
0
-3807
0
-99

skipif mysql # not compatible
query II rowsort label-3991
SELECT - 42 / col2 AS col1, col2 * - col1 FROM tab0 AS cor0
----
-4
-210
0
-3807
0
-99

query I rowsort
SELECT - 43 * - 43 FROM tab1 AS cor0
----
1849
1849
1849

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT ALL MIN( 28 ) FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL MIN ( 28 ) FROM tab2 AS cor0
----
28

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN ( + col0 * 87 ) AND ( NULL )
----

query I rowsort
SELECT ALL 53 * + col1 AS col1 FROM tab1 cor0
----
2491
265
742

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 84 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT + MIN( DISTINCT - + 96 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3997
SELECT + MIN ( DISTINCT - + 96 ) FROM tab1
----
-96

query I rowsort
SELECT DISTINCT 16 + col1 FROM tab0
----
17
37
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3999
SELECT col1 + - col2 DIV + - col2 + col1 AS col0 FROM tab1
----
11
29
95

skipif mysql # not compatible
query I rowsort label-3999
SELECT col1 + - col2 / + - col2 + col1 AS col0 FROM tab1
----
11
29
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4000
SELECT ALL + CAST( NULL AS SIGNED ) * + SUM( ALL col1 ) + + 0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL + CAST ( NULL AS INTEGER ) * + SUM ( ALL col1 ) + + 0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4001
SELECT - COUNT( * ) DIV + 23 + 5 * 52 FROM tab0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----
260

skipif mysql # not compatible
query I rowsort label-4001
SELECT - COUNT ( * ) / + 23 + 5 * 52 FROM tab0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----
260

query I rowsort
SELECT DISTINCT - + 88 AS col0 FROM tab0 AS cor0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4003
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 49 - - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4003
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 49 - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 IS NULL OR NOT - col2 + - - col1 NOT BETWEEN - 45 * + + 54 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4005
SELECT ALL - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE 34 * + col1 * - - 4 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE 34 * + col1 * - - 4 IS NULL
----

query I rowsort
SELECT - 14 AS col1 FROM tab2 AS cor0 WHERE + col1 NOT IN ( + col0, col1, + col1, + col1 - + 36, - 39 * - + 49 + - + col0 / - - col1 * + col0 )
----

query I rowsort
SELECT - - col2 + 89 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4008
SELECT ALL - col2 DIV - + 39 - + col1 FROM tab2 AS cor0
----
-51
-66
-76

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL - col2 / - + 39 - + col1 FROM tab2 AS cor0
----
-51
-66
-76

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + 31 / ( col1 )
----

query I rowsort
SELECT + col1 + - 95 AS col1 FROM tab0
----
-14
-74
-94

query I rowsort
SELECT + 81 * 59 + - + col1 FROM tab0
----
4698
4758
4778

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4012
SELECT ALL CAST( + 86 AS SIGNED ), + 43 AS col2 FROM tab2
----
86
43
86
43
86
43

skipif mysql # not compatible
query II rowsort label-4012
SELECT ALL CAST ( + 86 AS INTEGER ), + 43 AS col2 FROM tab2
----
86
43
86
43
86
43

query III rowsort
SELECT * FROM tab2 WHERE col1 + 97 * - 5 < + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT + ( + SUM( DISTINCT - col2 ) ) * COUNT( * ) FROM tab2
----
-363

skipif mysql # not compatible
query I rowsort label-4014
SELECT + ( + SUM ( DISTINCT - col2 ) ) * COUNT ( * ) FROM tab2
----
-363

query I rowsort
SELECT ALL ( ( - - col0 ) ) + + - col2 FROM tab0
----
-2
-32
77

query I rowsort
SELECT ALL col1 + 8 AS col0 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
59
75
85

query I rowsort
SELECT ALL - - 74 + - 53 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT ( + 48 ) AS col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col0 = - + ( - 2 )
----

query I rowsort
SELECT 49 * - col0 AS col2 FROM tab1
----
-2499
-4165
-4459

query II rowsort
SELECT col0 AS col1, + col2 FROM tab2 WHERE NOT + col1 * 47 + - ( + col0 ) >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT - - 8 * + COUNT( * ) FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4022
SELECT - - 8 * + COUNT ( * ) FROM tab2 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT DISTINCT SUM( DISTINCT - - col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-4023
SELECT DISTINCT SUM ( DISTINCT - - col0 ) FROM tab1 AS cor0
----
227

query II rowsort
SELECT DISTINCT + + 1, - col2 AS col1 FROM tab0 AS cor0
----
1
-10
1
-47
1
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT ALL - MAX( DISTINCT + 47 ) FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL - MAX ( DISTINCT + 47 ) FROM tab0 AS cor0
----
-47

query I rowsort
SELECT DISTINCT + col1 + + ( + col0 ) FROM tab1
----
138
65
90

query I rowsort
SELECT - col0 FROM tab1 WHERE 63 * + col0 - - - ( - col1 ) IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT + col0 * col0 * + col0 + 15 AS col1 FROM tab2 cor0
----
262159
421890
97351

query I rowsort
SELECT 87 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * + 93 + - + col0 / - ( col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4031
SELECT - 3 DIV 69 * col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4031
SELECT - 3 / 69 * col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 69 + + + ( - + col2 ) AS col2 FROM tab2 AS cor0
----
-109
-127
-92

query I rowsort
SELECT ALL - AVG ( col1 ) FROM tab2 cor0 WHERE col1 * - ( + col2 ) IS NULL
----
NULL

query I rowsort
SELECT ALL - 39 - + col1 + + 55 + + + col1 AS col2 FROM tab1 AS cor0
----
16
16
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4035
SELECT ALL - - CAST( NULL AS SIGNED ) + + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4035
SELECT ALL - - CAST ( NULL AS INTEGER ) + + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 70 - + col0 FROM tab1 AS cor0
----
-15
-21
19

query I rowsort
SELECT - ( - ( - col2 ) ) AS col1 FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT - col1 - + col2 + - + 16 FROM tab2 AS cor0
----
-133
-141
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4039
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) * + 62 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) * + 62 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + ( 64 ) - + col2 * - col0 FROM tab1
----
4960
5079
6252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4041
SELECT DISTINCT + col0 / CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4041
SELECT DISTINCT + col0 / CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

query I rowsort
SELECT ( col1 ) - - 24 FROM tab2
----
101
75
91

query I rowsort
SELECT ALL col0 * + 8 FROM tab2
----
368
512
600

onlyif mysql # aggregate syntax: 
query II rowsort label-4044
SELECT DISTINCT - 47 col0, COUNT( * ) AS col0 FROM tab1
----
-47
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4044
SELECT DISTINCT - 47 col0, COUNT ( * ) AS col0 FROM tab1
----
-47
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT DISTINCT COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0 WHERE 51 > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4045
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0 WHERE 51 > ( NULL )
----
0

query II rowsort
SELECT DISTINCT + + col2 AS col2, col1 + col2 FROM tab2 cor0
----
23
74
40
117
58
125

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT DISTINCT COUNT( ALL - 99 ) * - 39 FROM tab0 cor0
----
-117

skipif mysql # not compatible
query I rowsort label-4047
SELECT DISTINCT COUNT ( ALL - 99 ) * - 39 FROM tab0 cor0
----
-117

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( NULL ) >= + 42 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT MIN( + 98 ) FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-4049
SELECT MIN ( + 98 ) FROM tab1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT DISTINCT + ( SUM( col2 ) ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-4050
SELECT DISTINCT + ( SUM ( col2 ) ) FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT - ( + ( - COUNT( * ) ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4051
SELECT - ( + ( - COUNT ( * ) ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT - col2 * + 78 * + col0 + + 64 + + col0 FROM tab0 AS cor0
----
-54911
-67709
-748873

query II rowsort
SELECT DISTINCT + col2 * + - col1, col2 AS col1 FROM tab0 AS cor0
----
-210
10
-3807
47
-99
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4054
SELECT + + COUNT( * ) * + CAST( - SUM( DISTINCT + col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-681

skipif mysql # not compatible
query I rowsort label-4054
SELECT + + COUNT ( * ) * + CAST ( - SUM ( DISTINCT + col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-681

query I rowsort
SELECT DISTINCT + col0 + + 82 AS col1 FROM tab0
----
169
179
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4056
SELECT DISTINCT col2 + - 62 + - col0 * + + 0 DIV + col1 FROM tab2
----
-22
-39
-4

skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT col2 + - 62 + - col0 * + + 0 / + col1 FROM tab2
----
-22
-39
-4

query I rowsort
SELECT - col2 + + col0 - col0 + - col0 * 7 AS col2 FROM tab2
----
-345
-488
-583

query II rowsort
SELECT + ( col1 ) + + 0, + col0 FROM tab0
----
1
97
21
87
81
15

query II rowsort
SELECT - - 82, + col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
82
51
82
85
82
91

query II rowsort
SELECT - col1 * + col2 * - - col0 * - + ( col1 ) + col0, - 43 * + col0 AS col1 FROM tab2
----
15178304
-2752
19527225
-3225
2751904
-1978

query I rowsort
SELECT + 54 + col1 FROM tab2 AS cor0
----
105
121
131

onlyif mysql # aggregate syntax: 
query II rowsort label-4062
SELECT DISTINCT - 77 col0, SUM( - 43 ) FROM tab2 AS cor0
----
-77
-129

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4062
SELECT DISTINCT - 77 col0, SUM ( - 43 ) FROM tab2 AS cor0
----
-77
-129

onlyif mysql # aggregate syntax: 
query II rowsort label-4063
SELECT DISTINCT 34 + + SUM( ALL + col2 ) AS col1, - 85 FROM tab1 AS cor0
----
257
-85

skipif mysql # not compatible
query II rowsort label-4063
SELECT DISTINCT 34 + + SUM ( ALL + col2 ) AS col1, - 85 FROM tab1 AS cor0
----
257
-85

query I rowsort
SELECT ( - 71 ) AS col2 FROM tab0
----
-71
-71
-71

query III rowsort
SELECT * FROM tab1 WHERE col2 <= - col2 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT DISTINCT + ( + MAX( ALL 80 ) ) + - COUNT( * ) * + 82 FROM tab2
----
-166

skipif mysql # not compatible
query I rowsort label-4066
SELECT DISTINCT + ( + MAX ( ALL 80 ) ) + - COUNT ( * ) * + 82 FROM tab2
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT + COUNT( - 5 ) - + SUM( DISTINCT col0 ) * 66 FROM tab1
----
-14979

skipif mysql # not compatible
query I rowsort label-4067
SELECT + COUNT ( - 5 ) - + SUM ( DISTINCT col0 ) * 66 FROM tab1
----
-14979

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4068
SELECT - - 12 * + - 92 FROM tab2 AS cor0 WHERE 20 * - - CAST( NULL AS SIGNED ) IS NULL
----
-1104
-1104
-1104

skipif mysql # not compatible
query I rowsort label-4068
SELECT - - 12 * + - 92 FROM tab2 AS cor0 WHERE 20 * - - CAST ( NULL AS INTEGER ) IS NULL
----
-1104
-1104
-1104

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT - + COUNT( * ) + 41 * + 18 + - + 68 AS col1 FROM tab1 AS cor0
----
667

skipif mysql # not compatible
query I rowsort label-4069
SELECT - + COUNT ( * ) + 41 * + 18 + - + 68 AS col1 FROM tab1 AS cor0
----
667

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT ALL + + 49 - + COUNT( * ) col1 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4070
SELECT ALL + + 49 - + COUNT ( * ) col1 FROM tab1 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4071
SELECT DISTINCT + 13 + + + CAST( NULL AS SIGNED ) + col2 * + + col1 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4071
SELECT DISTINCT + 13 + + + CAST ( NULL AS INTEGER ) + col2 * + + col1 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4072
SELECT ALL 66 - + CAST( NULL AS SIGNED ) * + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4072
SELECT ALL 66 - + CAST ( NULL AS INTEGER ) * + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT DISTINCT + + MAX( - col2 ) - - 30 AS col1 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT + + MAX ( - col2 ) - - 30 AS col1 FROM tab0 AS cor0
----
20

query I rowsort
SELECT ALL - col1 * + col0 * - + 88 AS col2 FROM tab0
----
106920
160776
8536

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL > col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4076
SELECT col0 * + + CAST( + col2 AS SIGNED ) * - col2 FROM tab0
----
-33135
-8700
-950697

skipif mysql # not compatible
query I rowsort label-4076
SELECT col0 * + + CAST ( + col2 AS INTEGER ) * - col2 FROM tab0
----
-33135
-8700
-950697

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT 37 * + SUM( col1 ) FROM tab1
----
2442

skipif mysql # not compatible
query I rowsort label-4077
SELECT 37 * + SUM ( col1 ) FROM tab1
----
2442

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT 26 * - COUNT( * ) * + - 23 FROM tab1
----
1794

skipif mysql # not compatible
query I rowsort label-4078
SELECT 26 * - COUNT ( * ) * + - 23 FROM tab1
----
1794

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT COUNT( * ) * + 31 col0 FROM tab2
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4079
SELECT COUNT ( * ) * + 31 col0 FROM tab2
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4080
SELECT DISTINCT - col1 DIV col2 * - 63 AS col0 FROM tab0
----
0
126
63

skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT - col1 / col2 * - 63 AS col0 FROM tab0
----
0
126
63

query I rowsort
SELECT ALL - + 18 * - col1 AS col2 FROM tab1 AS cor0
----
252
846
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4082
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT col0 > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT ALL 77 * - COUNT( * ) FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL 77 * - COUNT ( * ) FROM tab2 AS cor0
----
-231

query I rowsort
SELECT ALL + col2 * - ( - ( + col0 ) ) * + col2 + + - col2 * 23 FROM tab2 AS cor0
----
101480
23805
250966

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT DISTINCT + COUNT( - - ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4086
SELECT DISTINCT + COUNT ( - - ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT col1 * + - col1 * - + 6 FROM tab2 cor0
----
15606
26934
35574

onlyif mysql # DIV for integer division: 
query II rowsort label-4088
SELECT col1 DIV col2 AS col1, col2 AS col1 FROM tab2
----
1
40
1
58
2
23

skipif mysql # not compatible
query II rowsort label-4088
SELECT col1 / col2 AS col1, col2 AS col1 FROM tab2
----
1
40
1
58
2
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4089
SELECT ALL COUNT( * ) * + ( + COUNT( * ) ) DIV + ( + + COUNT( ALL - col2 ) ) + + ( + SUM( col2 ) ) FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL COUNT ( * ) * + ( + COUNT ( * ) ) / + ( + + COUNT ( ALL - col2 ) ) + + ( + SUM ( col2 ) ) FROM tab2
----
124

query I rowsort
SELECT + - col1 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL - col0, col1 * - - 47 + - col2 / - 96 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 48 + - - col0 FROM tab0
----
135
145
63

query I rowsort
SELECT col1 * 57 AS col1 FROM tab2
----
2907
3819
4389

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT - - 44 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4094
SELECT - - 44 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
47

query I rowsort
SELECT ALL - ( - 4 ) + + + col2 FROM tab0 AS cor0
----
103
14
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > col1 * col2 / - - 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT ( - MAX( + - 49 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
49

skipif mysql # not compatible
query I rowsort label-4097
SELECT ( - MAX ( + - 49 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 87 / + 64 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4099
SELECT ALL - CAST( + 87 AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL - CAST ( + 87 AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT ALL - + COUNT( * ) FROM tab2 WHERE + col1 + - 38 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4100
SELECT ALL - + COUNT ( * ) FROM tab2 WHERE + col1 + - 38 IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4101
SELECT + ( - 50 ) DIV + 3 AS col0 FROM tab2 AS cor0
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-4101
SELECT + ( - 50 ) / + 3 AS col0 FROM tab2 AS cor0
----
-16
-16
-16

onlyif mysql # DIV for integer division: 
query II rowsort label-4102
SELECT DISTINCT col1 * col2 - + col1 col1, - col1 DIV 95 FROM tab1 AS cor0
----
1330
0
290
0
3149
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4102
SELECT DISTINCT col1 * col2 - + col1 col1, - col1 / 95 FROM tab1 AS cor0
----
1330
0
290
0
3149
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4103
SELECT ALL - SUM( DISTINCT + - 6 ) - ( + COUNT( * ) ) * + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL - SUM ( DISTINCT + - 6 ) - ( + COUNT ( * ) ) * + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + 85 - - col0 * + + 75 AS col1 FROM tab2 AS cor0
----
3365
4715
5540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4105
SELECT - 49 DIV - COUNT( * ) FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-4105
SELECT - 49 / - COUNT ( * ) FROM tab2 AS cor0
----
16

query II rowsort
SELECT col0 AS col2, + 90 AS col0 FROM tab0 AS cor0
----
15
90
87
90
97
90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 87 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT ALL COUNT( ALL col2 ) * + - ( - 49 ) FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL COUNT ( ALL col2 ) * + - ( - 49 ) FROM tab2 AS cor0
----
147

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT col1 IS NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 12 NOT IN ( + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 81 FROM tab0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT DISTINCT 78 * + MIN( DISTINCT - 23 ) AS col2 FROM tab0
----
-1794

skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT 78 * + MIN ( DISTINCT - 23 ) AS col2 FROM tab0
----
-1794

query II rowsort
SELECT ALL - 32 * + col0 AS col0, 96 FROM tab0
----
-2784
96
-3104
96
-480
96

query II rowsort
SELECT + ( + col1 ) AS col0, - col1 AS col2 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

query I rowsort
SELECT ALL 32 FROM tab0 AS cor0 WHERE ( NULL <> + 70 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4116
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE CAST( NULL AS SIGNED ) + + ( - col2 ) NOT IN ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-4116
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE CAST ( NULL AS INTEGER ) + + ( - col2 ) NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT 10 * - - COUNT( * ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-4117
SELECT 10 * - - COUNT ( * ) FROM tab0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT DISTINCT - SUM( 42 ) AS col0 FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-4118
SELECT DISTINCT - SUM ( 42 ) AS col0 FROM tab2
----
-126

query I rowsort
SELECT col0 * + + 5 FROM tab0 AS cor0
----
435
485
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4120
SELECT 82 * col1 / + ( 43 ) * col0 + col0 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE - col0 <> + col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4120
SELECT 82 * col1 / + ( 43 ) * col0 + col0 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE - col0 <> + col1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4121
SELECT DISTINCT + 72 DIV + COUNT( * ) AS col1 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4121
SELECT DISTINCT + 72 / + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-4122
SELECT DISTINCT - - 94 * + 32 * MAX( - col0 ) + - COUNT( * ), ( COUNT( + - col1 ) ) AS col0 FROM tab0 cor0
----
-45123
3

skipif mysql # not compatible
query II rowsort label-4122
SELECT DISTINCT - - 94 * + 32 * MAX ( - col0 ) + - COUNT ( * ), ( COUNT ( + - col1 ) ) AS col0 FROM tab0 cor0
----
-45123
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4123
SELECT ALL + 4 * - col0 * 25 * - 73 * CAST( - col1 AS SIGNED ) * col0 FROM tab1 AS cor0 WHERE NOT NULL >= - col2
----

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL + 4 * - col0 * 25 * - 73 * CAST ( - col1 AS INTEGER ) * col0 FROM tab1 AS cor0 WHERE NOT NULL >= - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + 26, ( col2 ) )
----

query I rowsort
SELECT DISTINCT - col2 * + 37 FROM tab1 AS cor0
----
-2183
-2516
-3552

query I rowsort
SELECT - 9 * + col2 AS col1 FROM tab1 WHERE ( ( NULL ) NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT DISTINCT + 14 * - col1 AS col1 FROM tab0
----
-1134
-14
-294

query I rowsort
SELECT ALL - col2 / + 22 FROM tab0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT ALL col0 + col1 * - + 19 AS col0 FROM tab2
----
-1198
-1399
-923

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4130
SELECT DISTINCT - col1 * - col2 + col0 + + CAST( NULL AS SIGNED ) - + + col0 * - col2 * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT - col1 * - col2 + col0 + + CAST ( NULL AS INTEGER ) - + + col0 * - col2 * + CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT ALL - SUM( ( col2 ) ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL - SUM ( ( col2 ) ) AS col0 FROM tab2
----
-121

query I rowsort
SELECT DISTINCT 97 + col1 FROM tab1
----
102
111
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT 4 + + 81 * + COUNT( + - 82 ) col2 FROM tab0
----
247

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4133
SELECT 4 + + 81 * + COUNT ( + - 82 ) col2 FROM tab0
----
247

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4134
SELECT ALL - col0 + - - CAST( - col0 AS SIGNED ) AS col2 FROM tab0
----
-174
-194
-30

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL - col0 + - - CAST ( - col0 AS INTEGER ) AS col2 FROM tab0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT ALL - 99 + - - 64 * + COUNT( * ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL - 99 + - - 64 * + COUNT ( * ) FROM tab2
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4136
SELECT DISTINCT ( + 0 ) * + COUNT( * ) - + 53 AS col2, COUNT( * ) FROM tab2 WHERE NULL IS NOT NULL
----
-53
0

skipif mysql # not compatible
query II rowsort label-4136
SELECT DISTINCT ( + 0 ) * + COUNT ( * ) - + 53 AS col2, COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL
----
-53
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT - 29 + + COUNT( * ) AS col0 FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-4137
SELECT - 29 + + COUNT ( * ) AS col0 FROM tab2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4138
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 79 AS col2, + col1 + + 99 AS col0 FROM tab2
----
NULL
150
NULL
166
NULL
176

skipif mysql # not compatible
query II rowsort label-4138
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 79 AS col2, + col1 + + 99 AS col0 FROM tab2
----
NULL
150
NULL
166
NULL
176

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( - 84, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT ALL - - MAX( - col1 ) - - 69 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4140
SELECT ALL - - MAX ( - col1 ) - - 69 FROM tab2 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT DISTINCT COUNT( * ) - + 58 + + COUNT( * ) col0 FROM tab0
----
-52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4141
SELECT DISTINCT COUNT ( * ) - + 58 + + COUNT ( * ) col0 FROM tab0
----
-52

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 34 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( - 68 ) FROM tab2 AS cor0
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-4144
SELECT col2 DIV ( - col1 ) AS col0 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-4144
SELECT col2 / ( - col1 ) AS col0 FROM tab0 AS cor0
----
-99
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT NULL < + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4146
SELECT ALL - 73 DIV 34 AS col0 FROM tab1 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL - 73 / 34 AS col0 FROM tab1 AS cor0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4147
SELECT CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4147
SELECT CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col2 AS col0 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4149
SELECT - ( + ( + CAST( - COUNT( * ) AS SIGNED ) ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4149
SELECT - ( + ( + CAST ( - COUNT ( * ) AS INTEGER ) ) ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col0, - col2 col1 FROM tab0
----
10
-10
47
-47
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT ALL + 99 * - COUNT( * ) AS col2 FROM tab2
----
-297

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL + 99 * - COUNT ( * ) AS col2 FROM tab2
----
-297

query III rowsort
SELECT * FROM tab2 WHERE NOT + 17 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4153
SELECT + + COUNT( * ) + - 26 FROM tab1 WHERE NOT 24 BETWEEN + 55 + + - CAST( NULL AS SIGNED ) AND NULL
----
-26

skipif mysql # not compatible
query I rowsort label-4153
SELECT + + COUNT ( * ) + - 26 FROM tab1 WHERE NOT 24 BETWEEN + 55 + + - CAST ( NULL AS INTEGER ) AND NULL
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT ALL COUNT( * ) * - 88 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4154
SELECT ALL COUNT ( * ) * - 88 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT - SUM( DISTINCT - col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4155
SELECT - SUM ( DISTINCT - col1 ) FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( - 20, col1, - col2, + 51, 55 )
----
0

skipif mysql # not compatible
query I rowsort label-4156
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( - 20, col1, - col2, + 51, 55 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT ALL MAX( + 89 ) FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL MAX ( + 89 ) FROM tab1 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL + MIN( ALL col2 ) * + - 11 + - 26 + + - 65 FROM tab0 AS cor0 WHERE - col2 BETWEEN NULL AND - ( + + 26 ) + - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL + MIN ( ALL col2 ) * + - 11 + - 26 + + - 65 FROM tab0 AS cor0 WHERE - col2 BETWEEN NULL AND - ( + + 26 ) + - 73
----
NULL

query I rowsort
SELECT DISTINCT + 49 + - col2 AS col1 FROM tab0
----
-50
2
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4160
SELECT ALL MAX( col0 ) DIV + - 76 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL MAX ( col0 ) / + - 76 FROM tab1 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT - COUNT( DISTINCT + - 67 ) + + COUNT( * ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-4161
SELECT - COUNT ( DISTINCT + - 67 ) + + COUNT ( * ) FROM tab2 AS cor0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 * + 11 + + col0 col0 FROM tab1 AS cor0
----
102
62
96

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 IN ( col2 * + - col2 * col0 / - + col1, - 43 )
----

query I rowsort
SELECT ALL col1 + - + 52 AS col1 FROM tab0 AS cor0
----
-31
-51
29

query I rowsort
SELECT + 98 * 27 FROM tab2 AS cor0
----
2646
2646
2646

onlyif mysql # aggregate syntax: 
query II rowsort label-4166
SELECT + 77 AS col2, COUNT( * ) AS col0 FROM tab1
----
77
3

skipif mysql # not compatible
query II rowsort label-4166
SELECT + 77 AS col2, COUNT ( * ) AS col0 FROM tab1
----
77
3

query I rowsort
SELECT DISTINCT + 65 * + 77 AS col1 FROM tab0
----
5005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4168
SELECT - - col1 AS col1 FROM tab2 WHERE NULL > - CAST( col0 AS SIGNED ) + + col0
----

skipif mysql # not compatible
query I rowsort label-4168
SELECT - - col1 AS col1 FROM tab2 WHERE NULL > - CAST ( col0 AS INTEGER ) + + col0
----

query I rowsort
SELECT DISTINCT col2 + + col0 + - col2 * + col1 AS col0 FROM tab2 AS cor0
----
-1104
-2976
-3753

query I rowsort
SELECT 60 + col1 + - 52 AS col1 FROM tab2 AS cor0
----
59
75
85

query I rowsort
SELECT ALL - - 16 + + + 45 + - col2 FROM tab2 AS cor0
----
21
3
38

query I rowsort
SELECT DISTINCT col1 - 29 AS col0 FROM tab0 AS cor0
----
-28
-8
52

query I rowsort
SELECT DISTINCT - col1 * + + col2 * + + 12 FROM tab1
----
-16128
-3540
-38352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4174
SELECT ALL COUNT( * ) * + - CAST( - COUNT( * ) AS SIGNED ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL COUNT ( * ) * + - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1
----
9

query I rowsort
SELECT - col1 * + 71 FROM tab0 AS cor0
----
-1491
-5751
-71

query II rowsort
SELECT + - col0, + col0 * col2 + + ( + col2 ) AS col1 FROM tab2 AS cor0
----
-46
1081
-64
2600
-75
4408

onlyif mysql # DIV for integer division: 
query I rowsort label-4177
SELECT DISTINCT - col1 DIV - + col0 * 63 AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4177
SELECT DISTINCT - col1 / - + col0 * 63 AS col0 FROM tab1 cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 8 = + 67 * 18
----

query I rowsort
SELECT - 71 * + col1 AS col1 FROM tab1
----
-3337
-355
-994

query II rowsort
SELECT ( col0 ) AS col1, 49 - + col1 AS col0 FROM tab0
----
15
-32
87
28
97
48

query I rowsort
SELECT + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT col0 * + - col1 - - + col2 IS NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - - 62 AS col0 FROM tab1 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT - COUNT( ALL col1 ) * - + 11 + - 84 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4184
SELECT - COUNT ( ALL col1 ) * - + 11 + - 84 FROM tab1 cor0
----
-51

query II rowsort
SELECT + col0 AS col1, col0 AS col2 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT DISTINCT - + COUNT( * ) * - AVG ( DISTINCT 23 ) AS col0 FROM tab2 WHERE col1 - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT - + COUNT ( * ) * - AVG ( DISTINCT 23 ) AS col0 FROM tab2 WHERE col1 - col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT DISTINCT COUNT( * ) + 11 AS col0 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-4187
SELECT DISTINCT COUNT ( * ) + 11 AS col0 FROM tab2
----
14

query I rowsort
SELECT DISTINCT col2 / - - 13 FROM tab0 WHERE 11 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4189
SELECT ALL - 16 * ( - 97 ) * + + CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL - 16 * ( - 97 ) * + + 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 ALL col0 - - - 17 * 39 col2 FROM tab1 AS cor0
----
-572
-578
-612

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4191
SELECT ALL * FROM tab0 AS cor0 WHERE 44 + + col0 <= + col0 + CAST( - 28 AS SIGNED ) * + + 53
----

skipif mysql # not compatible
query III rowsort label-4191
SELECT ALL * FROM tab0 AS cor0 WHERE 44 + + col0 <= + col0 + CAST ( - 28 AS INTEGER ) * + + 53
----

query II rowsort
SELECT DISTINCT - col1, 8 - - + col0 AS col1 FROM tab0 cor0
----
-1
105
-21
95
-81
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4193
SELECT ALL CAST( + col1 AS SIGNED ) AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL CAST ( + col1 AS INTEGER ) AS col1 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT ALL 9 * COUNT( * ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL 9 * COUNT ( * ) FROM tab1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT DISTINCT + ( + SUM( - - col2 ) ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4195
SELECT DISTINCT + ( + SUM ( - - col2 ) ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4196
SELECT - col2 + - col2 AS col0, col2 DIV 85 AS col2 FROM tab1
----
-118
0
-136
0
-192
1

skipif mysql # not compatible
query II rowsort label-4196
SELECT - col2 + - col2 AS col0, col2 / 85 AS col2 FROM tab1
----
-118
0
-136
0
-192
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 col2 FROM tab2 WHERE NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT 89 + - 47 + + - 21 AS col1 FROM tab1
----
21
21
21

onlyif mysql # DIV for integer division: 
query II rowsort label-4199
SELECT + col0 DIV + - col1 AS col1, - 87 FROM tab2
----
-1
-87
0
-87
0
-87

skipif mysql # not compatible
query II rowsort label-4199
SELECT + col0 / + - col1 AS col1, - 87 FROM tab2
----
-1
-87
0
-87
0
-87

query I rowsort
SELECT ALL + 37 + - 10 FROM tab2
----
27
27
27

query II rowsort
SELECT col1 * - 64, col2 * - col1 * ( col1 ) AS col2 FROM tab2
----
-3264
-59823
-4288
-260362
-4928
-237160

query I rowsort
SELECT DISTINCT - col0 * + 89 AS col0 FROM tab2
----
-4094
-5696
-6675

query I rowsort
SELECT DISTINCT col2 * - col1 + 16 FROM tab1
----
-1328
-279
-3180

query I rowsort
SELECT DISTINCT col1 + - 98 AS col0 FROM tab0 AS cor0
----
-17
-77
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + col1 + + + 56 * - col1 * col2 + - 98 / + + col2 * - - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4206
SELECT DISTINCT - CAST( NULL AS SIGNED ) * COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * ( + 98 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4208
SELECT + col2 DIV ( - 5 ) * col2 * 14, col1 FROM tab0 AS cor0
----
-26334
1
-280
21
-5922
81

skipif mysql # not compatible
query II rowsort label-4208
SELECT + col2 / ( - 5 ) * col2 * 14, col1 FROM tab0 AS cor0
----
-26334
1
-280
21
-5922
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT + SUM( 32 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4209
SELECT + SUM ( 32 ) FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4210
SELECT col2 AS col1, 49 * - 8 * - CAST( + 97 AS SIGNED ) FROM tab0
----
10
38024
47
38024
99
38024

skipif mysql # not compatible
query II rowsort label-4210
SELECT col2 AS col1, 49 * - 8 * - CAST ( + 97 AS INTEGER ) FROM tab0
----
10
38024
47
38024
99
38024

query II rowsort
SELECT 73, col2 AS col2 FROM tab0
----
73
10
73
47
73
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4212
SELECT COUNT( + - 64 ) AS col1, + COUNT( * ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-4212
SELECT COUNT ( + - 64 ) AS col1, + COUNT ( * ) AS col1 FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4213
SELECT ALL + 36 * + 98, + MAX( ALL col0 ) AS col1 FROM tab1
----
3528
91

skipif mysql # not compatible
query II rowsort label-4213
SELECT ALL + 36 * + 98, + MAX ( ALL col0 ) AS col1 FROM tab1
----
3528
91

query I rowsort
SELECT ALL col0 + + - 45 AS col0 FROM tab0
----
-30
42
52

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= - + col2
----

query I rowsort
SELECT - col0 * - + col0 * + col0 FROM tab0
----
3375
658503
912673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col0 + - col0 col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT ALL MIN( + ( - col1 ) ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL MIN ( + ( - col1 ) ) AS col0 FROM tab2
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4219
SELECT ALL - col2 + + - col1 DIV + + 24 AS col1 FROM tab2
----
-25
-43
-60

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL - col2 + + - col1 / + + 24 AS col1 FROM tab2
----
-25
-43
-60

query III rowsort
SELECT * FROM tab2 WHERE NOT - + ( + col0 ) IS NOT NULL
----

query II rowsort
SELECT ALL 33 AS col2, - col1 + + 54 AS col0 FROM tab2 AS cor0
----
33
-13
33
-23
33
3

query I rowsort
SELECT - + col0 * - 44 AS col2 FROM tab1 AS cor0
----
2244
3740
4004

query I rowsort
SELECT DISTINCT - col1 * + - 64 - + col2 FROM tab1 AS cor0
----
261
2940
800

query I rowsort
SELECT ALL + col1 + - col0 + - - col1 + + col2 + - col0 * - 38 AS col0 FROM tab1 AS cor0
----
2011
3214
3529

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT - + MAX( - col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4225
SELECT - + MAX ( - col1 ) AS col1 FROM tab0 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + - 31 + col0 < NULL
----

query II rowsort
SELECT ALL + col0, ( 40 ) FROM tab1
----
51
40
85
40
91
40

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 76 * + + ( 58 ) * + - col0 >= ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE - 28 + - 87 IS NULL
----

query II rowsort
SELECT ALL 61, col0 FROM tab2
----
61
46
61
64
61
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4231
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT NULL NOT IN ( + ( + CAST( NULL AS SIGNED ) ) * - col0 + - CAST( NULL AS SIGNED ) * col1, - col0 * + - col0, 41, - 11, - 56 ) )
----

skipif mysql # not compatible
query III rowsort label-4231
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT NULL NOT IN ( + ( + CAST ( NULL AS INTEGER ) ) * - col0 + - CAST ( NULL AS INTEGER ) * col1, - col0 * + - col0, 41, - 11, - 56 ) )
----

query I rowsort
SELECT DISTINCT + 76 * col2 * col1 FROM tab1
----
102144
22420
242896

query II rowsort
SELECT ALL - col0 AS col2, + 2 AS col1 FROM tab1
----
-51
2
-85
2
-91
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT ALL - 93 + + + COUNT( * ) AS col1 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL - 93 + + + COUNT ( * ) AS col1 FROM tab0
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4235
SELECT 66 + - 56 * + + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4235
SELECT 66 + - 56 * + + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT col2 * - 26 AS col2 FROM tab1 AS cor0
----
-1534
-1768
-2496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 WHERE col2 + + col1 IS NOT NULL
----
23
40
58

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NULL IN ( + 10 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4239
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + col1 FROM tab1 WHERE col2 NOT BETWEEN ( + 30 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4239
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + col1 FROM tab1 WHERE col2 NOT BETWEEN ( + 30 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 72 NOT IN ( - col1 + + ( + col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NOT + col2 BETWEEN ( 12 * 15 ) AND col1
----
3

skipif mysql # not compatible
query I rowsort label-4241
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NOT + col2 BETWEEN ( 12 * 15 ) AND col1
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4242
SELECT col2 DIV + col2 + CAST( 61 AS SIGNED ) AS col1 FROM tab0
----
62
62
62

skipif mysql # not compatible
query I rowsort label-4242
SELECT col2 / + col2 + CAST ( 61 AS INTEGER ) AS col1 FROM tab0
----
62
62
62

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE ( + 20 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT - COUNT( * ) * 57 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-171

skipif mysql # not compatible
query I rowsort label-4245
SELECT - COUNT ( * ) * 57 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT COUNT( col1 ) AS col0 FROM tab2 WHERE NOT ( col2 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4246
SELECT COUNT ( col1 ) AS col0 FROM tab2 WHERE NOT ( col2 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT ALL + COUNT( * ) * COUNT( * ) + + 21 AS col1 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL + COUNT ( * ) * COUNT ( * ) + + 21 AS col1 FROM tab2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT + COUNT( * ) + COUNT( * ) * - ( - 66 ) AS col1 FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-4248
SELECT + COUNT ( * ) + COUNT ( * ) * - ( - 66 ) AS col1 FROM tab1
----
201

query I rowsort
SELECT 77 + col1 AS col2 FROM tab2
----
128
144
154

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 >= + ( + 36 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 <> - 81 * + 88 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 col0 FROM tab0
----
76
76
76

query I rowsort
SELECT DISTINCT 86 FROM tab2 WHERE NOT ( NULL ) BETWEEN col2 AND NULL
----

query I rowsort
SELECT col1 + 25 AS col1 FROM tab2
----
102
76
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT MIN( ALL + 15 ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-4255
SELECT MIN ( ALL + 15 ) FROM tab1
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 61 col2 FROM tab0
----
2867
6039
610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - ( + col2 ) col2 FROM tab1
----
-45
23
26

query I rowsort
SELECT DISTINCT - col0 + - 46 AS col2 FROM tab0
----
-133
-143
-61

query I rowsort
SELECT ALL - ( ( + 98 ) ) FROM tab1
----
-98
-98
-98

query I rowsort
SELECT ALL col1 * + col0 + - ( - 44 ) AS col1 FROM tab2 AS cor0
----
2390
4972
5069

query I rowsort
SELECT - col1 * + 67 + - 97 FROM tab1 AS cor0
----
-1035
-3246
-432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 AS cor0 WHERE col2 = col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4263
SELECT DISTINCT + col2 * CAST( col0 AS SIGNED ) + col1 AS col0 FROM tab1 cor0
----
4910
5020
6235

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT + col2 * CAST ( col0 AS INTEGER ) + col1 AS col0 FROM tab1 cor0
----
4910
5020
6235

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4264
SELECT + 30 DIV - COUNT( * ) FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-4264
SELECT + 30 / - COUNT ( * ) FROM tab2
----
-10

query I rowsort
SELECT ALL - 54 * + 44 FROM tab0 AS cor0 WHERE - col2 / col2 IS NOT NULL
----
-2376
-2376
-2376

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE ( - 36 ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4267
SELECT ALL CAST( + 10 AS SIGNED ) + - col0 FROM tab2 cor0
----
-36
-54
-65

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL CAST ( + 10 AS INTEGER ) + - col0 FROM tab2 cor0
----
-36
-54
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4268
SELECT ALL col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 + CAST( NULL AS SIGNED ) AND 76 * 90 + + col2
----

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 + CAST ( NULL AS INTEGER ) AND 76 * 90 + + col2
----

query I rowsort
SELECT DISTINCT + 46 * - col1 - - col1 FROM tab1 cor0
----
-2115
-225
-630

query I rowsort
SELECT ALL + + 81 + + col2 FROM tab1 AS cor0
----
140
149
177

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 83 ) NOT BETWEEN col1 / + col0 AND ( NULL )
----

query I rowsort
SELECT + 6 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( 11 )
----

query I rowsort
SELECT + col1 + ( - ( + 14 ) + + 71 ) AS col2 FROM tab0 AS cor0
----
138
58
78

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + ( - col0 ) ) >= - col2 * - col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col0 ) = - 8
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 65 - + col2 col2 FROM tab2 AS cor0
----
25
42
7

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT - col0 <> ( ( - col1 ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( - col0 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT ALL - MIN( DISTINCT + 28 ) AS col2 FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL - MIN ( DISTINCT + 28 ) AS col2 FROM tab2
----
-28

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 4 >= ( NULL )
----

query I rowsort
SELECT - 27 + 28 AS col2 FROM tab2 cor0 WHERE NOT NULL NOT IN ( - col2 )
----

query I rowsort
SELECT ALL - col0 * ( - col1 ) AS col0 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT ALL MIN( + col0 ) * - COUNT( * ) col0 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4283
SELECT ALL MIN ( + col0 ) * - COUNT ( * ) col0 FROM tab1 AS cor0
----
-153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4284
SELECT DISTINCT + COUNT( * ) * + - COUNT( ALL col1 ) DIV + 76 col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4284
SELECT DISTINCT + COUNT ( * ) * + - COUNT ( ALL col1 ) / + 76 col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 41 / col0 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 > col1
----

query I rowsort
SELECT + 35 * col2 FROM tab0
----
1645
3465
350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4288
SELECT COUNT( * ) * - - CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4288
SELECT COUNT ( * ) * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4289
SELECT DISTINCT - 36 / - 40 - + col1 AS col2 FROM tab1 WHERE NULL <= 34 - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT - 36 / - 40 - + col1 AS col2 FROM tab1 WHERE NULL <= 34 - CAST ( NULL AS REAL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 ) = 91 / ( - 54 ) + col1 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT col2 / - 35 NOT BETWEEN + col1 / + 48 AND 92
----

query I rowsort
SELECT 93 + 1 + - - col0 FROM tab0 AS cor0
----
109
181
191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4293
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) / + - col1 ) IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) / + - col1 ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT 10 * - + col2 FROM tab2 AS cor0
----
-230
-400
-580

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 IN ( + ( col1 ) * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ALL MIN( DISTINCT 38 ) FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL MIN ( DISTINCT 38 ) FROM tab0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4297
SELECT CAST( NULL AS SIGNED ) * + 60 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4297
SELECT CAST ( NULL AS INTEGER ) * + 60 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 + - + col2 BETWEEN + col1 * + col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT DISTINCT COUNT( DISTINCT + col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4299
SELECT DISTINCT COUNT ( DISTINCT + col1 ) AS col2 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE ( - - 86 ) >= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col0 + + col2 ) IN ( + 67 + ( + col2 + - col1 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 * + 32 IS NULL
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE - col1 + - col2 NOT IN ( col1 )
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4304
SELECT - CAST( NULL AS SIGNED ) + - col1 + - col1 + col1 * + col0 col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4304
SELECT - CAST ( NULL AS INTEGER ) + - col1 + - col1 + col1 * + col0 col0 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 28 BETWEEN ( + 18 ) AND NULL
----

query I rowsort
SELECT DISTINCT - col0 + col1 - col2 AS col1 FROM tab1 AS cor0
----
-112
-133
-139

query I rowsort
SELECT DISTINCT + col1 * + + 93 / - 45 FROM tab2 WHERE NULL <> - col0
----

query I rowsort
SELECT + 48 AS col0 FROM tab1 WHERE - 93 = NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL <= ( + col0 )
----

query I rowsort
SELECT 8 * + 87 FROM tab1 AS cor0
----
696
696
696

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT DISTINCT MAX( ALL col0 ) + + COUNT( * ) * + 95 AS col1 FROM tab0 AS cor0
----
382

skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT MAX ( ALL col0 ) + + COUNT ( * ) * + 95 AS col1 FROM tab0 AS cor0
----
382

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col2 ) IS NULL AND - col2 IS NULL
----

query I rowsort
SELECT 23 - + - col0 FROM tab1 cor0
----
108
114
74

query I rowsort
SELECT ALL + col2 - col2 AS col2 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 98 - 34 * 14 col1, col2 FROM tab1 AS cor0
----
-378
59
-378
68
-378
96

query I rowsort
SELECT DISTINCT 72 FROM tab0 AS cor0 WHERE ( + - col1 ) + ( - + 65 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4317
SELECT + COUNT( * ), - MIN( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
3
-1

skipif mysql # not compatible
query II rowsort label-4317
SELECT + COUNT ( * ), - MIN ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
3
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE + 1 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( + - col0 NOT BETWEEN col2 AND 29 / + 67 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT ALL - MAX( DISTINCT ( - 73 ) ) FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL - MAX ( DISTINCT ( - 73 ) ) FROM tab1
----
73

query II rowsort
SELECT col1, col2 + - col1 AS col0 FROM tab1
----
14
82
47
21
5
54

query I rowsort
SELECT + 88 * ( + - col1 ) FROM tab0 AS cor0
----
-1848
-7128
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT DISTINCT + SUM( + - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT + SUM ( + - col0 ) FROM tab1 AS cor0
----
-227

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col1 + - col0 + + + 39 ) NOT IN ( col1 + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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 II rowsort label-4326
SELECT DISTINCT COUNT( * ), + 8 AS col1 FROM tab1
----
3
8

skipif mysql # not compatible
query II rowsort label-4326
SELECT DISTINCT COUNT ( * ), + 8 AS col1 FROM tab1
----
3
8

query II rowsort
SELECT ALL + 5 AS col1, col1 FROM tab1
----
5
14
5
47
5
5

query III rowsort
SELECT * FROM tab2 WHERE + 64 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT COUNT( * ) + - - MAX( DISTINCT - 54 ) FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-4329
SELECT COUNT ( * ) + - - MAX ( DISTINCT - 54 ) FROM tab0
----
-51

query I rowsort
SELECT DISTINCT - 65 + + - 87 AS col2 FROM tab1
----
-152

query III rowsort
SELECT * FROM tab0 WHERE - + col2 < 39
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + + col2 + 19 FROM tab2 AS cor0
----
123
152
88

query I rowsort
SELECT ALL + 74 + + col2 FROM tab2 AS cor0
----
114
132
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * + 56 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 35 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT col0 - + col2 + - - col1 FROM tab2
----
101
74
84

query I rowsort
SELECT 33 + - + ( - col1 ) AS col2 FROM tab2
----
100
110
84

query I rowsort
SELECT ALL - ( + col1 ) * - col0 + 12 * 23 * + - col1 * + col1 AS col2 FROM tab2 AS cor0
----
-1233939
-1631476
-715530

query II rowsort
SELECT + col1 * + col0 * + 5, - ( - col2 ) * - + col2 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
485
-9801
6075
-2209
9135
-100

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 81 * col0 * - + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4342
SELECT DISTINCT col1 DIV + 78 col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4342
SELECT DISTINCT col1 / + 78 col0 FROM tab0 AS cor0
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 * + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT ALL - + MIN( ALL - col1 ) AS col2 FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL - + MIN ( ALL - col1 ) AS col2 FROM tab0 cor0
----
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * + 3 NOT BETWEEN NULL AND + - ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT ( - 71 ) * COUNT( * ) + 76 FROM tab0
----
-137

skipif mysql # not compatible
query I rowsort label-4346
SELECT ( - 71 ) * COUNT ( * ) + 76 FROM tab0
----
-137

query I rowsort
SELECT DISTINCT 22 * + + 48 FROM tab1
----
1056

onlyif mysql # DIV for integer division: 
query I rowsort label-4348
SELECT + 70 DIV - + 93 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4348
SELECT + 70 / - + 93 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col0 + - 43 AS col2 FROM tab2 AS cor0 WHERE NOT 96 + + 77 = + + 8
----
21
3
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT + - SUM( ALL - col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4350
SELECT + - SUM ( ALL - col1 ) FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT + COUNT( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4351
SELECT + COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT + 3 + + COUNT( * ) col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4352
SELECT + 3 + + COUNT ( * ) col1 FROM tab2 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 AS col1, col1 col0 FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT + COUNT( * ) + - - 79 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-4354
SELECT + COUNT ( * ) + - - 79 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4355
SELECT MIN( 72 ) + + - 17 DIV COUNT( * ) + + 1 * ( COUNT( * ) ) FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-4355
SELECT MIN ( 72 ) + + - 17 / COUNT ( * ) + + 1 * ( COUNT ( * ) ) FROM tab2 AS cor0
----
70

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL < - 31
----

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE 49 IS NULL
----

query II rowsort
SELECT ALL + 2, + col2 * + col1 AS col0 FROM tab1 AS cor0
----
2
1344
2
295
2
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4359
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, + COUNT( * ) DIV + 80 col0 FROM tab0 AS cor0
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4359
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) / + 80 col0 FROM tab0 AS cor0
----
NULL
0

query II rowsort
SELECT + 75 * + 6 AS col2, col1 AS col0 FROM tab2
----
450
51
450
67
450
77

query I rowsort
SELECT DISTINCT ( - 15 ) + - ( - col1 ) AS col1 FROM tab2
----
36
52
62

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE NOT + + 82 IN ( + + col0 )
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 42 * - col1 * + 81 col1, 96 FROM tab2
----
173502
96
227934
96
261954
96

query I rowsort
SELECT ALL col2 + 17 AS col2 FROM tab0
----
116
27
64

query I rowsort
SELECT ALL - 68 FROM tab0 WHERE 60 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT DISTINCT ( ( - - ( - COUNT( * ) ) ) ) + + + COUNT( ALL col1 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4366
SELECT DISTINCT ( ( - - ( - COUNT ( * ) ) ) ) + + + COUNT ( ALL col1 ) AS col1 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4367
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4367
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT DISTINCT + COUNT( * ) + 63 * + SUM( - - col0 ) AS col1 FROM tab1 AS cor0
----
14304

skipif mysql # not compatible
query I rowsort label-4368
SELECT DISTINCT + COUNT ( * ) + 63 * + SUM ( - - col0 ) AS col1 FROM tab1 AS cor0
----
14304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 + - 79 col2, + 22 * + 89 FROM tab1 AS cor0
----
-11
1958
-20
1958
17
1958

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 81 + col2 * col0 <> + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4371
SELECT ALL + ( 34 ) DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL + ( 34 ) / - col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT ALL MAX( DISTINCT + ( - 42 ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-42

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL MAX ( DISTINCT + ( - 42 ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-42

query II rowsort
SELECT ALL + col2 AS col2, 34 * col1 AS col0 FROM tab0 AS cor0
----
10
714
47
2754
99
34

onlyif mysql # aggregate syntax: 
query II rowsort label-4374
SELECT ALL + 66, + COUNT( * ) - + 1 * 63 AS col0 FROM tab2 AS cor0
----
66
-60

skipif mysql # not compatible
query II rowsort label-4374
SELECT ALL + 66, + COUNT ( * ) - + 1 * 63 AS col0 FROM tab2 AS cor0
----
66
-60

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( - col1 / - - col1 + + ( + col2 ) ) <= col0 + + 91
----

query I rowsort
SELECT ALL + 1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4377
SELECT ALL - col0 DIV - 61 + + + col2 AS col1 FROM tab2 AS cor0
----
23
41
59

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL - col0 / - 61 + + + col2 AS col1 FROM tab2 AS cor0
----
23
41
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4378
SELECT CAST( NULL AS DECIMAL ) * 79 - + 12 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-4378
SELECT CAST ( NULL AS REAL ) * 79 - + 12 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE NOT + - col0 * + + col0 - - col0 BETWEEN - col2 AND + col0
----
3

skipif mysql # not compatible
query I rowsort label-4379
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT + - col0 * + + col0 - - col0 BETWEEN - col2 AND + col0
----
3

query I rowsort
SELECT ALL - 98 * - col0 FROM tab1
----
4998
8330
8918

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE - - 70 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * - - 2 * col0 FROM tab1
----
14450
16562
5202

query I rowsort
SELECT DISTINCT col2 * - 25 * - 21 * + col0 FROM tab0
----
370125
456750
5041575

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT DISTINCT - COUNT( * ) * + 94 AS col1 FROM tab0
----
-282

skipif mysql # not compatible
query I rowsort label-4384
SELECT DISTINCT - COUNT ( * ) * + 94 AS col1 FROM tab0
----
-282

query I rowsort
SELECT 91 * ( + - 10 ) AS col0 FROM tab1
----
-910
-910
-910

onlyif mysql # DIV for integer division: 
query I rowsort label-4386
SELECT ALL col2 DIV + - col2 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL col2 / + - col2 AS col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT col2 * 3 FROM tab2
----
120
174
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT DISTINCT SUM( DISTINCT + - ( + + 36 ) ) col2 FROM tab2
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4388
SELECT DISTINCT SUM ( DISTINCT + - ( + + 36 ) ) col2 FROM tab2
----
-36

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4390
SELECT - MIN( ALL - col2 ) + + AVG ( + CAST( NULL AS SIGNED ) ) + - COUNT( * ) + 9 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4390
SELECT - MIN ( ALL - col2 ) + + AVG ( + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) + 9 FROM tab2 cor0
----
NULL

query I rowsort
SELECT + col0 AS col1 FROM tab0 cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * - - col2 * - col2 FROM tab2 AS cor0
----
123200
225388
26979

query I rowsort
SELECT DISTINCT ( 85 ) AS col2 FROM tab2
----
85

query I rowsort
SELECT + - col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4395
SELECT - - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4395
SELECT - - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 79 NOT BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4397
SELECT DISTINCT + - CAST( COUNT( * ) AS SIGNED ) + - + COUNT( * ) + - + COUNT( + col0 ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4397
SELECT DISTINCT + - CAST ( COUNT ( * ) AS INTEGER ) + - + COUNT ( * ) + - + COUNT ( + col0 ) FROM tab1 cor0
----
-9

query I rowsort
SELECT - + col1 + + 62 AS col0 FROM tab2 AS cor0
----
-15
-5
11

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 * - col2 * + 66 ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4400
SELECT DISTINCT + 65 - - col2 + col2 + + col1 DIV - + 67 + + col0 + - 6 DIV + + col2 col0 FROM tab2 AS cor0
----
157
208
255

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4400
SELECT DISTINCT + 65 - - col2 + col2 + + col1 / - + 67 + + col0 + - 6 / + + col2 col0 FROM tab2 AS cor0
----
157
208
255

query III rowsort
SELECT * FROM tab2 WHERE - col0 * col0 / + col0 BETWEEN NULL AND + col0 / + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col2, col0 + - - col0 AS col2 FROM tab1
----
-51
102
-85
170
-91
182

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT DISTINCT + ( + MAX( - col1 ) ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT + ( + MAX ( - col1 ) ) AS col1 FROM tab0
----
-1

query I rowsort
SELECT col0 + 90 AS col2 FROM tab2
----
136
154
165

query III rowsort
SELECT * FROM tab1 WHERE + col1 / + + 94 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( 85 ) col1 FROM tab2 WHERE NULL NOT BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT DISTINCT - COUNT( * ) + + - 61 col2 FROM tab1
----
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4407
SELECT DISTINCT - COUNT ( * ) + + - 61 col2 FROM tab1
----
-64

query I rowsort
SELECT DISTINCT - col2 * + col0 * + 50 FROM tab1
----
-244800
-250750
-309400

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT ALL + SUM( ALL col1 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
103

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL + SUM ( ALL col1 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
103

query II rowsort
SELECT DISTINCT col0 + + col1, col2 AS col2 FROM tab0
----
108
10
96
47
98
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 <> - + col1 / + - col0 * - col2 + - col2 - 44 / col1 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col2 - - + col2, + col0 + - - col0 + col0 AS col1 FROM tab1 cor0
----
0
153
0
255
0
273

query I rowsort
SELECT DISTINCT - 15 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT + MIN( 45 ) AS col1 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4414
SELECT + MIN ( 45 ) AS col1 FROM tab2 AS cor0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4415
SELECT - 29 * COUNT( * ) + - + MAX( DISTINCT col0 ) DIV + COUNT( * ) - - MAX( ALL - col0 ) FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-4415
SELECT - 29 * COUNT ( * ) + - + MAX ( DISTINCT col0 ) / + COUNT ( * ) - - MAX ( ALL - col0 ) FROM tab1 AS cor0
----
-168

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 28 + 46 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT DISTINCT COUNT( * ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ( - - 36 ) FROM tab2 AS cor0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT COUNT( - - 69 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4419
SELECT COUNT ( - - 69 ) col1 FROM tab0
----
3

query II rowsort
SELECT ALL - 71, + col0 FROM tab2
----
-71
46
-71
64
-71
75

onlyif mysql # DIV for integer division: 
query II rowsort label-4421
SELECT DISTINCT 83 DIV 39 * 56 AS col1, 30 FROM tab2
----
112
30

skipif mysql # not compatible
query II rowsort label-4421
SELECT DISTINCT 83 / 39 * 56 AS col1, 30 FROM tab2
----
112
30

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 13 NOT BETWEEN - 13 AND + - col0 + + - 49 * + col0
----

query II rowsort
SELECT + col1, - col1 * + 31 FROM tab0
----
1
-31
21
-651
81
-2511

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT ALL - + COUNT( DISTINCT + 59 ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL - + COUNT ( DISTINCT + 59 ) AS col2 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT + MAX( DISTINCT + col1 ) col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4425
SELECT + MAX ( DISTINCT + col1 ) col2 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT DISTINCT - COUNT( * ) * + 49 FROM tab0 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT - COUNT ( * ) * + 49 FROM tab0 AS cor0
----
-147

query I rowsort
SELECT + AVG ( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND ( col0 * col1 + + col0 * - col0 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4428
SELECT ALL - COUNT( * ) / + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL - COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 29 + - col1 AS col0 FROM tab1
----
-34
-43
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4430
SELECT + CAST( + + ( + 24 ) AS SIGNED ) col1 FROM tab1 AS cor0
----
24
24
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4430
SELECT + CAST ( + + ( + 24 ) AS INTEGER ) col1 FROM tab1 AS cor0
----
24
24
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4431
SELECT ALL col0 DIV 66 + - col1 + - col1 AS col1 FROM tab0 AS cor0
----
-1
-162
-41

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL col0 / 66 + - col1 + - col1 AS col1 FROM tab0 AS cor0
----
-1
-162
-41

query I rowsort
SELECT col2 * - col2 + - + col2 FROM tab0 AS cor0
----
-110
-2256
-9900

query I rowsort
SELECT - + col0 AS col1 FROM tab0 cor0 WHERE NULL = - 14
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4434
SELECT - 4 DIV 67 * col2 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4434
SELECT - 4 / 67 * col2 AS col0 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col0 + + 41 + col0 IN ( - + 65 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT col0 > NULL
----

query I rowsort
SELECT 1 + + col1 AS col2 FROM tab2 cor0
----
52
68
78

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 59 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 - + col2 AS col0 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT DISTINCT + - 58 * - + col2 AS col0 FROM tab1 cor0
----
3422
3944
5568

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT DISTINCT - - ( - COUNT( * ) ) + + - 86 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-95

skipif mysql # not compatible
query I rowsort label-4441
SELECT DISTINCT - - ( - COUNT ( * ) ) + + - 86 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-95

query I rowsort
SELECT ALL + ( + + ( + - 91 ) ) * ( - col2 ) FROM tab2 AS cor0
----
2093
3640
5278

query I rowsort
SELECT - - 97 * - col0 * + col2 FROM tab0 AS cor0
----
-68385
-84390
-931491

onlyif mysql # DIV for integer division: 
query I rowsort label-4444
SELECT ALL - + 51 * - col2 DIV - - col2 + col0 FROM tab0 AS cor0
----
138
148
66

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL - + 51 * - col2 / - - col2 + col0 FROM tab0 AS cor0
----
138
148
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT + COUNT( * ) col0 FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 * + col0 AND - ( - - col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4445
SELECT + COUNT ( * ) col0 FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 * + col0 AND - ( - - col0 )
----
0

query II rowsort
SELECT - col2, + col2 AS col0 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NOT + col0 IS NULL
----
-51
-85
-91

query II rowsort
SELECT col1 + - col1 AS col1, + col0 * col2 * + + 94 AS col2 FROM tab2
----
0
240640
0
408900
0
99452

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4449
SELECT - 99 DIV + - col0 + + col0 - col1 * + col0 AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
-1194
NULL
-1739
NULL
1
NULL

skipif mysql # not compatible
query II rowsort label-4449
SELECT - 99 / + - col0 + + col0 - col1 * + col0 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
-1194
NULL
-1739
NULL
1
NULL

query I rowsort
SELECT ALL - - col0 * - + col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT + - 66 AS col2 FROM tab1 cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT + COUNT( * ) + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-4452
SELECT + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18

query I rowsort
SELECT DISTINCT col2 + 85 FROM tab0
----
132
184
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT DISTINCT + COUNT( * ) + 98 AS col2 FROM tab1 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-4454
SELECT DISTINCT + COUNT ( * ) + 98 AS col2 FROM tab1 AS cor0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT 85 + + COUNT( * ) AS col1 FROM tab0 cor0
----
88

skipif mysql # not compatible
query I rowsort label-4455
SELECT 85 + + COUNT ( * ) AS col1 FROM tab0 cor0
----
88

query I rowsort
SELECT ALL col1 * + + ( + col1 ) + - col1 + + col2 * + col2 FROM tab0 AS cor0
----
520
8689
9801

query I rowsort
SELECT 20 * + - 69 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 26 * - + col2 + + - col2 + - + 52 BETWEEN NULL AND + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 37 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT COUNT( * ) + ( 5 ) col0 FROM tab0
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4460
SELECT COUNT ( * ) + ( 5 ) col0 FROM tab0
----
8

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col1 * + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4462
SELECT - 12 + + 28 AS col1, - 39 * + COUNT( * ) FROM tab1
----
16
-117

skipif mysql # not compatible
query II rowsort label-4462
SELECT - 12 + + 28 AS col1, - 39 * + COUNT ( * ) FROM tab1
----
16
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT 44 * + COUNT( * ) AS col2 FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-4463
SELECT 44 * + COUNT ( * ) AS col2 FROM tab2
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT - MIN( 34 ) FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-4464
SELECT - MIN ( 34 ) FROM tab0
----
-34

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( NOT NULL = NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4466
SELECT ALL col2 DIV + - ( - 3 ) col2 FROM tab2
----
13
19
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4466
SELECT ALL col2 / + - ( - 3 ) col2 FROM tab2
----
13
19
7

query I rowsort
SELECT DISTINCT + - 62 FROM tab1 cor0
----
-62

query I rowsort
SELECT ALL - + col0 AS col0 FROM tab2 AS cor0 WHERE - col2 < NULL
----

query I rowsort
SELECT col1 * - ( - 11 ) * - - ( - col1 ) FROM tab2 AS cor0
----
-28611
-49379
-65219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4470
SELECT ALL MIN( - CAST( NULL AS SIGNED ) ) col2, + 80 + - - COUNT( * ) FROM tab2 AS cor0
----
NULL
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4470
SELECT ALL MIN ( - CAST ( NULL AS INTEGER ) ) col2, + 80 + - - COUNT ( * ) FROM tab2 AS cor0
----
NULL
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT ALL MIN( - + ( + + col0 ) ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4471
SELECT ALL MIN ( - + ( + + col0 ) ) FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT ALL ( - COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL ( - COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

query I rowsort
SELECT - col0 * - 9 FROM tab0 AS cor0
----
135
783
873

query I rowsort
SELECT + - col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IN ( - col0, 1 + - + 48 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4475
SELECT + 68 DIV col2 col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4475
SELECT + 68 / col2 col0 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT 60 + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-21
39
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4477
SELECT + 73 DIV + col1 FROM tab0 AS cor0
----
0
3
73

skipif mysql # not compatible
query I rowsort label-4477
SELECT + 73 / + col1 FROM tab0 AS cor0
----
0
3
73

query I rowsort
SELECT - col0 / - 7 AS col2 FROM tab1 AS cor0 WHERE NOT ( + col0 - - + col0 IS NOT NULL )
----

query I rowsort
SELECT ALL + col1 + - - 75 FROM tab1
----
122
80
89

query I rowsort
SELECT + 39 + col0 - + col1 FROM tab2 cor0
----
26
34
47

query I rowsort
SELECT + - col1 + ( - col2 ) + 89 + - col1 FROM tab2 cor0
----
-103
-105
-36

query I rowsort
SELECT - - 21 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4483
SELECT DISTINCT + ( col2 ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4483
SELECT DISTINCT + ( col2 ) * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - 2 AS col1 FROM tab0 WHERE ( NULL IS NULL )
----
-2
-2
-2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + + col0 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + - 76 AS col2 FROM tab0 AS cor0
----
-55
-75
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 - col0 + + col0 * + col1 * + 3 col1 FROM tab1 AS cor0
----
1131
12672
1995

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT - - COUNT( + 28 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4488
SELECT - - COUNT ( + 28 ) AS col2 FROM tab0 cor0
----
3

query II rowsort
SELECT DISTINCT + col1 - - 81 AS col1, + col0 FROM tab0 AS cor0
----
102
87
162
15
82
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4490
SELECT - - col0 + + col0 FROM tab2 AS cor0 WHERE - CAST( + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4490
SELECT - - col0 + + col0 FROM tab2 AS cor0 WHERE - CAST ( + col1 AS INTEGER ) IS NULL
----

query II rowsort
SELECT - col2 * + col1 AS col1, + col2 AS col2 FROM tab1 AS cor0
----
-1344
96
-295
59
-3196
68

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 <> - 64 + + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT + COUNT( * ) - + ( COUNT( DISTINCT + + col0 ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4493
SELECT + COUNT ( * ) - + ( COUNT ( DISTINCT + + col0 ) ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT ALL 70 * ( - COUNT( * ) ) FROM tab1 cor0
----
-210

skipif mysql # not compatible
query I rowsort label-4494
SELECT ALL 70 * ( - COUNT ( * ) ) FROM tab1 cor0
----
-210

query II rowsort
SELECT + 37 * - col1 - - col2 AS col1, 73 + - col1 FROM tab2
----
-1864
22
-2421
6
-2809
-4

query I rowsort
SELECT ALL ( - col0 ) - + - col1 + - col0 * + 90 AS col0 FROM tab1
----
-4627
-7730
-8234

query I rowsort
SELECT ALL + col2 * + 76 FROM tab2
----
1748
3040
4408

query I rowsort
SELECT - ( - col0 ) * - 10 AS col0 FROM tab1
----
-510
-850
-910

query I rowsort
SELECT + AVG ( ALL - + 8 ) FROM tab2 WHERE NOT col2 > NULL
----
NULL

query I rowsort
SELECT + ( - + col1 ) AS col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL + ( + 71 ) AS col1 FROM tab2 AS cor0
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT DISTINCT - - MIN( ALL - 40 ) AS col2 FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT - - MIN ( ALL - 40 ) AS col2 FROM tab1 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 42 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4503
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 42 IS NULL
----
3

query I rowsort
SELECT ALL + col2 + 3 * 82 AS col2 FROM tab2 AS cor0
----
269
286
304

query I rowsort
SELECT 94 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4506
SELECT - col1 * col1 * + CAST( NULL AS SIGNED ) - - col1 * + col1 AS col1, 58 DIV + col0 FROM tab2 cor0
----
NULL
0
NULL
0
NULL
1

skipif mysql # not compatible
query II rowsort label-4506
SELECT - col1 * col1 * + CAST ( NULL AS INTEGER ) - - col1 * + col1 AS col1, 58 / + col0 FROM tab2 cor0
----
NULL
0
NULL
0
NULL
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - ( + col1 ) AS col0, + col0 col1 FROM tab0 AS cor0
----
1
97
21
87
81
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 * + - col0 col2 FROM tab2 AS cor0
----
-4094
-5696
-6675

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * - + 45 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4510
SELECT ALL CAST( - SUM( ALL + + CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL CAST ( - SUM ( ALL + + CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL + col1 + + - col2 FROM tab1
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4512
SELECT + 33 + - - CAST( - ( + 92 ) AS SIGNED ) col0 FROM tab0
----
-59
-59
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4512
SELECT + 33 + - - CAST ( - ( + 92 ) AS INTEGER ) col0 FROM tab0
----
-59
-59
-59

query I rowsort
SELECT DISTINCT col0 + - col0 * col0 AS col0 FROM tab1
----
-2550
-7140
-8190

query II rowsort
SELECT - col0 * 10 + + col2, 85 AS col1 FROM tab0
----
-103
85
-860
85
-871
85

query II rowsort
SELECT DISTINCT ( + col0 ) + - - col1, + col2 FROM tab0
----
108
10
96
47
98
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4516
SELECT ALL * FROM tab2 WHERE + CAST( NULL AS SIGNED ) > - col1
----

skipif mysql # not compatible
query III rowsort label-4516
SELECT ALL * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT DISTINCT - COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT col1 < - + col2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4517
SELECT DISTINCT - COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT col1 < - + col2
----
-3

query I rowsort
SELECT - 88 * + col2 * col0 FROM tab2 AS cor0
----
-225280
-382800
-93104

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT + - ( + COUNT( * ) ) * 75 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-675

skipif mysql # not compatible
query I rowsort label-4519
SELECT + - ( + COUNT ( * ) ) * 75 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-675

query I rowsort
SELECT + + 85 AS col0 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4521
SELECT col2 - - ( + CAST( 2 AS SIGNED ) ) AS col2 FROM tab0
----
101
12
49

skipif mysql # not compatible
query I rowsort label-4521
SELECT col2 - - ( + CAST ( 2 AS INTEGER ) ) AS col2 FROM tab0
----
101
12
49

query I rowsort
SELECT ALL col2 + - col1 * 11 FROM tab2
----
-538
-679
-807

query II rowsort
SELECT ALL col0, - col2 + col0 AS col2 FROM tab2
----
46
23
64
24
75
17

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT + 53 IS NOT NULL AND NOT ( NULL ) IN ( - col1 )
----

query I rowsort
SELECT ALL + col1 + + 68 FROM tab0 AS cor0
----
149
69
89

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 8 > - 39
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 22 - - 58 FROM tab1 AS cor0
----
36

query II rowsort
SELECT - 94 AS col2, + col2 + - 30 AS col2 FROM tab1 AS cor0
----
-94
29
-94
38
-94
66

query I rowsort
SELECT DISTINCT 42 * col1 AS col0 FROM tab2 AS cor0
----
2142
2814
3234

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT + MAX( DISTINCT - + ( + + ( + col2 ) ) ) * + COUNT( 98 ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-4530
SELECT + MAX ( DISTINCT - + ( + + ( + col2 ) ) ) * + COUNT ( 98 ) FROM tab0
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 32 * - col2 col1 FROM tab2
----
-139200
-33856
-81920

query I rowsort
SELECT DISTINCT col0 * + + 67 AS col2 FROM tab2
----
3082
4288
5025

query II rowsort
SELECT ALL - 39 * - col1 AS col0, 5 FROM tab1
----
1833
5
195
5
546
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4534
SELECT DISTINCT - 6 DIV - + col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4534
SELECT DISTINCT - 6 / - + col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4535
SELECT ALL col0 AS col0 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) NOT IN ( - ( + col0 ) * col1 ) OR NOT col0 / + ( col1 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL col0 AS col0 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) NOT IN ( - ( + col0 ) * col1 ) OR NOT col0 / + ( col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + col2 ) AS col0, + col2 col0 FROM tab1
----
-59
59
-68
68
-96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4537
SELECT DISTINCT + col0 DIV + ( + col0 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4537
SELECT DISTINCT + col0 / + ( + col0 ) AS col0 FROM tab0 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 67 + + col2 IS NULL
----

query II rowsort
SELECT + col1, + col0 * + 68 FROM tab2 cor0
----
51
3128
67
5100
77
4352

query I rowsort
SELECT ALL - - 37 * - - col2 FROM tab0 AS cor0
----
1739
3663
370

query I rowsort
SELECT col0 * - + col0 - col0 * - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 43 / - col2 < col1
----

query I rowsort
SELECT ( + + 28 ) FROM tab2 AS cor0
----
28
28
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4544
SELECT DISTINCT - ( + - COUNT( * ) ) DIV - CAST( MAX( col2 ) AS SIGNED ) * - 70 + COUNT( * ) + - + 72 AS col1 FROM tab1 WHERE NOT - col2 = - - col2 * - col1 + col1
----
-69

skipif mysql # not compatible
query I rowsort label-4544
SELECT DISTINCT - ( + - COUNT ( * ) ) / - CAST ( MAX ( col2 ) AS INTEGER ) * - 70 + COUNT ( * ) + - + 72 AS col1 FROM tab1 WHERE NOT - col2 = - - col2 * - col1 + col1
----
-69

query III rowsort
SELECT * FROM tab0 WHERE + ( - col2 ) IS NULL
----

query I rowsort
SELECT ALL 21 + + - ( - col1 ) AS col1 FROM tab0 WHERE + + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4547
SELECT ALL - CAST( NULL AS SIGNED ) + - 23 * - 26 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4547
SELECT ALL - CAST ( NULL AS INTEGER ) + - 23 * - 26 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 29 AS col0 FROM tab2 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4549
SELECT DISTINCT 97 * - CAST( - - col2 AS SIGNED ) + + - 32 FROM tab0
----
-1002
-4591
-9635

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT 97 * - CAST ( - - col2 AS INTEGER ) + + - 32 FROM tab0
----
-1002
-4591
-9635

query III rowsort
SELECT * FROM tab0 WHERE col2 * + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT ALL + COUNT( * ) - - 30 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-4551
SELECT ALL + COUNT ( * ) - - 30 FROM tab2 AS cor0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 18 col0 FROM tab2
----
1152
1350
828

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT DISTINCT + COUNT( * ) * + 2 + 49 AS col2 FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-4553
SELECT DISTINCT + COUNT ( * ) * + 2 + 49 AS col2 FROM tab0
----
55

query I rowsort
SELECT ALL + 91 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4555
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4555
SELECT DISTINCT - CAST ( NULL AS REAL ) - col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4556
SELECT - - CAST( + - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4556
SELECT - - CAST ( + - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4557
SELECT ALL - + col1 * + 15 + + - 44, col1 * + col1 - - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
-1259
NULL
-359
NULL
-59
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4557
SELECT ALL - + col1 * + 15 + + - 44, col1 * + col1 - - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
-1259
NULL
-359
NULL
-59
NULL

query II rowsort
SELECT + col1 AS col1, - ( - col1 ) AS col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT DISTINCT + col0 * - 29 FROM tab2 AS cor0
----
-1334
-1856
-2175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4560
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE + 13 + col1 * col0 BETWEEN NULL AND ( - - col2 + + 78 )
----

skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE + 13 + col1 * col0 BETWEEN NULL AND ( - - col2 + + 78 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col1 FROM tab0 AS cor0
----
90
90
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4562
SELECT - + MIN( + CAST( NULL AS SIGNED ) ) * - AVG ( - + 13 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4562
SELECT - + MIN ( + CAST ( NULL AS INTEGER ) ) * - AVG ( - + 13 ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 NOT BETWEEN + + col1 * + col1 - 97 + - 81 AND NULL
----
51
14
96
91
47
68

query I rowsort
SELECT DISTINCT - - 0 / - - 2 / + + col1 - + 90 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT - 87 * COUNT( * ) * - COUNT( * ) AS col0 FROM tab1
----
783

skipif mysql # not compatible
query I rowsort label-4565
SELECT - 87 * COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1
----
783

query II rowsort
SELECT DISTINCT col2 AS col0, - col1 + + - col1 FROM tab0
----
10
-42
47
-162
99
-2

query I rowsort
SELECT + 95 * col2 + - col2 FROM tab2 AS cor0
----
2162
3760
5452

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT DISTINCT + 93 * + COUNT( * ) FROM tab1 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-4568
SELECT DISTINCT + 93 * + COUNT ( * ) FROM tab1 AS cor0
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT DISTINCT 70 * + 66 + + - COUNT( DISTINCT col1 ) FROM tab1 AS cor0
----
4617

skipif mysql # not compatible
query I rowsort label-4569
SELECT DISTINCT 70 * + 66 + + - COUNT ( DISTINCT col1 ) FROM tab1 AS cor0
----
4617

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4570
SELECT ALL + + col0 * - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL + + col0 * - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4571
SELECT DISTINCT + 68 DIV - MAX( col2 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4571
SELECT DISTINCT + 68 / - MAX ( col2 ) FROM tab2
----
-1

query I rowsort
SELECT + 55 * + - 25 FROM tab1
----
-1375
-1375
-1375

onlyif mysql # DIV for integer division: 
query I rowsort label-4573
SELECT 11 * + col2 DIV + col2 - 36 FROM tab0 AS cor0
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-4573
SELECT 11 * + col2 / + col2 - 36 FROM tab0 AS cor0
----
-25
-25
-25

onlyif mysql # DIV for integer division: 
query II rowsort label-4574
SELECT ALL - 63 + - col0 DIV - 21 AS col2, 57 AS col2 FROM tab1 AS cor0
----
-59
57
-59
57
-61
57

skipif mysql # not compatible
query II rowsort label-4574
SELECT ALL - 63 + - col0 / - 21 AS col2, 57 AS col2 FROM tab1 AS cor0
----
-59
57
-59
57
-61
57

query I rowsort
SELECT DISTINCT + + col2 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
23
40
58

query I rowsort
SELECT ALL + col0 * + + col0 + - col2 FROM tab2 cor0
----
2093
4056
5567

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT DISTINCT - MIN( ALL col0 ) * + SUM( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
11577

skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT - MIN ( ALL col0 ) * + SUM ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
11577

query I rowsort
SELECT 47 + + col0 FROM tab1
----
132
138
98

query I rowsort
SELECT col2 * - - col0 + - 34 FROM tab0
----
671
836
9569

query I rowsort
SELECT col0 + - 24 - col1 + + - 83 + + col1 * col0 * - col1 FROM tab1
----
-10066
-201082
-2152

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT - ( + COUNT( * ) ) + + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4581
SELECT - ( + COUNT ( * ) ) + + COUNT ( * ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4582
SELECT col2 DIV - - 8 AS col0 FROM tab2
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4582
SELECT col2 / - - 8 AS col0 FROM tab2
----
2
5
7

onlyif mysql # aggregate syntax: 
query II rowsort label-4583
SELECT + 60, + COUNT( * ) * - 76 * - 70 AS col0 FROM tab1
----
60
15960

skipif mysql # not compatible
query II rowsort label-4583
SELECT + 60, + COUNT ( * ) * - 76 * - 70 AS col0 FROM tab1
----
60
15960

query I rowsort
SELECT ALL + - col2 * col1 + - 64 AS col0 FROM tab0 AS cor0
----
-163
-274
-3871

onlyif mysql # DIV for integer division: 
query I rowsort label-4585
SELECT ALL + 27 DIV - col0 - - col2 AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL + 27 / - col0 - - col2 AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT ALL + SUM( col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL + SUM ( col0 ) AS col0 FROM tab0
----
199

query III rowsort
SELECT * FROM tab2 WHERE + col2 / + - 48 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4588
SELECT + col2 - - + col0 * - 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-4588
SELECT + col2 - - + col0 * - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4589
SELECT ALL MIN( - + col2 ) AS col0, COUNT( DISTINCT + 48 ) col0 FROM tab0
----
-99
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4589
SELECT ALL MIN ( - + col2 ) AS col0, COUNT ( DISTINCT + 48 ) col0 FROM tab0
----
-99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col2 col1 FROM tab1
----
-45
23
26

onlyif mysql # DIV for integer division: 
query I rowsort label-4591
SELECT - 35 DIV - 61 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4591
SELECT - 35 / - 61 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 39 AS col2 FROM tab0 AS cor0 WHERE col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT DISTINCT - MIN( + + col2 ) FROM tab0 AS cor0 WHERE - 20 / - col2 IS NOT NULL
----
-10

skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT - MIN ( + + col2 ) FROM tab0 AS cor0 WHERE - 20 / - col2 IS NOT NULL
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT DISTINCT 89 * - COUNT( ALL 24 ) * + 47 FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT 89 * - COUNT ( ALL 24 ) * + 47 FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT DISTINCT ( + ( - COUNT( * ) ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4595
SELECT DISTINCT ( + ( - COUNT ( * ) ) ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL - 36 AS col0, - 99 * 32 AS col1 FROM tab1
----
-36
-3168
-36
-3168
-36
-3168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4597
SELECT - MAX( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4597
SELECT - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT col1 * + 85 AS col2 FROM tab2
----
4335
5695
6545

query I rowsort
SELECT ALL 37 * + col2 FROM tab2 WHERE - + col1 >= - 9 * + col0
----
1480
2146
851

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IN ( - col2, 90, - col0 * + + 12, - col1 / + col0 * col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4600
SELECT + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IN ( - col2, 90, - col0 * + + 12, - col1 / + col0 * col1 ) )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL BETWEEN + 64 AND + 78 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4602
SELECT + - col2 * + CAST( 47 AS SIGNED ) FROM tab1 AS cor0
----
-2773
-3196
-4512

skipif mysql # not compatible
query I rowsort label-4602
SELECT + - col2 * + CAST ( 47 AS INTEGER ) FROM tab1 AS cor0
----
-2773
-3196
-4512

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4603
SELECT CAST( NULL AS SIGNED ), + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-4603
SELECT CAST ( NULL AS INTEGER ), + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col1 NOT BETWEEN NULL AND 77 * + + 19 * ( - - 14 ) + - col2 + + 96
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 <> + 78 * 21
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= + - 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4608
SELECT DISTINCT - ( - col0 ) * - CAST( NULL AS SIGNED ) + ( + + col0 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4608
SELECT DISTINCT - ( - col0 ) * - CAST ( NULL AS INTEGER ) + ( + + col0 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 + col0 * + 77 AS col2 FROM tab0 AS cor0
----
1074
6678
7468

onlyif mysql # DIV for integer division: 
query I rowsort label-4610
SELECT + col1 * col2 DIV + col2 + 10 * - + 47 * 16 * col2 * - col2 FROM tab0 AS cor0
----
16611761
73703521
752021

skipif mysql # not compatible
query I rowsort label-4610
SELECT + col1 * col2 / + col2 + 10 * - + 47 * 16 * col2 * - col2 FROM tab0 AS cor0
----
16611761
73703521
752021

query II rowsort
SELECT ALL + col0 / + col1 * col2 AS col1, col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT - - SUM( ALL - 38 ) AS col0 FROM tab1 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-4612
SELECT - - SUM ( ALL - 38 ) AS col0 FROM tab1 AS cor0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT DISTINCT - COUNT( DISTINCT col0 ) + + 6 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4613
SELECT DISTINCT - COUNT ( DISTINCT col0 ) + + 6 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4614
SELECT DISTINCT - col1 DIV - - ( col2 ) FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT - col1 / - - ( col2 ) FROM tab2 AS cor0
----
-1
-2

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT - 99 IS NULL
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * + 52 - + + col2 AS col2 FROM tab0
----
-47
1082
4165

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 12 IS NULL
----

query I rowsort
SELECT - col0 - ( col1 ) AS col1 FROM tab1
----
-138
-65
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4620
SELECT * FROM tab2 WHERE ( CAST( NULL AS SIGNED ) IN ( + col2 * col1, col0 ) )
----

skipif mysql # not compatible
query III rowsort label-4620
SELECT * FROM tab2 WHERE ( CAST ( NULL AS INTEGER ) IN ( + col2 * col1, col0 ) )
----

query I rowsort
SELECT ALL 7 * + col1 * - col0 * + col1 * - ( + col0 ) + - col1 - col2 - + 68 AS col2 FROM tab0
----
10333379
23365404
65695

query I rowsort
SELECT ALL 55 + + col2 AS col1 FROM tab2 AS cor0
----
113
78
95

query I rowsort
SELECT + col2 * - col0 + + + 78 FROM tab0 AS cor0
----
-627
-792
-9525

onlyif mysql # DIV for integer division: 
query I rowsort label-4624
SELECT DISTINCT + col1 + col2 DIV - 9 FROM tab1 AS cor0
----
-1
4
40

skipif mysql # not compatible
query I rowsort label-4624
SELECT DISTINCT + col1 + col2 / - 9 FROM tab1 AS cor0
----
-1
4
40

query I rowsort
SELECT ALL 53 AS col1 FROM tab2 cor0
----
53
53
53

query II rowsort
SELECT col2 AS col0, ( - col1 ) + + 79 FROM tab2
----
23
28
40
2
58
12

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 73 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT DISTINCT - 7 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4629
SELECT COUNT( * ) DIV 84 col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4629
SELECT COUNT ( * ) / 84 col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT ALL + - COUNT( * ) * ( 80 ) FROM tab1 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL + - COUNT ( * ) * ( 80 ) FROM tab1 AS cor0
----
-240

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4631
SELECT - col0 / col1 * CAST( NULL AS SIGNED ) col2, col1 AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4631
SELECT - col0 / col1 * CAST ( NULL AS INTEGER ) col2, col1 AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query II rowsort
SELECT - col2 AS col1, + col0 AS col1 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT 61 * - + col1 + col1 + + - 8 * col2 FROM tab2 AS cor0
----
-3244
-4484
-4940

onlyif mysql # aggregate syntax: 
query II rowsort label-4634
SELECT DISTINCT - - COUNT( * ), - 57 AS col2 FROM tab2 AS cor0
----
3
-57

skipif mysql # not compatible
query II rowsort label-4634
SELECT DISTINCT - - COUNT ( * ), - 57 AS col2 FROM tab2 AS cor0
----
3
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT ALL - MAX( + + col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL - MAX ( + + col1 ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT 15 * - col0 AS col2 FROM tab2
----
-1125
-690
-960

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN + - 38 + + - 12 AND NULL
----

query I rowsort
SELECT col0 + - 8 + - 52 + + col1 * - col0 * + col1 FROM tab0
----
-38340
-60
-98460

query I rowsort
SELECT ( + - col0 ) + + + col1 AS col2 FROM tab1
----
-37
-44
-80

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - + col1 ) + - col1 * + - col1 NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT + 41 + + + col0 AS col0 FROM tab0
----
128
138
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT DISTINCT + + 36 * COUNT( * ) FROM tab2 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-4642
SELECT DISTINCT + + 36 * COUNT ( * ) FROM tab2 AS cor0
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4643
SELECT - CAST( NULL AS SIGNED ) * + col1 + col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4643
SELECT - CAST ( NULL AS INTEGER ) * + col1 + col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT ALL + 19 * COUNT( * ) FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL + 19 * COUNT ( * ) FROM tab1 AS cor0
----
57

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NOT - 60 IS NOT NULL
----

query II rowsort
SELECT 87 AS col0, col0 FROM tab2
----
87
46
87
64
87
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 44 / - 40 + - ( - 38 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 + 57 FROM tab2 AS cor0
----
103
121
132

query I rowsort
SELECT ALL + 87 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT ALL 85 + COUNT( * ) FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL 85 + COUNT ( * ) FROM tab2 AS cor0
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 + + 24 col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT SUM( + 94 ) * - 11 + + SUM( - - ( - col0 ) ) FROM tab0 AS cor0
----
-3301

skipif mysql # not compatible
query I rowsort label-4652
SELECT SUM ( + 94 ) * - 11 + + SUM ( - - ( - col0 ) ) FROM tab0 AS cor0
----
-3301

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT + 80 + SUM( ALL - 48 ) + SUM( DISTINCT - col2 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4653
SELECT + 80 + SUM ( ALL - 48 ) + SUM ( DISTINCT - col2 ) FROM tab2
----
-185

query I rowsort
SELECT 47 + + + col1 - - - col2 FROM tab2
----
56
75
84

query II rowsort
SELECT - col0, + col0 * + - ( - col2 ) AS col0 FROM tab0
----
-15
705
-87
870
-97
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT DISTINCT MAX( + - col2 ) * - - MIN( DISTINCT col0 ) FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT MAX ( + - col2 ) * - - MIN ( DISTINCT col0 ) FROM tab0
----
-150

onlyif mysql # DIV for integer division: 
query II rowsort label-4657
SELECT col2, + col2 * col0 + + col0 - - col2 DIV 46 FROM tab2
----
23
1104
40
2624
58
4426

skipif mysql # not compatible
query II rowsort label-4657
SELECT col2, + col2 * col0 + + col0 - - col2 / 46 FROM tab2
----
23
1104
40
2624
58
4426

query III rowsort
SELECT * FROM tab1 WHERE col0 - + + col2 <> + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT DISTINCT + 67 * - COUNT( * ) AS col0 FROM tab0
----
-201

skipif mysql # not compatible
query I rowsort label-4659
SELECT DISTINCT + 67 * - COUNT ( * ) AS col0 FROM tab0
----
-201

query I rowsort
SELECT DISTINCT - 62 + + + 98 - + 59 AS col1 FROM tab2
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4661
SELECT - 14 DIV SUM( ALL + col0 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4661
SELECT - 14 / SUM ( ALL + col0 ) AS col2 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4662
SELECT + col1 * col1 DIV + 69 FROM tab0
----
0
6
95

skipif mysql # not compatible
query I rowsort label-4662
SELECT + col1 * col1 / + 69 FROM tab0
----
0
6
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4663
SELECT - CAST( - - col1 AS SIGNED ) FROM tab2 WHERE ( - col0 * 48 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4663
SELECT - CAST ( - - col1 AS INTEGER ) FROM tab2 WHERE ( - col0 * 48 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4664
SELECT + 80 DIV + - COUNT( * ) FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-4664
SELECT + 80 / + - COUNT ( * ) FROM tab0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT - - COUNT( * ) FROM tab0 WHERE + - ( + col1 ) BETWEEN + col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4665
SELECT - - COUNT ( * ) FROM tab0 WHERE + - ( + col1 ) BETWEEN + col1 AND NULL
----
0

query I rowsort
SELECT - + ( - 48 ) - + 22 FROM tab1 cor0
----
26
26
26

query II rowsort
SELECT - col0, 26 AS col0 FROM tab1 AS cor0
----
-51
26
-85
26
-91
26

query I rowsort
SELECT - 17 * ( + + 35 ) + + - col0 FROM tab1 cor0
----
-646
-680
-686

query I rowsort
SELECT ALL 92 * + 74 + - col2 FROM tab2 AS cor0
----
6750
6768
6785

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 > - ( 34 )
----
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4671
SELECT + col1 col0 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * - 60 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4671
SELECT + col1 col0 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * - 60 IS NULL
----

query I rowsort
SELECT + col0 FROM tab0 cor0 WHERE NOT col1 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT + + MAX( DISTINCT - + col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4673
SELECT + + MAX ( DISTINCT - + col0 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL + col1 * 77 AS col0 FROM tab1 AS cor0
----
1078
3619
385

query I rowsort
SELECT - 19 * + ( col1 ) FROM tab1
----
-266
-893
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 76, + 42 col0 FROM tab0
----
-76
42
-76
42
-76
42

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 + + - ( + 39 ) <= + - col2 + - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - 44 + - ( + 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT SUM( DISTINCT + 81 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
81

skipif mysql # not compatible
query I rowsort label-4679
SELECT SUM ( DISTINCT + 81 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT ALL COUNT( * ) + + 49 + - - ( + 13 ) FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-4680
SELECT ALL COUNT ( * ) + + 49 + - - ( + 13 ) FROM tab0
----
65

query I rowsort
SELECT DISTINCT + + 91 * - - col0 + + col2 * - col1 AS col0 FROM tab1 AS cor0
----
3297
5085
7440

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4682
SELECT + col0 + + - CAST( NULL AS DECIMAL ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4682
SELECT + col0 + + - CAST ( NULL AS REAL ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * 10 AS col1 FROM tab0
----
150
870
970

query III rowsort
SELECT * FROM tab2 WHERE NOT 40 + 64 <> - 62 * col0 + 78 * col0
----

query I rowsort
SELECT 90 * 77 FROM tab0
----
6930
6930
6930

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT DISTINCT 60 + - COUNT( * ) FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT 60 + - COUNT ( * ) FROM tab1
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4687
SELECT + SUM( ALL - col0 ) + 42 DIV + COUNT( * ) FROM tab0
----
-185

skipif mysql # not compatible
query I rowsort label-4687
SELECT + SUM ( ALL - col0 ) + 42 / + COUNT ( * ) FROM tab0
----
-185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4688
SELECT DISTINCT - MAX( ALL col1 ) DIV COUNT( * ) AS col0 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT - MAX ( ALL col1 ) / COUNT ( * ) AS col0 FROM tab0
----
-27

query I rowsort
SELECT + ( col0 ) + - col1 FROM tab0 WHERE NULL BETWEEN NULL AND - 41
----

query I rowsort
SELECT ALL + col0 * - 24 FROM tab1
----
-1224
-2040
-2184

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( 83 / - 6 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4692
SELECT ALL col0 / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4692
SELECT ALL col0 / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT DISTINCT + COUNT( * ) * + 40 AS col1 FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT + COUNT ( * ) * + 40 AS col1 FROM tab2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT ALL ( MAX( DISTINCT + col2 ) ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL ( MAX ( DISTINCT + col2 ) ) AS col0 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT + MIN( ALL 18 ) + COUNT( DISTINCT - 1 ) * COUNT( * ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-4695
SELECT + MIN ( ALL 18 ) + COUNT ( DISTINCT - 1 ) * COUNT ( * ) FROM tab1
----
21

query I rowsort
SELECT + 3 AS col1 FROM tab0 WHERE - ( - col2 ) * - 25 IS NOT NULL
----
3
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4697
SELECT ALL col2 DIV + col0 + 86 FROM tab1 WHERE + col2 BETWEEN ( + 44 ) AND - col1 + + 66
----
86

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL col2 / + col0 + 86 FROM tab1 WHERE + col2 BETWEEN ( + 44 ) AND - col1 + + 66
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4698
SELECT - ( 34 ) DIV - col1 AS col0 FROM tab0
----
0
1
34

skipif mysql # not compatible
query I rowsort label-4698
SELECT - ( 34 ) / - col1 AS col0 FROM tab0
----
0
1
34

onlyif mysql # DIV for integer division: 
query I rowsort label-4699
SELECT 50 DIV col1 col2 FROM tab0 WHERE NOT + 10 IN ( col1 * col2 )
----
0
2
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4699
SELECT 50 / col1 col2 FROM tab0 WHERE NOT + 10 IN ( col1 * col2 )
----
0
2
50

query III rowsort
SELECT * FROM tab1 WHERE - col1 + 9 IS NULL
----

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 WHERE 25 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4702
SELECT MAX( - col1 ) DIV + COUNT( * ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4702
SELECT MAX ( - col1 ) / + COUNT ( * ) AS col1 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT - col2 + - 61 AS col2 FROM tab1
----
-120
-129
-157

query I rowsort
SELECT DISTINCT - 14 * + col1 FROM tab0
----
-1134
-14
-294

query I rowsort
SELECT ALL - 54 + + col0 * col1 FROM tab0
----
1161
1773
43

query I rowsort
SELECT + 29 * - col1 AS col0 FROM tab1 AS cor0
----
-1363
-145
-406

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 91 * - 73 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT ALL - COUNT( * ) * - COUNT( * ) col2 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4708
SELECT ALL - COUNT ( * ) * - COUNT ( * ) col2 FROM tab2
----
9

query I rowsort
SELECT ALL ( 65 ) * + 18 FROM tab2 AS cor0
----
1170
1170
1170

onlyif mysql # DIV for integer division: 
query I rowsort label-4710
SELECT + + col0 DIV - 46 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4710
SELECT + + col0 / - 46 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT DISTINCT + COUNT( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4711
SELECT DISTINCT + COUNT ( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL 31 * - 26 AS col2 FROM tab0 AS cor0
----
-806
-806
-806

onlyif mysql # DIV for integer division: 
query I rowsort label-4713
SELECT ALL 3 DIV - 85 * + 45 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4713
SELECT ALL 3 / - 85 * + 45 FROM tab2
----
0
0
0

query I rowsort
SELECT - 69 + col2 + 9 * - 93 * - col1 FROM tab2
----
42641
56068
64420

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT DISTINCT - MAX( ALL 49 ) + 5 * COUNT( * ) AS col0 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-4715
SELECT DISTINCT - MAX ( ALL 49 ) + 5 * COUNT ( * ) AS col0 FROM tab0
----
-34

query I rowsort
SELECT - col0 + col0 + ( 73 + + col0 * col2 ) AS col2 FROM tab0
----
778
943
9676

query III rowsort
SELECT * FROM tab1 WHERE ( col2 / + col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4718
SELECT CAST( + col0 AS SIGNED ) + col0 FROM tab0
----
174
194
30

skipif mysql # not compatible
query I rowsort label-4718
SELECT CAST ( + col0 AS INTEGER ) + col0 FROM tab0
----
174
194
30

query I rowsort
SELECT ALL - col1 * col2 AS col0 FROM tab2 WHERE ( + ( + col2 ) * col1 ) IS NOT NULL
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT - SUM( ALL col1 ) + + ( - 70 ) AS col0 FROM tab0
----
-173

skipif mysql # not compatible
query I rowsort label-4720
SELECT - SUM ( ALL col1 ) + + ( - 70 ) AS col0 FROM tab0
----
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT DISTINCT - + COUNT( * ) + ( 97 ) AS col1 FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-4721
SELECT DISTINCT - + COUNT ( * ) + ( 97 ) AS col1 FROM tab1 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT DISTINCT 87 + - + COUNT( * ) + + 90 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT 87 + - + COUNT ( * ) + + 90 FROM tab2 AS cor0
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE + 41 + ( col2 ) * col0 < col0 + col0 / - col2
----
0

skipif mysql # not compatible
query I rowsort label-4723
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + 41 + ( col2 ) * col0 < col0 + col0 / - col2
----
0

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 24 AS col0, + col1 + 18 FROM tab1
----
-24
23
-24
32
-24
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4726
SELECT 42 * + col2 - + col2 DIV col0 FROM tab2
----
1680
2436
966

skipif mysql # not compatible
query I rowsort label-4726
SELECT 42 * + col2 - + col2 / col0 FROM tab2
----
1680
2436
966

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE NOT - 95 / + 40 NOT BETWEEN ( + ( + 54 ) ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE NOT - 95 / + 40 NOT BETWEEN ( + ( + 54 ) ) AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 58 <= 81 + col2 * + 12
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 0 + - 50 FROM tab2 AS cor0
----
-50

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( + col2 + - + 91 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < ( col2 )
----

query I rowsort
SELECT ALL + ( col0 ) * - - col1 - col2 FROM tab1 AS cor0
----
366
4209
618

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 BETWEEN + - col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4734
SELECT DISTINCT + - col1 * col0 DIV col1 - 84 AS col1 FROM tab0 AS cor0
----
-171
-181
-99

skipif mysql # not compatible
query I rowsort label-4734
SELECT DISTINCT + - col1 * col0 / col1 - 84 AS col1 FROM tab0 AS cor0
----
-171
-181
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT ALL + COUNT( * ) - - - 74 AS col1 FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL + COUNT ( * ) - - - 74 AS col1 FROM tab2 AS cor0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT COUNT( col1 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4736
SELECT COUNT ( col1 ) col1 FROM tab2 AS cor0
----
3

query II rowsort
SELECT - ( - 8 ) AS col2, col2 FROM tab2
----
8
23
8
40
8
58

query I rowsort
SELECT DISTINCT - 83 * - col0 - + + col1 AS col1 FROM tab1
----
4219
7050
7506

query I rowsort
SELECT ALL col1 * + + 94 * - col0 * - ( + col2 ) FROM tab1
----
2357050
27338584
6443136

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col1 IN ( - col2 / + col1 + 2 * + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT + COUNT( DISTINCT + - 83 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4742
SELECT + COUNT ( DISTINCT + - 83 ) FROM tab1
----
1

query I rowsort
SELECT DISTINCT ( + 7 ) FROM tab0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT ALL 73 * COUNT( ALL col1 ) FROM tab1 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL 73 * COUNT ( ALL col1 ) FROM tab1 AS cor0
----
219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4745
SELECT DISTINCT + CAST( - - 24 AS SIGNED ) * - + 70 FROM tab0 AS cor0
----
-1680

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT + CAST ( - - 24 AS INTEGER ) * - + 70 FROM tab0 AS cor0
----
-1680

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT DISTINCT - COUNT( * ) * - - 75 * 2 AS col0 FROM tab2
----
-450

skipif mysql # not compatible
query I rowsort label-4746
SELECT DISTINCT - COUNT ( * ) * - - 75 * 2 AS col0 FROM tab2
----
-450

query I rowsort
SELECT ALL + ( + - 72 ) FROM tab2
----
-72
-72
-72

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 31 NOT BETWEEN ( + 43 ) AND ( + 10 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT ALL - COUNT( * ) * + + COUNT( ALL 37 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL - COUNT ( * ) * + + COUNT ( ALL 37 ) FROM tab1
----
-9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN NULL AND ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT - - ( + MIN( - + col1 ) ) + - COUNT( * ) + + COUNT( col2 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4751
SELECT - - ( + MIN ( - + col1 ) ) + - COUNT ( * ) + + COUNT ( col2 ) AS col2 FROM tab1 AS cor0
----
-47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 / - - ( + + 89 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4753
SELECT ALL - CAST( - COUNT( * ) AS DECIMAL ) + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL - CAST ( - COUNT ( * ) AS REAL ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4754
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

query II rowsort
SELECT ALL + 27 AS col2, + col1 FROM tab0 AS cor0
----
27
1
27
21
27
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT ALL MIN( DISTINCT - - col1 ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4756
SELECT ALL MIN ( DISTINCT - - col1 ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4757
SELECT CAST( - + 40 AS SIGNED ) * - + 79 FROM tab1 AS cor0
----
3160
3160
3160

skipif mysql # not compatible
query I rowsort label-4757
SELECT CAST ( - + 40 AS INTEGER ) * - + 79 FROM tab1 AS cor0
----
3160
3160
3160

onlyif mysql # aggregate syntax: 
query II rowsort label-4758
SELECT + - 43, MAX( ALL - col1 ) * + + COUNT( * ) + + COUNT( * ) AS col0 FROM tab2 cor0
----
-43
-150

skipif mysql # not compatible
query II rowsort label-4758
SELECT + - 43, MAX ( ALL - col1 ) * + + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2 cor0
----
-43
-150

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 35 - - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN ( - col2 ) AND NULL
----

query I rowsort
SELECT 18 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 AND ( - - ( + 80 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4762
SELECT + + 14 DIV - + col2 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4762
SELECT + + 14 / - + col2 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4763
SELECT DISTINCT COUNT( * ) DIV + - COUNT( * ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4763
SELECT DISTINCT COUNT ( * ) / + - COUNT ( * ) AS col2 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT SUM( ALL + - col1 ) FROM tab2 WHERE ( NULL NOT IN ( col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4764
SELECT SUM ( ALL + - col1 ) FROM tab2 WHERE ( NULL NOT IN ( col0 ) )
----
NULL

query II rowsort
SELECT + col1 AS col0, - col1 - + col0 AS col1 FROM tab2
----
51
-97
67
-142
77
-141

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= 14
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col0, - 67 + - 40 col1 FROM tab2
----
-23
-107
-40
-107
-58
-107

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col2 + col0 + col1 / - col1 NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col1 + + 17 FROM tab0 AS cor0
----
18
38
98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 IN ( col1 * col1 + + col1 * - col1 * + col2 )
----

query I rowsort
SELECT ALL + col1 * - col2 - col2 FROM tab0 AS cor0
----
-198
-220
-3854

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT - - 89 + - COUNT( * ) FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-4772
SELECT - - 89 + - COUNT ( * ) FROM tab1 AS cor0
----
86

query I rowsort
SELECT ALL col2 * + + 67 + - - col1 FROM tab0
----
3230
6634
691

query I rowsort
SELECT DISTINCT col0 + - 61 * + col0 * - 37 FROM tab1
----
115158
191930
205478

query I rowsort
SELECT ALL + + 15 * col0 AS col2 FROM tab1 AS cor0
----
1275
1365
765

query I rowsort
SELECT ALL - 8 * + col1 + col0 AS col2 FROM tab2 AS cor0
----
-362
-461
-552

query I rowsort
SELECT DISTINCT + col2 - + col2 + + col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT - col1 * + col0 AS col0 FROM tab0 AS cor0 WHERE ( NOT ( + 51 + + col1 ) IS NULL )
----
-1215
-1827
-97

query I rowsort
SELECT ALL + col2 - + - col1 + - + 9 AS col2 FROM tab1 AS cor0
----
101
106
55

query I rowsort
SELECT ALL col1 + - 65 AS col1 FROM tab2 AS cor0
----
-14
12
2

query I rowsort
SELECT + + 84 * col0 + 1 + col1 - + col1 FROM tab2 AS cor0
----
3865
5377
6301

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + + col1 col0 FROM tab0 AS cor0
----
-108
-96
-98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 41 * 94 / - col1 * + 65 BETWEEN NULL AND ( + col0 )
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT 38 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4785
SELECT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + COUNT( DISTINCT + col2 / 2 ) FROM tab1 WHERE NOT + - 15 / + col1 + + ( 45 ) + + col2 + col2 * 21 NOT IN ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4785
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + COUNT ( DISTINCT + col2 / 2 ) FROM tab1 WHERE NOT + - 15 / + col1 + + ( 45 ) + + col2 + col2 * 21 NOT IN ( - col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT ALL COUNT( DISTINCT 85 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL COUNT ( DISTINCT 85 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT ALL MIN( DISTINCT 62 ) FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL MIN ( DISTINCT 62 ) FROM tab2
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4788
SELECT DISTINCT - 6 AS col0, CAST( NULL AS SIGNED ) FROM tab2
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-4788
SELECT DISTINCT - 6 AS col0, CAST ( NULL AS INTEGER ) FROM tab2
----
-6
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4789
SELECT + - CAST( + - col2 AS SIGNED ) + - - 67 + col2 + + - ( - col1 ) * col2 FROM tab2 AS cor0 WHERE NOT NULL <> 71
----

skipif mysql # not compatible
query I rowsort label-4789
SELECT + - CAST ( + - col2 AS INTEGER ) + - - 67 + col2 + + - ( - col1 ) * col2 FROM tab2 AS cor0 WHERE NOT NULL <> 71
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4790
SELECT 74 DIV - 34 FROM tab0 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-4790
SELECT 74 / - 34 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT col2 * + - 85 FROM tab2 AS cor0
----
-1955
-3400
-4930

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT ALL - MAX( + 10 ) FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL - MAX ( + 10 ) FROM tab1 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4793
SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4793
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT - ( - ( - 95 ) ), - col0 AS col1 FROM tab1 AS cor0
----
-95
-51
-95
-85
-95
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT DISTINCT - + 35 * + - COUNT( DISTINCT + col0 ) FROM tab0 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT - + 35 * + - COUNT ( DISTINCT + col0 ) FROM tab0 AS cor0
----
105

query I rowsort
SELECT DISTINCT - 17 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT DISTINCT ( + - COUNT( * ) ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4797
SELECT DISTINCT ( + - COUNT ( * ) ) col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - 93 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 > 0
----

query I rowsort
SELECT ALL + ( ( + col1 ) ) AS col0 FROM tab2 AS cor0
----
51
67
77

query II rowsort
SELECT ALL 73 AS col2, col0 FROM tab2
----
73
46
73
64
73
75

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE + 53 NOT BETWEEN NULL AND + col2 - + col0
----
10
47
99

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NULL > + col2 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT - 87 * + MIN( - col1 ) + - 31 FROM tab1
----
4058

skipif mysql # not compatible
query I rowsort label-4804
SELECT - 87 * + MIN ( - col1 ) + - 31 FROM tab1
----
4058

query II rowsort
SELECT ALL - col1, - col2 * - - 18 AS col2 FROM tab0
----
-1
-1782
-21
-180
-81
-846

onlyif mysql # DIV for integer division: 
query II rowsort label-4806
SELECT col1 DIV - col1 + - - col1 AS col2, col1 + + col2 FROM tab2
----
50
74
66
125
76
117

skipif mysql # not compatible
query II rowsort label-4806
SELECT col1 / - col1 + - - col1 AS col2, col1 + + col2 FROM tab2
----
50
74
66
125
76
117

query III rowsort
SELECT * FROM tab1 WHERE - col1 = col1
----

query I rowsort
SELECT - col1 + + + col0 FROM tab2
----
-13
-5
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4809
SELECT AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT - 81 FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 * + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT DISTINCT + + COUNT( * ) - COUNT( * ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4811
SELECT DISTINCT + + COUNT ( * ) - COUNT ( * ) AS col1 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT DISTINCT 50 * COUNT( * ) - + 23 * COUNT( - 90 ) AS col1 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT 50 * COUNT ( * ) - + 23 * COUNT ( - 90 ) AS col1 FROM tab1 AS cor0
----
81

query II rowsort
SELECT ALL - col0 - + - col1 / - - col0, - 44 FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 40 * - - col0 * col1 AS col0 FROM tab1
----
17000
171080
28560

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT DISTINCT + 44 + - SUM( + + 22 ) AS col1 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT + 44 + - SUM ( + + 22 ) AS col1 FROM tab2
----
-22

onlyif mysql # DIV for integer division: 
query II rowsort label-4816
SELECT DISTINCT + 71 AS col2, + 18 DIV col2 FROM tab2 AS cor0
----
71
0

skipif mysql # not compatible
query II rowsort label-4816
SELECT DISTINCT + 71 AS col2, + 18 / col2 FROM tab2 AS cor0
----
71
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 40 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 ) IN ( + + col1, 90 / + col2, + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT + MAX( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4819
SELECT + MAX ( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
96

query II rowsort
SELECT ALL + col2 AS col2, col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4822
SELECT DISTINCT 13 * + col1 DIV + - col1 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-4822
SELECT DISTINCT 13 * + col1 / + - col1 FROM tab2
----
-13

query I rowsort
SELECT DISTINCT + + col1 + col1 * + + 40 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1 - + col1, - 4, - + col0 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT ALL + ( - ( + + MIN( - col0 ) ) ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL + ( - ( + + MIN ( - col0 ) ) ) FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT + + COUNT( ALL + - 18 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4825
SELECT + + COUNT ( ALL + - 18 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 * col0 AND - + 32 - col1 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT MAX( ALL - 97 ) AS col0 FROM tab1 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4827
SELECT MAX ( ALL - 97 ) AS col0 FROM tab1 AS cor0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4828
SELECT + COUNT( * ) DIV + 58 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4828
SELECT + COUNT ( * ) / + 58 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2 AS col1, col1 col0 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query I rowsort
SELECT col1 * + 42 FROM tab0 AS cor0
----
3402
42
882

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT DISTINCT MIN( - - 71 ) AS col1 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-4831
SELECT DISTINCT MIN ( - - 71 ) AS col1 FROM tab1 AS cor0
----
71

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 9 AS col2 FROM tab1 WHERE NOT + 39 - - - 5 * - - col2 * + col2 * + ( col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( 77 ) - col2 FROM tab2 AS cor0
----
-100
-117
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT ALL - COUNT( * ) FROM tab0 cor0 WHERE 97 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL - COUNT ( * ) FROM tab0 cor0 WHERE 97 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT COUNT( * ) * 24 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4836
SELECT COUNT ( * ) * 24 FROM tab2 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT ALL - SUM( 75 ) * MIN( DISTINCT 70 ) AS col2 FROM tab0 AS cor0
----
-15750

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL - SUM ( 75 ) * MIN ( DISTINCT 70 ) AS col2 FROM tab0 AS cor0
----
-15750

query I rowsort
SELECT + 13 - 52 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ( 59 ) FROM tab1 AS cor0
----
59
59
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 10 col1, + col0 AS col0 FROM tab2 AS cor0
----
10
46
10
64
10
75

query II rowsort
SELECT - col0 AS col2, - 76 AS col0 FROM tab2
----
-46
-76
-64
-76
-75
-76

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 BETWEEN - 84 * - - col0 AND - col2 * + + 17
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT SUM( DISTINCT 72 ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-4843
SELECT SUM ( DISTINCT 72 ) FROM tab0
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-4844
SELECT COUNT( * ), + ( 37 ) AS col0 FROM tab2
----
3
37

skipif mysql # not compatible
query II rowsort label-4844
SELECT COUNT ( * ), + ( 37 ) AS col0 FROM tab2
----
3
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col0 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT 75, + 3 + + + 58 AS col0 FROM tab1
----
75
61
75
61
75
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT - COUNT( * ) * - MIN( - col0 ) FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-4847
SELECT - COUNT ( * ) * - MIN ( - col0 ) FROM tab0
----
-291

query I rowsort
SELECT + 86 * + 62 AS col2 FROM tab1 cor0
----
5332
5332
5332

query I rowsort
SELECT + + 99 * col0 * + col2 * - + 68 FROM tab1 AS cor0
----
-32959872
-33760980
-41657616

query I rowsort
SELECT - 0 * + - 1 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > + 64 * ( + col2 )
----

query I rowsort
SELECT + col1 * + 40 FROM tab0 AS cor0
----
3240
40
840

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4854
SELECT ALL 37 + COUNT( + CAST( + 76 AS DECIMAL ) ) AS col2 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL 37 + COUNT ( + CAST ( + 76 AS REAL ) ) AS col2 FROM tab2 AS cor0
----
40

query I rowsort
SELECT ALL + col2 * - ( + 7 ) + - + 76 + col2 * - 35 FROM tab1 AS cor0
----
-2554
-2932
-4108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4856
SELECT + CAST( col1 AS SIGNED ) + + - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4856
SELECT + CAST ( col1 AS INTEGER ) + + - col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4857
SELECT DISTINCT - COUNT( * ) + - - CAST( - 19 AS SIGNED ) col2 FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4857
SELECT DISTINCT - COUNT ( * ) + - - CAST ( - 19 AS INTEGER ) col2 FROM tab1 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT DISTINCT COUNT( * ) * + 51 + - 6 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT COUNT ( * ) * + 51 + - 6 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4859
SELECT ALL + - CAST( - - 53 AS SIGNED ) AS col1, - 51 FROM tab2 cor0
----
-53
-51
-53
-51
-53
-51

skipif mysql # not compatible
query II rowsort label-4859
SELECT ALL + - CAST ( - - 53 AS INTEGER ) AS col1, - 51 FROM tab2 cor0
----
-53
-51
-53
-51
-53
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-4860
SELECT DISTINCT - 77 + + col1 DIV + + 93 + + col1 FROM tab2 AS cor0
----
-10
-26
0

skipif mysql # not compatible
query I rowsort label-4860
SELECT DISTINCT - 77 + + col1 / + + 93 + + col1 FROM tab2 AS cor0
----
-10
-26
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 79 <> NULL
----

query I rowsort
SELECT col1 + - - col2 + - col1 * - col0 + + 71 AS col2 FROM tab0 AS cor0
----
1414
1929
268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col2 FROM tab0 WHERE NOT + ( ( - col1 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT DISTINCT 28 * - COUNT( * ) AS col2 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-4864
SELECT DISTINCT 28 * - COUNT ( * ) AS col2 FROM tab1
----
-84

query III rowsort
SELECT * FROM tab1 WHERE 99 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 - + 73 + + col0 - + col2 AS col2 FROM tab2 cor0
----
-27
-9
2

query I rowsort
SELECT ALL + ( - 49 ) AS col2 FROM tab0 WHERE NOT ( + 62 ) >= NULL
----

query I rowsort
SELECT col0 * ( - + col2 ) FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT ALL + MIN( ALL + col1 ) + - 80 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL + MIN ( ALL + col1 ) + - 80 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( - col0 )
----
NULL

query II rowsort
SELECT ( - 60 ), + col0 FROM tab0 AS cor0
----
-60
15
-60
87
-60
97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4871
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 <= CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4871
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 <= CAST ( NULL AS REAL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( + + col1 ) + + col0 + + 74 * - 7 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4873
SELECT DISTINCT + ( + + col1 ) / - 29 - + + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT + ( + + col1 ) / - 29 - + + CAST ( NULL AS REAL ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4874
SELECT ALL 2 DIV + ( - col0 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL 2 / + ( - col0 ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4875
SELECT 53 col0, COUNT( ALL - col0 ) FROM tab2
----
53
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4875
SELECT 53 col0, COUNT ( ALL - col0 ) FROM tab2
----
53
3

query I rowsort
SELECT DISTINCT + 78 AS col1 FROM tab0 WHERE NOT - col2 + - col0 BETWEEN + col2 * - col2 + + - col2 + - col2 * + 91 AND NULL OR 39 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT DISTINCT SUM( ALL + col0 ) * 95 FROM tab0
----
18905

skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT SUM ( ALL + col0 ) * 95 FROM tab0
----
18905

query II rowsort
SELECT - col2, - col0 + + + 53 AS col2 FROM tab1
----
-59
-32
-68
-38
-96
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4879
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * + 41 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4879
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * + 41 IS NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < 2
----

query I rowsort
SELECT ALL - col0 + ( - + 51 ) AS col1 FROM tab2 AS cor0
----
-115
-126
-97

query I rowsort
SELECT ALL - col2 - 6 FROM tab1 AS cor0
----
-102
-65
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT ( + MAX( ALL - + col2 ) ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4883
SELECT ( + MAX ( ALL - + col2 ) ) AS col2 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT + - col2 AS col1 FROM tab1 AS cor0 WHERE NULL >= + col2
----

query I rowsort
SELECT - - ( col2 ) * col2 + - + col2 FROM tab0 AS cor0
----
2162
90
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4886
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

query I rowsort
SELECT DISTINCT - + col0 - - col2 AS col1 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT + - col1 * + 76 FROM tab0 AS cor0
----
-1596
-6156
-76

query I rowsort
SELECT - 91 - - col0 AS col1 FROM tab0
----
-4
-76
6

query I rowsort
SELECT DISTINCT col2 * + col1 FROM tab1 WHERE col1 * - col1 - 45 * + 74 BETWEEN NULL AND + + col0 / - - col2 AND NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL col0 + - col2 + - - col1 - + - 45 * - - ( - 99 ) FROM tab1
----
-4385
-4424
-4486

query I rowsort
SELECT col1 * 59 + + + ( - col2 ) FROM tab1
----
236
2705
730

query I rowsort
SELECT - col0 + - col2 + - col2 FROM tab2 cor0 WHERE 10 = col0
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 BETWEEN + col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= - ( col2 ) + col2 + col2
----

query II rowsort
SELECT 10 AS col2, - col2 + col1 FROM tab0
----
10
-98
10
11
10
34

query I rowsort
SELECT DISTINCT + 29 * - col1 AS col2 FROM tab2
----
-1479
-1943
-2233

query I rowsort
SELECT + col1 * 84 + + col1 + + 55 + - col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - ( + 18 ) * - col2 AS col2 FROM tab0
----
1782
180
846

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4901
SELECT - col0 DIV ( col0 ) DIV + col0 * + col0 col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4901
SELECT - col0 / ( col0 ) / + col0 * + col0 col2 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT ALL + - 85 AS col2, 84 AS col1 FROM tab0 AS cor0
----
-85
84
-85
84
-85
84

query I rowsort
SELECT DISTINCT + 36 * - 22 AS col1 FROM tab2 AS cor0
----
-792

query II rowsort
SELECT - ( - col1 ), col0 AS col2 FROM tab1 WHERE NOT - + 96 IS NULL
----
14
51
47
91
5
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 * - - col2 + + col2 col1 FROM tab0
----
4136
8712
880

query I rowsort
SELECT - 4 * + ( - - col1 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4907
SELECT col0 / - col1 * CAST( NULL AS SIGNED ) * + ( - ( + col1 ) ) + + - ( - 84 ) / + 82 * - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4907
SELECT col0 / - col1 * CAST ( NULL AS INTEGER ) * + ( - ( + col1 ) ) + + - ( - 84 ) / + 82 * - col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT - MIN( DISTINCT + col2 ) + + 13 AS col2 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-4908
SELECT - MIN ( DISTINCT + col2 ) + + 13 AS col2 FROM tab1
----
-46

query II rowsort
SELECT DISTINCT + ( + + ( col0 ) ) + 20 AS col2, ( - 32 ) FROM tab0
----
107
-32
117
-32
35
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT + - MIN( DISTINCT + 51 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4910
SELECT + - MIN ( DISTINCT + 51 ) AS col1 FROM tab1 AS cor0
----
-51

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 58 NOT BETWEEN 48 * 53 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4912
SELECT 16 * + ( - 69 ) - + CAST( - col1 AS SIGNED ) col0 FROM tab2 AS cor0 WHERE NULL <> - col0 * + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4912
SELECT 16 * + ( - 69 ) - + CAST ( - col1 AS INTEGER ) col0 FROM tab2 AS cor0 WHERE NULL <> - col0 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4913
SELECT - CAST( - col2 AS SIGNED ) * - + 76 + + col0 FROM tab2 AS cor0
----
-1702
-2976
-4333

skipif mysql # not compatible
query I rowsort label-4913
SELECT - CAST ( - col2 AS INTEGER ) * - + 76 + + col0 FROM tab2 AS cor0
----
-1702
-2976
-4333

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - ( - 35 ) / 78
----

query I rowsort
SELECT + - col1 + + col2 + - col0 * ( - + 86 ) * - - col2 FROM tab0 AS cor0
----
60596
74809
825956

query I rowsort
SELECT ALL + 33 - + - col0 FROM tab0 cor0
----
120
130
48

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 + + col1 IS NULL
----

query I rowsort
SELECT ALL col0 - 0 + col0 AS col1 FROM tab0
----
174
194
30

query I rowsort
SELECT + ( + 73 ) * + + col0 AS col1 FROM tab0
----
1095
6351
7081

onlyif mysql # DIV for integer division: 
query I rowsort label-4920
SELECT - 76 DIV 88 DIV + 68 * - ( 11 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4920
SELECT - 76 / 88 / + 68 * - ( 11 ) FROM tab0
----
0
0
0

query II rowsort
SELECT ALL - 20, - 75 AS col0 FROM tab1
----
-20
-75
-20
-75
-20
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, ( - col1 ) FROM tab1
----
59
-5
68
-47
96
-14

query II rowsort
SELECT DISTINCT + col2, - 16 FROM tab2
----
23
-16
40
-16
58
-16

query II rowsort
SELECT ALL - col1 AS col2, col1 AS col2 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4925
SELECT ALL + COUNT( * ) DIV + 55 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL + COUNT ( * ) / + 55 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4926
SELECT - 38 DIV + 68 col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4926
SELECT - 38 / + 68 col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT ALL COUNT( DISTINCT - col0 ) * + - ( - - 85 ) AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4927
SELECT ALL COUNT ( DISTINCT - col0 ) * + - ( - - 85 ) AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4928
SELECT + MAX( col2 ), + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
99
NULL

skipif mysql # not compatible
query II rowsort label-4928
SELECT + MAX ( col2 ), + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
99
NULL

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 - 22 * + col1 FROM tab2
----
-1122
-1474
-1694

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0 WHERE 73 IN ( + col2, col2 + + + col0 ) OR NULL IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT - COUNT( ALL col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4932
SELECT - COUNT ( ALL col0 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4933
SELECT DISTINCT - + SUM( - + CAST( NULL AS DECIMAL ) ) - - MIN( DISTINCT - + col0 ) - - + COUNT( * ) AS col2 FROM tab2 WHERE col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4933
SELECT DISTINCT - + SUM ( - + CAST ( NULL AS REAL ) ) - - MIN ( DISTINCT - + col0 ) - - + COUNT ( * ) AS col2 FROM tab2 WHERE col2 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 23 * + - col2 * + - col1 + + - col2 AS col0 FROM tab0
----
2178
4820
87514

query I rowsort
SELECT ALL 12 + col2 AS col0 FROM tab0
----
111
22
59

query III rowsort
SELECT * FROM tab2 WHERE ( col0 ) IN ( + col1 )
----

query I rowsort
SELECT ALL + col0 + - 47 FROM tab1
----
38
4
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT + COUNT( * ) FROM tab0 WHERE - col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4938
SELECT + COUNT ( * ) FROM tab0 WHERE - col2 < NULL
----
0

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 1
----

query I rowsort
SELECT + + col2 + - 3 FROM tab1 AS cor0
----
56
65
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4941
SELECT - + 24 DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-4941
SELECT - + 24 / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
8

query I rowsort
SELECT ALL - + col1 + + + 25 + + + 56 AS col0 FROM tab1 AS cor0
----
34
67
76

query I rowsort
SELECT ALL 55 + - 80 + - 35 FROM tab1 AS cor0
----
-60
-60
-60

query I rowsort
SELECT 89 - + col1 AS col1 FROM tab0 AS cor0
----
68
8
88

query I rowsort
SELECT ALL + - col0 * - col1 FROM tab2 WHERE NOT ( ( NOT + - 56 IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT + SUM( - col2 ) FROM tab0 WHERE NOT ( ( NOT - col1 IS NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT + SUM ( - col2 ) FROM tab0 WHERE NOT ( ( NOT - col1 IS NULL ) )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, 14 AS col2 FROM tab1
----
51
14
85
14
91
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT ALL MAX( ALL + 54 ) col1 FROM tab0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4948
SELECT ALL MAX ( ALL + 54 ) col1 FROM tab0
----
54

query I rowsort
SELECT - + ( col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4950
SELECT - + SUM( + CAST( + col2 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4950
SELECT - + SUM ( + CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT ALL + - ( + COUNT( * ) ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4951
SELECT ALL + - ( + COUNT ( * ) ) AS col1 FROM tab1 cor0
----
-3

query I rowsort
SELECT + - col2 AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 18 * 54 ) > ( NULL )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 cor1 WHERE NULL > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4955
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 IN ( + - CAST( - col2 AS SIGNED ), - col0, - col1 )
----

skipif mysql # not compatible
query III rowsort label-4955
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 IN ( + - CAST ( - col2 AS INTEGER ), - col0, - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < 12 * - 63 * - 8
----

query I rowsort
SELECT + + col0 * col1 + + col0 AS col0 FROM tab1 AS cor0
----
4368
510
765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 col2 FROM tab2 AS cor0 WHERE NOT col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4959
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( + 61 AS SIGNED ) BETWEEN - - col1 AND + 84 * + + col2 + + col1
----

skipif mysql # not compatible
query III rowsort label-4959
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( + 61 AS INTEGER ) BETWEEN - - col1 AND + 84 * + + col2 + + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < + ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT - - MAX( + 95 ) FROM tab1 WHERE - - 49 * - 31 + - - ( + - col2 ) - + 61 BETWEEN + col2 - col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4961
SELECT - - MAX ( + 95 ) FROM tab1 WHERE - - 49 * - 31 + - - ( + - col2 ) - + 61 BETWEEN + col2 - col2 AND NULL
----
NULL

query I rowsort
SELECT - col2 + + + col2 + - ( - col1 ) AS col0 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4963
SELECT COUNT( * ) + + + CAST( - + MAX( ALL - col0 ) AS SIGNED ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-4963
SELECT COUNT ( * ) + + + CAST ( - + MAX ( ALL - col0 ) AS INTEGER ) FROM tab2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT MAX( - col0 ) + - + 69 AS col2 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-4964
SELECT MAX ( - col0 ) + - + 69 AS col2 FROM tab0
----
-84

query I rowsort
SELECT DISTINCT + 57 + 33 * + col0 + + 29 FROM tab0 cor0
----
2957
3287
581

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4966
SELECT ALL - + AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL - + AVG ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4967
SELECT - - MAX( - - col2 ) col2, 6 col2 FROM tab2 AS cor0
----
58
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4967
SELECT - - MAX ( - - col2 ) col2, 6 col2 FROM tab2 AS cor0
----
58
6

query I rowsort
SELECT - 24 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT DISTINCT MIN( 87 ) + - + COUNT( * ) AS col0 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-4969
SELECT DISTINCT MIN ( 87 ) + - + COUNT ( * ) AS col0 FROM tab0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4970
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4970
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( + col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT + col2 * + col1 + - col0 AS col0 FROM tab2 cor0
----
1127
3016
3811

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT ALL - COUNT( * ) + COUNT( * ) * + - SUM( ALL col2 ) AS col0 FROM tab0 AS cor0
----
-471

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL - COUNT ( * ) + COUNT ( * ) * + - SUM ( ALL col2 ) AS col0 FROM tab0 AS cor0
----
-471

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 98 - + 23 col2 FROM tab1 AS cor0
----
-121
-121
-121

query I rowsort
SELECT ALL + 83 - + col1 FROM tab1 AS cor0
----
36
69
78

onlyif mysql # aggregate syntax: 
query II rowsort label-4975
SELECT + - COUNT( * ) AS col1, SUM( DISTINCT + col1 ) FROM tab2 AS cor0
----
-3
195

skipif mysql # not compatible
query II rowsort label-4975
SELECT + - COUNT ( * ) AS col1, SUM ( DISTINCT + col1 ) FROM tab2 AS cor0
----
-3
195

query II rowsort
SELECT DISTINCT + + 28, 89 AS col1 FROM tab1 cor0
----
28
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT DISTINCT - - SUM( 83 ) AS col0 FROM tab0 cor0
----
249

skipif mysql # not compatible
query I rowsort label-4977
SELECT DISTINCT - - SUM ( 83 ) AS col0 FROM tab0 cor0
----
249

query II rowsort
SELECT DISTINCT - 42, col1 FROM tab0 AS cor0
----
-42
1
-42
21
-42
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT + MIN( ALL 83 ) * + + MAX( DISTINCT + + 82 ) AS col0 FROM tab1 AS cor0
----
6806

skipif mysql # not compatible
query I rowsort label-4979
SELECT + MIN ( ALL 83 ) * + + MAX ( DISTINCT + + 82 ) AS col0 FROM tab1 AS cor0
----
6806

query I rowsort
SELECT DISTINCT + col1 * + - ( col2 ) AS col1 FROM tab1
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > - 87
----

query I rowsort
SELECT ALL - 41 * - col1 FROM tab1
----
1927
205
574

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 96 * + col0 col2 FROM tab2
----
101568
245760
417600

query I rowsort
SELECT DISTINCT - 97 * - + col2 * - - 10 AS col2 FROM tab1
----
57230
65960
93120

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT COUNT( * ) * + 20 AS col0 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-4985
SELECT COUNT ( * ) * + 20 AS col0 FROM tab1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4986
SELECT CAST( - col1 AS SIGNED ) * - - 58 FROM tab2
----
-2958
-3886
-4466

skipif mysql # not compatible
query I rowsort label-4986
SELECT CAST ( - col1 AS INTEGER ) * - - 58 FROM tab2
----
-2958
-3886
-4466

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4987
SELECT COUNT( DISTINCT + CAST( + col0 AS SIGNED ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4987
SELECT COUNT ( DISTINCT + CAST ( + col0 AS INTEGER ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> + col2 - + col2
----

query I rowsort
SELECT DISTINCT - 85 + + col2 FROM tab1
----
-17
-26
11

query I rowsort
SELECT 93 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT ALL - 92 + col2 FROM tab0
----
-45
-82
7

query I rowsort
SELECT DISTINCT 74 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + col1 + + ( col1 )
----

query I rowsort
SELECT DISTINCT + + 44 + + ( - col0 ) FROM tab1 AS cor0
----
-41
-47
-7

query I rowsort
SELECT ALL - + col2 + + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 39 * + + col1 + - + col0 - + col1 * col1 FROM tab0 AS cor0
----
-3417
-59
291

query I rowsort
SELECT ALL - + col0 * + 28 FROM tab2 AS cor0
----
-1288
-1792
-2100

onlyif mysql # DIV for integer division: 
query I rowsort label-4997
SELECT - 29 DIV + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4997
SELECT - 29 / + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4998
SELECT - ( SUM( ALL 37 ) ) col0, COUNT( * ) FROM tab1 AS cor0
----
-111
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4998
SELECT - ( SUM ( ALL 37 ) ) col0, COUNT ( * ) FROM tab1 AS cor0
----
-111
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4999
SELECT - 99 DIV + - col1 FROM tab0
----
1
4
99

skipif mysql # not compatible
query I rowsort label-4999
SELECT - 99 / + - col1 FROM tab0
----
1
4
99

query I rowsort
SELECT ALL - col0 + + + col0 * - - col2 FROM tab1
----
4845
4930
6097

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5001
SELECT DISTINCT * FROM tab1 WHERE + CAST( - + col1 AS SIGNED ) / + 61 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-5001
SELECT DISTINCT * FROM tab1 WHERE + CAST ( - + col1 AS INTEGER ) / + 61 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT COUNT( * ) * + COUNT( * ) + + ( - COUNT( ( + - col1 ) ) ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5002
SELECT COUNT ( * ) * + COUNT ( * ) + + ( - COUNT ( ( + - col1 ) ) ) AS col0 FROM tab0
----
6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * - 7 = + 76
----

query I rowsort
SELECT - ( + col2 ) + + - 80 FROM tab1 AS cor0
----
-139
-148
-176

query II rowsort
SELECT - col0 AS col2, col2 - col2 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL ) OR NOT - 29 IS NULL
----
-51
0
-85
0
-91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT 90 + MIN( ALL + col1 ) col2 FROM tab0 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5006
SELECT 90 + MIN ( ALL + col1 ) col2 FROM tab0 AS cor0
----
91

query I rowsort
SELECT DISTINCT + col0 * 39 + - - col0 FROM tab0 AS cor0
----
3480
3880
600

query I rowsort
SELECT - 55 + + + col1 + - - 66 + - col2 AS col1 FROM tab0 AS cor0
----
-87
22
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT ALL + + 69 - + - COUNT( * ) col1 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5009
SELECT ALL + + 69 - + - COUNT ( * ) col1 FROM tab0 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT - - 34 * COUNT( ALL + 47 ) FROM tab0 AS cor0 WHERE col2 BETWEEN + ( - - col0 ) + col1 AND - - ( 2 ) * + + 93 * + col0
----
34

skipif mysql # not compatible
query I rowsort label-5010
SELECT - - 34 * COUNT ( ALL + 47 ) FROM tab0 AS cor0 WHERE col2 BETWEEN + ( - - col0 ) + col1 AND - - ( 2 ) * + + 93 * + col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT + - 8 + + - COUNT( * ) FROM tab1 WHERE NULL IS NOT NULL
----
-8

skipif mysql # not compatible
query I rowsort label-5011
SELECT + - 8 + + - COUNT ( * ) FROM tab1 WHERE NULL IS NOT NULL
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-5012
SELECT ALL MAX( - - col2 ) AS col0, - 75 FROM tab1 AS cor0
----
96
-75

skipif mysql # not compatible
query II rowsort label-5012
SELECT ALL MAX ( - - col2 ) AS col0, - 75 FROM tab1 AS cor0
----
96
-75

query I rowsort
SELECT ( col0 ) * + - 77 * + col0 AS col0 FROM tab0 AS cor0
----
-17325
-582813
-724493

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5014
SELECT - 21 DIV - COUNT( - col2 ) AS col2 FROM tab0 cor0
----
7

skipif mysql # not compatible
query I rowsort label-5014
SELECT - 21 / - COUNT ( - col2 ) AS col2 FROM tab0 cor0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5015
SELECT ALL + CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL + CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 77 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5017
SELECT DISTINCT + 54 DIV + - col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-5017
SELECT DISTINCT + 54 / + - col0 FROM tab2
----
-1
0

query I rowsort
SELECT + 44 * col2 AS col2 FROM tab0
----
2068
4356
440

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT 89 * - COUNT( * ) col1 FROM tab2
----
-267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5019
SELECT 89 * - COUNT ( * ) col1 FROM tab2
----
-267

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5020
SELECT ALL * FROM tab0 WHERE + CAST( + - col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5020
SELECT ALL * FROM tab0 WHERE + CAST ( + - col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col1 AS col0, 68 FROM tab2
----
-51
68
-67
68
-77
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5022
SELECT - col0 DIV - 12 FROM tab0 cor0
----
1
7
8

skipif mysql # not compatible
query I rowsort label-5022
SELECT - col0 / - 12 FROM tab0 cor0
----
1
7
8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 93 < NULL
----

query I rowsort
SELECT ALL + 60 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 45 > ( NULL )
----

query I rowsort
SELECT ALL + - 5 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT ALL - 19 + col1 AS col1 FROM tab2
----
32
48
58

query I rowsort
SELECT - - 72 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5029
SELECT + + ( + CAST( SUM( + ( - 51 ) ) AS SIGNED ) ) AS col1 FROM tab2 cor0
----
-153

skipif mysql # not compatible
query I rowsort label-5029
SELECT + + ( + CAST ( SUM ( + ( - 51 ) ) AS INTEGER ) ) AS col1 FROM tab2 cor0
----
-153

query I rowsort
SELECT 90 * 89 FROM tab0 AS cor0
----
8010
8010
8010

query I rowsort
SELECT ALL - 75 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - + 22 * - col0 FROM tab1 AS cor0
----
1122
1870
2002

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 >= + col0 / - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT DISTINCT MIN( - col0 ) + 10 AS col1 FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-5034
SELECT DISTINCT MIN ( - col0 ) + 10 AS col1 FROM tab2 AS cor0
----
-65

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= - 49
----

query II rowsort
SELECT DISTINCT - ( ( + + col1 ) ) * - - col0, col2 + col0 AS col1 FROM tab1 cor0
----
-425
144
-4277
159
-714
147

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 NOT IN ( + + col0, col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * - 61 + 52 FROM tab2
----
-1351
-2388
-3486

query II rowsort
SELECT DISTINCT col2 AS col2, col2 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT 35 * - ( + + col2 ) + - 70 FROM tab2
----
-1470
-2100
-875

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 * - col2 + 0 IS NOT NULL
----

query I rowsort
SELECT 44 * - + col1 FROM tab2
----
-2244
-2948
-3388

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - + col0 * col2 + 66 * - col2 col0 FROM tab1
----
-10608
-11136
-8850

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5044
SELECT DISTINCT + CAST( - col2 AS SIGNED ), - ( + col0 ) + 38 + + col0 FROM tab2 AS cor0 WHERE ( - 18 + col0 NOT BETWEEN - col2 - - 7 AND 67 )
----

skipif mysql # not compatible
query II rowsort label-5044
SELECT DISTINCT + CAST ( - col2 AS INTEGER ), - ( + col0 ) + 38 + + col0 FROM tab2 AS cor0 WHERE ( - 18 + col0 NOT BETWEEN - col2 - - 7 AND 67 )
----

query II rowsort
SELECT DISTINCT + 51 AS col0, col2 FROM tab0
----
51
10
51
47
51
99

query II rowsort
SELECT + col2 + col2, col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 = + + col1 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-5048
SELECT ALL + COUNT( * ), 85 AS col2 FROM tab2 AS cor0
----
3
85

skipif mysql # not compatible
query II rowsort label-5048
SELECT ALL + COUNT ( * ), 85 AS col2 FROM tab2 AS cor0
----
3
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, - 83 FROM tab1 AS cor0
----
14
-83
47
-83
5
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5050
SELECT SUM( DISTINCT col2 ) AS col0, CAST( 8 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
223
8

skipif mysql # not compatible
query II rowsort label-5050
SELECT SUM ( DISTINCT col2 ) AS col0, CAST ( 8 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
223
8

query I rowsort
SELECT DISTINCT col0 * + + col2 FROM tab2 cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT ALL - ( - + COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL - ( - + COUNT ( * ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT col2 * + - col0 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query II rowsort label-5054
SELECT DISTINCT + - COUNT( * ), 50 AS col1 FROM tab1 AS cor0
----
-3
50

skipif mysql # not compatible
query II rowsort label-5054
SELECT DISTINCT + - COUNT ( * ), 50 AS col1 FROM tab1 AS cor0
----
-3
50

query I rowsort
SELECT ALL col0 * + col0 * - col2 * col1 FROM tab1
----
-2131375
-26466076
-3495744

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5056
SELECT - CAST( NULL AS DECIMAL ) * - + col0 + - - 45 col2 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5056
SELECT - CAST ( NULL AS REAL ) * - + col0 + - - 45 col2 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5057
SELECT - CAST( + CAST( col1 AS SIGNED ) AS SIGNED ) AS col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5057
SELECT - CAST ( + CAST ( col1 AS INTEGER ) AS INTEGER ) AS col2 FROM tab1
----
-14
-47
-5

query II rowsort
SELECT + col2 * - 35 AS col2, col2 FROM tab1
----
-2065
59
-2380
68
-3360
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 9 col1 FROM tab1
----
-9
-9
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * 55 - + - 57 - + col2 * col1 * - + ( + col2 ) AS col0, - col1 + + col1 * col2 col1 FROM tab2 AS cor0
----
127492
3003
229130
3819
29841
1122

onlyif mysql # DIV for integer division: 
query I rowsort label-5061
SELECT 97 * - col2 + + col0 DIV + col2 AS col0 FROM tab2
----
-2229
-3879
-5625

skipif mysql # not compatible
query I rowsort label-5061
SELECT 97 * - col2 + + col0 / + col2 AS col0 FROM tab2
----
-2229
-3879
-5625

query I rowsort
SELECT DISTINCT 74 + - 99 * - 43 FROM tab1 AS cor0
----
4331

query II rowsort
SELECT + col0 AS col1, - col2 FROM tab2 cor0
----
46
-23
64
-40
75
-58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT + col2 * + col2 IS NOT NULL ) )
----

query I rowsort
SELECT 79 * + - 70 AS col1 FROM tab1 AS cor0
----
-5530
-5530
-5530

onlyif mysql # aggregate syntax: 
query II rowsort label-5066
SELECT DISTINCT - 56 col0, COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
-56
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5066
SELECT DISTINCT - 56 col0, COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
-56
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT ALL + + 54 - - COUNT( * ) * MAX( col0 ) FROM tab2 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL + + 54 - - COUNT ( * ) * MAX ( col0 ) FROM tab2 AS cor0
----
279

query I rowsort
SELECT ALL ( - 49 ) AS col0 FROM tab1 AS cor0
----
-49
-49
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-5069
SELECT - col2 DIV 75 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5069
SELECT - col2 / 75 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT + COUNT( - 89 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5070
SELECT + COUNT ( - 89 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 86 + - 46 AS col1 FROM tab1
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5072
SELECT ALL - 53 + - CAST( col2 AS SIGNED ) FROM tab0
----
-100
-152
-63

skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL - 53 + - CAST ( col2 AS INTEGER ) FROM tab0
----
-100
-152
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5073
SELECT + 45 * CAST( NULL AS SIGNED ) + 75 + - COUNT( * ) * - + 31 + + - 3 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5073
SELECT + 45 * CAST ( NULL AS INTEGER ) + 75 + - COUNT ( * ) * - + 31 + + - 3 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5074
SELECT - col2 + - + CAST( NULL AS DECIMAL ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5074
SELECT - col2 + - + CAST ( NULL AS REAL ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5075
SELECT DISTINCT - COUNT( * ) - + COUNT( * ) AS col0, 85 * + COUNT( ALL - 17 ) AS col0 FROM tab0 AS cor0
----
-6
255

skipif mysql # not compatible
query II rowsort label-5075
SELECT DISTINCT - COUNT ( * ) - + COUNT ( * ) AS col0, 85 * + COUNT ( ALL - 17 ) AS col0 FROM tab0 AS cor0
----
-6
255

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5076
SELECT ALL col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 WHERE + CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 WHERE + CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 49 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-49

query I rowsort
SELECT + 26 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT 0 * + - ( - col2 ) AS col1, - 39 FROM tab2
----
0
-39

query II rowsort
SELECT + col0 AS col0, 82 AS col0 FROM tab0
----
15
82
87
82
97
82

query II rowsort
SELECT + col0 AS col2, 36 AS col0 FROM tab0 AS cor0
----
15
36
87
36
97
36

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col1 + + 50 + - 57 + - + 15 - - col2 - - col1 * - col2 * + col1 )
----

query II rowsort
SELECT DISTINCT + - col2 AS col0, col2 * col0 FROM tab0 AS cor0
----
-10
870
-47
705
-99
9603

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5084
SELECT - 61 / + - 55 * - col2 * - + CAST( NULL AS DECIMAL ) - - + col2, + col0 * col0 AS col1 FROM tab0 AS cor0
----
NULL
225
NULL
7569
NULL
9409

skipif mysql # not compatible
query II rowsort label-5084
SELECT - 61 / + - 55 * - col2 * - + CAST ( NULL AS REAL ) - - + col2, + col0 * col0 AS col1 FROM tab0 AS cor0
----
NULL
225
NULL
7569
NULL
9409

onlyif mysql # DIV for integer division: 
query I rowsort label-5085
SELECT + col2 * 2 DIV col1 AS col2 FROM tab1 cor0
----
13
2
23

skipif mysql # not compatible
query I rowsort label-5085
SELECT + col2 * 2 / col1 AS col2 FROM tab1 cor0
----
13
2
23

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + + 86 * - - col2 <= NULL
----

query I rowsort
SELECT ALL 68 + - 99 FROM tab1 WHERE NULL IS NULL
----
-31
-31
-31

query I rowsort
SELECT + col1 * - 5 * - 98 AS col2 FROM tab2
----
24990
32830
37730

query I rowsort
SELECT ALL + 53 + 73 AS col1 FROM tab0
----
126
126
126

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 + + 71 - - 47 * col0 > col1 / + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT 29 + + 12 - MIN( col0 ) * - 14 FROM tab2
----
685

skipif mysql # not compatible
query I rowsort label-5091
SELECT 29 + + 12 - MIN ( col0 ) * - 14 FROM tab2
----
685

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT MIN( ALL + - col1 ) + - COUNT( * ) AS col2 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-5092
SELECT MIN ( ALL + - col1 ) + - COUNT ( * ) AS col2 FROM tab0
----
-84

query I rowsort
SELECT - col0 + - + 51 + col2 AS col0 FROM tab2
----
-68
-74
-75

query I rowsort
SELECT DISTINCT col1 + + 21 * + col2 * + 80 FROM tab1 AS cor0
----
114287
161294
99125

onlyif mysql # DIV for integer division: 
query I rowsort label-5095
SELECT - 11 DIV - + ( - - col1 ) FROM tab0 AS cor0
----
0
0
11

skipif mysql # not compatible
query I rowsort label-5095
SELECT - 11 / - + ( - - col1 ) FROM tab0 AS cor0
----
0
0
11

query I rowsort
SELECT ALL + - col2 * + - col0 FROM tab2 cor0
----
1058
2560
4350

query I rowsort
SELECT ALL - 37 * - 60 + + col2 + - 94 FROM tab1
----
2185
2194
2222

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT DISTINCT - COUNT( * ) * COUNT( * ) + COUNT( * ) + - - ( + 83 ) AS col1 FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5098
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) + COUNT ( * ) + - - ( + 83 ) AS col1 FROM tab0 AS cor0
----
77

query I rowsort
SELECT ALL - 13 * + - 58 + - col2 AS col1 FROM tab2 AS cor0
----
696
714
731

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT + 81 + + + 24 * - + MAX( col0 ) * - - COUNT( 80 ) FROM tab1 AS cor0
----
-6471

skipif mysql # not compatible
query I rowsort label-5100
SELECT + 81 + + + 24 * - + MAX ( col0 ) * - - COUNT ( 80 ) FROM tab1 AS cor0
----
-6471

query I rowsort
SELECT ALL - 34 AS col1 FROM tab2 cor0
----
-34
-34
-34

query II rowsort
SELECT + + col2 + 43 AS col0, ( + - col1 ) - + col1 FROM tab1 AS cor0
----
102
-10
111
-94
139
-28

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5104
SELECT ALL + ( + 61 ) DIV + col2 AS col2 FROM tab1 WHERE NOT + col1 NOT BETWEEN - + col0 AND col2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL + ( + 61 ) / + col2 AS col2 FROM tab1 WHERE NOT + col1 NOT BETWEEN - + col0 AND col2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT ALL 91 * + COUNT( * ) AS col2 FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL 91 * + COUNT ( * ) AS col2 FROM tab0
----
273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 * + col2 col1 FROM tab0
----
1175
2475
250

onlyif mysql # DIV for integer division: 
query I rowsort label-5107
SELECT col1 DIV - 53 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5107
SELECT col1 / - 53 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT col2 * - + 70 FROM tab0
----
-3290
-6930
-700

query I rowsort
SELECT ( - + 61 ) * - 67 * - col0 FROM tab1
----
-208437
-347395
-371917

onlyif mysql # DIV for integer division: 
query I rowsort label-5110
SELECT + 24 DIV + + 15 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5110
SELECT + 24 / + + 15 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT ALL + ( MAX( ( + col0 ) ) ) * - COUNT( * ) AS col0 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL + ( MAX ( ( + col0 ) ) ) * - COUNT ( * ) AS col0 FROM tab1
----
-273

query II rowsort
SELECT DISTINCT col0, + col2 FROM tab1 cor0
----
51
96
85
59
91
68

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - col2 ) * 53 + 34 NOT BETWEEN ( col2 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-5114
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 NOT BETWEEN col0 / 24 AND - col0 / + 22 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT + COUNT( * ) FROM tab0 WHERE + col2 + col2 * ( + 20 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5116
SELECT + COUNT ( * ) FROM tab0 WHERE + col2 + col2 * ( + 20 ) IS NOT NULL
----
3

query I rowsort
SELECT 64 * col1 FROM tab2 WHERE 26 * col2 + - col1 IS NOT NULL
----
3264
4288
4928

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT - COUNT( - 54 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5118
SELECT - COUNT ( - 54 ) FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 NOT IN ( + col1 * + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 + - ( col2 + - 69 ) AS col2 FROM tab2
----
86
92
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT + MIN( DISTINCT ( 53 ) ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-5121
SELECT + MIN ( DISTINCT ( 53 ) ) FROM tab2
----
53

query I rowsort
SELECT col0 * col0 + - 39 FROM tab1
----
2562
7186
8242

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 >= 50 * 41
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= ( - 14 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 + - col0 col1 FROM tab0
----
-71
-81
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT COUNT( * ) + + COUNT( * ) * - 43 FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-5127
SELECT COUNT ( * ) + + COUNT ( * ) * - 43 FROM tab2
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT ALL COUNT( * ) * + 88 AS col2 FROM tab1
----
264

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL COUNT ( * ) * + 88 AS col2 FROM tab1
----
264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 64 col1 FROM tab1 WHERE NOT - col1 * col1 IN ( 77 )
----
-64

query III rowsort
SELECT * FROM tab1 WHERE ( col2 / col1 ) NOT IN ( - col1 + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE + col1 / - 26 - + ( - 98 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 51 ) NOT IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 + - col1 col1 FROM tab0 WHERE + col0 / + 12 - + col1 IS NOT NULL
----
-21
39
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT + + ( MAX( 87 ) ) col2 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5134
SELECT + + ( MAX ( 87 ) ) col2 FROM tab1 AS cor0
----
87

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
46
64
75

query I rowsort
SELECT ALL 21 + - col0 FROM tab2 AS cor0
----
-25
-43
-54

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 8 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT + COUNT( DISTINCT - col2 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5138
SELECT + COUNT ( DISTINCT - col2 ) FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5139
SELECT COUNT( * ) - - CAST( NULL AS SIGNED ) * 47 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5139
SELECT COUNT ( * ) - - CAST ( NULL AS INTEGER ) * 47 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 19 - + 64 * - col0 FROM tab0 AS cor0
----
5587
6227
979

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 36 col2 FROM tab0 AS cor0
----
36

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NULL <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT DISTINCT + 57 * - MAX( DISTINCT + 65 * col2 ) col1 FROM tab2 AS cor0
----
-214890

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5143
SELECT DISTINCT + 57 * - MAX ( DISTINCT + 65 * col2 ) col1 FROM tab2 AS cor0
----
-214890

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5144
SELECT DISTINCT - 17 - CAST( NULL AS DECIMAL ) * 4 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT - 17 - CAST ( NULL AS REAL ) * 4 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT COUNT( * ) + 59 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-5145
SELECT COUNT ( * ) + 59 FROM tab2
----
62

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + + 50 * col2 FROM tab0 WHERE NOT - col0 NOT BETWEEN NULL AND - col2 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT + COUNT( * ) FROM tab1 WHERE + 80 IN ( + 10 * col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5148
SELECT + COUNT ( * ) FROM tab1 WHERE + 80 IN ( + 10 * col2 )
----
0

query I rowsort
SELECT ALL + 91 * - col2 FROM tab0
----
-4277
-9009
-910

query I rowsort
SELECT + 3 / col2 + - 64 AS col1 FROM tab1 WHERE NOT + col1 * + col2 BETWEEN 46 + col0 AND ( NULL )
----

query I rowsort
SELECT ALL ( + col0 ) AS col1 FROM tab0 AS cor0 WHERE + ( + col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5152
SELECT + + CAST( + 99 AS SIGNED ) FROM tab1 cor0
----
99
99
99

skipif mysql # not compatible
query I rowsort label-5152
SELECT + + CAST ( + 99 AS INTEGER ) FROM tab1 cor0
----
99
99
99

query I rowsort
SELECT DISTINCT - col2 / col2 FROM tab1 AS cor0 WHERE NOT col1 / col2 NOT IN ( col0 * - 16 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + - ( + 33 ) FROM tab0 AS cor0
----
-33

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 57 BETWEEN col1 * + 5 AND - ( col1 ) / col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 62 * - + col2 AS col2 FROM tab2 AS cor0
----
-1426
-2480
-3596

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE ( NULL ) < NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 13 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5160
SELECT ALL - 80 DIV col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5160
SELECT ALL - 80 / col1 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT + - COUNT( * ) * COUNT( + 56 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-5161
SELECT + - COUNT ( * ) * COUNT ( + 56 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5162
SELECT 9 DIV + - col1 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5162
SELECT 9 / + - col1 AS col1 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT ALL MIN( DISTINCT + 38 ) FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL MIN ( DISTINCT + 38 ) FROM tab0
----
38

query I rowsort
SELECT 96 AS col0 FROM tab2 WHERE NOT - col1 IS NULL
----
96
96
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5165
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5165
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 * - col2 col2 FROM tab1 AS cor0
----
-295885
-420784
-470016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT - 11 * - ( + - col1 ) FROM tab0 AS cor0
----
-11
-231
-891

query II rowsort
SELECT + - 62, col1 FROM tab1 AS cor0
----
-62
14
-62
47
-62
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5170
SELECT + 16 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5170
SELECT + 16 / - col0 AS col2 FROM tab0 AS cor0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 72 / - 20 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT DISTINCT 96 * - + COUNT( * ) + - COUNT( * ) * - 6 AS col1 FROM tab2 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-5172
SELECT DISTINCT 96 * - + COUNT ( * ) + - COUNT ( * ) * - 6 AS col1 FROM tab2 AS cor0
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT DISTINCT + 13 * + 78 * + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
3042

skipif mysql # not compatible
query I rowsort label-5173
SELECT DISTINCT + 13 * + 78 * + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3042

query I rowsort
SELECT DISTINCT - col0 + + 50 AS col2 FROM tab2 AS cor0 WHERE 69 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT - SUM( ALL + - ( + col0 ) ) * ( ( COUNT( * ) ) ) AS col0 FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-5175
SELECT - SUM ( ALL + - ( + col0 ) ) * ( ( COUNT ( * ) ) ) AS col0 FROM tab1 AS cor0
----
681

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT ALL ( ( + COUNT( * ) ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5176
SELECT ALL ( ( + COUNT ( * ) ) ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> col2 + - 76 * 77
----

query I rowsort
SELECT + 88 AS col1 FROM tab2 WHERE NOT ( - - col2 + + col2 * 10 ) NOT BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5179
SELECT col0 - + CAST( col0 AS SIGNED ) * col0 AS col1 FROM tab1 WHERE NOT ( + 12 ) BETWEEN - ( - 51 ) AND NULL
----
-2550
-7140
-8190

skipif mysql # not compatible
query I rowsort label-5179
SELECT col0 - + CAST ( col0 AS INTEGER ) * col0 AS col1 FROM tab1 WHERE NOT ( + 12 ) BETWEEN - ( - 51 ) AND NULL
----
-2550
-7140
-8190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5180
SELECT - ( col0 ) AS col1 FROM tab0 WHERE ( - - 92 ) IN ( CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5180
SELECT - ( col0 ) AS col1 FROM tab0 WHERE ( - - 92 ) IN ( CAST ( col2 AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * - 55 * + 73 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + + 62 + - col1 FROM tab0
----
-38
-66
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT COUNT( - 62 ) AS col1 FROM tab2 WHERE + 87 NOT IN ( - col1 )
----
3

skipif mysql # not compatible
query I rowsort label-5183
SELECT COUNT ( - 62 ) AS col1 FROM tab2 WHERE + 87 NOT IN ( - col1 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5184
SELECT DISTINCT col2 + - 5 + + - 91 DIV - 66 FROM tab2
----
19
36
54

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT col2 + - 5 + + - 91 / - 66 FROM tab2
----
19
36
54

query I rowsort
SELECT DISTINCT + 75 * - 56 FROM tab1
----
-4200

query II rowsort
SELECT ALL + col1, 99 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
99
21
99
81
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) > + - 94 + - 96
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE ( - col2 + + 0 - - + 83 * col0 ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - + col0 + col2 * - 19 FROM tab2 AS cor0
----
-1177
-483
-824

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5190
SELECT DISTINCT + 49 DIV + + CAST( - - col1 AS SIGNED ) FROM tab0 AS cor0
----
0
2
49

skipif mysql # not compatible
query I rowsort label-5190
SELECT DISTINCT + 49 / + + CAST ( - - col1 AS INTEGER ) FROM tab0 AS cor0
----
0
2
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5191
SELECT ALL 77 * - - col1 + - col0 / + + ( + 96 ) * + ( + col0 / + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL 77 * - - col1 + - col0 / + + ( + 96 ) * + ( + col0 / + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( + col1 ) NOT BETWEEN - + 26 AND ( col2 )
----
51
14
96
85
5
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5193
SELECT - 78 - 50 * + col2 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5193
SELECT - 78 - 50 * + col2 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT 79 * - 39 FROM tab0
----
-3081

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 ) * + + col0 / ( + 92 ) IS NULL
----

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT - col0 * - col2 IS NOT NULL AND NOT ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - - col0 AS col1 FROM tab2 cor0 WHERE 53 + ( + + col2 ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 + - col2 * + col1 col2, 81 AS col1 FROM tab1 AS cor0
----
-1440
81
-3264
81
-354
81

query I rowsort
SELECT ALL - col2 + - col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + ( + ( col2 ) ) + - + col0 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT ALL + + 71 - + 45 FROM tab2 AS cor0
----
26
26
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5203
SELECT DISTINCT - - CAST( + - col2 AS SIGNED ) + + col0 AS col0 FROM tab0 AS cor0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT - - CAST ( + - col2 AS INTEGER ) + + col0 AS col0 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT - ( - col2 ) >= 6
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 33 <> ( + col1 )
----

query I rowsort
SELECT 2 FROM tab1 WHERE NOT NULL IN ( + col2 * - col0 + - - col1 + - col0 * + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col1, + col0 * + 39 + + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT DISTINCT - ( - + SUM( + 50 ) ) FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-5208
SELECT DISTINCT - ( - + SUM ( + 50 ) ) FROM tab2
----
150

query I rowsort
SELECT - ( + - col2 ) * - 64 AS col2 FROM tab1
----
-3776
-4352
-6144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5210
SELECT col1 * - CAST( + col1 AS SIGNED ) AS col1 FROM tab0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-5210
SELECT col1 * - CAST ( + col1 AS INTEGER ) AS col1 FROM tab0
----
-1
-441
-6561

query II rowsort
SELECT 47 AS col1, - 47 FROM tab2
----
47
-47
47
-47
47
-47

query I rowsort
SELECT DISTINCT col2 + + col2 FROM tab1 WHERE NOT - + 46 + - - 75 + + + col1 + - ( + col2 ) * 54 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - 43 * + 53 FROM tab2
----
-2279
-2279
-2279

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT ALL MIN( + 14 ) col2 FROM tab2 cor0
----
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5214
SELECT ALL MIN ( + 14 ) col2 FROM tab2 cor0
----
14

query I rowsort
SELECT DISTINCT - 29 FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN + 49 AND NULL
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT 11 col2, - 27, - col1 * - col2 - - ( + 74 ) AS col1 FROM tab2 cor0
----
9 values hashing to 6e4641f0ec19173208dd2f8ce16e71d0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 40 + - 41 <> + col0 / - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 50 ) NOT BETWEEN 11 AND ( + 55 * + 47 - col2 + + col1 * - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT ALL - COUNT( col0 ) * - - COUNT( * ) + - 33 AS col1 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL - COUNT ( col0 ) * - - COUNT ( * ) + - 33 AS col1 FROM tab2
----
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * + - col0, col1 col0 FROM tab1
----
425
5
4277
47
714
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5221
SELECT ALL + COUNT( * ) DIV - 7 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL + COUNT ( * ) / - 7 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT DISTINCT + MAX( ALL - col0 ) + 9 + - - MAX( DISTINCT ( - col1 ) ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5222
SELECT DISTINCT + MAX ( ALL - col0 ) + 9 + - - MAX ( DISTINCT ( - col1 ) ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT 71 * - col1 AS col1 FROM tab1 AS cor0
----
-3337
-355
-994

query I rowsort
SELECT DISTINCT + + col2 * - col1 FROM tab2 AS cor0 WHERE NOT - 70 * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5225
SELECT - col2 / - CAST( NULL AS SIGNED ), col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-5225
SELECT - col2 / - CAST ( NULL AS INTEGER ), col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5226
SELECT ALL + ( col0 ) DIV + ( - 68 ) FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL + ( col0 ) / + ( - 68 ) FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5227
SELECT 87 DIV - col2, col1 FROM tab0 AS cor0
----
-1
81
-8
21
0
1

skipif mysql # not compatible
query II rowsort label-5227
SELECT 87 / - col2, col1 FROM tab0 AS cor0
----
-1
81
-8
21
0
1

query I rowsort
SELECT DISTINCT 3 * + col2 FROM tab1 AS cor0
----
177
204
288

onlyif mysql # DIV for integer division: 
query I rowsort label-5229
SELECT 21 DIV + 28 * - - col2 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5229
SELECT 21 / + 28 * - - col2 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5230
SELECT - 75 / - - CAST( NULL AS DECIMAL ) * ( + COUNT( * ) ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5230
SELECT - 75 / - - CAST ( NULL AS REAL ) * ( + COUNT ( * ) ) AS col0 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5231
SELECT col2 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5231
SELECT col2 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - 17 * 41 * - - col0 FROM tab0
----
-10455
-60639
-67609

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5233
SELECT - col1 col1, ( CAST( + col1 AS SIGNED ) ) * + + 39 col1 FROM tab1
----
-14
546
-47
1833
-5
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5233
SELECT - col1 col1, ( CAST ( + col1 AS INTEGER ) ) * + + 39 col1 FROM tab1
----
-14
546
-47
1833
-5
195

query I rowsort
SELECT ALL + 30 * 76 FROM tab2
----
2280
2280
2280

query III rowsort
SELECT * FROM tab1 WHERE + + ( - col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col2 NOT IN ( col2, + 12 - + - 47 + 70 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5237
SELECT DISTINCT + col0 * + + 93 + - + 16 DIV 48 col0 FROM tab1
----
4743
7905
8463

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5237
SELECT DISTINCT + col0 * + + 93 + - + 16 / 48 col0 FROM tab1
----
4743
7905
8463

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5238
SELECT + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5238
SELECT + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT + ( - MAX( + 46 ) ) AS col1 FROM tab0 WHERE + col0 + + - ( + ( - col2 ) ) * col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5239
SELECT + ( - MAX ( + 46 ) ) AS col1 FROM tab0 WHERE + col0 + + - ( + ( - col2 ) ) * col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT ALL + COUNT( DISTINCT - col2 ) + - MIN( DISTINCT - col0 ) AS col0 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL + COUNT ( DISTINCT - col2 ) + - MIN ( DISTINCT - col0 ) AS col0 FROM tab0
----
100

query I rowsort
SELECT DISTINCT - col2 + + 0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + - 7 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5243
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5244
SELECT DISTINCT ( - col2 ) AS col2 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * + col1 NOT IN ( + - 21 )
----

skipif mysql # not compatible
query I rowsort label-5244
SELECT DISTINCT ( - col2 ) AS col2 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * + col1 NOT IN ( + - 21 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5245
SELECT DISTINCT + 80 - CAST( NULL AS SIGNED ) * + - col2 * - col0 * + 3 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT DISTINCT + 80 - CAST ( NULL AS INTEGER ) * + - col2 * - col0 * + 3 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - + 43 * + col1 - - col0 FROM tab0 AS cor0
----
-3468
-816
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5247
SELECT col2 - CAST( + col1 AS SIGNED ) * + 32 col2 FROM tab1 AS cor0
----
-101
-1436
-352

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5247
SELECT col2 - CAST ( + col1 AS INTEGER ) * + 32 col2 FROM tab1 AS cor0
----
-101
-1436
-352

query I rowsort
SELECT - 86 - + 78 AS col2 FROM tab0 AS cor0
----
-164
-164
-164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5249
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + MIN( ALL + col1 ) - - 36 * - COUNT( * ) AS col2 FROM tab1 cor0 WHERE NULL BETWEEN ( + col0 ) - - col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5249
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + MIN ( ALL + col1 ) - - 36 * - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NULL BETWEEN ( + col0 ) - - col2 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE NOT col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5250
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE NOT col1 IS NULL
----
3

query II rowsort
SELECT - + col1 - - + col2 - + 61 AS col2, - ( + - col0 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NOT ( + 92 * - col2 ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5253
SELECT DISTINCT COUNT( * ), 77 AS col1 FROM tab2
----
3
77

skipif mysql # not compatible
query II rowsort label-5253
SELECT DISTINCT COUNT ( * ), 77 AS col1 FROM tab2
----
3
77

query I rowsort
SELECT + 60 * col0 AS col2 FROM tab2
----
2760
3840
4500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5255
SELECT col0 * + ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5255
SELECT col0 * + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT + col1, + col0 * + 19 + + - col2 + + - 90 FROM tab2
----
51
761
67
1277
77
1086

query I rowsort
SELECT DISTINCT - 74 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-74

query II rowsort
SELECT col0, 22 FROM tab2
----
46
22
64
22
75
22

onlyif mysql # DIV for integer division: 
query I rowsort label-5259
SELECT DISTINCT + ( - col2 ) * col2 DIV ( + 80 ) - - col0 + 87 FROM tab1 AS cor0
----
121
129
23

skipif mysql # not compatible
query I rowsort label-5259
SELECT DISTINCT + ( - col2 ) * col2 / ( + 80 ) - - col0 + 87 FROM tab1 AS cor0
----
121
129
23

query I rowsort
SELECT DISTINCT - col0 * + - col1 + - col1 AS col2 FROM tab1 AS cor0
----
420
4230
700

query I rowsort
SELECT 92 + col2 AS col2 FROM tab2 cor0
----
115
132
150

query I rowsort
SELECT - col2 + + 57 - + 38 AS col1 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT + - 79 + - - col0 + + 41 * - + col0 FROM tab0 AS cor0
----
-3559
-3959
-679

onlyif mysql # DIV for integer division: 
query I rowsort label-5264
SELECT DISTINCT + - col1 DIV ( - col0 ) FROM tab0 AS cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-5264
SELECT DISTINCT + - col1 / ( - col0 ) FROM tab0 AS cor0
----
0
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5265
SELECT * FROM tab0 AS cor0 WHERE + 9 - ( - + CAST( col0 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5265
SELECT * FROM tab0 AS cor0 WHERE + 9 - ( - + CAST ( col0 AS INTEGER ) ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 IN ( 39 )
----

query I rowsort
SELECT ALL - ( + - 61 ) + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT ALL + COUNT( DISTINCT - col0 ) * + + COUNT( * ) + - SUM( - - 13 ) AS col0 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL + COUNT ( DISTINCT - col0 ) * + + COUNT ( * ) + - SUM ( - - 13 ) AS col0 FROM tab2
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-5269
SELECT ALL - col0 * - + ( - col2 ) + + 49 DIV + col0 FROM tab2
----
-1057
-2560
-4350

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL - col0 * - + ( - col2 ) + + 49 / + col0 FROM tab2
----
-1057
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 * 95 col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 = + - col0 + + 94
----

query III rowsort
SELECT * FROM tab1 WHERE - 44 + - + col1 IS NULL
----

query II rowsort
SELECT ALL - col1 AS col0, 47 AS col0 FROM tab1 AS cor0
----
-14
47
-47
47
-5
47

query I rowsort
SELECT + 59 AS col0 FROM tab0 cor0
----
59
59
59

query II rowsort
SELECT DISTINCT - col2 AS col2, - col1 + - col0 AS col1 FROM tab0 AS cor0
----
-10
-108
-47
-96
-99
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT + ( + + COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT - col1 > - 7 + + col0
----
3

skipif mysql # not compatible
query I rowsort label-5276
SELECT + ( + + COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT - col1 > - 7 + + col0
----
3

query I rowsort
SELECT DISTINCT + 74 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
74

query I rowsort
SELECT 8 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5279
SELECT - COUNT( * ), COUNT( * ) * - - 13 AS col2 FROM tab0 AS cor0
----
-3
39

skipif mysql # not compatible
query II rowsort label-5279
SELECT - COUNT ( * ), COUNT ( * ) * - - 13 AS col2 FROM tab0 AS cor0
----
-3
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE col2 BETWEEN ( NULL ) AND ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE col2 BETWEEN ( NULL ) AND ( - col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT DISTINCT MAX( + - 20 ) FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-5281
SELECT DISTINCT MAX ( + - 20 ) FROM tab2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT DISTINCT - MIN( - + col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5282
SELECT DISTINCT - MIN ( - + col0 ) FROM tab1
----
91

query I rowsort
SELECT 90 FROM tab0 WHERE NOT + + 83 * col1 * + - 87 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 92 * - 71 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * - + col0 NOT BETWEEN - col2 AND 74
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT + + MIN( - 85 ) FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-5286
SELECT + + MIN ( - 85 ) FROM tab2 AS cor0
----
-85

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col1 > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 + + + col2 FROM tab2 WHERE ( + 61 * + col0 ) < ( col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * - - 46 BETWEEN col1 AND + col2
----

query I rowsort
SELECT DISTINCT - - 0 * + col1 * + - 91 + + 25 AS col2 FROM tab2 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT COUNT( * ) * - COUNT( DISTINCT + col2 ) * - + 84 AS col1 FROM tab2 cor0
----
756

skipif mysql # not compatible
query I rowsort label-5291
SELECT COUNT ( * ) * - COUNT ( DISTINCT + col2 ) * - + 84 AS col1 FROM tab2 cor0
----
756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5292
SELECT DISTINCT + 41 + - col2 FROM tab0 AS cor0 WHERE NOT + 77 * + CAST( + 90 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5292
SELECT DISTINCT + 41 + - col2 FROM tab0 AS cor0 WHERE NOT + 77 * + CAST ( + 90 AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5293
SELECT - 36 DIV + - col1 AS col1 FROM tab0 AS cor0
----
0
1
36

skipif mysql # not compatible
query I rowsort label-5293
SELECT - 36 / + - col1 AS col1 FROM tab0 AS cor0
----
0
1
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT + + COUNT( * ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5294
SELECT + + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT + col0 / - - col0 IS NULL
----
23
40
58

query I rowsort
SELECT ALL col2 * - - col0 * + col1 FROM tab0
----
18270
57105
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-5297
SELECT ALL - + col1 * col1 DIV + - col2 + + ( + + 62 ) * - + col2 - - + col1 FROM tab2 AS cor0
----
-1262
-2255
-3452

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL - + col1 * col1 / + - col2 + + ( + + 62 ) * - + col2 - - + col1 FROM tab2 AS cor0
----
-1262
-2255
-3452

query I rowsort
SELECT + col2 * - 83 + + + col0 AS col0 FROM tab1 AS cor0
----
-4812
-5553
-7917

query I rowsort
SELECT + + 58 * + col1 AS col2 FROM tab2 AS cor0
----
2958
3886
4466

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - col1 col2 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT + - col1 AS col1 FROM tab2 WHERE NOT - - col2 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT MIN( - col2 ) * + 31 * + 17 FROM tab1
----
-50592

skipif mysql # not compatible
query I rowsort label-5302
SELECT MIN ( - col2 ) * + 31 * + 17 FROM tab1
----
-50592

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT - - ( MAX( + - col1 ) ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5303
SELECT - - ( MAX ( + - col1 ) ) FROM tab1 AS cor0
----
-5

query II rowsort
SELECT + ( + - 0 ) * + col2 AS col0, - col1 FROM tab2 AS cor0
----
0
-51
0
-67
0
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-5305
SELECT SUM( - + 52 ) AS col1, COUNT( * ) * - 20 AS col2 FROM tab2 AS cor0
----
-156
-60

skipif mysql # not compatible
query II rowsort label-5305
SELECT SUM ( - + 52 ) AS col1, COUNT ( * ) * - 20 AS col2 FROM tab2 AS cor0
----
-156
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT + 18 * COUNT( * ) - 59 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5306
SELECT + 18 * COUNT ( * ) - 59 FROM tab0 AS cor0
----
-5

query II rowsort
SELECT + ( - 57 ) AS col0, + 53 - - - 94 FROM tab2 AS cor0
----
-57
-41
-57
-41
-57
-41

query I rowsort
SELECT - - ( + - ( - 20 ) ) AS col1 FROM tab1 cor0
----
20
20
20

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN + 20 AND 22
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( - col2 ) ) BETWEEN col0 + - - 20 + + 65 * + 93 + - col2 / - 81 AND 9
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col2 * ( + - 20 ) AS col1, - 95 AS col2 FROM tab2
----
-1160
-95
-460
-95
-800
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-5312
SELECT DISTINCT col2 DIV + + 22 FROM tab1
----
2
3
4

skipif mysql # not compatible
query I rowsort label-5312
SELECT DISTINCT col2 / + + 22 FROM tab1
----
2
3
4

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5313
SELECT * FROM tab0 WHERE NOT CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5313
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 67 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 13, - 83 col0 FROM tab2 AS cor0
----
-13
-83
-13
-83
-13
-83

query II rowsort
SELECT 66 AS col0, + col1 AS col1 FROM tab2 cor0
----
66
51
66
67
66
77

onlyif mysql # aggregate syntax: 
query II rowsort label-5317
SELECT DISTINCT - 47, COUNT( * ) AS col2 FROM tab2 AS cor0
----
-47
3

skipif mysql # not compatible
query II rowsort label-5317
SELECT DISTINCT - 47, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-47
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5318
SELECT AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5318
SELECT AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + - col0 * - 20
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5320
SELECT ALL * FROM tab0 WHERE - 32 NOT BETWEEN col1 * + col2 + - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5320
SELECT ALL * FROM tab0 WHERE - 32 NOT BETWEEN col1 * + col2 + - CAST ( NULL AS INTEGER ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + + 13 ) * - + col2 - - col0 AS col2, col0 col2 FROM tab1
----
-1197
51
-682
85
-793
91

query I rowsort
SELECT ALL col0 + - col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-2
-32
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5323
SELECT - + COUNT( * ) * + CAST( NULL AS SIGNED ) + + 41 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5323
SELECT - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + 41 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + col2 BETWEEN - 60 AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5324
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + col2 BETWEEN - 60 AND NULL )
----
0

query III rowsort
SELECT * FROM tab2 WHERE 93 <> ( NULL )
----

query I rowsort
SELECT ALL 54 * - 96 * ( 70 ) + col1 FROM tab2
----
-362803
-362813
-362829

query I rowsort
SELECT ( col1 ) + col1 AS col0 FROM tab0
----
162
2
42

query I rowsort
SELECT + col1 * + - col0 * + + 68 FROM tab0
----
-124236
-6596
-82620

query II rowsort
SELECT - col1 * - 68 * - col1 AS col0, 80 FROM tab2
----
-176868
80
-305252
80
-403172
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT + 26 * MAX( 79 ) FROM tab0
----
2054

skipif mysql # not compatible
query I rowsort label-5330
SELECT + 26 * MAX ( 79 ) FROM tab0
----
2054

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col0 + + - 65 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 91 * - 33 FROM tab1
----
-3003

query I rowsort
SELECT + col1 * - 45 AS col1 FROM tab0
----
-3645
-45
-945

query I rowsort
SELECT + col0 + col1 - + 77 FROM tab0 AS cor0 WHERE NOT 58 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5335
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 31 * + - col2 * CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND - CAST( + + col0 AS SIGNED ) / + col0
----

skipif mysql # not compatible
query III rowsort label-5335
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 31 * + - col2 * CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND - CAST ( + + col0 AS INTEGER ) / + col0
----

query II rowsort
SELECT ALL 31 AS col0, + col1 FROM tab0 AS cor0
----
31
1
31
21
31
81

query I rowsort
SELECT DISTINCT - 85 * + 43 FROM tab1 AS cor0
----
-3655

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 + + 10 <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5339
SELECT ALL + + col2 AS col1, col2 DIV - col1 col1 FROM tab1 AS cor0
----
59
-11
68
-1
96
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5339
SELECT ALL + + col2 AS col1, col2 / - col1 col1 FROM tab1 AS cor0
----
59
-11
68
-1
96
-6

query I rowsort
SELECT col0 * - col2 FROM tab1 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5341
SELECT + CAST( - - COUNT( * ) AS SIGNED ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5341
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) col2 FROM tab0
----
3

query II rowsort
SELECT ALL col2 * + col0 AS col0, + col0 AS col0 FROM tab1
----
4896
51
5015
85
6188
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + - + 80 col1, - col0 FROM tab0
----
-65
-15
17
-97
7
-87

query III rowsort
SELECT * FROM tab2 WHERE NOT + 81 / 24 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 42 * + + 11 FROM tab0 AS cor0
----
-462
-462
-462

query II rowsort
SELECT 20 * - col1 + - col1 AS col1, col2 AS col2 FROM tab0
----
-1701
47
-21
99
-441
10

query I rowsort
SELECT ALL 83 + + col0 * - 99 AS col2 FROM tab0
----
-1402
-8530
-9520

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT DISTINCT MIN( ALL - - col2 ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-5348
SELECT DISTINCT MIN ( ALL - - col2 ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
20

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 77 ) col2 FROM tab0 AS cor0
----
77

query I rowsort
SELECT DISTINCT + 32 + - 54 + col2 FROM tab1 AS cor0
----
37
46
74

query I rowsort
SELECT + 71 - + + 76 + + col1 FROM tab1 AS cor0
----
0
42
9

query I rowsort
SELECT 20 - + col0 + + 77 + + + col1 * + 11 FROM tab2 AS cor0
----
612
759
880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + 69 ) col2 FROM tab1
----
69
69
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 68 col2 FROM tab0 WHERE NOT ( NULL = 86 / + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT ALL MIN( DISTINCT - 37 ) - - COUNT( * ) FROM tab2, tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-5356
SELECT ALL MIN ( DISTINCT - 37 ) - - COUNT ( * ) FROM tab2, tab0 AS cor0
----
-28

query I rowsort
SELECT ( + col2 ) * + - 33 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 24 + - col0 + + col2 FROM tab2
----
0
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT SUM( DISTINCT - - col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5359
SELECT SUM ( DISTINCT - - col1 ) AS col1 FROM tab1 AS cor0
----
66

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT + col2 * 49 - 45 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT ALL 27 * MAX( + col1 ) FROM tab2 AS cor0
----
2079

skipif mysql # not compatible
query I rowsort label-5361
SELECT ALL 27 * MAX ( + col1 ) FROM tab2 AS cor0
----
2079

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 98 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 92 * - 99 * + + 62 AS col0 FROM tab2
----
-564696
-564696
-564696

query I rowsort
SELECT + col0 * + 93 * col2 AS col1 FROM tab1
----
455328
466395
575484

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5365
SELECT ALL - + CAST( NULL AS DECIMAL ) + + 64 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL - + CAST ( NULL AS REAL ) + + 64 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT 48 * col1 + + col1 AS col0, + col1 AS col2 FROM tab0 cor0
----
1029
21
3969
81
49
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT ALL COUNT( * ) * - 2 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL COUNT ( * ) * - 2 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT - 87 * col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> 13 * + - col2 / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT ALL COUNT( * ) * - COUNT( ALL - col1 ) FROM tab0 AS cor0 WHERE NOT - 34 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL COUNT ( * ) * - COUNT ( ALL - col1 ) FROM tab0 AS cor0 WHERE NOT - 34 IS NOT NULL
----
0

query I rowsort
SELECT ALL + - 43 * - + col2 AS col2 FROM tab2 AS cor0
----
1720
2494
989

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 * col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( + col1 * + - 61 + - col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 58 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5375
SELECT MAX( col0 ) * 49 + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL >= CAST( NULL AS DECIMAL ) + - + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5375
SELECT MAX ( col0 ) * 49 + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL >= CAST ( NULL AS REAL ) + - + col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5376
SELECT - 6 col0, CAST( NULL AS SIGNED ) + col0 FROM tab1 AS cor0
----
-6
NULL
-6
NULL
-6
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5376
SELECT - 6 col0, CAST ( NULL AS INTEGER ) + col0 FROM tab1 AS cor0
----
-6
NULL
-6
NULL
-6
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 68 <= - - col2 )
----
51
14
96
91
47
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5378
SELECT ALL - + col1 DIV - + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL - + col1 / - + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5379
SELECT ALL + CAST( 37 AS SIGNED ) FROM tab0 AS cor0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-5379
SELECT ALL + CAST ( 37 AS INTEGER ) FROM tab0 AS cor0
----
37
37
37

query III rowsort
SELECT * FROM tab1 WHERE NOT - 16 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT - 98 * COUNT( * ) + - 36 FROM tab2
----
-330

skipif mysql # not compatible
query I rowsort label-5381
SELECT - 98 * COUNT ( * ) + - 36 FROM tab2
----
-330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5382
SELECT - col2 AS col0 FROM tab1 WHERE NOT - CAST( + + col0 AS SIGNED ) IS NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5382
SELECT - col2 AS col0 FROM tab1 WHERE NOT - CAST ( + + col0 AS INTEGER ) IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5383
SELECT col2 + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5383
SELECT col2 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5384
SELECT ALL CAST( + col1 AS SIGNED ) col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5384
SELECT ALL CAST ( + col1 AS INTEGER ) col2 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5385
SELECT ALL CAST( NULL AS SIGNED ) * + 61 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5385
SELECT ALL CAST ( NULL AS INTEGER ) * + 61 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 43 * - + col2 AS col2, col0 - + 44 AS col1 FROM tab2
----
1720
20
2494
31
989
2

query I rowsort
SELECT - 6 + - col1 + + col0 FROM tab2
----
-11
-19
2

query I rowsort
SELECT ALL + col1 * - - 35 * - col0 + 8 * + 57 AS col1 FROM tab0
----
-2939
-42069
-63489

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5389
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) * - + ( + col0 ) >= col2
----

skipif mysql # not compatible
query III rowsort label-5389
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) * - + ( + col0 ) >= col2
----

query I rowsort
SELECT DISTINCT 94 + - col2 * + 33 * col2 AS col0 FROM tab2
----
-110918
-17363
-52706

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5391
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST( col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5391
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST ( col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5392
SELECT ALL col0 DIV - + col2 AS col1 FROM tab2 cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL col0 / - + col2 AS col1 FROM tab2 cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT - MAX( DISTINCT col2 ) AS col1 FROM tab1 WHERE ( ( NULL ) NOT BETWEEN - 44 AND + - ( + - col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5393
SELECT - MAX ( DISTINCT col2 ) AS col1 FROM tab1 WHERE ( ( NULL ) NOT BETWEEN - 44 AND + - ( + - col0 ) )
----
NULL

query I rowsort
SELECT + 14 * col1 FROM tab0
----
1134
14
294

query I rowsort
SELECT + ( - - 88 ) + + col1 FROM tab1
----
102
135
93

query I rowsort
SELECT - 73 + - 8 FROM tab1 AS cor0
----
-81
-81
-81

query I rowsort
SELECT ALL col0 * - col2 - col1 AS col1 FROM tab1 cor0
----
-4910
-5020
-6235

query I rowsort
SELECT ALL - - col0 - + ( col0 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * - 54 FROM tab0
----
-1134
-4374
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT DISTINCT MAX( + 6 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5400
SELECT DISTINCT MAX ( + 6 ) FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT COUNT( * ) * + 8 AS col2 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-5401
SELECT COUNT ( * ) * + 8 AS col2 FROM tab2
----
24

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 + + 11 > col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5403
SELECT DISTINCT * FROM tab2 WHERE NOT - - 39 + - col1 + 2 * CAST( NULL AS SIGNED ) * + ( + 32 ) * 13 >= col0 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5403
SELECT DISTINCT * FROM tab2 WHERE NOT - - 39 + - col1 + 2 * CAST ( NULL AS INTEGER ) * + ( + 32 ) * 13 >= col0 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT ALL COUNT( ALL + + col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL COUNT ( ALL + + col1 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5405
SELECT + + COUNT( * ) DIV - + COUNT( * ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5405
SELECT + + COUNT ( * ) / - + COUNT ( * ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5406
SELECT ALL + + CAST( + - col2 AS SIGNED ) DIV col0 * - col2 col0 FROM tab0 cor0
----
0
141
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5406
SELECT ALL + + CAST ( + - col2 AS INTEGER ) / col0 * - col2 col0 FROM tab0 cor0
----
0
141
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT DISTINCT + - MAX( DISTINCT col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT + - MAX ( DISTINCT col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT + + MAX( 92 ) AS col1 FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-5408
SELECT + + MAX ( 92 ) AS col1 FROM tab0 AS cor0
----
92

query I rowsort
SELECT ALL + col1 * - col1 FROM tab0 WHERE NULL <> col1 * - 27 + - - 87
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 83 * - - 44 > 6 * + col2 * col2 / - 46
----

query I rowsort
SELECT DISTINCT - col2 * - + col2 AS col1 FROM tab1 cor0
----
3481
4624
9216

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> + 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT DISTINCT + COUNT( * ) * - 44 AS col2 FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT + COUNT ( * ) * - 44 AS col2 FROM tab1 AS cor0
----
-132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + ( - col0 ) col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT ALL + 9 + + col2 FROM tab0
----
108
19
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + + col2 col1 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 26 >= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - 33 + - - ( col2 ) + + col2 * - - col0 + + col2, col1 + 84 AS col0 FROM tab1
----
5055
98
5100
89
6291
131

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT - ( + COUNT( * ) ) + 10 FROM tab1 WHERE NULL <= NULL
----
10

skipif mysql # not compatible
query I rowsort label-5419
SELECT - ( + COUNT ( * ) ) + 10 FROM tab1 WHERE NULL <= NULL
----
10

query I rowsort
SELECT ALL + - col0 + - - col1 AS col2 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT - + 78 * + 88 * 64 + - + 77 AS col0 FROM tab1 AS cor0
----
-439373
-439373
-439373

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * - col0 IS NOT NULL
----

query I rowsort
SELECT + - col2 FROM tab2 WHERE NULL <= - 0
----

query II rowsort
SELECT DISTINCT 88 AS col2, col0 AS col2 FROM tab1
----
88
51
88
85
88
91

query I rowsort
SELECT ALL - 37 + - - col1 FROM tab0
----
-16
-36
44

onlyif mysql # DIV for integer division: 
query I rowsort label-5426
SELECT DISTINCT + col0 DIV - col2 + + ( - ( col2 ) ) * - 24 AS col0 FROM tab2 cor0
----
1391
550
959

skipif mysql # not compatible
query I rowsort label-5426
SELECT DISTINCT + col0 / - col2 + + ( - ( col2 ) ) * - 24 AS col0 FROM tab2 cor0
----
1391
550
959

query I rowsort
SELECT + 51 - - - col2 AS col0 FROM tab1 AS cor0
----
-17
-45
-8

query I rowsort
SELECT DISTINCT + + 28 + col0 FROM tab0 AS cor0
----
115
125
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT - 31 * - ( + 1 ) - + SUM( col2 ) AS col1 FROM tab0 AS cor0
----
-125

skipif mysql # not compatible
query I rowsort label-5429
SELECT - 31 * - ( + 1 ) - + SUM ( col2 ) AS col1 FROM tab0 AS cor0
----
-125

query I rowsort
SELECT - 61 - col2 FROM tab2 AS cor0
----
-101
-119
-84

query I rowsort
SELECT - col2 + - 47 AS col0 FROM tab0 AS cor0 WHERE + col2 * + col1 IS NOT NULL
----
-146
-57
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-5432
SELECT - col2 DIV + 98 - + 88 * 40 * - col0 AS col2 FROM tab1 AS cor0
----
179520
299200
320320

skipif mysql # not compatible
query I rowsort label-5432
SELECT - col2 / + 98 - + 88 * 40 * - col0 AS col2 FROM tab1 AS cor0
----
179520
299200
320320

query I rowsort
SELECT DISTINCT + - col2 - + col2 * col2 AS col2 FROM tab1 AS cor0
----
-3540
-4692
-9312

query I rowsort
SELECT DISTINCT + col2 - - + col0 AS col1 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # DIV for integer division: 
query I rowsort label-5435
SELECT + + col0 * - col0 DIV + col0 AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5435
SELECT + + col0 * - col0 / + col0 AS col1 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5436
SELECT DISTINCT 77 * 2 DIV - COUNT( * ) AS col2 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-5436
SELECT DISTINCT 77 * 2 / - COUNT ( * ) AS col2 FROM tab0
----
-51

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * - 85 / col0 * - col0 + - col0 * + + col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT - 63 * SUM( ALL col1 ) AS col0 FROM tab2
----
-12285

skipif mysql # not compatible
query I rowsort label-5438
SELECT - 63 * SUM ( ALL col1 ) AS col0 FROM tab2
----
-12285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5439
SELECT ALL CAST( NULL AS SIGNED ) * + 67 * - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL CAST ( NULL AS INTEGER ) * + 67 * - col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ( col1 ), 31 AS col1 FROM tab0
----
1
31
21
31
81
31

query I rowsort
SELECT - col2 * - col0 + + ( + 60 ) FROM tab0 AS cor0
----
765
930
9663

query I rowsort
SELECT ALL - - 96 AS col1 FROM tab1 WHERE - col1 + - + 66 IS NOT NULL
----
96
96
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5443
SELECT DISTINCT - ( + SUM( DISTINCT + 91 ) ) * + - CAST( COUNT( * ) AS SIGNED ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-5443
SELECT DISTINCT - ( + SUM ( DISTINCT + 91 ) ) * + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT - COUNT( * ) * - 88 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-5444
SELECT - COUNT ( * ) * - 88 FROM tab2
----
264

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + - col2 ) * + + col0 * - col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5446
SELECT + 3 - + CAST( + 8 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

skipif mysql # not compatible
query I rowsort label-5446
SELECT + 3 - + CAST ( + 8 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT ALL - COUNT( ALL - - 99 ) * 42 + + + MIN( - col0 ) FROM tab0 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-5447
SELECT ALL - COUNT ( ALL - - 99 ) * 42 + + + MIN ( - col0 ) FROM tab0 AS cor0
----
-223

query I rowsort
SELECT + + col1 + col1 - - 78 * - col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5449
SELECT CAST( NULL AS DECIMAL ), - 50 - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-5449
SELECT CAST ( NULL AS REAL ), - 50 - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL
-53

query I rowsort
SELECT DISTINCT - - ( col0 ) FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT + ( + + 27 ) AS col0 FROM tab0 AS cor0
----
27
27
27

query I rowsort
SELECT col2 * + 14 FROM tab0 AS cor0
----
1386
140
658

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = 70 * - col0
----

query I rowsort
SELECT - col1 + - + col2 AS col1 FROM tab1 cor0
----
-110
-115
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5455
SELECT ALL - AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL - AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5456
SELECT - CAST( + 71 AS SIGNED ) + - 8 FROM tab2
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-5456
SELECT - CAST ( + 71 AS INTEGER ) + - 8 FROM tab2
----
-79
-79
-79

query I rowsort
SELECT - 1 + - 72 + 17 * - - col0 FROM tab2
----
1015
1202
709

query II rowsort
SELECT + col1 + + col2 AS col1, - col0 FROM tab0
----
100
-97
128
-15
31
-87

query III rowsort
SELECT * FROM tab2 WHERE - 50 / + + col0 * + col0 * 76 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5460
SELECT ALL CAST( NULL AS SIGNED ) + col1 / col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL CAST ( NULL AS INTEGER ) + col1 / col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + + + col1 + + 3 FROM tab2
----
120
128
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT DISTINCT + + ( - + COUNT( * ) ) + 11 FROM tab1 cor0 WHERE NULL = - 21
----
11

skipif mysql # not compatible
query I rowsort label-5462
SELECT DISTINCT + + ( - + COUNT ( * ) ) + 11 FROM tab1 cor0 WHERE NULL = - 21
----
11

query I rowsort
SELECT DISTINCT + + 74 AS col2 FROM tab2 AS cor0
----
74

query I rowsort
SELECT ALL - 39 - + - 49 AS col0 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5465
SELECT ALL col0 + - CAST( NULL AS SIGNED ) + 21 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5465
SELECT ALL col0 + - CAST ( NULL AS INTEGER ) + 21 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 29 + - + col1 AS col2 FROM tab2 AS cor0
----
-106
-80
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT ALL - COUNT( - 82 ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5467
SELECT ALL - COUNT ( - 82 ) AS col0 FROM tab1 cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 77 <= NULL
----

query I rowsort
SELECT DISTINCT + col1 * - col2 * 10 FROM tab2
----
-11730
-30800
-38860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 col2 FROM tab1 WHERE ( ( NULL ) IS NULL )
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT - COUNT( * ) + - ( + 14 ) FROM tab0 WHERE NOT ( NULL < NULL )
----
-14

skipif mysql # not compatible
query I rowsort label-5471
SELECT - COUNT ( * ) + - ( + 14 ) FROM tab0 WHERE NOT ( NULL < NULL )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5472
SELECT DISTINCT col1 * - ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5472
SELECT DISTINCT col1 * - ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

query II rowsort
SELECT ALL col1 AS col2, + 50 FROM tab0
----
1
50
21
50
81
50

query II rowsort
SELECT col0 AS col2, - col2 + - - ( - col0 ) - - col0 AS col2 FROM tab1
----
51
-96
85
-59
91
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5475
SELECT DISTINCT + ( CAST( - 75 AS SIGNED ) ) * col2, - col2 AS col1 FROM tab2
----
-1725
-23
-3000
-40
-4350
-58

skipif mysql # not compatible
query II rowsort label-5475
SELECT DISTINCT + ( CAST ( - 75 AS INTEGER ) ) * col2, - col2 AS col1 FROM tab2
----
-1725
-23
-3000
-40
-4350
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT DISTINCT + 54 * + MIN( col1 ) FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-5476
SELECT DISTINCT + 54 * + MIN ( col1 ) FROM tab0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT DISTINCT + 66 * + COUNT( - col1 ) FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-5477
SELECT DISTINCT + 66 * + COUNT ( - col1 ) FROM tab2 AS cor0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT SUM( ALL col1 ) FROM tab0 AS cor0 WHERE NOT NULL = 5 + + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5478
SELECT SUM ( ALL col1 ) FROM tab0 AS cor0 WHERE NOT NULL = 5 + + + col1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - 19 NOT IN ( + - 59 * 32 - - + col1 / + + 69, 34 )
----

query I rowsort
SELECT ALL 60 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5481
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col1 AS col1, col1 * col1 AS col1 FROM tab2 AS cor0
----
NULL
2601
NULL
4489
NULL
5929

skipif mysql # not compatible
query II rowsort label-5481
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col1 AS col1, col1 * col1 AS col1 FROM tab2 AS cor0
----
NULL
2601
NULL
4489
NULL
5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5482
SELECT - - CAST( - - col2 AS SIGNED ) * + - 54 + col2 + + + col0 * - col1 * - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5482
SELECT - - CAST ( - - col2 AS INTEGER ) * + - 54 + col2 + + + col0 * - col1 * - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( col0 ) col2 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5484
SELECT - - CAST( - + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5484
SELECT - - CAST ( - + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5485
SELECT - col0 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5485
SELECT - col0 * - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < 43
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5487
SELECT DISTINCT 79 * - 47 * + COUNT( * ), - 43 + COUNT( * ) col2 FROM tab0
----
-11139
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5487
SELECT DISTINCT 79 * - 47 * + COUNT ( * ), - 43 + COUNT ( * ) col2 FROM tab0
----
-11139
-40

query I rowsort
SELECT ALL + 65 + col2 AS col1 FROM tab2
----
105
123
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT ALL + - COUNT( * ) AS col2 FROM tab1 WHERE col0 + + - col2 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL + - COUNT ( * ) AS col2 FROM tab1 WHERE col0 + + - col2 BETWEEN NULL AND NULL
----
0

query II rowsort
SELECT col2 * - 23 - + + col1 AS col2, - col1 FROM tab2
----
-1401
-67
-580
-51
-997
-77

query I rowsort
SELECT 57 AS col0 FROM tab2 WHERE NULL IS NULL
----
57
57
57

query I rowsort
SELECT ALL 26 AS col1 FROM tab1 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - + 66 + col0 + - col2 FROM tab2 AS cor0
----
-42
-43
-49

query I rowsort
SELECT ALL 69 * - col1 * + ( + col0 ) - - col0 AS col2 FROM tab1 AS cor0
----
-29240
-295022
-49215

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT - COUNT( * ) + - - 62 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5495
SELECT - COUNT ( * ) + - - 62 FROM tab2 AS cor0
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - + col2 ) col0 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT + col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * - - ( - col1 ) FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT 83 * + + col0 FROM tab2
----
3818
5312
6225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5500
SELECT DISTINCT + col2 col2 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5500
SELECT DISTINCT + col2 col2 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT + 82 * - col1 AS col1, col2 AS col0 FROM tab0 AS cor0
----
-1722
10
-6642
47
-82
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT MAX( + - 83 ) col0 FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5502
SELECT MAX ( + - 83 ) col0 FROM tab1 AS cor0
----
-83

query I rowsort
SELECT DISTINCT ( - - 31 ) AS col0 FROM tab2 AS cor0
----
31

query I rowsort
SELECT DISTINCT col0 * - 8 AS col0 FROM tab0 AS cor0
----
-120
-696
-776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5505
SELECT DISTINCT - - 41 * col1 - + - CAST( + 2 AS SIGNED ) FROM tab0 AS cor0
----
3323
43
863

skipif mysql # not compatible
query I rowsort label-5505
SELECT DISTINCT - - 41 * col1 - + - CAST ( + 2 AS INTEGER ) FROM tab0 AS cor0
----
3323
43
863

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 + col0 - + - col2 col1, + col1 * - - ( - 59 ) AS col0 FROM tab0 AS cor0 WHERE NULL >= - col2 * + - col0 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT DISTINCT - COUNT( * ) * + + ( + COUNT( * ) ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5507
SELECT DISTINCT - COUNT ( * ) * + + ( + COUNT ( * ) ) FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5508
SELECT ALL 17 / CAST( NULL AS SIGNED ) / + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL 17 / CAST ( NULL AS INTEGER ) / + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT ALL 70 * - COUNT( * ) FROM tab2
----
-210

skipif mysql # not compatible
query I rowsort label-5509
SELECT ALL 70 * - COUNT ( * ) FROM tab2
----
-210

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL 85 FROM tab0 WHERE NOT NULL IN ( - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT ALL + COUNT( DISTINCT + - col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL + COUNT ( DISTINCT + - col1 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT 70 * - - col0 AS col1 FROM tab1
----
3570
5950
6370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5514
SELECT ALL + - CAST( - COUNT( * ) AS SIGNED ) col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5514
SELECT ALL + - CAST ( - COUNT ( * ) AS INTEGER ) col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5515
SELECT ALL + 83 DIV col1 FROM tab1
----
1
16
5

skipif mysql # not compatible
query I rowsort label-5515
SELECT ALL + 83 / col1 FROM tab1
----
1
16
5

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 BETWEEN NULL AND col1 + 15
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5517
SELECT - - SUM( ALL - + col0 ) AS col1 FROM tab2 WHERE NOT - col2 NOT BETWEEN ( + 30 ) - - 72 * col0 AND + CAST( NULL AS SIGNED ) * + 15 OR - 80 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5517
SELECT - - SUM ( ALL - + col0 ) AS col1 FROM tab2 WHERE NOT - col2 NOT BETWEEN ( + 30 ) - - 72 * col0 AND + CAST ( NULL AS INTEGER ) * + 15 OR - 80 IS NULL
----
NULL

query I rowsort
SELECT ALL - col0 * + + col2 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5519
SELECT ALL CAST( NULL AS DECIMAL ) + + col2 + - + col0 * + col1 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-5519
SELECT ALL CAST ( NULL AS REAL ) + + col2 + - + col0 * + col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col0 AS col0, 11 FROM tab0 AS cor0
----
15
11
87
11
97
11

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= - 26 + - + col2
----

query I rowsort
SELECT + ( + + 63 ) * + col0 + - - col1 AS col0 FROM tab0
----
1026
5502
6112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5523
SELECT ALL + 5 + 55 DIV + SUM( col2 ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-5523
SELECT ALL + 5 + 55 / + SUM ( col2 ) FROM tab2
----
5

query I rowsort
SELECT + ( 42 ) FROM tab2
----
42
42
42

query I rowsort
SELECT + col2 / - col0 FROM tab0 AS cor0 WHERE - col0 > + + col2 + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5526
SELECT * FROM tab1 AS cor0 WHERE ( + 29 ) NOT BETWEEN - 50 AND - CAST( + + ( - + col0 ) AS DECIMAL ) + + col0 * - + 54 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5526
SELECT * FROM tab1 AS cor0 WHERE ( + 29 ) NOT BETWEEN - 50 AND - CAST ( + + ( - + col0 ) AS REAL ) + + col0 * - + 54 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 AS cor0 WHERE + col1 > + col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5528
SELECT DISTINCT * FROM tab2 WHERE CAST( col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5528
SELECT DISTINCT * FROM tab2 WHERE CAST ( col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 37 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT 16 * + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT col1 <= - - col0 / - col1
----
-1392
-1552
-240

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 * ( + + col0 ) - 22 < NULL )
----

query II rowsort
SELECT ALL - col1 AS col2, 57 FROM tab1 AS cor0
----
-14
57
-47
57
-5
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5533
SELECT DISTINCT COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5533
SELECT DISTINCT COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 79 * - col2 AS col0 FROM tab0 AS cor0
----
-3713
-7821
-790

query II rowsort
SELECT DISTINCT 27 AS col0, + col0 * col1 FROM tab1 cor0
----
27
425
27
4277
27
714

query I rowsort
SELECT - col2 * col1 + - + col2 * col0 FROM tab2 AS cor0
----
-2231
-5640
-8236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5537
SELECT ALL col0 * - CAST( - col1 AS SIGNED ) AS col1 FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-5537
SELECT ALL col0 * - CAST ( - col1 AS INTEGER ) AS col1 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT ALL ( - 84 ) * + 18 - COUNT( * ) FROM tab0
----
-1515

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL ( - 84 ) * + 18 - COUNT ( * ) FROM tab0
----
-1515

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + + + 37 col2 FROM tab2 AS cor0
----
101
112
83

query I rowsort
SELECT - 91 + 41 AS col2 FROM tab1 cor0
----
-50
-50
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * - col2 + + + 90, - 92 col0 FROM tab1
----
-1254
-92
-205
-92
-3106
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT ALL + COUNT( * ) * 37 * + + 94 FROM tab1 AS cor0 WHERE col2 * - 31 * - - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL + COUNT ( * ) * 37 * + + 94 FROM tab1 AS cor0 WHERE col2 * - 31 * - - col1 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5543
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5543
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + ( - 45 ) * - + 96 FROM tab1 AS cor0
----
4320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 3 * + col2 col1 FROM tab0 cor0
----
141
297
30

query I rowsort
SELECT - + col2 * + - 37 AS col2 FROM tab1 AS cor0
----
2183
2516
3552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5547
SELECT - CAST( + col0 AS SIGNED ) * col1 * + col0 AS col1 FROM tab1 cor0
----
-36125
-36414
-389207

skipif mysql # not compatible
query I rowsort label-5547
SELECT - CAST ( + col0 AS INTEGER ) * col1 * + col0 AS col1 FROM tab1 cor0
----
-36125
-36414
-389207

query I rowsort
SELECT - 31 - col0 AS col1 FROM tab1
----
-116
-122
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT 58 + + - COUNT( * ) FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-5549
SELECT 58 + + - COUNT ( * ) FROM tab1
----
55

query I rowsort
SELECT ALL - 11 + + col2 + - + 52 FROM tab1
----
-4
33
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5551
SELECT ALL - COUNT( + CAST( NULL AS SIGNED ) ) + + - COUNT( * ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5551
SELECT ALL - COUNT ( + CAST ( NULL AS INTEGER ) ) + + - COUNT ( * ) col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5552
SELECT + col0 / + col0 + col0 - - - col0 * + CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5552
SELECT + col0 / + col0 + col0 - - - col0 * + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 10 ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
10
10
10

query I rowsort
SELECT - + 28 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 43 col0 FROM tab0 AS cor0
----
43
43
43

query I rowsort
SELECT + col2 * + col2 - 13 - + - col2 AS col0 FROM tab0 AS cor0
----
2243
97
9887

query I rowsort
SELECT 36 FROM tab0 AS cor0 WHERE NOT NULL > + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5558
SELECT + col0 / - - col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5558
SELECT + col0 / - - col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 / + 90 * + - 95 + 24 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 40 AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
40
40
40

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5562
SELECT + col1 * - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5562
SELECT + col1 * - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + col2 * + 58 + 15 AS col1 FROM tab0 WHERE NOT ( col2 > col1 )
----
2660
574

query III rowsort
SELECT * FROM tab1 WHERE NOT - 12 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT + 42 + - + COUNT( * ) AS col2 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-5565
SELECT + 42 + - + COUNT ( * ) AS col2 FROM tab1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5566
SELECT ALL col2 + - 57 DIV + - col0 col1 FROM tab2
----
24
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5566
SELECT ALL col2 + - 57 / + - col0 col1 FROM tab2
----
24
40
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < + col2 + col2 + - + 7 + - col1 * - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT DISTINCT - ( - - 53 ) + MIN( - - col1 ) AS col0 FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-5568
SELECT DISTINCT - ( - - 53 ) + MIN ( - - col1 ) AS col0 FROM tab0 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-5569
SELECT DISTINCT - 57 AS col0, 54 * - 73 + COUNT( * ) FROM tab0 AS cor0
----
-57
-3939

skipif mysql # not compatible
query II rowsort label-5569
SELECT DISTINCT - 57 AS col0, 54 * - 73 + COUNT ( * ) FROM tab0 AS cor0
----
-57
-3939

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT DISTINCT - MIN( ALL col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5570
SELECT DISTINCT - MIN ( ALL col1 ) FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col2 col0 FROM tab2 WHERE NOT NULL IN ( col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5572
SELECT + 48 DIV + COUNT( * ) + - 43 col2 FROM tab1
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5572
SELECT + 48 / + COUNT ( * ) + - 43 col2 FROM tab1
----
-27

query I rowsort
SELECT + ( + col1 ) + + 90 AS col1 FROM tab2
----
141
157
167

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 BETWEEN - ( + col0 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5575
SELECT - col1 + + col2 AS col0 FROM tab0 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN 65 * + CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-5575
SELECT - col1 + + col2 AS col0 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN 65 * + CAST ( NULL AS REAL ) AND NULL
----

query I rowsort
SELECT DISTINCT col0 + 83 * + col0 FROM tab1
----
4284
7140
7644

query III rowsort
SELECT ALL * FROM tab2 WHERE 8 IS NULL
----

query I rowsort
SELECT ALL + 11 * - 69 - - col2 AS col1 FROM tab0
----
-660
-712
-749

query I rowsort
SELECT col1 + + col0 * + col1 AS col2 FROM tab2
----
2397
5005
5092

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT MIN( ALL col2 ) + - MAX( DISTINCT + col1 ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-5580
SELECT MIN ( ALL col2 ) + - MAX ( DISTINCT + col1 ) FROM tab1
----
12

query I rowsort
SELECT 66 FROM tab0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT ALL COUNT( * ) * 92 + COUNT( * ) AS col2 FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-5582
SELECT ALL COUNT ( * ) * 92 + COUNT ( * ) AS col2 FROM tab2
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT 36 + ( COUNT( * ) - COUNT( * ) ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-5583
SELECT 36 + ( COUNT ( * ) - COUNT ( * ) ) FROM tab2
----
36

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT ( - 45 / 42 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT DISTINCT + COUNT( ALL col2 ) * + 82 FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-5585
SELECT DISTINCT + COUNT ( ALL col2 ) * + 82 FROM tab1
----
246

onlyif mysql # DIV for integer division: 
query I rowsort label-5586
SELECT DISTINCT 69 DIV + col2 col1 FROM tab0 WHERE ( ( + col2 ) ) + - col1 NOT IN ( - col1 )
----
0
1
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5586
SELECT DISTINCT 69 / + col2 col1 FROM tab0 WHERE ( ( + col2 ) ) + - col1 NOT IN ( - col1 )
----
0
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT DISTINCT + COUNT( - col1 ) col0 FROM tab0 WHERE NULL < - col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5587
SELECT DISTINCT + COUNT ( - col1 ) col0 FROM tab0 WHERE NULL < - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT DISTINCT - COUNT( * ) col2 FROM tab2 WHERE - col1 < ( col1 )
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5588
SELECT DISTINCT - COUNT ( * ) col2 FROM tab2 WHERE - col1 < ( col1 )
----
-3

query I rowsort
SELECT ALL col1 + 0 FROM tab0 WHERE 6 IS NOT NULL
----
1
21
81

query I rowsort
SELECT + 72 + + col0 AS col0 FROM tab0
----
159
169
87

query I rowsort
SELECT + col0 * 88 AS col0 FROM tab1
----
4488
7480
8008

query I rowsort
SELECT + col0 * + ( 28 ) AS col0 FROM tab2
----
1288
1792
2100

onlyif mysql # DIV for integer division: 
query I rowsort label-5593
SELECT DISTINCT - col1 DIV ( + ( + col0 ) ) AS col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-5593
SELECT DISTINCT - col1 / ( + ( + col0 ) ) AS col0 FROM tab2
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 NOT BETWEEN ( - col1 + col1 ) AND col2
----
51
14
96

query I rowsort
SELECT ALL + col2 + + col0 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( + col0 ) AND - 65
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5596
SELECT * FROM tab0 WHERE ( - CAST( + col1 AS SIGNED ) ) IN ( 50 )
----

skipif mysql # not compatible
query III rowsort label-5596
SELECT * FROM tab0 WHERE ( - CAST ( + col1 AS INTEGER ) ) IN ( 50 )
----

query I rowsort
SELECT - ( + 0 ) AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5598
SELECT ALL + MAX( + CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL + MAX ( + CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 93 FROM tab0 WHERE ( col2 ) <> + 2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT DISTINCT SUM( DISTINCT - 83 ) FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT SUM ( DISTINCT - 83 ) FROM tab1
----
-83

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN col0 AND col1
----

query III rowsort
SELECT * FROM tab0 WHERE col0 >= col0 / col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5603
SELECT DISTINCT - col0 * - ( - 78 ) + - CAST( - col2 AS SIGNED ) FROM tab1
----
-3882
-6571
-7030

skipif mysql # not compatible
query I rowsort label-5603
SELECT DISTINCT - col0 * - ( - 78 ) + - CAST ( - col2 AS INTEGER ) FROM tab1
----
-3882
-6571
-7030

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 38 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5605
SELECT DISTINCT 28 DIV + 93 col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5605
SELECT DISTINCT 28 / + 93 col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5606
SELECT DISTINCT ( + ( CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5606
SELECT DISTINCT ( + ( CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 14 col2 FROM tab0 AS cor0
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 )
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5609
SELECT DISTINCT SUM( + ( CAST( NULL AS SIGNED ) ) ) * + 75 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5609
SELECT DISTINCT SUM ( + ( CAST ( NULL AS INTEGER ) ) ) * + 75 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 62 * + 34 - + col2 / 36 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5611
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT - COUNT( * ) * - 44 AS col2 FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-5612
SELECT - COUNT ( * ) * - 44 AS col2 FROM tab2
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-5613
SELECT col0 DIV 73 col0 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5613
SELECT col0 / 73 col0 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT ALL + col0 * 22 FROM tab1 AS cor0 WHERE NOT col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT DISTINCT + MAX( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5615
SELECT DISTINCT + MAX ( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL 92 AS col1 FROM tab1 AS cor0
----
92
92
92

query I rowsort
SELECT + 2 * - 39 FROM tab0 AS cor0
----
-78
-78
-78

query I rowsort
SELECT ALL col1 * col1 AS col1 FROM tab0 WHERE NULL IN ( - col0 + 69 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT - COUNT( + 1 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5619
SELECT - COUNT ( + 1 ) AS col0 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5620
SELECT col0 DIV ( + 6 ) * + col2 FROM tab0
----
140
1584
94

skipif mysql # not compatible
query I rowsort label-5620
SELECT col0 / ( + 6 ) * + col2 FROM tab0
----
140
1584
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT - COUNT( * ) * 16 * + COUNT( * ) FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-5621
SELECT - COUNT ( * ) * 16 * + COUNT ( * ) FROM tab2
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT ALL ( - - MAX( 87 ) ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL ( - - MAX ( 87 ) ) FROM tab2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5623
SELECT CAST( - - COUNT( * ) AS SIGNED ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5623
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5624
SELECT * FROM tab1 WHERE NOT NULL <= ( + CAST( - ( - ( 16 ) ) AS SIGNED ) * col0 )
----

skipif mysql # not compatible
query III rowsort label-5624
SELECT * FROM tab1 WHERE NOT NULL <= ( + CAST ( - ( - ( 16 ) ) AS INTEGER ) * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT DISTINCT + MIN( DISTINCT - col0 ) AS col0 FROM tab1 WHERE ( + col2 / col2 + + col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5625
SELECT DISTINCT + MIN ( DISTINCT - col0 ) AS col0 FROM tab1 WHERE ( + col2 / col2 + + col0 ) IS NULL
----
NULL

query I rowsort
SELECT + 18 FROM tab2 WHERE NOT ( - col1 + 14 ) NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT ALL - 49 + - - COUNT( * ) AS col0 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL - 49 + - - COUNT ( * ) AS col0 FROM tab1
----
-46

query I rowsort
SELECT DISTINCT ( + 81 ) FROM tab0 WHERE ( - col0 * + col0 ) IS NULL
----

query I rowsort
SELECT ALL - 99 + - col2 + - col2 FROM tab0
----
-119
-193
-297

onlyif mysql # DIV for integer division: 
query I rowsort label-5630
SELECT DISTINCT - col2 DIV + col1 + col2 AS col0 FROM tab0
----
0
10
47

skipif mysql # not compatible
query I rowsort label-5630
SELECT DISTINCT - col2 / + col1 + col2 AS col0 FROM tab0
----
0
10
47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 / - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT ALL + MIN( - + 95 ) + COUNT( * ) AS col2 FROM tab1 cor0
----
-92

skipif mysql # not compatible
query I rowsort label-5632
SELECT ALL + MIN ( - + 95 ) + COUNT ( * ) AS col2 FROM tab1 cor0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT + 66 + + COUNT( * ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5633
SELECT + 66 + + COUNT ( * ) FROM tab2 AS cor0
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5634
SELECT - 67 DIV + - col0 + 26 AS col1 FROM tab1 AS cor0
----
26
26
27

skipif mysql # not compatible
query I rowsort label-5634
SELECT - 67 / + - col0 + 26 AS col1 FROM tab1 AS cor0
----
26
26
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5635
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5635
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND col2 * - col0
----

query I rowsort
SELECT 68 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5638
SELECT ALL SUM( ALL + col1 ) DIV 10 col1 FROM tab2 WHERE NOT col1 BETWEEN 72 * - 38 + - col1 AND ( + col2 )
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5638
SELECT ALL SUM ( ALL + col1 ) / 10 col1 FROM tab2 WHERE NOT col1 BETWEEN 72 * - 38 + - col1 AND ( + col2 )
----
19

query I rowsort
SELECT DISTINCT + 93 - - col2 * col0 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT ( NULL ) <> 0
----

query I rowsort
SELECT DISTINCT 75 + col1 FROM tab0 WHERE + ( + col2 ) - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - - 12
----

query I rowsort
SELECT DISTINCT 51 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5644
SELECT - CAST( + 67 AS SIGNED ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

skipif mysql # not compatible
query I rowsort label-5644
SELECT - CAST ( + 67 AS INTEGER ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fbe03b15