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 fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT ALL - col2 * - + col1 * + col2 - - col1 FROM tab2 AS cor0
----
123277
225455
27030

query I rowsort
SELECT DISTINCT + col1 + - 95 FROM tab2 AS cor0
----
-18
-28
-44

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT DISTINCT - ( + 41 ) - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-5648
SELECT DISTINCT - ( + 41 ) - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-38

query I rowsort
SELECT + - 38 - - - col2 FROM tab2 AS cor0
----
-61
-78
-96

query I rowsort
SELECT DISTINCT - 49 - - 38 AS col2 FROM tab1 AS cor0
----
-11

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 80 ) > ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-5652
SELECT + 6 - + COUNT ( * ) FROM tab2 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5653
SELECT + 77 - col2 * col2 DIV col2 FROM tab2 AS cor0
----
19
37
54

skipif mysql # not compatible
query I rowsort label-5653
SELECT + 77 - col2 * col2 / col2 FROM tab2 AS cor0
----
19
37
54

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 29 NOT BETWEEN col0 AND - 73 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT - 5 + COUNT( * ) * + + COUNT( * ) AS col2 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-5655
SELECT - 5 + COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab0
----
4

query I rowsort
SELECT - col0 + - - 51 FROM tab2
----
-13
-24
5

query III rowsort
SELECT * FROM tab0 WHERE 77 NOT BETWEEN col2 AND ( NULL )
----
97
1
99

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

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT - col2 / - col0 IS NOT NULL
----

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

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

query I rowsort
SELECT + col0 * - 44 * + col2 FROM tab1 AS cor0
----
-215424
-220660
-272272

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 ) > col2 * + 24
----

query I rowsort
SELECT DISTINCT + 89 * - 39 + + ( + col1 ) FROM tab2 AS cor0
----
-3394
-3404
-3420

query I rowsort
SELECT DISTINCT + 44 * - 67 AS col1 FROM tab0
----
-2948

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT DISTINCT COUNT( * ) * 31 FROM tab2 WHERE NOT + 38 NOT BETWEEN NULL AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-5666
SELECT DISTINCT COUNT ( * ) * 31 FROM tab2 WHERE NOT + 38 NOT BETWEEN NULL AND - col2
----
0

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

query I rowsort
SELECT DISTINCT + col2 * - - col0 + - col0 + col0 + + 60 + 41 * + col0 * 40 AS col1 FROM tab1 AS cor0
----
144475
155488
88596

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 26 NOT IN ( 81 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5670
SELECT - - col2 DIV + col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5670
SELECT - - col2 / + col2 FROM tab1 cor0
----
1
1
1

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - + col0 * col1 + + 63 ) = + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5673
SELECT ALL col0 DIV + col2 AS col2 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-5673
SELECT ALL col0 / + col2 AS col2 FROM tab0
----
0
0
8

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5675
SELECT 72 + 3 DIV - + 43 AS col1 FROM tab1
----
72
72
72

skipif mysql # not compatible
query I rowsort label-5675
SELECT 72 + 3 / - + 43 AS col1 FROM tab1
----
72
72
72

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

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

query I rowsort
SELECT + 35 + - 23 FROM tab0
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT ( + MIN( ALL - + ( - - 86 ) ) ) FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-5678
SELECT ( + MIN ( ALL - + ( - - 86 ) ) ) FROM tab0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT ALL - COUNT( * ) + SUM( DISTINCT - + col1 ) * - - COUNT( * ) * COUNT( * ) AS col2 FROM tab0
----
-930

skipif mysql # not compatible
query I rowsort label-5679
SELECT ALL - COUNT ( * ) + SUM ( DISTINCT - + col1 ) * - - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0
----
-930

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE ( col1 ) BETWEEN ( 79 - - col2 ) AND 86
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5681
SELECT 0 DIV col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5681
SELECT 0 / col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5682
SELECT ALL - SUM( ALL + + CAST( + 10 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-5682
SELECT ALL - SUM ( ALL + + CAST ( + 10 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-30

query I rowsort
SELECT + col1 + + ( col1 ) AS col1 FROM tab1
----
10
28
94

query I rowsort
SELECT col2 * 70 + - 45 AS col1 FROM tab1
----
4085
4715
6675

query I rowsort
SELECT DISTINCT + + col0 - - 20 AS col1 FROM tab0 AS cor0
----
107
117
35

query II rowsort
SELECT - - ( + - 75 ) + - 40 AS col2, - 69 * + 25 AS col0 FROM tab2 AS cor0
----
-115
-1725
-115
-1725
-115
-1725

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 90 col2 FROM tab0 AS cor0 WHERE - 74 * col1 NOT BETWEEN NULL AND + col1 - + 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT MAX( 69 ) FROM tab2 cor0
----
69

skipif mysql # not compatible
query I rowsort label-5688
SELECT MAX ( 69 ) FROM tab2 cor0
----
69

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

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE NOT - ( + col1 ) BETWEEN + col1 * col0 / 83 + + 48 AND NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT COUNT( - + 14 ) * - COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5691
SELECT COUNT ( - + 14 ) * - COUNT ( * ) AS col0 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT ALL - COUNT( * ) * + + MIN( + 39 ) FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-5692
SELECT ALL - COUNT ( * ) * + + MIN ( + 39 ) FROM tab2
----
-117

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

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 ) >= NULL OR col1 >= ( + 30 )
----
15
81
47

query II rowsort
SELECT + col0 AS col1, + col0 + col2 FROM tab1
----
51
147
85
144
91
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 70 AS col1, 45 col2 FROM tab0
----
70
45
70
45
70
45

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 >= + - col2 + - + col0
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5703
SELECT ALL - + col0 DIV + ( - col2 ) + - + 41 AS col2 FROM tab1 cor0
----
-40
-40
-41

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL - + col0 / + ( - col2 ) + - + 41 AS col2 FROM tab1 cor0
----
-40
-40
-41

query II rowsort
SELECT + + 34 * - - col1 - ( + 31 ), col1 * + col0 AS col1 FROM tab0 cor0
----
2723
1215
3
97
683
1827

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

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL COUNT ( * ) * + - 58 FROM tab2
----
-174

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE ( + + col1 ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5707
SELECT DISTINCT + col1 DIV + ( - 38 ) AS col2 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-5707
SELECT DISTINCT + col1 / + ( - 38 ) AS col2 FROM tab2
----
-1
-2

query I rowsort
SELECT ALL 80 + col1 FROM tab2
----
131
147
157

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

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

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

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

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

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

query I rowsort
SELECT - ( - 83 ) * - col1 FROM tab1
----
-1162
-3901
-415

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

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

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

query II rowsort
SELECT ( + col2 ) AS col2, - 4 FROM tab1 AS cor0
----
59
-4
68
-4
96
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5717
SELECT + 56, CAST( + col2 AS SIGNED ) - + 9 AS col2 FROM tab1 AS cor0
----
56
50
56
59
56
87

skipif mysql # not compatible
query II rowsort label-5717
SELECT + 56, CAST ( + col2 AS INTEGER ) - + 9 AS col2 FROM tab1 AS cor0
----
56
50
56
59
56
87

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

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

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

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

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

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

query II rowsort
SELECT - 55 AS col2, 90 - col1 + 84 * + ( + + col2 ) + - 96 FROM tab1 AS cor0
----
-55
4945
-55
5659
-55
8044

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= 98
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5723
SELECT CAST( NULL AS SIGNED ) AS col0, + ( - - 91 ) FROM tab0, tab1 AS cor0
----
18 values hashing to 199830c29ed5307b529ff35fee8c3e0b

skipif mysql # not compatible
query II rowsort label-5723
SELECT CAST ( NULL AS INTEGER ) AS col0, + ( - - 91 ) FROM tab0, tab1 AS cor0
----
18 values hashing to 199830c29ed5307b529ff35fee8c3e0b

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5725
SELECT - + col1 AS col0, 31 FROM tab1 WHERE NOT - + CAST( - - col0 AS SIGNED ) * ( - CAST( NULL AS DECIMAL ) ) IS NOT NULL
----
-14
31
-47
31
-5
31

skipif mysql # not compatible
query II rowsort label-5725
SELECT - + col1 AS col0, 31 FROM tab1 WHERE NOT - + CAST ( - - col0 AS INTEGER ) * ( - CAST ( NULL AS REAL ) ) IS NOT NULL
----
-14
31
-47
31
-5
31

query I rowsort
SELECT ALL col2 * 86 AS col0 FROM tab1
----
5074
5848
8256

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

query I rowsort
SELECT ALL 72 + - 97 FROM tab2 AS cor0
----
-25
-25
-25

query I rowsort
SELECT ALL 40 * - 80 + + - 13 FROM tab0 AS cor0
----
-3213
-3213
-3213

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT + COUNT( * ) * - 40 AS col0 FROM tab2 cor0
----
-120

skipif mysql # not compatible
query I rowsort label-5730
SELECT + COUNT ( * ) * - 40 AS col0 FROM tab2 cor0
----
-120

query I rowsort
SELECT - + col1 + + col2 AS col0 FROM tab0 AS cor0
----
-11
-34
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 62
----

query I rowsort
SELECT ALL col0 * - - 7 * + 95 + - + 10 AS col0 FROM tab0 AS cor0 WHERE ( NOT + + 60 IS NULL )
----
57845
64495
9965

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT ALL MIN( 90 ) col1 FROM tab0
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5735
SELECT ALL MIN ( 90 ) col1 FROM tab0
----
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5736
SELECT DISTINCT - + col0 col2 FROM tab2 WHERE col0 / - col0 * - 22 = CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5736
SELECT DISTINCT - + col0 col2 FROM tab2 WHERE col0 / - col0 * - 22 = CAST ( NULL AS REAL )
----

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

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

query I rowsort
SELECT col1 * + col0 * - + 95 AS col2 FROM tab2
----
-222870
-468160
-477375

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 63 + + 37 <= + col2 + + + col2 + col2
----
15
81
47
97
1
99

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT MIN( - 21 ) AS col0 FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-5742
SELECT MIN ( - 21 ) AS col0 FROM tab2 AS cor0
----
-21

query I rowsort
SELECT ALL col2 * + - col1 + - - col1 FROM tab1 AS cor0
----
-1330
-290
-3149

query I rowsort
SELECT DISTINCT - col2 - + 95 FROM tab0 AS cor0
----
-105
-142
-194

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT - + 68 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE 50 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5750
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > - col0 + 35 * - CAST( NULL AS SIGNED ) + + - 74
----

skipif mysql # not compatible
query III rowsort label-5750
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > - col0 + 35 * - CAST ( NULL AS INTEGER ) + + - 74
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 95 * + col0 + - col1 + - + col2 - + + 13 * - - col2 + col0 * col0 * 90 col2 FROM tab0 AS cor0 WHERE NOT - ( + col1 ) * - col2 NOT IN ( - col1 * col2 / col1, - col2 + - - col2 )
----

query I rowsort
SELECT DISTINCT - 42 * - + 66 * - col1 AS col2 FROM tab0 cor0 WHERE col2 IS NOT NULL
----
-224532
-2772
-58212

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT - - SUM( + 23 ) AS col2 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5756
SELECT - - SUM ( + 23 ) AS col2 FROM tab0 AS cor0
----
69

query II rowsort
SELECT ALL 7 AS col0, ( + + col2 ) AS col1 FROM tab2
----
7
23
7
40
7
58

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5759
SELECT + col1, ( CAST( - col0 AS SIGNED ) ) FROM tab2
----
51
-46
67
-75
77
-64

skipif mysql # not compatible
query II rowsort label-5759
SELECT + col1, ( CAST ( - col0 AS INTEGER ) ) FROM tab2
----
51
-46
67
-75
77
-64

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

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

query I rowsort
SELECT + col2 * 88 AS col2 FROM tab0
----
4136
8712
880

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

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

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

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

query I rowsort
SELECT ALL - col1 * + 33 FROM tab2 AS cor0
----
-1683
-2211
-2541

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5767
SELECT DISTINCT 95 DIV - COUNT( * ) + + - MIN( + 60 ) AS col1 FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5767
SELECT DISTINCT 95 / - COUNT ( * ) + + - MIN ( + 60 ) AS col1 FROM tab2 AS cor0
----
-91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT MIN( ALL - - 6 ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5769
SELECT MIN ( ALL - - 6 ) FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT + SUM( col1 ) * + 64 FROM tab0 AS cor0
----
6592

skipif mysql # not compatible
query I rowsort label-5770
SELECT + SUM ( col1 ) * + 64 FROM tab0 AS cor0
----
6592

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

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

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

query I rowsort
SELECT ALL - ( - - 76 ) * - col1 AS col1 FROM tab1
----
1064
3572
380

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 / + + 20 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5775
SELECT ALL 48 * - - col1 * CAST( 97 AS SIGNED ) AS col0 FROM tab0
----
377136
4656
97776

skipif mysql # not compatible
query I rowsort label-5775
SELECT ALL 48 * - - col1 * CAST ( 97 AS INTEGER ) AS col0 FROM tab0
----
377136
4656
97776

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

skipif mysql # not compatible
query I rowsort label-5776
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT - COUNT( * ) + COUNT( * ) * + COUNT( * ) + + 37 col1 FROM tab2
----
43

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

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

skipif mysql # not compatible
query I rowsort label-5778
SELECT DISTINCT - COUNT ( + col0 ) * + + MAX ( col0 ) FROM tab2
----
-225

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 <= + col0 + - col2 * + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5780
SELECT DISTINCT + MIN( DISTINCT + CAST( - - col1 AS SIGNED ) ) * - - ( - 13 ) + - 32 AS col2 FROM tab1 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5780
SELECT DISTINCT + MIN ( DISTINCT + CAST ( - - col1 AS INTEGER ) ) * - - ( - 13 ) + - 32 AS col2 FROM tab1 AS cor0
----
-97

query I rowsort
SELECT + 64 + - 67 AS col2 FROM tab2 AS cor0
----
-3
-3
-3

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

query II rowsort
SELECT - + col0, + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-15
-3807
-87
-210
-97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT DISTINCT - MAX( - 8 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
8

skipif mysql # not compatible
query I rowsort label-5784
SELECT DISTINCT - MAX ( - 8 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
8

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

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

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

query I rowsort
SELECT + col2 * + 0 + + + col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT - MAX( ALL + col2 ) * 37 FROM tab0 AS cor0
----
-3663

skipif mysql # not compatible
query I rowsort label-5788
SELECT - MAX ( ALL + col2 ) * 37 FROM tab0 AS cor0
----
-3663

onlyif mysql # DIV for integer division: 
query I rowsort label-5789
SELECT DISTINCT - + col1 DIV - 36 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-5789
SELECT DISTINCT - + col1 / - 36 FROM tab0 AS cor0
----
0
2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5792
SELECT ALL COUNT( * ) * - CAST( - 26 AS SIGNED ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-5792
SELECT ALL COUNT ( * ) * - CAST ( - 26 AS INTEGER ) FROM tab2
----
78

query I rowsort
SELECT + 58 * + col1 AS col2 FROM tab0
----
1218
4698
58

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 WHERE NULL BETWEEN col2 * + 91 AND - col0 * + 60
----

query I rowsort
SELECT ALL - col1 + + col2 * col0 AS col0 FROM tab0
----
624
849
9602

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT - 93 * - - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-837

skipif mysql # not compatible
query I rowsort label-5797
SELECT - 93 * - - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-837

query I rowsort
SELECT col1 * - col1 + - 5 FROM tab0
----
-446
-6
-6566

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( col2 ) + - col1 * - + col1 col1, col0 AS col0 FROM tab0 AS cor0
----
100
97
451
87
6608
15

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5802
SELECT ALL ( CAST( NULL AS SIGNED ) ) col1 FROM tab2 WHERE NOT NULL BETWEEN + 6 AND NULL
----

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

query I rowsort
SELECT DISTINCT 44 + - col1 - - + col0 AS col0 FROM tab1
----
124
81
88

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT ALL COUNT( * ) + 32 AS col1 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL COUNT ( * ) + 32 AS col1 FROM tab0
----
35

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

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

query I rowsort
SELECT DISTINCT - - 93 * col1 FROM tab1 AS cor0
----
1302
4371
465

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

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

query II rowsort
SELECT 54 AS col1, 68 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 445d235eb8bc9aca48ced8b12847005f

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT DISTINCT COUNT( * ) * + - 95 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-855

skipif mysql # not compatible
query I rowsort label-5813
SELECT DISTINCT COUNT ( * ) * + - 95 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-855

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5814
SELECT DISTINCT MAX ( DISTINCT + col0 ) col2 FROM tab0 cor0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-5815
SELECT - ( - + 65 ) * - COUNT( * ), 68 * + 52 + + - 46 * + 42 * + 21 AS col0 FROM tab0 cor0
----
-195
-37036

skipif mysql # not compatible
query II rowsort label-5815
SELECT - ( - + 65 ) * - COUNT ( * ), 68 * + 52 + + - 46 * + 42 * + 21 AS col0 FROM tab0 cor0
----
-195
-37036

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

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL SUM ( DISTINCT - 43 ) AS col0 FROM tab2 AS cor0
----
-43

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

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

query II rowsort
SELECT - col0 AS col1, - col0 * + - 59 + col1 AS col2 FROM tab2 AS cor0
----
-46
2765
-64
3853
-75
4492

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT DISTINCT - COUNT( * ) * - SUM( DISTINCT + 79 ) AS col0 FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-5819
SELECT DISTINCT - COUNT ( * ) * - SUM ( DISTINCT + 79 ) AS col0 FROM tab2
----
237

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

skipif mysql # not compatible
query I rowsort label-5820
SELECT - CAST ( 92 AS INTEGER ) AS col1 FROM tab0
----
-92
-92
-92

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

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

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

skipif mysql # not compatible
query I rowsort label-5822
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT DISTINCT + MIN( + col2 ) * - 95 - + - 18 col0 FROM tab2 AS cor0
----
-2167

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5823
SELECT DISTINCT + MIN ( + col2 ) * - 95 - + - 18 col0 FROM tab2 AS cor0
----
-2167

onlyif mysql # DIV for integer division: 
query I rowsort label-5824
SELECT - + 16 DIV col1 * - 93 + + 19 AS col0 FROM tab2 AS cor0
----
19
19
19

skipif mysql # not compatible
query I rowsort label-5824
SELECT - + 16 / col1 * - 93 + + 19 AS col0 FROM tab2 AS cor0
----
19
19
19

onlyif mysql # DIV for integer division: 
query I rowsort label-5825
SELECT DISTINCT col2 DIV - - col2 + - - 2 AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5825
SELECT DISTINCT col2 / - - col2 + - - 2 AS col0 FROM tab0
----
3

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

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

query I rowsort
SELECT DISTINCT - 84 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT DISTINCT 90 - - 71 - + COUNT( * ) - + - 45 FROM tab0 AS cor0
----
203

skipif mysql # not compatible
query I rowsort label-5828
SELECT DISTINCT 90 - - 71 - + COUNT ( * ) - + - 45 FROM tab0 AS cor0
----
203

onlyif mysql # DIV for integer division: 
query I rowsort label-5829
SELECT - + col2 DIV - col1 - - col2 AS col1 FROM tab1 cor0
----
102
69
70

skipif mysql # not compatible
query I rowsort label-5829
SELECT - + col2 / - col1 - - col2 AS col1 FROM tab1 cor0
----
102
69
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5830
SELECT CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 WHERE + col1 + - col0 BETWEEN col1 * + CAST( NULL AS SIGNED ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5830
SELECT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 WHERE + col1 + - col0 BETWEEN col1 * + CAST ( NULL AS INTEGER ) AND NULL
----
0

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

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

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

query I rowsort
SELECT - + 40 - - + col1 AS col1 FROM tab1 AS cor0
----
-26
-35
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - col2 col0 FROM tab2 AS cor0
----
117
125
74

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 46 * col1 > + col2
----

query I rowsort
SELECT DISTINCT col1 - - col2 + + col2 AS col2 FROM tab1 AS cor0
----
123
183
206

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 + - col0 col1 FROM tab1
----
-1395
-3287
-380

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

query I rowsort
SELECT 65 FROM tab2 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT ALL 95 + + - col2 FROM tab1
----
-1
27
36

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5845
SELECT 21 AS col2, + col2 + + 42 * - CAST( + + col2 AS SIGNED ) * ( 90 ) * 57 + - + ( - + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
21
NULL
21
NULL
21
NULL

skipif mysql # not compatible
query II rowsort label-5845
SELECT 21 AS col2, + col2 + + 42 * - CAST ( + + col2 AS INTEGER ) * ( 90 ) * 57 + - + ( - + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
21
NULL
21
NULL
21
NULL

query I rowsort
SELECT ALL 59 FROM tab1 AS cor0 WHERE 95 IN ( + col2 )
----

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

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

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

query I rowsort
SELECT ALL - col1 * - col2 * + ( 28 ) AS col2 FROM tab0 AS cor0
----
106596
2772
5880

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT DISTINCT 54 * - COUNT( * ) * + + COUNT( * ) FROM tab2 AS cor0
----
-486

skipif mysql # not compatible
query I rowsort label-5851
SELECT DISTINCT 54 * - COUNT ( * ) * + + COUNT ( * ) FROM tab2 AS cor0
----
-486

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT MIN( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 66 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5852
SELECT MIN ( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 66 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT ALL - - COUNT( * ) * 41 FROM tab2 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-5853
SELECT ALL - - COUNT ( * ) * 41 FROM tab2 AS cor0
----
123

query I rowsort
SELECT ALL - ( + 9 ) AS col0 FROM tab2 AS cor0
----
-9
-9
-9

query I rowsort
SELECT + + 26 * col2 + col2 * + 19 FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5859
SELECT 37 + + 30 * + - COUNT ( * ) FROM tab0
----
-53

query I rowsort
SELECT ALL col0 * - col2 * - col0 FROM tab2
----
163840
326250
48668

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 75 col0 FROM tab1
----
126
160
166

query I rowsort
SELECT DISTINCT ( + col1 ) + col0 + + 89 * + col1 * - col1 FROM tab0
----
-39141
-583833
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5864
SELECT ALL + col2 DIV + 26 + 10 + 85 * - col2 AS col2 FROM tab0
----
-3984
-840
-8402

skipif mysql # not compatible
query I rowsort label-5864
SELECT ALL + col2 / + 26 + 10 + 85 * - col2 AS col2 FROM tab0
----
-3984
-840
-8402

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT - MAX( ALL + col2 ) col2 FROM tab0
----
-99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5867
SELECT * FROM tab0 AS cor0 WHERE + col2 * - 43 <= - + CAST( - - col0 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5867
SELECT * FROM tab0 AS cor0 WHERE + col2 * - 43 <= - + CAST ( - - col0 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT DISTINCT - MIN( + 2 ) + - ( - - COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT - 84 >= - 62
----
-5

skipif mysql # not compatible
query I rowsort label-5868
SELECT DISTINCT - MIN ( + 2 ) + - ( - - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT - 84 >= - 62
----
-5

query I rowsort
SELECT 99 FROM tab1 WHERE col1 * + + col2 IS NOT NULL
----
99
99
99

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

skipif mysql # not compatible
query I rowsort label-5870
SELECT DISTINCT COUNT ( * ) * MIN ( - CAST ( + col1 AS INTEGER ) ) * - + COUNT ( * ) AS col1 FROM tab1
----
423

query I rowsort
SELECT ALL + ( - + col2 ) + - col2 FROM tab2
----
-116
-46
-80

query I rowsort
SELECT col2 + - 31 AS col1 FROM tab2
----
-8
27
9

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

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

query I rowsort
SELECT DISTINCT + col1 + + col2 - + 45 + + col2 * - col1 * ( + ( 95 ) ) AS col1 FROM tab2 AS cor0
----
-111406
-292528
-369090

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5875
SELECT - - SUM( ALL - ( 28 ) ) + - 20 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5875
SELECT - - SUM ( ALL - ( 28 ) ) + - 20 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5877
SELECT DISTINCT - col0 - - col1 DIV - col1 AS col1 FROM tab1 cor0
----
-52
-86
-92

skipif mysql # not compatible
query I rowsort label-5877
SELECT DISTINCT - col0 - - col1 / - col1 AS col1 FROM tab1 cor0
----
-52
-86
-92

query I rowsort
SELECT ALL col2 - + col1 AS col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT ALL - MAX( - 65 ) AS col0 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-5879
SELECT ALL - MAX ( - 65 ) AS col0 FROM tab1
----
65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT COUNT( * ) * + + 15 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-5881
SELECT COUNT ( * ) * + + 15 FROM tab2
----
45

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 86 * - 36 + - ( 48 ) + - col0 * + 88 + + col2 + 84 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT + + MAX( + col0 ) AS col1 FROM tab2 WHERE NOT NULL <> NULL AND NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5883
SELECT + + MAX ( + col0 ) AS col1 FROM tab2 WHERE NOT NULL <> NULL AND NULL <> NULL
----
NULL

query I rowsort
SELECT 0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT col2 * - 58 FROM tab1 AS cor0
----
-3422
-3944
-5568

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT - col1 / - col2 IS NULL
----
14
47
5

query II rowsort
SELECT 55 AS col2, - col2 * col2 + + - col0 AS col0 FROM tab0 cor0
----
55
-187
55
-2224
55
-9898

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT - MIN( - + 18 ) FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-5889
SELECT - MIN ( - + 18 ) FROM tab0 cor0
----
18

onlyif mysql # DIV for integer division: 
query II rowsort label-5890
SELECT ALL - col0 AS col1, + col0 DIV - 27 AS col0 FROM tab1 AS cor0
----
-51
-1
-85
-3
-91
-3

skipif mysql # not compatible
query II rowsort label-5890
SELECT ALL - col0 AS col1, + col0 / - 27 AS col0 FROM tab1 AS cor0
----
-51
-1
-85
-3
-91
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT ALL 41 + ( - COUNT( * ) ) AS col1 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-5891
SELECT ALL 41 + ( - COUNT ( * ) ) AS col1 FROM tab2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT DISTINCT + MIN( ALL + 59 ) + + + 51 AS col1 FROM tab1
----
110

skipif mysql # not compatible
query I rowsort label-5892
SELECT DISTINCT + MIN ( ALL + 59 ) + + + 51 AS col1 FROM tab1
----
110

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

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

query I rowsort
SELECT ALL col0 * - - 36 + col0 * + 30 FROM tab1
----
3366
5610
6006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5895
SELECT ALL + - col0 - CAST( col0 AS SIGNED ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-128
-150
-92

skipif mysql # not compatible
query I rowsort label-5895
SELECT ALL + - col0 - CAST ( col0 AS INTEGER ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-128
-150
-92

query I rowsort
SELECT - 69 + + 49 FROM tab1 AS cor0
----
-20
-20
-20

query I rowsort
SELECT + 94 * col0 + - col1 AS col1 FROM tab1 AS cor0
----
4780
7985
8507

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT - COUNT( * ) - 19 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-28

skipif mysql # not compatible
query I rowsort label-5898
SELECT - COUNT ( * ) - 19 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-28

query I rowsort
SELECT DISTINCT + 68 + + ( col0 ) FROM tab2
----
114
132
143

query I rowsort
SELECT ALL - 9 + + col2 + - 96 - + col2 * + 37 FROM tab1 AS cor0
----
-2229
-2553
-3561

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - 13 FROM tab2 WHERE NOT 97 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT ALL - 0 + - MAX( DISTINCT - col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
59

skipif mysql # not compatible
query I rowsort label-5909
SELECT ALL - 0 + - MAX ( DISTINCT - col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
59

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5911
SELECT - col2 DIV - - 25 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-5911
SELECT - col2 / - - 25 FROM tab0 AS cor0
----
-1
-3
0

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

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

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

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

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

query I rowsort
SELECT ALL - ( + - 51 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * + ( col1 ) + - + 98 + - - 45 IS NOT NULL
----

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

query I rowsort
SELECT + 19 * col0 + col1 FROM tab0 AS cor0
----
1674
1844
366

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

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

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

query I rowsort
SELECT ( - - 84 ) + ( + + 74 ) AS col2 FROM tab0 AS cor0
----
158
158
158

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT DISTINCT + - ( + - MAX( DISTINCT + col2 ) ) col1 FROM tab1 cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5922
SELECT DISTINCT + - ( + - MAX ( DISTINCT + col2 ) ) col1 FROM tab1 cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5923
SELECT ALL CAST( + + 69 AS SIGNED ) + - 21 * + ( col0 ) FROM tab2
----
-1275
-1506
-897

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL CAST ( + + 69 AS INTEGER ) + - 21 * + ( col0 ) FROM tab2
----
-1275
-1506
-897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5924
SELECT DISTINCT - 62 + - COUNT( * ) * MIN( ALL + CAST( + col0 AS SIGNED ) ) FROM tab2
----
-200

skipif mysql # not compatible
query I rowsort label-5924
SELECT DISTINCT - 62 + - COUNT ( * ) * MIN ( ALL + CAST ( + col0 AS INTEGER ) ) FROM tab2
----
-200

query I rowsort
SELECT + 39 * - col2 AS col2 FROM tab0
----
-1833
-3861
-390

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5927
SELECT ALL - - CAST( NULL AS SIGNED ) FROM tab2 WHERE ( ( ( + 77 IS NULL ) ) )
----

skipif mysql # not compatible
query I rowsort label-5927
SELECT ALL - - CAST ( NULL AS INTEGER ) FROM tab2 WHERE ( ( ( + 77 IS NULL ) ) )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT MIN( DISTINCT + col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-5929
SELECT MIN ( DISTINCT + col1 ) AS col2 FROM tab1
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + col0 ) * - col1 col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT ALL + + 88 * + + 4 + - COUNT( * ) col0 FROM tab0 AS cor0
----
349

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5933
SELECT * FROM tab1 WHERE - - CAST( NULL AS SIGNED ) >= + - col1 * col0 + 25
----

skipif mysql # not compatible
query III rowsort label-5933
SELECT * FROM tab1 WHERE - - CAST ( NULL AS INTEGER ) >= + - col1 * col0 + 25
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5934
SELECT ALL - - 66 + - + 35 DIV 69 + + ( - col0 ) + col0 AS col0 FROM tab2 cor0
----
66
66
66

skipif mysql # not compatible
query I rowsort label-5934
SELECT ALL - - 66 + - + 35 / 69 + + ( - col0 ) + col0 AS col0 FROM tab2 cor0
----
66
66
66

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, - 82 + - 17 col0 FROM tab2 AS cor0 WHERE 6 * - col0 <= - col2 * - + col2 + - col2
----
51
-99
67
-99
77
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( ( + 55 ) ) col2, + 68 FROM tab2
----
55
68
55
68
55
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5939
SELECT + col1 * 20 DIV + + col2 AS col0 FROM tab1
----
1
13
2

skipif mysql # not compatible
query I rowsort label-5939
SELECT + col1 * 20 / + + col2 AS col0 FROM tab1
----
1
13
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5940
SELECT DISTINCT - 29 DIV + 84 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5940
SELECT DISTINCT - 29 / + 84 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT 84 * MIN( ALL col1 ) FROM tab1
----
420

skipif mysql # not compatible
query I rowsort label-5941
SELECT 84 * MIN ( ALL col1 ) FROM tab1
----
420

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

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND col0
----

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5948
SELECT DISTINCT - MIN( CAST( NULL AS SIGNED ) ) AS col0, COUNT( * ) * + - 48 * + ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5948
SELECT DISTINCT - MIN ( CAST ( NULL AS INTEGER ) ) AS col0, COUNT ( * ) * + - 48 * + ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5949
SELECT - col0 DIV - 13 + - - ( - col0 ) FROM tab1 cor0
----
-48
-79
-84

skipif mysql # not compatible
query I rowsort label-5949
SELECT - col0 / - 13 + - - ( - col0 ) FROM tab1 cor0
----
-48
-79
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5950
SELECT + 2 * col2 * + 70 * - + CAST( NULL AS SIGNED ) * 7 * 29 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5950
SELECT + 2 * col2 * + 70 * - + CAST ( NULL AS INTEGER ) * 7 * 29 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT + + 90 * + - SUM( - + ( col0 ) ) * + 4 FROM tab0 AS cor0
----
71640

skipif mysql # not compatible
query I rowsort label-5951
SELECT + + 90 * + - SUM ( - + ( col0 ) ) * + 4 FROM tab0 AS cor0
----
71640

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

query I rowsort
SELECT DISTINCT + col1 + - - ( + col0 ) FROM tab0
----
108
96
98

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) = - 55 * col2 + + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT DISTINCT - COUNT( 61 ) - 94 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5955
SELECT DISTINCT - COUNT ( 61 ) - 94 FROM tab0 AS cor0
----
-97

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

query I rowsort
SELECT ALL col0 * col2 + col2 FROM tab1 AS cor0
----
4992
5074
6256

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

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

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

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

query III rowsort
SELECT - col1, + col1, - col2 * - + col2 + col0 * - col1 AS col0 FROM tab2 AS cor0
----
9 values hashing to d3a1b25a0962a522e4c53c048ed58109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5961
SELECT ALL - col0 * CAST( + + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-5961
SELECT ALL - col0 * CAST ( + + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT ALL - col2 * - + 93 * col0 * col1 FROM tab2 AS cor0
----
18332160
27104850
5018094

query I rowsort
SELECT ALL 96 AS col1 FROM tab0 cor0
----
96
96
96

query I rowsort
SELECT ALL - 95 * + col2 FROM tab2
----
-2185
-3800
-5510

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IN ( col0, + col0 / + ( + 4 ) + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5965
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IN ( col0, + col0 / + ( + 4 ) + - col2 )
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5967
SELECT ALL - 41 DIV + COUNT( * ) FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL - 41 / + COUNT ( * ) FROM tab2
----
-13

query I rowsort
SELECT + - 56 * 59 * col0 FROM tab0 AS cor0
----
-287448
-320488
-49560

query I rowsort
SELECT DISTINCT 23 FROM tab0 cor0 WHERE NOT - 20 BETWEEN NULL AND - - col0
----

query I rowsort
SELECT 58 * + col0 AS col1 FROM tab1 AS cor0
----
2958
4930
5278

query I rowsort
SELECT col0 * - col0 + col2 FROM tab2 AS cor0
----
-2093
-4056
-5567

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

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

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

skipif mysql # not compatible
query I rowsort label-5973
SELECT DISTINCT COUNT ( * ) / - 26 AS col2 FROM tab2 AS cor0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5976
SELECT + - COUNT( * ) FROM tab0 WHERE - + 68 + + CAST( NULL AS SIGNED ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5976
SELECT + - COUNT ( * ) FROM tab0 WHERE - + 68 + + CAST ( NULL AS INTEGER ) IS NULL
----
-3

query I rowsort
SELECT + ( - + 4 ) FROM tab0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT ALL + MIN( 54 ) AS col0 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-5978
SELECT ALL + MIN ( 54 ) AS col0 FROM tab2
----
54

query II rowsort
SELECT DISTINCT - 8 + + col0 * col0 * col0 AS col1, col2 AS col2 FROM tab1
----
132643
96
614117
59
753563
68

query I rowsort
SELECT 72 - + ( + ( - col2 ) ) AS col1 FROM tab0 AS cor0
----
119
171
82

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

query I rowsort
SELECT ALL + 22 * col1 * + + col1 * + - 92 FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN NULL AND 22
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 24 * + + ( col0 ) col2 FROM tab2 cor0
----
-1104
-1536
-1800

onlyif mysql # DIV for integer division: 
query I rowsort label-5985
SELECT - - 24 DIV col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5985
SELECT - - 24 / col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT SUM( - 1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5986
SELECT SUM ( - 1 ) FROM tab1 AS cor0
----
-3

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

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

query I rowsort
SELECT ALL col2 + + col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----

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

query I rowsort
SELECT DISTINCT + 90 * col2 + col2 + - 5 + - col2 AS col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
5305
6115
8635

onlyif mysql # DIV for integer division: 
query I rowsort label-5992
SELECT + 7 DIV + col1 * + col1 + col1 + col1 + - col2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
114
76
79

skipif mysql # not compatible
query I rowsort label-5992
SELECT + 7 / + col1 * + col1 + col1 + col1 + - col2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
114
76
79

query I rowsort
SELECT DISTINCT 19 * + col2 * 44 FROM tab0
----
39292
82764
8360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 18 col2, 83 FROM tab0
----
-18
83
-18
83
-18
83

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 40 + + col2 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5996
SELECT - col2 * col0 DIV 87 AS col1 FROM tab1
----
-56
-57
-71

skipif mysql # not compatible
query I rowsort label-5996
SELECT - col2 * col0 / 87 AS col1 FROM tab1
----
-56
-57
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5997
SELECT + 19 AS col0, CAST( - - 9 AS SIGNED ) FROM tab0
----
19
9
19
9
19
9

skipif mysql # not compatible
query II rowsort label-5997
SELECT + 19 AS col0, CAST ( - - 9 AS INTEGER ) FROM tab0
----
19
9
19
9
19
9

query I rowsort
SELECT ALL col2 + - 6 AS col2 FROM tab1
----
53
62
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT DISTINCT - SUM( DISTINCT - ( - ( 31 ) ) ) / - - 78 FROM tab1 WHERE NOT + col2 * - col1 + + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5999
SELECT DISTINCT - SUM ( DISTINCT - ( - ( 31 ) ) ) / - - 78 FROM tab1 WHERE NOT + col2 * - col1 + + col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT ALL - MIN( 66 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL - MIN ( 66 ) FROM tab1
----
-66

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

query I rowsort
SELECT DISTINCT ( 17 ) * - col1 * - ( col1 ) * - 50 - + col0 AS col1 FROM tab0 AS cor0
----
-374937
-5576865
-947

query I rowsort
SELECT ALL - + col2 * + 38 - - col0 FROM tab0 AS cor0
----
-1771
-293
-3665

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT - + SUM( DISTINCT + - 21 ) * 23 + 35 + 59 FROM tab1 AS cor0
----
577

skipif mysql # not compatible
query I rowsort label-6005
SELECT - + SUM ( DISTINCT + - 21 ) * 23 + 35 + 59 FROM tab1 AS cor0
----
577

onlyif mysql # DIV for integer division: 
query I rowsort label-6006
SELECT DISTINCT - col1 DIV - - 2 AS col0 FROM tab2 AS cor0
----
-25
-33
-38

skipif mysql # not compatible
query I rowsort label-6006
SELECT DISTINCT - col1 / - - 2 AS col0 FROM tab2 AS cor0
----
-25
-33
-38

query I rowsort
SELECT - col1 + 65 + - ( + col1 ) * 36 - col1 FROM tab1
----
-125
-1721
-467

query I rowsort
SELECT ALL 18 * - col1 * - col1 + + col1 FROM tab2
----
106799
46869
80869

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

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

query I rowsort
SELECT DISTINCT 89 + + + col2 + - 39 * + 56 FROM tab2
----
-2037
-2055
-2072

query I rowsort
SELECT + col1 FROM tab0 WHERE - 13 - + + col2 <> + - 65
----
1
21
81

query I rowsort
SELECT ALL - 97 + - - 28 + - col2 AS col0 FROM tab1
----
-128
-137
-165

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6014
SELECT ALL - col1 DIV + ( 37 ) FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6014
SELECT ALL - col1 / + ( 37 ) FROM tab0 AS cor0
----
-2
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT ALL - SUM( + 37 ) + - COUNT( * ) FROM tab1
----
-114

skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL - SUM ( + 37 ) + - COUNT ( * ) FROM tab1
----
-114

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

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

query I rowsort
SELECT DISTINCT + col2 + - 92 + col0 FROM tab2
----
-23
12
41

query II rowsort
SELECT DISTINCT + - col0 AS col1, col0 FROM tab2 WHERE - ( - col2 ) * - 99 IS NULL
----

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

query I rowsort
SELECT ALL col0 - - ( col2 ) FROM tab0
----
196
62
97

query I rowsort
SELECT ALL col1 FROM tab0 WHERE - 42 * + col1 + ( + 70 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT + MIN( col0 ) + 68 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6022
SELECT + MIN ( col0 ) + 68 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6023
SELECT DISTINCT COUNT( * ) + - CAST( ( - 82 ) AS SIGNED ) FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-6023
SELECT DISTINCT COUNT ( * ) + - CAST ( ( - 82 ) AS INTEGER ) FROM tab0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-6024
SELECT DISTINCT + 72 DIV col2 + col2 FROM tab2
----
26
41
59

skipif mysql # not compatible
query I rowsort label-6024
SELECT DISTINCT + 72 / col2 + col2 FROM tab2
----
26
41
59

onlyif mysql # DIV for integer division: 
query I rowsort label-6025
SELECT - col1 DIV - 37 + col0 * col0 col2 FROM tab0
----
227
7569
9409

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6025
SELECT - col1 / - 37 + col0 * col0 col2 FROM tab0
----
227
7569
9409

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

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

query I rowsort
SELECT - 88 / + 8 FROM tab1 WHERE NULL IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT 62 + - COUNT( * ) * 89 AS col1 FROM tab2 WHERE NOT 47 = - col1
----
-205

skipif mysql # not compatible
query I rowsort label-6030
SELECT 62 + - COUNT ( * ) * 89 AS col1 FROM tab2 WHERE NOT 47 = - col1
----
-205

query I rowsort
SELECT - col0 FROM tab0 WHERE col0 + col0 <= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT DISTINCT - MIN( ALL + 43 ) FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-6033
SELECT DISTINCT - MIN ( ALL + 43 ) FROM tab1
----
-43

query I rowsort
SELECT + col2 + col2 * + 18 AS col2 FROM tab2
----
1102
437
760

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT ( col1 ) <= NULL
----

query I rowsort
SELECT ALL + 12 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 * + col0 ) = - ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT 26 * + COUNT( * ) AS col0 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-6038
SELECT 26 * + COUNT ( * ) AS col0 FROM tab2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6039
SELECT DISTINCT * FROM tab0 WHERE - col1 / col1 BETWEEN CAST( NULL AS SIGNED ) * col2 AND ( - col1 * col2 )
----

skipif mysql # not compatible
query III rowsort label-6039
SELECT DISTINCT * FROM tab0 WHERE - col1 / col1 BETWEEN CAST ( NULL AS INTEGER ) * col2 AND ( - col1 * col2 )
----

query I rowsort
SELECT ALL + col0 + 85 AS col2 FROM tab1
----
136
170
176

query I rowsort
SELECT - ( + 70 ) * 28 AS col0 FROM tab2 AS cor0
----
-1960
-1960
-1960

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT DISTINCT COUNT( * ) * 50 FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-6042
SELECT DISTINCT COUNT ( * ) * 50 FROM tab2 AS cor0
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6043
SELECT DISTINCT + 78 * CAST( + COUNT( DISTINCT col1 ) AS SIGNED ) AS col1 FROM tab1 cor0
----
234

skipif mysql # not compatible
query I rowsort label-6043
SELECT DISTINCT + 78 * CAST ( + COUNT ( DISTINCT col1 ) AS INTEGER ) AS col1 FROM tab1 cor0
----
234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
-69

query I rowsort
SELECT - 4 AS col1 FROM tab1 WHERE col2 = + 51
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6046
SELECT + SUM( DISTINCT - col2 ) DIV COUNT( * ) + + COUNT( * ) FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-6046
SELECT + SUM ( DISTINCT - col2 ) / COUNT ( * ) + + COUNT ( * ) FROM tab2
----
-37

query I rowsort
SELECT - 34 + + col2 FROM tab0
----
-24
13
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 42 col1 FROM tab0
----
-45
-55
27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT DISTINCT - COUNT( DISTINCT 4 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6050
SELECT DISTINCT - COUNT ( DISTINCT 4 ) FROM tab0 AS cor0
----
-1

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

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

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

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

query I rowsort
SELECT DISTINCT - 29 + - col2 * + col2 FROM tab2 AS cor0
----
-1629
-3393
-558

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 45 col0 FROM tab0 cor0
----
-3915
-4365
-675

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6059
SELECT col0 DIV - 95 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6059
SELECT col0 / - 95 AS col1 FROM tab2
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT ALL MIN( DISTINCT - 19 ) FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-6061
SELECT ALL MIN ( DISTINCT - 19 ) FROM tab2
----
-19

query I rowsort
SELECT ALL - col2 + col0 + - col2 * + col1 AS col2 FROM tab2
----
-1150
-3056
-3869

query III rowsort
SELECT * FROM tab2 WHERE col1 / col2 = - 46
----

query I rowsort
SELECT ALL + 0 AS col2 FROM tab2 WHERE NOT 76 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * + + col0 + 48 AS col2 FROM tab1
----
4325
473
762

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT 19 - COUNT( * ) AS col2 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-6066
SELECT 19 - COUNT ( * ) AS col2 FROM tab0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT SUM( DISTINCT + col2 ) FROM tab0 WHERE - col1 + ( - 43 ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6067
SELECT SUM ( DISTINCT + col2 ) FROM tab0 WHERE - col1 + ( - 43 ) > NULL
----
NULL

query I rowsort
SELECT ALL ( + 13 ) + 19 AS col1 FROM tab0
----
32
32
32

query I rowsort
SELECT + 85 * + 85 AS col0 FROM tab0
----
7225
7225
7225

onlyif mysql # DIV for integer division: 
query I rowsort label-6070
SELECT 98 DIV - 32 FROM tab0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-6070
SELECT 98 / - 32 FROM tab0
----
-3
-3
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6071
SELECT CAST( - col1 AS SIGNED ) + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT col1 IN ( 92 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6071
SELECT CAST ( - col1 AS INTEGER ) + CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NOT col1 IN ( 92 )
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 25 * 17
----

query I rowsort
SELECT DISTINCT + 78 FROM tab0 AS cor0 WHERE NULL IN ( 0 )
----

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

skipif mysql # not compatible
query I rowsort label-6074
SELECT + - CAST ( 96 AS INTEGER ) FROM tab0 AS cor0
----
-96
-96
-96

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

query II rowsort
SELECT DISTINCT col1 AS col1, - col0 * + col2 FROM tab2
----
51
-1058
67
-4350
77
-2560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6077
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
NULL

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

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

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

query I rowsort
SELECT ALL + 62 FROM tab0 AS cor0 WHERE 4 + + + col1 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6081
SELECT + 44 AS col0, SUM( DISTINCT col1 ) AS col0 FROM tab2 cor0
----
44
195

skipif mysql # not compatible
query II rowsort label-6081
SELECT + 44 AS col0, SUM ( DISTINCT col1 ) AS col0 FROM tab2 cor0
----
44
195

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT ALL - COUNT( ALL + - 85 ) + + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL - COUNT ( ALL + - 85 ) + + COUNT ( * ) FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 NOT BETWEEN + + 38 * 2 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT ALL + COUNT( + + col2 ) + 72 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL + COUNT ( + + col2 ) + 72 FROM tab2
----
75

query I rowsort
SELECT 22 + - AVG ( col0 ) FROM tab0 AS cor0 WHERE NULL IN ( - ( col2 ) )
----
NULL

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 NOT IN ( - 11 )
----

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

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

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

query I rowsort
SELECT ALL - ( + 66 ) + - 78 FROM tab2 AS cor0
----
-144
-144
-144

query I rowsort
SELECT + col0 - + 84 AS col1 FROM tab2 cor0
----
-20
-38
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6093
SELECT - COUNT( ALL - 75 ) - 69, CAST( - + COUNT( - col2 ) AS SIGNED ) col2 FROM tab0 AS cor0
----
-72
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6093
SELECT - COUNT ( ALL - 75 ) - 69, CAST ( - + COUNT ( - col2 ) AS INTEGER ) col2 FROM tab0 AS cor0
----
-72
-3

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6095
SELECT + + COUNT( ALL + + col2 ) - COUNT( * ) AS col1, COUNT( * ) DIV - + SUM( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
0
0

skipif mysql # not compatible
query II rowsort label-6095
SELECT + + COUNT ( ALL + + col2 ) - COUNT ( * ) AS col1, COUNT ( * ) / - + SUM ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
0
0

query I rowsort
SELECT col1 * col1 - col2 + - col1 FROM tab2 AS cor0
----
2527
4364
5812

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT + 78 + + SUM( - - 81 ) AS col1 FROM tab0 AS cor0
----
321

skipif mysql # not compatible
query I rowsort label-6099
SELECT + 78 + + SUM ( - - 81 ) AS col1 FROM tab0 AS cor0
----
321

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6100
SELECT + 75 AS col1 FROM tab2 AS cor0 WHERE CAST( + + 12 AS DECIMAL ) <= ( - ( - - col2 ) - col0 )
----

skipif mysql # not compatible
query I rowsort label-6100
SELECT + 75 AS col1 FROM tab2 AS cor0 WHERE CAST ( + + 12 AS REAL ) <= ( - ( - - col2 ) - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT COUNT( * ) + + SUM( + - 27 ) AS col1 FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-6101
SELECT COUNT ( * ) + + SUM ( + - 27 ) AS col1 FROM tab0
----
-78

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN + + col0 + + 79 + col1 * col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT DISTINCT - COUNT( ALL - col1 ) * + - 59 + 18 FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-6104
SELECT DISTINCT - COUNT ( ALL - col1 ) * + - 59 + 18 FROM tab0
----
195

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 / ( - + 51 ) NOT BETWEEN 19 AND ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT COUNT( * ) AS col0 FROM tab2, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-6106
SELECT COUNT ( * ) AS col0 FROM tab2, tab0 cor0
----
9

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6107
SELECT ALL + COUNT ( * ) col2, + MIN ( DISTINCT 58 ) AS col0 FROM tab0 AS cor0
----
3
58

query I rowsort
SELECT - ( + + ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT 58 FROM tab2 AS cor0 WHERE - col0 < ( - col2 / - col0 )
----
58

query III rowsort
SELECT col1 AS col1, - col1 + + col0 * + col0, col2 FROM tab0 cor0
----
9 values hashing to de8cdb1771d4b7d81ce0fa40edb98846

query I rowsort
SELECT ALL + - ( - - 83 ) * + - col2 AS col0 FROM tab0 AS cor0
----
3901
8217
830

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 cor0 WHERE 45 < + ( col1 )
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-6113
SELECT 87 * col0 * 12 DIV col2 * - col2 AS col1 FROM tab1 AS cor0
----
-53184
-88736
-94996

skipif mysql # not compatible
query I rowsort label-6113
SELECT 87 * col0 * 12 / col2 * - col2 AS col1 FROM tab1 AS cor0
----
-53184
-88736
-94996

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6114
SELECT + + CAST( MIN( col1 ) AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL NOT BETWEEN NULL AND 22 + - col1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6114
SELECT + + CAST ( MIN ( col1 ) AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL NOT BETWEEN NULL AND 22 + - col1 ) )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6115
SELECT DISTINCT CAST( NULL AS DECIMAL ) / + 22 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6115
SELECT DISTINCT CAST ( NULL AS REAL ) / + 22 FROM tab0
----
NULL

query I rowsort
SELECT - 9 + - 16 + ( 81 ) AS col1 FROM tab2
----
56
56
56

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6118
SELECT ALL - COUNT( * ) col2, + 73 FROM tab2
----
-3
73

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( 42 / + col2 - + col0 ) OR NULL < - 20
----

query I rowsort
SELECT DISTINCT 12 AS col1 FROM tab0 WHERE - col1 NOT BETWEEN - + col1 * 80 * + 91 * + ( - col0 ) + col1 + col0 AND NULL
----
12

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE col1 NOT IN ( col1, col2 )
----

query II rowsort
SELECT - 7, col0 FROM tab0 WHERE NULL IS NULL
----
-7
15
-7
87
-7
97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6124
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 45 + col2 + + 70 * - + col2 * - + CAST( NULL AS DECIMAL ) ) <= 80 / - col1
----

skipif mysql # not compatible
query III rowsort label-6124
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 45 + col2 + + 70 * - + col2 * - + CAST ( NULL AS REAL ) ) <= 80 / - col1
----

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

query I rowsort
SELECT ALL - + 76 AS col0 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT - 64 BETWEEN + 64 * - + ( - 83 ) + - col1 / + col1 AND + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6129
SELECT ALL col1 DIV 66 + - 68 AS col1 FROM tab2
----
-67
-67
-68

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL col1 / 66 + - 68 AS col1 FROM tab2
----
-67
-67
-68

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6132
SELECT ALL + - 6 + - - 42 * - 85 * + MIN( + 27 ) DIV + COUNT( * ) FROM tab0 AS cor0
----
-32136

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL + - 6 + - - 42 * - 85 * + MIN ( + 27 ) / + COUNT ( * ) FROM tab0 AS cor0
----
-32136

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6134
SELECT * FROM tab0 AS cor0 WHERE NOT 39 + + col1 NOT BETWEEN + CAST( col0 AS SIGNED ) * + - col1 * - - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-6134
SELECT * FROM tab0 AS cor0 WHERE NOT 39 + + col1 NOT BETWEEN + CAST ( col0 AS INTEGER ) * + - col1 * - - CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT - 27 * col0 * - 2 FROM tab1
----
2754
4590
4914

onlyif mysql # DIV for integer division: 
query I rowsort label-6136
SELECT DISTINCT - 3 DIV + col0 FROM tab1 WHERE NOT col2 + 32 + - + 0 + - ( - - col1 ) DIV - 68 * - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6136
SELECT DISTINCT - 3 / + col0 FROM tab1 WHERE NOT col2 + 32 + - + 0 + - ( - - col1 ) / - 68 * - col2 IS NULL
----
0

query II rowsort
SELECT DISTINCT + col0 * + - col0 * + col0 AS col2, - col0 FROM tab1
----
-132651
-51
-614125
-85
-753571
-91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT + 93 * - + COUNT( * ) FROM tab1
----
-279

skipif mysql # not compatible
query I rowsort label-6139
SELECT + 93 * - + COUNT ( * ) FROM tab1
----
-279

query I rowsort
SELECT + 60 * col1 FROM tab2
----
3060
4020
4620

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

skipif mysql # not compatible
query I rowsort label-6141
SELECT - COUNT ( * ) / - 66 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT DISTINCT - SUM( + col2 ) * - 24 AS col0 FROM tab2 AS cor0
----
2904

skipif mysql # not compatible
query I rowsort label-6142
SELECT DISTINCT - SUM ( + col2 ) * - 24 AS col0 FROM tab2 AS cor0
----
2904

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6143
SELECT ALL COUNT( * ) DIV 96 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6143
SELECT ALL COUNT ( * ) / 96 AS col0 FROM tab1
----
0

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

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

query II rowsort
SELECT ALL + col2 * + col2 AS col2, + col2 AS col2 FROM tab0
----
100
10
2209
47
9801
99

query I rowsort
SELECT DISTINCT + col2 + - + 71 * - - col0 FROM tab2 cor0
----
-3243
-4504
-5267

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

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

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

query I rowsort
SELECT ALL col2 * 29 FROM tab0 AS cor0
----
1363
2871
290

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6151
SELECT DISTINCT - COUNT( * ) DIV + MIN( ALL + 18 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6151
SELECT DISTINCT - COUNT ( * ) / + MIN ( ALL + 18 ) FROM tab2 AS cor0
----
0

query II rowsort
SELECT - 17 * col0, col0 FROM tab0
----
-1479
87
-1649
97
-255
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT DISTINCT + COUNT( * ) + ( + 81 ) - - + COUNT( * ) - - MAX( - col2 ) FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-6154
SELECT DISTINCT + COUNT ( * ) + ( + 81 ) - - + COUNT ( * ) - - MAX ( - col2 ) FROM tab1
----
28

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

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

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 ) = - col1 + - 85 * - - col1 * ( - col2 ) * - ( + col1 ) + + col0
----

query I rowsort
SELECT ALL 4 + - - col2 * + col0 FROM tab1
----
4900
5019
6192

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

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

query I rowsort
SELECT + ( - col0 ) + + 10 AS col0 FROM tab1 AS cor0
----
-41
-75
-81

query I rowsort
SELECT ALL - - 37 - + 0 * - 36 FROM tab1 cor0
----
37
37
37

query I rowsort
SELECT ALL + - ( + 89 ) + - + col0 + - 15 * + + ( 37 ) / - col0 + - col0 AS col1 FROM tab0 cor0 WHERE NOT 18 * + 52 * - col1 <> NULL
----

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6170
SELECT + + 12 FROM tab1 AS cor0 WHERE NOT NULL IN ( col0, - col0, CAST( + 50 AS SIGNED ) - + col0 )
----

skipif mysql # not compatible
query I rowsort label-6170
SELECT + + 12 FROM tab1 AS cor0 WHERE NOT NULL IN ( col0, - col0, CAST ( + 50 AS INTEGER ) - + col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT ALL 91 * 55 * + MIN( ALL col2 ) * - - COUNT( * ) FROM tab1
----
885885

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL 91 * 55 * + MIN ( ALL col2 ) * - - COUNT ( * ) FROM tab1
----
885885

onlyif mysql # DIV for integer division: 
query I rowsort label-6173
SELECT DISTINCT col0 * - col0 DIV col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6173
SELECT DISTINCT col0 * - col0 / col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT col1 / - col0 FROM tab1 WHERE NOT NULL NOT IN ( 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT 18 * - MIN( DISTINCT + 67 ) AS col2 FROM tab0
----
-1206

skipif mysql # not compatible
query I rowsort label-6175
SELECT 18 * - MIN ( DISTINCT + 67 ) AS col2 FROM tab0
----
-1206

onlyif mysql # DIV for integer division: 
query II rowsort label-6176
SELECT - 91 DIV - col0 DIV - ( + - 1 ) AS col2, 77 + - + col0 * + ( - col2 ) AS col2 FROM tab1 AS cor0
----
1
4973
1
5092
1
6265

skipif mysql # not compatible
query II rowsort label-6176
SELECT - 91 / - col0 / - ( + - 1 ) AS col2, 77 + - + col0 * + ( - col2 ) AS col2 FROM tab1 AS cor0
----
1
4973
1
5092
1
6265

query I rowsort
SELECT - 94 * + + col2 * - - col0 AS col2 FROM tab0 AS cor0
----
-66270
-81780
-902682

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT DISTINCT + 67 - COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
64

skipif mysql # not compatible
query I rowsort label-6178
SELECT DISTINCT + 67 - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6179
SELECT DISTINCT + + COUNT( ALL + - col0 ) / - + ( - 76 ) / - - 11 + - + CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab2 AS cor0 WHERE + col0 * + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6179
SELECT DISTINCT + + COUNT ( ALL + - col0 ) / - + ( - 76 ) / - - 11 + - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab2 AS cor0 WHERE + col0 * + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 2 * - - col2 FROM tab1 AS cor0
----
118
136
192

query III rowsort
SELECT + + col0 + + col0 * 48, 74 * - + ( - + col0 ) AS col2, col1 AS col0 FROM tab0 AS cor0
----
9 values hashing to 55eb91d9ff823b8f7bf1d83c53ef85d4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 * col2 col0 FROM tab2 AS cor0
----
-1104
-1920
-2784

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

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

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

skipif mysql # not compatible
query I rowsort label-6184
SELECT + ( - COUNT ( * ) ) + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-6

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6187
SELECT ALL - + col1 * - + ( + - CAST( NULL AS SIGNED ) ) AS col0, - col2 + - col1 + col0 DIV col1 + + + col1 AS col0 FROM tab1 AS cor0
----
NULL
-42
NULL
-67
NULL
-93

skipif mysql # not compatible
query II rowsort label-6187
SELECT ALL - + col1 * - + ( + - CAST ( NULL AS INTEGER ) ) AS col0, - col2 + - col1 + col0 / col1 + + + col1 AS col0 FROM tab1 AS cor0
----
NULL
-42
NULL
-67
NULL
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-6188
SELECT DISTINCT + col2 DIV - - 92 AS col2 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6188
SELECT DISTINCT + col2 / - - 92 AS col2 FROM tab1 cor0
----
0
1

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

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

query I rowsort
SELECT 1 FROM tab0 cor0 WHERE + 53 IS NOT NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6191
SELECT - 1 * 84 AS col1, - MIN( ALL - - col2 ) AS col2 FROM tab0
----
-84
-10

skipif mysql # not compatible
query II rowsort label-6191
SELECT - 1 * 84 AS col1, - MIN ( ALL - - col2 ) AS col2 FROM tab0
----
-84
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT DISTINCT + MIN( DISTINCT col2 ) + - 95 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-6192
SELECT DISTINCT + MIN ( DISTINCT col2 ) + - 95 FROM tab1
----
-36

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

skipif mysql # not compatible
query I rowsort label-6193
SELECT - CAST ( - 1 AS INTEGER ) AS col1 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL + col1 + - 19 FROM tab2
----
32
48
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6195
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN + col1 / col2 - + + CAST( NULL AS SIGNED ) AND - col1 * - 25 + + 20
----

skipif mysql # not compatible
query III rowsort label-6195
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN + col1 / col2 - + + CAST ( NULL AS INTEGER ) AND - col1 * - 25 + + 20
----

query I rowsort
SELECT ALL col2 * + - col1 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
-1344
-295
-3196

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

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

query I rowsort
SELECT DISTINCT + - 49 * - col0 * - col0 - 7 FROM tab2 AS cor0
----
-103691
-200711
-275632

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

query I rowsort
SELECT - ( - col1 ) + + + 70 AS col0 FROM tab2 AS cor0
----
121
137
147

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT DISTINCT + 25 + - + MIN( DISTINCT - 45 ) col0 FROM tab2
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6201
SELECT DISTINCT + 25 + - + MIN ( DISTINCT - 45 ) col0 FROM tab2
----
70

query I rowsort
SELECT ( + - ( - col0 ) ) AS col2 FROM tab2
----
46
64
75

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6205
SELECT ALL COUNT( + CAST( NULL AS DECIMAL ) ) col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6205
SELECT ALL COUNT ( + CAST ( NULL AS REAL ) ) col1 FROM tab0
----
0

query I rowsort
SELECT 8 * 90 FROM tab1
----
720
720
720

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

query I rowsort
SELECT 49 * - col1 * ( - col2 ) FROM tab1
----
14455
156604
65856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6209
SELECT + 65 * + - COUNT( * ) FROM tab0, tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - ( + - 12 ) * CAST( NULL AS SIGNED ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6209
SELECT + 65 * + - COUNT ( * ) FROM tab0, tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - ( + - 12 ) * CAST ( NULL AS INTEGER ) AND ( NULL )
----
0

query I rowsort
SELECT ALL + 65 * + col1 AS col0 FROM tab1 AS cor0
----
3055
325
910

query I rowsort
SELECT - 53 + + col2 FROM tab1 AS cor0
----
15
43
6

query I rowsort
SELECT - - col2 + - + col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + ( - 84 ) * + col2 + - col1 FROM tab2 WHERE NULL BETWEEN col1 * + - col1 AND - 19 + - - 55
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 66 <= - - 31
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6215
SELECT - MAX( + - col2 ) + 66 FROM tab1 AS cor0 WHERE - 80 + CAST( + ( - 82 ) AS SIGNED ) BETWEEN - col1 AND - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-6215
SELECT - MAX ( + - col2 ) + 66 FROM tab1 AS cor0 WHERE - 80 + CAST ( + ( - 82 ) AS INTEGER ) BETWEEN - col1 AND - 90
----
NULL

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

query I rowsort
SELECT - + col1 FROM tab2 AS cor0 WHERE + 59 NOT IN ( col2, col1 / col1 )
----
-51
-67
-77

query I rowsort
SELECT - 40 FROM tab2 cor0 WHERE + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + 74, ( - 29 ), + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6220
SELECT - 98 * + 24 - + CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-2349

skipif mysql # not compatible
query I rowsort label-6220
SELECT - 98 * + 24 - + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-2349

query I rowsort
SELECT - col0 - col0 + - ( + col0 ) + - col2 * - - 18 * + col1 - + col1 FROM tab0 AS cor0
----
-2074
-4062
-68652

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6223
SELECT + COUNT( * ) * - CAST( - SUM( ALL + col1 ) AS SIGNED ) + + - COUNT( * ) FROM tab2
----
582

skipif mysql # not compatible
query I rowsort label-6223
SELECT + COUNT ( * ) * - CAST ( - SUM ( ALL + col1 ) AS INTEGER ) + + - COUNT ( * ) FROM tab2
----
582

query II rowsort
SELECT - col2 + - + col1 * col0 AS col0, - col1 AS col0 FROM tab2
----
-2369
-51
-4968
-77
-5083
-67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6225
SELECT * FROM tab1 WHERE - col2 * CAST( NULL AS SIGNED ) > - - 87
----

skipif mysql # not compatible
query III rowsort label-6225
SELECT * FROM tab1 WHERE - col2 * CAST ( NULL AS INTEGER ) > - - 87
----

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

query II rowsort
SELECT - 46 AS col0, - col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-46
-51
-46
-85
-46
-91

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

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

query I rowsort
SELECT DISTINCT - 97 - col2 AS col0 FROM tab1 AS cor0
----
-156
-165
-193

query I rowsort
SELECT + ( - col0 ) * 46 FROM tab2 AS cor0
----
-2116
-2944
-3450

query I rowsort
SELECT ALL - col1 * 55 AS col2 FROM tab1
----
-2585
-275
-770

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

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

query I rowsort
SELECT DISTINCT col2 - - 12 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

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

query II rowsort
SELECT DISTINCT 14 AS col1, 11 FROM tab1 AS cor0 WHERE NOT 31 = + col2 + + - col2 + - 3
----
14
11

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6237
SELECT DISTINCT 95 AS col1, MAX( + + CAST( NULL AS SIGNED ) ) + + MIN( 31 ) + + COUNT( * ) FROM tab2 AS cor0
----
95
NULL

skipif mysql # not compatible
query II rowsort label-6237
SELECT DISTINCT 95 AS col1, MAX ( + + CAST ( NULL AS INTEGER ) ) + + MIN ( 31 ) + + COUNT ( * ) FROM tab2 AS cor0
----
95
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6238
SELECT ALL - COUNT( * ), MIN( + col0 ) + - - 96 AS col1 FROM tab1 AS cor0
----
-3
147

skipif mysql # not compatible
query II rowsort label-6238
SELECT ALL - COUNT ( * ), MIN ( + col0 ) + - - 96 AS col1 FROM tab1 AS cor0
----
-3
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6239
SELECT + - CAST( - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6239
SELECT + - CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT ALL - SUM( 48 ) FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-6240
SELECT ALL - SUM ( 48 ) FROM tab2 AS cor0
----
-144

query I rowsort
SELECT + col1 + + col2 * - - 22 * + 71 / - + col1 AS col0 FROM tab2 cor0 WHERE NOT - 79 >= - 95
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6245
SELECT * FROM tab0 WHERE NOT col2 + - CAST( NULL AS SIGNED ) NOT BETWEEN - col2 AND - 34 * + col2 * - col2
----

skipif mysql # not compatible
query III rowsort label-6245
SELECT * FROM tab0 WHERE NOT col2 + - CAST ( NULL AS INTEGER ) NOT BETWEEN - col2 AND - 34 * + col2 * - col2
----

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

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

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

query II rowsort
SELECT ALL + + 30 + col0, - col1 AS col0 FROM tab2 AS cor0
----
105
-67
76
-51
94
-77

query I rowsort
SELECT ALL - - 60 AS col0 FROM tab1 AS cor0
----
60
60
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6250
SELECT - 63 * + 66 col1, 0 * - - 20 DIV + - COUNT( * ) - COUNT( * ) * + MIN( - 16 ) FROM tab0 AS cor0
----
-4158
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6250
SELECT - 63 * + 66 col1, 0 * - - 20 / + - COUNT ( * ) - COUNT ( * ) * + MIN ( - 16 ) FROM tab0 AS cor0
----
-4158
48

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

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

query I rowsort
SELECT + col2 * - - 4 FROM tab0 AS cor0
----
188
396
40

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > - 85
----

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE 31 * 58 = + 44
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < - 35
----

query I rowsort
SELECT - 88 + + 83 FROM tab2
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-6257
SELECT COUNT( * ), COUNT( + 6 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-6257
SELECT COUNT ( * ), COUNT ( + 6 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT ALL + - SUM( ALL - col1 ) - - + MIN( ALL - col0 ) FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL + - SUM ( ALL - col1 ) - - + MIN ( ALL - col0 ) FROM tab2 AS cor0
----
120

query I rowsort
SELECT + + 94 + - 56 FROM tab1 AS cor0
----
38
38
38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT DISTINCT SUM( 28 ) AS col1 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-6262
SELECT DISTINCT SUM ( 28 ) AS col1 FROM tab2 AS cor0
----
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6264
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab2, tab2 AS cor0 WHERE NOT NULL < - - 54
----
0

skipif mysql # not compatible
query I rowsort label-6264
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab2, tab2 AS cor0 WHERE NOT NULL < - - 54
----
0

query I rowsort
SELECT col1 * + - 51 * col0 FROM tab1
----
-21675
-218127
-36414

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

skipif mysql # not compatible
query I rowsort label-6266
SELECT DISTINCT + 59 + + COUNT ( * ) FROM tab0
----
62

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

skipif mysql # not compatible
query I rowsort label-6267
SELECT DISTINCT - ( col2 ) * + CAST ( NULL AS REAL ) * - 28 * + + 28 AS col1 FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT 74 + col0 AS col0, ( 10 ) FROM tab2
----
120
10
138
10
149
10

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT MIN( - col2 ) * COUNT( * ) FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-6272
SELECT MIN ( - col2 ) * COUNT ( * ) FROM tab1
----
-288

onlyif mysql # DIV for integer division: 
query II rowsort label-6273
SELECT - 42 AS col2, 57 * + + col2 - + + col0 DIV - ( + col0 ) FROM tab0 WHERE NOT + + col1 BETWEEN col2 AND NULL
----
-42
5644

skipif mysql # not compatible
query II rowsort label-6273
SELECT - 42 AS col2, 57 * + + col2 - + + col0 / - ( + col0 ) FROM tab0 WHERE NOT + + col1 BETWEEN col2 AND NULL
----
-42
5644

query I rowsort
SELECT col2 * 30 * 32 AS col0 FROM tab1
----
56640
65280
92160

query I rowsort
SELECT DISTINCT + + col1 * - 82 FROM tab1 AS cor0
----
-1148
-3854
-410

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 61 * - col0 * 50 * + - ( - - 89 ) < NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 10 >= + col2
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6279
SELECT - 70 AS col0, - COUNT( * ) FROM tab0 AS cor0
----
-70
-3

skipif mysql # not compatible
query II rowsort label-6279
SELECT - 70 AS col0, - COUNT ( * ) FROM tab0 AS cor0
----
-70
-3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6281
SELECT CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) AS col2, - col1 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-6281
SELECT CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) AS col2, - col1 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

query I rowsort
SELECT ALL col0 + + col1 * + 55 * - + col1 AS col0 FROM tab0
----
-24168
-360840
42

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

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

query I rowsort
SELECT DISTINCT + 26 + col2 AS col2 FROM tab2
----
49
66
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 41 col2, - 79 FROM tab2
----
41
-79
41
-79
41
-79

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6288
SELECT col1, col2 DIV + col0 AS col1 FROM tab0
----
1
1
21
0
81
3

skipif mysql # not compatible
query II rowsort label-6288
SELECT col1, col2 / + col0 AS col1 FROM tab0
----
1
1
21
0
81
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT DISTINCT - 86 * COUNT( * ) col2 FROM tab2 AS cor0
----
-258

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6289
SELECT DISTINCT - 86 * COUNT ( * ) col2 FROM tab2 AS cor0
----
-258

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6291
SELECT 60 + - - ( - + 8 ) + ( - + 46 ) - - col2 * + col1 * CAST( - col1 AS SIGNED ) * + + col0 + - col1 FROM tab0 AS cor0
----
-383685
-4625580
-9598

skipif mysql # not compatible
query I rowsort label-6291
SELECT 60 + - - ( - + 8 ) + ( - + 46 ) - - col2 * + col1 * CAST ( - col1 AS INTEGER ) * + + col0 + - col1 FROM tab0 AS cor0
----
-383685
-4625580
-9598

onlyif mysql # DIV for integer division: 
query I rowsort label-6292
SELECT 69 DIV - + col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6292
SELECT 69 / - + col0 FROM tab1
----
-1
0
0

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

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

skipif mysql # not compatible
query I rowsort label-6294
SELECT DISTINCT ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - + 95 AND NULL
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6296
SELECT MAX( - col0 ) - + - 28 DIV + 4 AS col1 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-6296
SELECT MAX ( - col0 ) - + - 28 / + 4 AS col1 FROM tab0 AS cor0
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-6297
SELECT DISTINCT col2 DIV + - col1 - col0 + 94 FROM tab2 AS cor0
----
19
30
48

skipif mysql # not compatible
query I rowsort label-6297
SELECT DISTINCT col2 / + - col1 - col0 + 94 FROM tab2 AS cor0
----
19
30
48

query I rowsort
SELECT DISTINCT + - 67 AS col0 FROM tab1 AS cor0
----
-67

query I rowsort
SELECT + 43 + col1 FROM tab1 AS cor0
----
48
57
90

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

query II rowsort
SELECT col2 + + col2 - - 0, + col0 FROM tab1 AS cor0
----
118
85
136
91
192
51

query I rowsort
SELECT - col0 + - + 24 + - col2 * + col0 FROM tab2
----
-1128
-2648
-4449

query I rowsort
SELECT + col1 * + col0 + ( + + 42 ) * - col0 AS col0 FROM tab0
----
-1827
-3977
585

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - - 78 * - col1, 70 * col0, - col1 )
----

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

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

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT ALL - ( + ( - 46 ) ) * col0 AS col1 FROM tab2 AS cor0
----
2116
2944
3450

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6308
SELECT ALL * FROM tab0 WHERE NOT col0 - - - CAST( NULL AS SIGNED ) NOT BETWEEN - col2 * + col1 AND 44
----

skipif mysql # not compatible
query III rowsort label-6308
SELECT ALL * FROM tab0 WHERE NOT col0 - - - CAST ( NULL AS INTEGER ) NOT BETWEEN - col2 * + col1 AND 44
----

query I rowsort
SELECT - 83 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6310
SELECT MAX( ALL + - 89 ) * CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6310
SELECT MAX ( ALL + - 89 ) * CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL

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

query I rowsort
SELECT - 45 * + ( 60 ) AS col2 FROM tab2 AS cor0
----
-2700
-2700
-2700

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 51 IS NOT NULL
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 * - 25 col1 FROM tab0 AS cor0
----
750
750
750

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6320
SELECT DISTINCT + + 47 DIV + col2 + col1 + - + ( 73 ) AS col2 FROM tab2 AS cor0
----
-20
-6
5

skipif mysql # not compatible
query I rowsort label-6320
SELECT DISTINCT + + 47 / + col2 + col1 + - + ( 73 ) AS col2 FROM tab2 AS cor0
----
-20
-6
5

query III rowsort
SELECT ALL * FROM tab2 WHERE - 45 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 63 col1 FROM tab2
----
2898
4032
4725

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT DISTINCT 75 + + 57 - - 53 + - 31 + + MAX( - + col0 ) AS col0 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-6323
SELECT DISTINCT 75 + + 57 - - 53 + - 31 + + MAX ( - + col0 ) AS col0 FROM tab2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT + SUM( + col1 ) * - - 8 + - ( ( SUM( ALL - col0 ) ) ) col0 FROM tab0 AS cor0 WHERE ( col1 * col2 ) BETWEEN NULL AND col1 / 26
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6324
SELECT + SUM ( + col1 ) * - - 8 + - ( ( SUM ( ALL - col0 ) ) ) col0 FROM tab0 AS cor0 WHERE ( col1 * col2 ) BETWEEN NULL AND col1 / 26
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6326
SELECT ALL - + COUNT( * ) + - CAST( 60 AS SIGNED ) * + 9 * + 13 AS col2 FROM tab1 AS cor0
----
-7023

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL - + COUNT ( * ) + - CAST ( 60 AS INTEGER ) * + 9 * + 13 AS col2 FROM tab1 AS cor0
----
-7023

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

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

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

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

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

query I rowsort
SELECT DISTINCT col0 - - + 4 FROM tab0 cor0
----
101
19
91

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

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

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

query II rowsort
SELECT DISTINCT + - 41 AS col1, + 53 + - + col0 FROM tab1 WHERE NOT + col2 * + 93 * - - 30 + - col1 + - col0 = col2 / - col0
----
-41
-32
-41
-38
-41
2

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

skipif mysql # not compatible
query I rowsort label-6334
SELECT + MAX ( ALL ( + col0 ) ) AS col2 FROM tab0
----
97

query I rowsort
SELECT DISTINCT 81 * col1 AS col0 FROM tab1
----
1134
3807
405

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6337
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6337
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT ( ( - + col2 ) ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6340
SELECT 3 AS col2, MAX( ALL - 92 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
3
-92

skipif mysql # not compatible
query II rowsort label-6340
SELECT 3 AS col2, MAX ( ALL - 92 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
3
-92

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

query I rowsort
SELECT DISTINCT - - ( - - col0 ) AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT - 79 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL - 97 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 35 AND NULL
----

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

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

query II rowsort
SELECT DISTINCT 64, + 30 AS col2 FROM tab1 AS cor0
----
64
30

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

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

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

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

query I rowsort
SELECT - ( - 89 ) FROM tab0
----
89
89
89

query I rowsort
SELECT col0 * - col2 * - col2 + + ( - 38 ) FROM tab2
----
102362
24296
252262

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

skipif mysql # not compatible
query I rowsort label-6351
SELECT DISTINCT - SUM ( - 53 ) AS col0 FROM tab2
----
159

query I rowsort
SELECT DISTINCT ( col1 ) + col1 + col2 FROM tab0
----
101
209
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT - COUNT( * ) + - - 28 col1 FROM tab0
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6353
SELECT - COUNT ( * ) + - - 28 col1 FROM tab0
----
25

query III rowsort
SELECT * FROM tab0 WHERE - 58 * + col2 + + + col0 NOT BETWEEN + 88 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * - - 47 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
2397
3995
4277

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

query I rowsort
SELECT + + col2 + + 3 + + - col0 AS col1 FROM tab0 cor0
----
-74
35
5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6359
SELECT ALL - 92 * - + col2 + - col1 AS col2, - CAST( col1 AS SIGNED ) FROM tab1
----
5423
-5
6209
-47
8818
-14

skipif mysql # not compatible
query II rowsort label-6359
SELECT ALL - 92 * - + col2 + - col1 AS col2, - CAST ( col1 AS INTEGER ) FROM tab1
----
5423
-5
6209
-47
8818
-14

query I rowsort
SELECT - 91 - + col0 AS col1 FROM tab1
----
-142
-176
-182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) - - + col1 col1 FROM tab1 cor0
----
138
65
90

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6366
SELECT + 37 AS col2, ( - 26 ) DIV - 35 - + 88 AS col2 FROM tab2
----
37
-88
37
-88
37
-88

skipif mysql # not compatible
query II rowsort label-6366
SELECT + 37 AS col2, ( - 26 ) / - 35 - + 88 AS col2 FROM tab2
----
37
-88
37
-88
37
-88

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

query I rowsort
SELECT ( - - 38 ) AS col0 FROM tab2
----
38
38
38

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 90 <= - col1 + + col2 - col2
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6371
SELECT + AVG ( ALL CAST( - - 74 AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT ( - col0 ) + + 43 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6371
SELECT + AVG ( ALL CAST ( - - 74 AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT ( - col0 ) + + 43 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT DISTINCT COUNT( DISTINCT 66 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6372
SELECT DISTINCT COUNT ( DISTINCT 66 ) FROM tab2 AS cor0
----
1

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

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

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

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

query I rowsort
SELECT ALL ( + col0 ) + + col1 - - - 54 FROM tab0 AS cor0
----
42
44
54

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( - + col0 ) <> - + 24 * - col0 - - + 26
----

query I rowsort
SELECT - col0 + - ( - col0 ) * 53 * + + 2 AS col0 FROM tab1 AS cor0
----
5355
8925
9555

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT - - 40 + + SUM( - col2 ) AS col1 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6379
SELECT - - 40 + + SUM ( - col2 ) AS col1 FROM tab2 AS cor0
----
-81

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

skipif mysql # not compatible
query I rowsort label-6380
SELECT + col1 / + 39 FROM tab1
----
0
0
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6381
SELECT col1, - col2 DIV col2 FROM tab0
----
1
-1
21
-1
81
-1

skipif mysql # not compatible
query II rowsort label-6381
SELECT col1, - col2 / col2 FROM tab0
----
1
-1
21
-1
81
-1

query I rowsort
SELECT + col0 FROM tab2 WHERE 14 + - 36 + col0 <> NULL
----

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

query I rowsort
SELECT + 86 * - col0 + - - ( - + col1 ) FROM tab1
----
-4400
-7315
-7873

onlyif mysql # DIV for integer division: 
query I rowsort label-6385
SELECT col2 + - - ( + + col1 ) - col1 DIV + 92 FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-6385
SELECT col2 + - - ( + + col1 ) - col1 / + 92 FROM tab1
----
110
115
64

query III rowsort
SELECT * FROM tab1 WHERE + col0 + - 25 <> - - 29 / + - col0 * col1 * + col2 + + col1 + + 11 - 30 - - 77 / 48
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT 46 + + ( - COUNT( * ) ) AS col2 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-6387
SELECT 46 + + ( - COUNT ( * ) ) AS col2 FROM tab1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT COUNT( DISTINCT 51 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6388
SELECT COUNT ( DISTINCT 51 ) FROM tab0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6389
SELECT + SUM( - - col0 ) DIV CAST( - - 3 AS SIGNED ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6389
SELECT + SUM ( - - col0 ) / CAST ( - - 3 AS INTEGER ) FROM tab1 AS cor0
----
75

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 5 IS NULL
----

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NULL >= col1
----

query I rowsort
SELECT DISTINCT 16 * - col2 AS col1 FROM tab0
----
-1584
-160
-752

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

query I rowsort
SELECT + 55 * + col0 * + col2 AS col2 FROM tab2
----
140800
239250
58190

query I rowsort
SELECT ALL col1 * - 94 AS col2 FROM tab2
----
-4794
-6298
-7238

query I rowsort
SELECT - 73 * col0 FROM tab1
----
-3723
-6205
-6643

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT COUNT( * ) * - 62 FROM tab0
----
-186

skipif mysql # not compatible
query I rowsort label-6399
SELECT COUNT ( * ) * - 62 FROM tab0
----
-186

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6405
SELECT 78, + col2 * - CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
78
705
78
870
78
9603

skipif mysql # not compatible
query II rowsort label-6405
SELECT 78, + col2 * - CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
78
705
78
870
78
9603

query I rowsort
SELECT - - 58 + - ( col0 ) FROM tab2 AS cor0
----
-17
-6
12

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

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

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

query I rowsort
SELECT DISTINCT - col0 + - + 84 FROM tab2
----
-130
-148
-159

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

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

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

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

query II rowsort
SELECT DISTINCT + col1, col2 + col1 FROM tab1 cor0
----
14
110
47
115
5
64

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND + 71
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= - col2 * - 80
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6415
SELECT DISTINCT - - col2 + 28 DIV + col1 * col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6415
SELECT DISTINCT - - col2 + 28 / + col1 * col0 FROM tab2 AS cor0
----
23
40
58

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

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

query I rowsort
SELECT DISTINCT - 34 * - col0 + + col2 AS col2 FROM tab1
----
1830
2949
3162

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT DISTINCT - + ( - COUNT( * ) ) + + + ( + + MIN( + - 36 ) ) + 58 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6418
SELECT DISTINCT - + ( - COUNT ( * ) ) + + + ( + + MIN ( + - 36 ) ) + 58 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

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

query I rowsort
SELECT - 58 * - col1 + - - 38 AS col2 FROM tab2 AS cor0
----
2996
3924
4504

query I rowsort
SELECT DISTINCT - col2 - + col1 * + col2 * + col2 FROM tab0 AS cor0
----
-178976
-2110
-9900

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

query I rowsort
SELECT DISTINCT + - 79 * col2 FROM tab1 AS cor0
----
-4661
-5372
-7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 * - col1 col2 FROM tab2
----
-4998
-6566
-7546

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6426
SELECT COUNT( * ) * ( - + 6 ) * - COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT ( CAST( - 95 AS SIGNED ) IS NULL )
----
54

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

query I rowsort
SELECT - col1 * - + col0 + col1 * col1 AS col1 FROM tab0 AS cor0
----
2268
7776
98

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

query II rowsort
SELECT - 63, col2 * + 77 * + 93 AS col1 FROM tab2 cor0
----
-63
164703
-63
286440
-63
415338

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

skipif mysql # not compatible
query II rowsort label-6430
SELECT - + COUNT ( * ) AS col0, + COUNT ( * ) * 32 FROM tab1 cor0
----
-3
96

query II rowsort
SELECT col0, + 39 * + + col1 FROM tab2 AS cor0
----
46
1989
64
3003
75
2613

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 < col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <= 16 * + col0 * + col2 * col1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-6435
SELECT DISTINCT COUNT( * ) DIV + + MAX( - col2 ) * + 59, CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6435
SELECT DISTINCT COUNT ( * ) / + + MAX ( - col2 ) * + 59, CAST ( NULL AS REAL ) AS col0 FROM tab1
----
0
NULL

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

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

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

skipif mysql # not compatible
query II rowsort label-6437
SELECT DISTINCT col2 / + 94 AS col0, + ( + - col0 ) FROM tab0
----
0
-15
0
-87
1
-97

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6440
SELECT + MIN( ALL + CAST( col0 AS SIGNED ) ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-6440
SELECT + MIN ( ALL + CAST ( col0 AS INTEGER ) ) AS col2 FROM tab1
----
51

query II rowsort
SELECT - col0 * - 74, col0 AS col1 FROM tab2 AS cor0
----
3404
46
4736
64
5550
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6442
SELECT ALL - 3 DIV + 87 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL - 3 / + 87 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT DISTINCT COUNT( * ) * + COUNT( * ) + 75 AS col0 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-6443
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) + 75 AS col0 FROM tab1
----
84

query I rowsort
SELECT col1 * - - col1 + + col2 * - - 95 FROM tab1
----
5630
8669
9316

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT + 71 + COUNT( * ) col0 FROM tab1
----
74

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 73 < NULL
----

query I rowsort
SELECT ALL + 89 + - 14 AS col1 FROM tab2 AS cor0
----
75
75
75

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL > ( 61 ) - + 79
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE - col0 = + 48
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + + col2 * + + col2 col1 FROM tab2
----
12167
195112
64000

query II rowsort
SELECT + 95, + ( 92 ) + - 24 AS col2 FROM tab0
----
95
68
95
68
95
68

onlyif mysql # aggregate syntax: 
query II rowsort label-6455
SELECT - 37 * - MIN( DISTINCT + ( + + 13 ) ), ( + COUNT( * ) ) AS col1 FROM tab1
----
481
3

skipif mysql # not compatible
query II rowsort label-6455
SELECT - 37 * - MIN ( DISTINCT + ( + + 13 ) ), ( + COUNT ( * ) ) AS col1 FROM tab1
----
481
3

query II rowsort
SELECT 72 AS col2, col2 + + + ( col1 ) AS col2 FROM tab2
----
72
117
72
125
72
74

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * - 4 FROM tab0 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT SUM( - 30 ) * 19 AS col1 FROM tab0 cor0
----
-1710

skipif mysql # not compatible
query I rowsort label-6461
SELECT SUM ( - 30 ) * 19 AS col1 FROM tab0 cor0
----
-1710

query I rowsort
SELECT + + col0 + - - 57 FROM tab2 WHERE NOT + col0 IS NULL
----
103
121
132

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

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

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

skipif mysql # not compatible
query I rowsort label-6464
SELECT COUNT ( * ) * - 7 AS col0 FROM tab2
----
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 41 col2, col2 * col2 AS col2 FROM tab1
----
41
3481
41
4624
41
9216

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE 46 < - 43
----

query I rowsort
SELECT DISTINCT + col2 + - + 62 FROM tab0
----
-15
-52
37

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6468
SELECT DISTINCT col2, col1 FROM tab0 WHERE CAST( - col1 AS DECIMAL ) + + - 45 NOT IN ( - - ( col0 ) )
----
10
21
47
81
99
1

skipif mysql # not compatible
query II rowsort label-6468
SELECT DISTINCT col2, col1 FROM tab0 WHERE CAST ( - col1 AS REAL ) + + - 45 NOT IN ( - - ( col0 ) )
----
10
21
47
81
99
1

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 <> + - 53
----

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

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

query I rowsort
SELECT - 58 + - col2 + - ( + col0 ) * - 9 AS col2 FROM tab2 AS cor0
----
333
478
559

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6473
SELECT DISTINCT * FROM tab1 WHERE - 71 BETWEEN + col0 * col2 AND ( 55 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6473
SELECT DISTINCT * FROM tab1 WHERE - 71 BETWEEN + col0 * col2 AND ( 55 * - CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( - col2 ) + col1 col2 FROM tab0 WHERE + 24 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT + COUNT( * ) + COUNT( * ) * - SUM( DISTINCT col1 * 15 + + col0 ) FROM tab0
----
-5229

skipif mysql # not compatible
query I rowsort label-6475
SELECT + COUNT ( * ) + COUNT ( * ) * - SUM ( DISTINCT col1 * 15 + + col0 ) FROM tab0
----
-5229

onlyif mysql # DIV for integer division: 
query I rowsort label-6476
SELECT + ( 95 ) + col0 DIV + col1 FROM tab1
----
112
96
98

skipif mysql # not compatible
query I rowsort label-6476
SELECT + ( 95 ) + col0 / + col1 FROM tab1
----
112
96
98

query I rowsort
SELECT - ( - col2 ) + - col2 * - col1 AS col2 FROM tab0
----
198
220
3854

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT 16 * COUNT( * ) FROM tab2 WHERE NOT ( + col0 ) + col0 * - col0 IN ( + col1 * + 80 )
----
48

skipif mysql # not compatible
query I rowsort label-6478
SELECT 16 * COUNT ( * ) FROM tab2 WHERE NOT ( + col0 ) + col0 * - col0 IN ( + col1 * + 80 )
----
48

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > - col1 / col1 + 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT DISTINCT MIN( ALL col2 ) * + 17 AS col2 FROM tab0
----
170

skipif mysql # not compatible
query I rowsort label-6481
SELECT DISTINCT MIN ( ALL col2 ) * + 17 AS col2 FROM tab0
----
170

query III rowsort
SELECT * FROM tab1 WHERE + ( + 68 ) <> - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 <> ( ( col1 ) * + 87 )
----

query I rowsort
SELECT ( col0 ) + - col0 FROM tab0 WHERE ( NULL ) > ( 57 / col2 + + 3 * + 68 )
----

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT col2 <> 66 + ( 41 + 51 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT DISTINCT COUNT( * ) * 57 FROM tab2 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND - col2 * + 20
----
0

skipif mysql # not compatible
query I rowsort label-6487
SELECT DISTINCT COUNT ( * ) * 57 FROM tab2 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND - col2 * + 20
----
0

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

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

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

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

query I rowsort
SELECT col2 * + col1 + + 8 FROM tab2
----
1181
3088
3894

query I rowsort
SELECT DISTINCT col0 + 62 FROM tab0
----
149
159
77

query I rowsort
SELECT ALL 15 * 98 FROM tab0
----
1470
1470
1470

query I rowsort
SELECT - ( + col1 ) * - 25 AS col0 FROM tab1
----
1175
125
350

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6497
SELECT - 60 * + ( + col0 DIV 85 ) FROM tab0
----
-60
-60
0

skipif mysql # not compatible
query I rowsort label-6497
SELECT - 60 * + ( + col0 / 85 ) FROM tab0
----
-60
-60
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab2 WHERE NOT - col1 IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6499
SELECT ALL col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL < - col2 / + col0
----

skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL < - col2 / + col0
----

query I rowsort
SELECT DISTINCT - col1 * + 52 AS col1 FROM tab1
----
-2444
-260
-728

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN + 5 * 14 AND ( NULL )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6503
SELECT ALL - 81 DIV - COUNT( * ) AS col1 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-6503
SELECT ALL - 81 / - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
27

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

query IIIIII rowsort
SELECT * FROM ( tab1 cor0 JOIN tab1 ON NOT NULL BETWEEN ( NULL ) AND NULL )
----

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

query I rowsort
SELECT - 95 * + 14 FROM tab0 AS cor0
----
-1330
-1330
-1330

query I rowsort
SELECT DISTINCT + col1 * + 32 FROM tab0 AS cor0
----
2592
32
672

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6509
SELECT ALL + MAX ( DISTINCT + col1 ) col1 FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6510
SELECT ALL * FROM tab1 cor0 WHERE ( ( CAST( + col0 AS SIGNED ) ) ) > ( - 10 * CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6510
SELECT ALL * FROM tab1 cor0 WHERE ( ( CAST ( + col0 AS INTEGER ) ) ) > ( - 10 * CAST ( - col2 AS INTEGER ) )
----

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

query I rowsort
SELECT ALL col0 / + col0 AS col0 FROM tab0 WHERE ( NULL ) >= + col0 - + 82
----

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

skipif mysql # not compatible
query III rowsort label-6513
SELECT DISTINCT * FROM tab0 WHERE + CAST ( 4 AS INTEGER ) IN ( col0 )
----

query I rowsort
SELECT ALL + 25 + + + 51 AS col0 FROM tab2
----
76
76
76

query I rowsort
SELECT + ( - ( + col2 ) ) AS col1 FROM tab0
----
-10
-47
-99

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

query I rowsort
SELECT ALL col0 + + 56 AS col2 FROM tab1
----
107
141
147

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

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

query I rowsort
SELECT 43 FROM tab2, tab0 cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # DIV for integer division: 
query I rowsort label-6521
SELECT + ( col0 ) DIV + 22 + + col1 FROM tab0
----
24
5
81

skipif mysql # not compatible
query I rowsort label-6521
SELECT + ( col0 ) / + 22 + + col1 FROM tab0
----
24
5
81

query I rowsort
SELECT - 40 AS col0 FROM tab2 WHERE ( - col2 ) BETWEEN col1 AND NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0 WHERE NOT NULL > + 77
----

query I rowsort
SELECT + - col0 + + 86 AS col2 FROM tab2 AS cor0
----
11
22
40

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

query I rowsort
SELECT 16 + - col1 FROM tab2 AS cor0
----
-35
-51
-61

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

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

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

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

query I rowsort
SELECT ALL - col0 * col1 FROM tab0 AS cor0 WHERE NULL >= ( + col1 / - 50 )
----

query II rowsort
SELECT 36, 21 AS col0 FROM tab2 AS cor0
----
36
21
36
21
36
21

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 36 >= ( col1 + col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT DISTINCT 82 - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-6535
SELECT DISTINCT 82 - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
79

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

query I rowsort
SELECT DISTINCT - 15 + col1 AS col2 FROM tab1
----
-1
-10
32

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

skipif mysql # not compatible
query I rowsort label-6538
SELECT COUNT ( * ) - 67 AS col1 FROM tab0
----
-64

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6539
SELECT DISTINCT CAST( NULL AS DECIMAL ) / + - col0 AS col2, 56 * - col0 AS col0 FROM tab0
----
NULL
-4872
NULL
-5432
NULL
-840

skipif mysql # not compatible
query II rowsort label-6539
SELECT DISTINCT CAST ( NULL AS REAL ) / + - col0 AS col2, 56 * - col0 AS col0 FROM tab0
----
NULL
-4872
NULL
-5432
NULL
-840

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT DISTINCT - SUM( ALL - 98 ) FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-6541
SELECT DISTINCT - SUM ( ALL - 98 ) FROM tab0
----
294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6542
SELECT ( 67 ) * + CAST( 54 AS SIGNED ) + col2 FROM tab1
----
3677
3686
3714

skipif mysql # not compatible
query I rowsort label-6542
SELECT ( 67 ) * + CAST ( 54 AS INTEGER ) + col2 FROM tab1
----
3677
3686
3714

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT + COUNT( * ) * - 59 * MAX( + col0 ) FROM tab0 AS cor0
----
-17169

skipif mysql # not compatible
query I rowsort label-6544
SELECT + COUNT ( * ) * - 59 * MAX ( + col0 ) FROM tab0 AS cor0
----
-17169

query I rowsort
SELECT col0 + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
104
133
69

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

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

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

query I rowsort
SELECT - - col1 AS col0 FROM tab1 AS cor0 WHERE NOT 91 IS NULL
----
14
47
5

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 87 NOT IN ( - - ( - + ( - 56 ) ) - col1 * col2 )
----

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6556
SELECT col0 DIV 45 * - + 66 AS col1 FROM tab0
----
-132
-66
0

skipif mysql # not compatible
query I rowsort label-6556
SELECT col0 / 45 * - + 66 AS col1 FROM tab0
----
-132
-66
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT 6 + 57 + + + COUNT( * ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-6560
SELECT 6 + 57 + + + COUNT ( * ) AS col0 FROM tab1
----
66

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 2 IN ( col2 )
----

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE ( + 58 + + col0 ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + col2 * - col0 + + 15 * col2 + col1 FROM tab0 AS cor0
----
-699
-8117
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6565
SELECT ALL + col0 - - col0 + - - col2 DIV - + col0 AS col2 FROM tab2 AS cor0
----
128
150
92

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL + col0 - - col0 + - - col2 / - + col0 AS col2 FROM tab2 AS cor0
----
128
150
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - 91 + col0 col2 FROM tab2 AS cor0
----
183
219
241

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT 22 + - + SUM( DISTINCT - - col0 ) col2 FROM tab1 AS cor0
----
-205

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6567
SELECT 22 + - + SUM ( DISTINCT - - col0 ) col2 FROM tab1 AS cor0
----
-205

query I rowsort
SELECT ALL + col0 * 9 AS col1 FROM tab0
----
135
783
873

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT NULL <> - + col1 - - 1
----

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6572
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col1 * + 30 * - - col2 AS col1 FROM tab2 AS cor0
----
116580
35190
92400

query I rowsort
SELECT - - 46 AS col2 FROM tab0 AS cor0
----
46
46
46

query I rowsort
SELECT DISTINCT - 70 * + 94 FROM tab0 AS cor0
----
-6580

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT MIN( - col1 ) * - COUNT( * ) FROM tab0 WHERE NOT ( + ( - + col1 ) ) < col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6576
SELECT MIN ( - col1 ) * - COUNT ( * ) FROM tab0 WHERE NOT ( + ( - + col1 ) ) < col0
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6580
SELECT col0 DIV + col2 + - col1 AS col1 FROM tab0 AS cor0
----
-1
-13
-81

skipif mysql # not compatible
query I rowsort label-6580
SELECT col0 / + col2 + - col1 AS col1 FROM tab0 AS cor0
----
-1
-13
-81

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 89 + - ( - col2 ) < - col1 / + col2 * - col2 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT ALL - COUNT( 77 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL - COUNT ( 77 ) AS col0 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6583
SELECT + CAST( - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) AS col1, - 31 AS col1 FROM tab0
----
NULL
-31
NULL
-31
NULL
-31

skipif mysql # not compatible
query II rowsort label-6583
SELECT + CAST ( - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) AS col1, - 31 AS col1 FROM tab0
----
NULL
-31
NULL
-31
NULL
-31

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

query I rowsort
SELECT ALL col0 + - col1 * + + col0 FROM tab2 AS cor0
----
-2300
-4864
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT + MIN( ALL + 7 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
7

skipif mysql # not compatible
query I rowsort label-6586
SELECT + MIN ( ALL + 7 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
7

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

query I rowsort
SELECT ALL 47 FROM tab0 cor0 WHERE ( NULL ) BETWEEN NULL AND + 72 / col0
----

query II rowsort
SELECT + - 10 AS col2, - 13 * - + col1 FROM tab2 AS cor0
----
-10
1001
-10
663
-10
871

query I rowsort
SELECT DISTINCT - 1 + ( + - col1 ) AS col1 FROM tab2 AS cor0
----
-52
-68
-78

query I rowsort
SELECT 53 + + + col2 + - - col2 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
147
251
73

onlyif mysql # aggregate syntax: 
query II rowsort label-6592
SELECT DISTINCT + + 27 AS col1, + MIN( + 91 ) FROM tab1 AS cor0
----
27
91

skipif mysql # not compatible
query II rowsort label-6592
SELECT DISTINCT + + 27 AS col1, + MIN ( + 91 ) FROM tab1 AS cor0
----
27
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT MIN( ALL col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-6595
SELECT MIN ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL + 61 * + col1 FROM tab2
----
3111
4087
4697

query II rowsort
SELECT DISTINCT ( 59 ), col1 AS col0 FROM tab0
----
59
1
59
21
59
81

onlyif mysql # aggregate syntax: 
query II rowsort label-6598
SELECT + 51 * + + 20 AS col1, + COUNT( * ) + + 50 FROM tab0
----
1020
53

skipif mysql # not compatible
query II rowsort label-6598
SELECT + 51 * + + 20 AS col1, + COUNT ( * ) + + 50 FROM tab0
----
1020
53

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

query II rowsort
SELECT col0 * - 62, + 59 AS col1 FROM tab2
----
-2852
59
-3968
59
-4650
59

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

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

query I rowsort
SELECT - col0 * 68 AS col2 FROM tab1
----
-3468
-5780
-6188

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

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

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

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

query I rowsort
SELECT + + 64 + - col1 FROM tab2 cor0
----
-13
-3
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 67 col2 FROM tab0
----
3149
6633
670

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

query I rowsort
SELECT col0 * + 60 * + 64 FROM tab2
----
176640
245760
288000

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

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

query I rowsort
SELECT ALL + + 94 * - col2 * + - col1 AS col2 FROM tab1 AS cor0
----
126336
27730
300424

query I rowsort
SELECT DISTINCT + - col2 * - 16 FROM tab0 AS cor0
----
1584
160
752

query I rowsort
SELECT DISTINCT col1 * 96 AS col1 FROM tab2 AS cor0
----
4896
6432
7392

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

query II rowsort
SELECT DISTINCT + col0 AS col1, - col0 + - 72 FROM tab2 AS cor0
----
46
-118
64
-136
75
-147

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 BETWEEN NULL AND + + 51
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6619
SELECT col2 + CAST( + - CAST( + col0 AS SIGNED ) AS SIGNED ) + - ( + col0 ) FROM tab2
----
-69
-88
-92

skipif mysql # not compatible
query I rowsort label-6619
SELECT col2 + CAST ( + - CAST ( + col0 AS INTEGER ) AS INTEGER ) + - ( + col0 ) FROM tab2
----
-69
-88
-92

query I rowsort
SELECT 40 * - ( + 25 ) + - ( - + col1 ) FROM tab2
----
-923
-933
-949

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

skipif mysql # not compatible
query I rowsort label-6621
SELECT ALL COUNT ( * ) / + + SUM ( + - 96 ) FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6622
SELECT DISTINCT col1 DIV col1 + + col0 * 38 AS col1 FROM tab2
----
1749
2433
2851

skipif mysql # not compatible
query I rowsort label-6622
SELECT DISTINCT col1 / col1 + + col0 * 38 AS col1 FROM tab2
----
1749
2433
2851

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6624
SELECT col1 DIV - col2 + col0 AS col2 FROM tab0 AS cor0
----
14
85
97

skipif mysql # not compatible
query I rowsort label-6624
SELECT col1 / - col2 + col0 AS col2 FROM tab0 AS cor0
----
14
85
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6625
SELECT ALL col0 + + 53 + col1 DIV + + col2 - + 38 FROM tab0 AS cor0
----
104
112
31

skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL col0 + + 53 + col1 / + + col2 - + 38 FROM tab0 AS cor0
----
104
112
31

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

query I rowsort
SELECT - 54 * - 30 - + 93 * col2 + - + 33 FROM tab1
----
-3900
-4737
-7341

query I rowsort
SELECT ALL + 18 * + 76 * 51 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 08d3e03b8ab28688a7ebf5272fee8da9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 54 col1, + col1 * - col2 * + - col0 FROM tab1 AS cor0
----
54
25075
54
290836
54
68544

query II rowsort
SELECT DISTINCT col2 AS col1, - col2 * 7 FROM tab0 AS cor0
----
10
-70
47
-329
99
-693

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col0 * - 83 col1 FROM tab1 AS cor0
----
406368
416245
513604

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

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

query I rowsort
SELECT ALL - 6 * + - col0 - + col0 + - col1 FROM tab1 AS cor0
----
241
408
420

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT ALL + MIN( DISTINCT - - 69 ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-6639
SELECT ALL + MIN ( DISTINCT - - 69 ) FROM tab2
----
69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT - SUM( + - ( + - 94 ) ) FROM tab0
----
-282

skipif mysql # not compatible
query I rowsort label-6641
SELECT - SUM ( + - ( + - 94 ) ) FROM tab0
----
-282

query I rowsort
SELECT - col1 * 46 AS col1 FROM tab1 AS cor0
----
-2162
-230
-644

query I rowsort
SELECT DISTINCT - 71 AS col1 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

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

query I rowsort
SELECT ALL - 82 * + col2 FROM tab2 AS cor0
----
-1886
-3280
-4756

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

query I rowsort
SELECT DISTINCT col0 + + - 23 + + - col0 FROM tab2
----
-23

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6650
SELECT DISTINCT + + COUNT( * ) * 89 DIV 81 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6650
SELECT DISTINCT + + COUNT ( * ) * 89 / 81 FROM tab2 AS cor0
----
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6652
SELECT ALL 7 DIV - col2 * - col0 * col2 * - col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL 7 / - col2 * - col0 * col2 * - col2 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT DISTINCT + SUM( + 65 ) * + - MAX( ALL + 55 ) FROM tab0
----
-10725

skipif mysql # not compatible
query I rowsort label-6653
SELECT DISTINCT + SUM ( + 65 ) * + - MAX ( ALL + 55 ) FROM tab0
----
-10725

query I rowsort
SELECT DISTINCT ( - + col1 ) + + col1 * + 38 AS col0 FROM tab1
----
1739
185
518

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

query I rowsort
SELECT DISTINCT + 41 * - 71 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - 43 + + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6657
SELECT ALL MIN( DISTINCT - 23 ) - 81 + + COUNT( * ), COUNT( DISTINCT 41 ) AS col1 FROM tab1
----
-101
1

skipif mysql # not compatible
query II rowsort label-6657
SELECT ALL MIN ( DISTINCT - 23 ) - 81 + + COUNT ( * ), COUNT ( DISTINCT 41 ) AS col1 FROM tab1
----
-101
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 87 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT - - COUNT( * ) - - 16 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-6659
SELECT - - COUNT ( * ) - - 16 FROM tab0 AS cor0
----
19

query I rowsort
SELECT DISTINCT - - col2 + + col2 - - 65 FROM tab0 cor0
----
159
263
85

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

skipif mysql # not compatible
query I rowsort label-6661
SELECT ALL - SUM ( DISTINCT + - 13 ) - - - COUNT ( * ) + + - 23 FROM tab2 AS cor0
----
-13

query II rowsort
SELECT - col2 * - col0 + + 46 * + col0 AS col1, 13 AS col2 FROM tab0 cor0
----
1395
13
14065
13
4872
13

onlyif mysql # DIV for integer division: 
query I rowsort label-6663
SELECT DISTINCT 32 - + col1 DIV + + ( - 78 ) FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-6663
SELECT DISTINCT 32 - + col1 / + + ( - 78 ) FROM tab1 AS cor0
----
32

query I rowsort
SELECT - col2 + col1 * + 80 + + + ( + 64 ) AS col1 FROM tab1 AS cor0
----
1088
3756
405

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 WHERE - 6 NOT BETWEEN - 10 AND - col0
----
-3

skipif mysql # not compatible
query I rowsort label-6665
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE - 6 NOT BETWEEN - 10 AND - col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6666
SELECT ALL ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 WHERE - + col2 NOT IN ( col0 + - + col2 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6666
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 WHERE - + col2 NOT IN ( col0 + - + col2 )
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT ALL + col0 * 98 FROM tab0 AS cor0 WHERE col0 NOT IN ( + col1 )
----
1470
8526
9506

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

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

query I rowsort
SELECT ALL - - col0 * + 92 + - 78 AS col0 FROM tab2 WHERE - col1 IS NOT NULL
----
4154
5810
6822

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT - COUNT( * ) * - 56 FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-6672
SELECT - COUNT ( * ) * - 56 FROM tab2
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6673
SELECT ALL * FROM tab2 WHERE + col1 + 46 * - CAST( NULL AS SIGNED ) NOT IN ( - 67 + - ( - 73 ) )
----

skipif mysql # not compatible
query III rowsort label-6673
SELECT ALL * FROM tab2 WHERE + col1 + 46 * - CAST ( NULL AS INTEGER ) NOT IN ( - 67 + - ( - 73 ) )
----

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6677
SELECT COUNT( * ) DIV 73 * COUNT( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
0

skipif mysql # not compatible
query I rowsort label-6677
SELECT COUNT ( * ) / 73 * COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6680
SELECT ALL + + col1 DIV 80 + - + col1 FROM tab0 AS cor0
----
-1
-21
-80

skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL + + col1 / 80 + - + col1 FROM tab0 AS cor0
----
-1
-21
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT 32 * + + COUNT( + - 50 ) FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6681
SELECT 32 * + + COUNT ( + - 50 ) FROM tab2 AS cor0
----
96

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

skipif mysql # not compatible
query I rowsort label-6682
SELECT - - CAST ( NULL AS INTEGER ) * 20 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT ALL - MIN( col1 ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-6683
SELECT ALL - MIN ( col1 ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-4

query I rowsort
SELECT 12 - + col0 FROM tab2 AS cor0
----
-34
-52
-63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6685
SELECT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6685
SELECT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) = CAST ( NULL AS INTEGER )
----

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

query I rowsort
SELECT + col1 + + - col2 + - col0 * col2 FROM tab2
----
-1030
-2523
-4341

query I rowsort
SELECT DISTINCT - 56 + - 19 * + - col0 AS col1 FROM tab0
----
1597
1787
229

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

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

query II rowsort
SELECT ALL + col1 * - col2 AS col0, + col1 * - 37 FROM tab2 AS cor0
----
-1173
-1887
-3080
-2849
-3886
-2479

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 + col0 * 63 - + - col2 * - col1 IN ( 16, 73 + - col0, + - 40, 5 * - col0 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6693
SELECT ALL - + CAST( NULL AS SIGNED ) * - + CAST( - + col0 AS SIGNED ) * + col2 + - col1 / + 55 - + + col2 - - - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= - 74
----

skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL - + CAST ( NULL AS INTEGER ) * - + CAST ( - + col0 AS INTEGER ) * + col2 + - col1 / + 55 - + + col2 - - - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= - 74
----

query II rowsort
SELECT + col1 * ( + - 79 ) AS col2, + col0 FROM tab1 AS cor0
----
-1106
51
-3713
91
-395
85

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6697
SELECT + ( col2 ) DIV col2, - 18 col1 FROM tab1 AS cor0
----
1
-18
1
-18
1
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6697
SELECT + ( col2 ) / col2, - 18 col1 FROM tab1 AS cor0
----
1
-18
1
-18
1
-18

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6699
SELECT ALL - - CAST( + col1 AS SIGNED ) FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-6699
SELECT ALL - - CAST ( + col1 AS INTEGER ) FROM tab0 cor0
----
1
21
81

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

query I rowsort
SELECT DISTINCT - 25 FROM tab2 WHERE ( - col1 = col2 + + ( + col1 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6702
SELECT DISTINCT + + COUNT( ALL + 37 ) AS col0, + COUNT( DISTINCT - - col0 ) - + 43 AS col2 FROM tab1 AS cor0
----
3
-40

skipif mysql # not compatible
query II rowsort label-6702
SELECT DISTINCT + + COUNT ( ALL + 37 ) AS col0, + COUNT ( DISTINCT - - col0 ) - + 43 AS col2 FROM tab1 AS cor0
----
3
-40

query I rowsort
SELECT 25 + - 78 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

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

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

query I rowsort
SELECT - 61 + - col0 FROM tab1 AS cor0
----
-112
-146
-152

query I rowsort
SELECT - ( + col1 ) FROM tab2 AS cor0 WHERE + 23 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT ALL + ( + SUM( 5 ) ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6707
SELECT ALL + ( + SUM ( 5 ) ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT DISTINCT + MAX( 83 ) - - COUNT( + + ( - ( 83 ) ) ) FROM tab0 cor0
----
86

skipif mysql # not compatible
query I rowsort label-6708
SELECT DISTINCT + MAX ( 83 ) - - COUNT ( + + ( - ( 83 ) ) ) FROM tab0 cor0
----
86

query I rowsort
SELECT ALL - 33 + - 89 FROM tab0 AS cor0 WHERE 99 IS NULL
----

query I rowsort
SELECT + 33 * + ( col1 ) AS col1 FROM tab1
----
1551
165
462

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6712
SELECT MIN( DISTINCT - - 16 ) + - 78 + + - 23, - 92 AS col1 FROM tab2 WHERE NULL IN ( + col2 + - 53 + - col1 + + col0, col1, - - col2, - 62 + - col2 * - CAST( NULL AS SIGNED ), + - col0 )
----
NULL
-92

skipif mysql # not compatible
query II rowsort label-6712
SELECT MIN ( DISTINCT - - 16 ) + - 78 + + - 23, - 92 AS col1 FROM tab2 WHERE NULL IN ( + col2 + - 53 + - col1 + + col0, col1, - - col2, - 62 + - col2 * - CAST ( NULL AS INTEGER ), + - col0 )
----
NULL
-92

query I rowsort
SELECT ALL + 17 * + - col2 FROM tab0
----
-1683
-170
-799

query I rowsort
SELECT - 99 * 60 AS col0 FROM tab2
----
-5940
-5940
-5940

query I rowsort
SELECT DISTINCT ( 23 ) + + col1 * col2 + + col1 FROM tab2
----
1247
3180
3976

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

query I rowsort
SELECT + 7 * - col1 - - ( + + col0 ) + + col2 + + ( - + col0 ) FROM tab0
----
-137
-520
92

query I rowsort
SELECT col0 - + 70 AS col1 FROM tab2
----
-24
-6
5

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 53 * + col0 - - - col2 <= - - 85 + + 56 - - + col0 * - - 75 + - 46
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 77 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT DISTINCT MIN( - - 26 ) AS col0 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-6722
SELECT DISTINCT MIN ( - - 26 ) AS col0 FROM tab2
----
26

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6724
SELECT + ( + MIN( DISTINCT - col2 ) ) DIV + ( + MAX( + 24 ) ) AS col1 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-6724
SELECT + ( + MIN ( DISTINCT - col2 ) ) / + ( + MAX ( + 24 ) ) AS col1 FROM tab2 AS cor0
----
-2

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6727
SELECT 46 col1, COUNT( * ) AS col0 FROM tab2
----
46
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6727
SELECT 46 col1, COUNT ( * ) AS col0 FROM tab2
----
46
3

query I rowsort
SELECT ALL - 51 + 9 FROM tab2
----
-42
-42
-42

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6731
SELECT + + col0 * - col2 + - col1 + + + CAST( + 8 AS SIGNED ) AS col0 FROM tab1 WHERE col1 * - + col0 IS NOT NULL
----
-4902
-5012
-6227

skipif mysql # not compatible
query I rowsort label-6731
SELECT + + col0 * - col2 + - col1 + + + CAST ( + 8 AS INTEGER ) AS col0 FROM tab1 WHERE col1 * - + col0 IS NOT NULL
----
-4902
-5012
-6227

query I rowsort
SELECT DISTINCT 3 + - - 37 AS col2 FROM tab0
----
40

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

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

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

query I rowsort
SELECT 74 FROM tab2 cor0 WHERE + col0 * + col0 * + 46 >= - col0 / + ( + 69 ) - + + col0
----
74
74
74

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6737
SELECT + + 5 DIV - 90 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6737
SELECT + + 5 / - 90 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + 37 - - ( 46 ) AS col0 FROM tab2 AS cor0
----
83
83
83

query I rowsort
SELECT DISTINCT + col1 + + col1 AS col1 FROM tab0 cor0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT DISTINCT + + ( + - MIN( DISTINCT + col0 ) ) - - SUM( ALL + ( ( - col2 ) ) ) FROM tab1 AS cor0
----
-274

skipif mysql # not compatible
query I rowsort label-6740
SELECT DISTINCT + + ( + - MIN ( DISTINCT + col0 ) ) - - SUM ( ALL + ( ( - col2 ) ) ) FROM tab1 AS cor0
----
-274

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

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

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

query I rowsort
SELECT col1 AS col1 FROM tab1 cor0 WHERE NULL >= NULL
----

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

skipif mysql # not compatible
query II rowsort label-6744
SELECT + CAST ( NULL AS INTEGER ) + + - col0, col1 AS col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6747
SELECT DISTINCT + COUNT( * ) AS col1, - 84 AS col1 FROM tab1
----
3
-84

skipif mysql # not compatible
query II rowsort label-6747
SELECT DISTINCT + COUNT ( * ) AS col1, - 84 AS col1 FROM tab1
----
3
-84

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

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

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

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

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

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

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

query I rowsort
SELECT - - 81 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6753
SELECT DISTINCT CAST( NULL AS DECIMAL ) / COUNT( * ) AS col2, - 89 FROM tab2
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-6753
SELECT DISTINCT CAST ( NULL AS REAL ) / COUNT ( * ) AS col2, - 89 FROM tab2
----
NULL
-89

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT DISTINCT + 51 * + 63 - + COUNT( * ) * + ( + 91 ) AS col1 FROM tab0 AS cor0
----
2940

skipif mysql # not compatible
query I rowsort label-6757
SELECT DISTINCT + 51 * + 63 - + COUNT ( * ) * + ( + 91 ) AS col1 FROM tab0 AS cor0
----
2940

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

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

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

query I rowsort
SELECT col0 * + 47 FROM tab0
----
4089
4559
705

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT ALL MIN( + col0 ) + - - 11 AS col2 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL MIN ( + col0 ) + - - 11 AS col2 FROM tab1
----
62

query I rowsort
SELECT ALL + col0 * col1 * col1 * + col1 + - 73 AS col0 FROM tab1
----
10552
139871
9447820

onlyif mysql # DIV for integer division: 
query I rowsort label-6763
SELECT ALL - 28 + col1 - + col0 DIV + 28 FROM tab2
----
22
37
47

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL - 28 + col1 - + col0 / + 28 FROM tab2
----
22
37
47

query I rowsort
SELECT ALL + 95 + 24 AS col1 FROM tab1
----
119
119
119

onlyif mysql # aggregate syntax: 
query II rowsort label-6765
SELECT - COUNT( * ) * - 86 AS col0, - COUNT( * ) FROM tab1 AS cor0
----
258
-3

skipif mysql # not compatible
query II rowsort label-6765
SELECT - COUNT ( * ) * - 86 AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
258
-3

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

query I rowsort
SELECT + col1 + + 45 - - col1 FROM tab1
----
139
55
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT ALL COUNT( * ) + - 78 * + 34 FROM tab0
----
-2649

skipif mysql # not compatible
query I rowsort label-6768
SELECT ALL COUNT ( * ) + - 78 * + 34 FROM tab0
----
-2649

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6769
SELECT DISTINCT + CAST( - + col2 AS SIGNED ) + - 76 FROM tab1 AS cor0
----
-135
-144
-172

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

query I rowsort
SELECT DISTINCT + 90 * + col2 - col0 + + + col1 FROM tab0 AS cor0
----
4296
834
8814

query I rowsort
SELECT ALL + - 66 + + - col0 AS col2 FROM tab1 AS cor0
----
-117
-151
-157

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6773
SELECT 3 AS col1, - MAX( DISTINCT 63 ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
3
-63

skipif mysql # not compatible
query II rowsort label-6773
SELECT 3 AS col1, - MAX ( DISTINCT 63 ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
3
-63

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

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

skipif mysql # not compatible
query I rowsort label-6775
SELECT ( - 69 ) * COUNT ( * ) AS col0 FROM tab2
----
-207

query I rowsort
SELECT - 84 - 82 AS col1 FROM tab2 WHERE NOT - + 13 * - 6 * - + 98 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6778
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + ( CAST( NULL AS SIGNED ) ) ) NOT BETWEEN NULL AND - col2
----

skipif mysql # not compatible
query III rowsort label-6778
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + ( CAST ( NULL AS INTEGER ) ) ) NOT BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6779
SELECT ALL SUM( + + 55 ) + COUNT( * ) DIV + - 67 AS col1 FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-6779
SELECT ALL SUM ( + + 55 ) + COUNT ( * ) / + - 67 AS col1 FROM tab1 AS cor0
----
165

query I rowsort
SELECT ALL col1 * 90 AS col0 FROM tab0 cor0
----
1890
7290
90

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

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

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

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

query I rowsort
SELECT + col2 * - 69 AS col2 FROM tab1
----
-4071
-4692
-6624

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

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

query I rowsort
SELECT col2 + 14 * + col1 + + - 37 FROM tab0
----
1144
267
76

query I rowsort
SELECT DISTINCT - col0 * + + col2 + - col0 AS col0 FROM tab1
----
-4947
-5100
-6279

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

skipif mysql # not compatible
query I rowsort label-6788
SELECT ALL - COUNT ( * ) + 28 * + COUNT ( * ) FROM tab0
----
81

query I rowsort
SELECT DISTINCT ( + 69 ) + + col0 * 87 FROM tab0
----
1374
7638
8508

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 + + - ( - col2 ) * + col0 * - ( + 97 ) col2 FROM tab2
----
-102536
-248230
-421860

onlyif mysql # DIV for integer division: 
query II rowsort label-6791
SELECT + col2 * - 17 * 92 * - col2 + - col2 * 91, col0 DIV - - col2 col0 FROM tab2 AS cor0
----
2498760
1
5256018
1
825263
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6791
SELECT + col2 * - 17 * 92 * - col2 + - col2 * 91, col0 / - - col2 col0 FROM tab2 AS cor0
----
2498760
1
5256018
1
825263
2

query I rowsort
SELECT - - 69 FROM tab1 AS cor0 WHERE - 5 + + col0 * - 57 + col0 IS NOT NULL
----
69
69
69

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

query I rowsort
SELECT ALL + 50 - + - col2 * col2 AS col1 FROM tab0
----
150
2259
9851

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT ALL ( - 17 ) + 29 - - COUNT( * ) AS col2 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-6795
SELECT ALL ( - 17 ) + 29 - - COUNT ( * ) AS col2 FROM tab0 cor0
----
15

query I rowsort
SELECT col1 - + 18 AS col1 FROM tab1 AS cor0
----
-13
-4
29

query I rowsort
SELECT 18 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 AND + - col1
----

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

query I rowsort
SELECT ALL - ( 86 ) AS col1 FROM tab2 AS cor0
----
-86
-86
-86

query I rowsort
SELECT + col1 * - 45 + - col1 FROM tab0 AS cor0
----
-3726
-46
-966

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

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

query I rowsort
SELECT ALL ( + 97 ) AS col1 FROM tab2
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT 29 * + - COUNT( * ) * + - 97 AS col2 FROM tab1
----
8439

skipif mysql # not compatible
query I rowsort label-6803
SELECT 29 * + - COUNT ( * ) * + - 97 AS col2 FROM tab1
----
8439

query II rowsort
SELECT DISTINCT col2, + 28 AS col1 FROM tab2
----
23
28
40
28
58
28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6805
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * - + 77 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6805
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - + 77 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6806
SELECT + CAST( + SUM( ALL + 64 ) AS SIGNED ) AS col0 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-6806
SELECT + CAST ( + SUM ( ALL + 64 ) AS INTEGER ) AS col0 FROM tab2
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-6807
SELECT ALL 17 DIV + 74 + - 87 + 32 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

skipif mysql # not compatible
query I rowsort label-6807
SELECT ALL 17 / + 74 + - 87 + 32 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

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

query I rowsort
SELECT 15 * - + col1 FROM tab0
----
-1215
-15
-315

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + - col2, col2 col2 FROM tab0
----
0
10
0
47
0
99

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

query I rowsort
SELECT DISTINCT - + col1 + + col2 * - col1 FROM tab2 AS cor0
----
-1224
-3157
-3953

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT ALL 54 + + 81 * - - COUNT( ALL - col2 ) FROM tab1 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-6813
SELECT ALL 54 + + 81 * - - COUNT ( ALL - col2 ) FROM tab1 AS cor0
----
297

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

query I rowsort
SELECT + 91 + - - ( - col0 ) AS col0 FROM tab1 AS cor0
----
0
40
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6816
SELECT + 95 + CAST( NULL AS SIGNED ), + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-6816
SELECT + 95 + CAST ( NULL AS INTEGER ), + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT ALL + - 67 FROM tab0 cor0
----
-67
-67
-67

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6820
SELECT col2 + + col1 DIV + 91 col1 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6820
SELECT col2 + + col1 / + 91 col1 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
23
40
58

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 <= + + 51
----
46
51
23

query I rowsort
SELECT DISTINCT col1 + - 16 FROM tab2
----
35
51
61

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6825
SELECT ALL + 89 DIV + - 88 + - ( col1 ) AS col1 FROM tab1
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-6825
SELECT ALL + 89 / + - 88 + - ( col1 ) AS col1 FROM tab1
----
-15
-48
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT SUM( ALL 83 ) FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-6826
SELECT SUM ( ALL 83 ) FROM tab0
----
249

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT col1 + - + col0 < - 83 / + 86 - + + 17
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT + SUM( 42 ) + 52 - + 87 FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-6828
SELECT + SUM ( 42 ) + 52 - + 87 FROM tab2
----
91

query I rowsort
SELECT ALL - 55 * - 19 AS col1 FROM tab0
----
1045
1045
1045

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6831
SELECT DISTINCT - + col0 DIV + - col2 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6831
SELECT DISTINCT - + col0 / + - col2 AS col1 FROM tab1 AS cor0
----
0
1

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

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

skipif mysql # not compatible
query II rowsort label-6833
SELECT DISTINCT + + 68, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
68
3

query I rowsort
SELECT ALL 38 * + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-1938
-3230
-3458

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT DISTINCT - MIN( col0 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6837
SELECT DISTINCT - MIN ( col0 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT 46 / + - ( col0 ) AS col1 FROM tab2 WHERE NOT + col0 >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT - COUNT( * ) * + 63 FROM tab1 WHERE NOT + col0 >= + 89
----
-126

skipif mysql # not compatible
query I rowsort label-6839
SELECT - COUNT ( * ) * + 63 FROM tab1 WHERE NOT + col0 >= + 89
----
-126

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6841
SELECT DISTINCT - col1 DIV - + 33 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-6841
SELECT DISTINCT - col1 / - + 33 FROM tab2 AS cor0
----
1
2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 + + + 30 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6843
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-6843
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL <> CAST ( NULL AS INTEGER )
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 20 NOT IN ( + - 8, + col2, - 1, + - ( - 46 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT ALL + 44 + - MIN( DISTINCT + ( - + col2 ) ) AS col0 FROM tab0 AS cor0
----
143

skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL + 44 + - MIN ( DISTINCT + ( - + col2 ) ) AS col0 FROM tab0 AS cor0
----
143

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6850
SELECT - + ( + + 20 ) DIV - + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6850
SELECT - + ( + + 20 ) / - + col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT COUNT( * ) - 32 AS col0 FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-6851
SELECT COUNT ( * ) - 32 AS col0 FROM tab2 AS cor0
----
-29

query I rowsort
SELECT + col2 + + + 60 AS col2 FROM tab1 AS cor0
----
119
128
156

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

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

skipif mysql # not compatible
query I rowsort label-6854
SELECT AVG ( ALL + col1 ) + - CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - col0 + - - col2 AS col1 FROM tab0
----
-77
2
32

query I rowsort
SELECT ALL - col2 + + 94 AS col0 FROM tab1
----
-2
26
35

query I rowsort
SELECT - 5 + - + col2 AS col0 FROM tab0
----
-104
-15
-52

query I rowsort
SELECT ALL + 29 FROM tab1 AS cor0 WHERE 19 * - - col1 IS NOT NULL
----
29
29
29

query I rowsort
SELECT - col2 * + col2 + + 88 FROM tab1 cor0
----
-3393
-4536
-9128

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

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

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

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

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

query I rowsort
SELECT - - 10 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT - COUNT( DISTINCT + + 75 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6864
SELECT - COUNT ( DISTINCT + + 75 ) FROM tab0
----
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 89 - - + 91 + + 23 = - + col1
----

query I rowsort
SELECT - col1 * 69 - + 22 FROM tab1 AS cor0
----
-3265
-367
-988

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6868
SELECT ALL 12 DIV - - 58 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL 12 / - - 58 FROM tab1 AS cor0
----
0
0
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6870
SELECT ALL 74 DIV - ( + - col1 ) AS col0 FROM tab1
----
1
14
5

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL 74 / - ( + - col1 ) AS col0 FROM tab1
----
1
14
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT - ( - + MAX( + + col0 ) ) * - MAX( ALL + - col2 ) AS col1 FROM tab0
----
970

skipif mysql # not compatible
query I rowsort label-6873
SELECT - ( - + MAX ( + + col0 ) ) * - MAX ( ALL + - col2 ) AS col1 FROM tab0
----
970

query I rowsort
SELECT DISTINCT + 56 + + + col1 FROM tab1
----
103
61
70

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6876
SELECT ALL ( + col1 ) + + 21 DIV - col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6876
SELECT ALL ( + col1 ) + + 21 / - col1 FROM tab2
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 58 * + col0 + + col1 * + ( - col0 ) AS col1, - 15 col0 FROM tab1
----
1001
-15
2244
-15
4505
-15

query I rowsort
SELECT 43 * - col1 * - - 44 * 25 AS col2 FROM tab1
----
-2223100
-236500
-662200

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT ALL - 50 + + 11 + ( + COUNT( * ) ) FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-6879
SELECT ALL - 50 + + 11 + ( + COUNT ( * ) ) FROM tab1
----
-36

query I rowsort
SELECT ( - 51 ) * col1 FROM tab2
----
-2601
-3417
-3927

query I rowsort
SELECT + 22 * 98 - 46 AS col1 FROM tab2
----
2110
2110
2110

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

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

query I rowsort
SELECT - 68 - col0 AS col1 FROM tab0 AS cor0
----
-155
-165
-83

query I rowsort
SELECT + col0 + 77 AS col0 FROM tab1 AS cor0
----
128
162
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6885
SELECT ALL COUNT( * ) * + CAST( AVG ( + col0 ) AS SIGNED ) - + COUNT( * ) + + - COUNT( * ) AS col2 FROM tab0 cor0
----
192

skipif mysql # not compatible
query I rowsort label-6885
SELECT ALL COUNT ( * ) * + CAST ( AVG ( + col0 ) AS INTEGER ) - + COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab0 cor0
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6886
SELECT - - col1 * 47 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 < col0 / - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6886
SELECT - - col1 * 47 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 < col0 / - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT ALL MAX( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 * + + 83 < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL MAX ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 * + + 83 < ( NULL )
----
NULL

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

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

query I rowsort
SELECT col1 FROM tab1 WHERE col0 IN ( - col2 * + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN col2 * col2 AND 12 + 65
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6891
SELECT DISTINCT - 75 + CAST( - col0 AS SIGNED ) FROM tab0
----
-162
-172
-90

skipif mysql # not compatible
query I rowsort label-6891
SELECT DISTINCT - 75 + CAST ( - col0 AS INTEGER ) FROM tab0
----
-162
-172
-90

query I rowsort
SELECT DISTINCT + col0 - + col0 * - 78 AS col0 FROM tab0
----
1185
6873
7663

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6894
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE 59 > ( 20 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6894
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE 59 > ( 20 + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + 64 FROM tab1 WHERE NOT - col2 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT COUNT( * ) + COUNT( * ) AS col2 FROM tab1 WHERE NOT - col1 BETWEEN ( - col0 ) AND col0 * ( 80 * - 70 )
----
6

skipif mysql # not compatible
query I rowsort label-6896
SELECT COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 WHERE NOT - col1 BETWEEN ( - col0 ) AND col0 * ( 80 * - 70 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT DISTINCT ( - MIN( DISTINCT - ( + col2 ) ) ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-6897
SELECT DISTINCT ( - MIN ( DISTINCT - ( + col2 ) ) ) FROM tab2
----
58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 36 >= - col0 + + col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT + 34 * - 74 + COUNT( * ) FROM tab2 WHERE NOT + col1 IN ( 14 * col2 )
----
-2513

skipif mysql # not compatible
query I rowsort label-6901
SELECT + 34 * - 74 + COUNT ( * ) FROM tab2 WHERE NOT + col1 IN ( 14 * col2 )
----
-2513

query I rowsort
SELECT ALL - col2 * 66 FROM tab0
----
-3102
-6534
-660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6903
SELECT col2 FROM tab1 WHERE ( + 73 ) BETWEEN - 52 AND ( - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6903
SELECT col2 FROM tab1 WHERE ( + 73 ) BETWEEN - 52 AND ( - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6904
SELECT + 47 + + 52 DIV col1 FROM tab0
----
47
49
99

skipif mysql # not compatible
query I rowsort label-6904
SELECT + 47 + + 52 / col1 FROM tab0
----
47
49
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT + ( - ( - MAX( 53 ) ) ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-6905
SELECT + ( - ( - MAX ( 53 ) ) ) FROM tab2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT ALL - SUM( ALL 25 ) AS col0 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL - SUM ( ALL 25 ) AS col0 FROM tab0 AS cor0
----
-75

query I rowsort
SELECT col2 + - 30 AS col1 FROM tab1 AS cor0
----
29
38
66

query I rowsort
SELECT DISTINCT + 95 * ( 77 * col1 ) FROM tab2 AS cor0
----
373065
490105
563255

query I rowsort
SELECT - col0 + 51 * 11 FROM tab0 cor0
----
464
474
546

query III rowsort
SELECT * FROM tab2 cor0 WHERE 3 / 27 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-6911
SELECT ALL COUNT ( * ) / 5 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6912
SELECT 36 DIV - SUM( DISTINCT 31 * col0 ) col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6912
SELECT 36 / - SUM ( DISTINCT 31 * col0 ) col1 FROM tab2
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT DISTINCT 25 * COUNT( * ) FROM tab0 WHERE col1 >= + col1
----
75

skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT 25 * COUNT ( * ) FROM tab0 WHERE col1 >= + col1
----
75

query I rowsort
SELECT + 72 * - col2 - + col2 * 96 AS col0 FROM tab1 AS cor0
----
-11424
-16128
-9912

query I rowsort
SELECT DISTINCT + col2 - - col0 * + col2 AS col1 FROM tab1 AS cor0
----
4992
5074
6256

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

query I rowsort
SELECT - - col0 + - 90 FROM tab0 AS cor0
----
-3
-75
7

query I rowsort
SELECT col0 + ( - col1 + - col2 * + col1 ) * - 53 FROM tab1 AS cor0
----
15985
171970
72025

query I rowsort
SELECT - col2 * - col2 + - col0 FROM tab0 AS cor0
----
13
2194
9704

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT ( + COUNT( * ) ) + + 16 AS col2 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-6922
SELECT ( + COUNT ( * ) ) + + 16 AS col2 FROM tab2
----
19

query III rowsort
SELECT * FROM tab1 WHERE - col1 * + col1 + - col2 * - col0 IN ( ( 29 ) * - col0 + 45 )
----

query I rowsort
SELECT 12 + + - 92 FROM tab0
----
-80
-80
-80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6925
SELECT DISTINCT + 16 DIV col2 - + CAST( col1 AS SIGNED ) DIV col2 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT + 16 / col2 - + CAST ( col1 AS INTEGER ) / col2 FROM tab2
----
-1
-2

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NOT - ( + col1 ) IN ( 69 )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT DISTINCT - COUNT( + col2 ) + 23 AS col2 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-6927
SELECT DISTINCT - COUNT ( + col2 ) + 23 AS col2 FROM tab2
----
20

query I rowsort
SELECT col2 + + col1 + 14 * + col2 * - col1 AS col1 FROM tab0
----
-1286
-2909
-53170

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT - COUNT( + + 76 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6929
SELECT - COUNT ( + + 76 ) FROM tab0
----
-3

query I rowsort
SELECT + ( 52 ) FROM tab0 cor0
----
52
52
52

query I rowsort
SELECT col0 * + 90 - - 31 * + 84 AS col1 FROM tab0 AS cor0
----
10434
11334
3954

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT - MIN( - col1 ) AS col0 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-6932
SELECT - MIN ( - col1 ) AS col0 FROM tab1 cor0
----
47

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

skipif mysql # not compatible
query I rowsort label-6933
SELECT ALL + COUNT ( * ) * - 23 FROM tab2
----
-69

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6936
SELECT + col1 DIV + + 83 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6936
SELECT + col1 / + + 83 FROM tab2
----
0
0
0

query I rowsort
SELECT - - 81 * + col0 * 59 * - col1 - col1 FROM tab0 AS cor0
----
-463564
-5806566
-8731254

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

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

query I rowsort
SELECT col2 * - 7 + 77 AS col1 FROM tab1 AS cor0
----
-336
-399
-595

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 BETWEEN - + col2 AND - 64 + - col2 * - col1
----

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT 39 NOT BETWEEN + col1 AND col2
----

query I rowsort
SELECT + - col0 * + 82 FROM tab0 AS cor0
----
-1230
-7134
-7954

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6944
SELECT DISTINCT - col0 * + col2 + - col2 DIV col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-6944
SELECT DISTINCT - col0 * + col2 + - col2 / col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

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

skipif mysql # not compatible
query I rowsort label-6945
SELECT - - ( + + 44 ) + - - COUNT ( * ) + - ( MIN ( ALL col1 ) ) AS col2 FROM tab1 AS cor0
----
42

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

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

query II rowsort
SELECT DISTINCT col0, ( + 54 ) * 66 FROM tab0 cor0
----
15
3564
87
3564
97
3564

query I rowsort
SELECT DISTINCT col2 * - col0 FROM tab0 WHERE col0 * - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE ( + 21 ) <> ( 17 )
----
-23
-40
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6950
SELECT DISTINCT * FROM tab1 WHERE 79 NOT IN ( + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-6950
SELECT DISTINCT * FROM tab1 WHERE 79 NOT IN ( + CAST ( NULL AS REAL ) )
----

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6952
SELECT DISTINCT CAST( + 69 AS SIGNED ) DIV - 68 + 39 + + col0 FROM tab0
----
125
135
53

skipif mysql # not compatible
query I rowsort label-6952
SELECT DISTINCT CAST ( + 69 AS INTEGER ) / - 68 + 39 + + col0 FROM tab0
----
125
135
53

query I rowsort
SELECT ALL 15 + 33 + + - col1 AS col1 FROM tab0
----
-33
27
47

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 82 + col0 + col0 NOT IN ( col0 / - 53 - + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 87 * + 47 FROM tab2 AS cor0
----
4089

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

skipif mysql # not compatible
query III rowsort label-6957
SELECT ALL * FROM tab2 cor0 WHERE ( ( ( CAST ( NULL AS INTEGER ) ) < NULL ) )
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 * col2 col2 FROM tab0 AS cor0
----
-2068
-4356
-440

query III rowsort
SELECT * FROM tab1 WHERE - ( 42 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6962
SELECT ALL - CAST( 78 AS SIGNED ) col1 FROM tab0
----
-78
-78
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6962
SELECT ALL - CAST ( 78 AS INTEGER ) col1 FROM tab0
----
-78
-78
-78

query I rowsort
SELECT ALL 91 - - 57 FROM tab2 AS cor0
----
148
148
148

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

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

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

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

query I rowsort
SELECT DISTINCT + - col1 - + col0 FROM tab0 cor0
----
-108
-96
-98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 52 * + col2 + 42 + + 50 * 87 * - 52 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT DISTINCT - col1 - - 77 * + 30 AS col0 FROM tab2
----
2233
2243
2259

query I rowsort
SELECT 50 * col1 AS col1 FROM tab1
----
2350
250
700

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT + COUNT( - - 25 ) * - 52 FROM tab2
----
-156

skipif mysql # not compatible
query I rowsort label-6972
SELECT + COUNT ( - - 25 ) * - 52 FROM tab2
----
-156

query I rowsort
SELECT DISTINCT col0 * + 79 FROM tab2
----
3634
5056
5925

onlyif mysql # aggregate syntax: 
query II rowsort label-6974
SELECT ALL MAX( - - col2 ) * + ( 19 ) AS col1, + SUM( + - 38 ) * - COUNT( * ) AS col2 FROM tab2
----
1102
342

skipif mysql # not compatible
query II rowsort label-6974
SELECT ALL MAX ( - - col2 ) * + ( 19 ) AS col1, + SUM ( + - 38 ) * - COUNT ( * ) AS col2 FROM tab2
----
1102
342

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6975
SELECT ALL + + 50 DIV COUNT( * ) + + 38 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-6975
SELECT ALL + + 50 / COUNT ( * ) + + 38 FROM tab1 AS cor0
----
54

query I rowsort
SELECT + - 44 * + col2 * + col0 FROM tab0 AS cor0
----
-31020
-38280
-422532

query II rowsort
SELECT col0, col2 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
51
96
85
59
91
68

query I rowsort
SELECT DISTINCT - - ( + - 99 ) FROM tab2 AS cor0 WHERE NULL >= + 78 / + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6979
SELECT + 78 DIV - col1 FROM tab1 AS cor0
----
-1
-15
-5

skipif mysql # not compatible
query I rowsort label-6979
SELECT + 78 / - col1 FROM tab1 AS cor0
----
-1
-15
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6980
SELECT * FROM tab0 AS cor0 WHERE NOT ( + + 70 IN ( - CAST( NULL AS SIGNED ) / 48 ) )
----

skipif mysql # not compatible
query III rowsort label-6980
SELECT * FROM tab0 AS cor0 WHERE NOT ( + + 70 IN ( - CAST ( NULL AS INTEGER ) / 48 ) )
----

query I rowsort
SELECT DISTINCT - AVG ( ALL 96 ) + - 48 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( col2 ) AND ( 53 ) - - - ( 90 )
----
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6983
SELECT CAST( NULL AS DECIMAL ) * 8 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-6983
SELECT CAST ( NULL AS REAL ) * 8 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6984
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----
0

query I rowsort
SELECT DISTINCT col2 + + + 15 AS col2 FROM tab0
----
114
25
62

query I rowsort
SELECT col0 + - ( 31 ) AS col2 FROM tab1
----
20
54
60

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

query I rowsort
SELECT ALL col2 + + - col2 FROM tab1 AS cor0 WHERE col1 + - col2 + - col1 IN ( + col1 )
----

query I rowsort
SELECT - col0 * - 29 * + - col2 + col0 AS col2 FROM tab2 AS cor0
----
-126075
-30636
-74176

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

query I rowsort
SELECT - - ( col0 ) AS col0 FROM tab0 WHERE ( NULL <> 75 )
----

query I rowsort
SELECT + + col2 + - 19 FROM tab0 WHERE 8 * - - 76 IS NOT NULL
----
-9
28
80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT DISTINCT 50 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-6994
SELECT DISTINCT 50 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
53

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

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

query II rowsort
SELECT 85 + + col1 AS col1, col0 + col1 FROM tab0 AS cor0
----
106
108
166
96
86
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6997
SELECT ALL - - CAST( 92 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * - col0 >= ( 56 ) + + - col0
----

skipif mysql # not compatible
query I rowsort label-6997
SELECT ALL - - CAST ( 92 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - col0 >= ( 56 ) + + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT DISTINCT - - ( + COUNT( * ) ) * - - 50 * + 1 FROM tab0 AS cor0
----
150

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT - COUNT( * ) * + 37 FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-6999
SELECT - COUNT ( * ) * + 37 FROM tab0
----
-111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 98 * col2 col1 FROM tab0
----
4606
9702
980

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

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

skipif mysql # not compatible
query I rowsort label-7002
SELECT DISTINCT COUNT ( * ) * - + 38 FROM tab0
----
-114

query I rowsort
SELECT DISTINCT col2 * + 52 AS col0 FROM tab2 WHERE NOT ( - col0 ) BETWEEN + col0 AND NULL
----
1196
2080
3016

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7006
SELECT DISTINCT - CAST( + + col1 AS SIGNED ) FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-7006
SELECT DISTINCT - CAST ( + + col1 AS INTEGER ) FROM tab0 AS cor0
----
-1
-21
-81

query II rowsort
SELECT DISTINCT 71, ( + col1 ) FROM tab1 AS cor0
----
71
14
71
47
71
5

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7009
SELECT ALL + + COUNT( * ) * + COUNT( DISTINCT + - col2 ) AS col1, 75 FROM tab1 AS cor0
----
9
75

skipif mysql # not compatible
query II rowsort label-7009
SELECT ALL + + COUNT ( * ) * + COUNT ( DISTINCT + - col2 ) AS col1, 75 FROM tab1 AS cor0
----
9
75

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

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

query I rowsort
SELECT ALL col0 * - - 23 AS col0 FROM tab1
----
1173
1955
2093

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7014
SELECT ALL + - col0 DIV ( + col0 ) AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7014
SELECT ALL + - col0 / ( + col0 ) AS col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7015
SELECT 28 + - CAST( + 94 AS SIGNED ) * - COUNT( * ) FROM tab1 AS cor0
----
310

skipif mysql # not compatible
query I rowsort label-7015
SELECT 28 + - CAST ( + 94 AS INTEGER ) * - COUNT ( * ) FROM tab1 AS cor0
----
310

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT + MAX( DISTINCT - - 85 ) + + 69 AS col1 FROM tab1 AS cor0
----
154

skipif mysql # not compatible
query I rowsort label-7017
SELECT + MAX ( DISTINCT - - 85 ) + + 69 AS col1 FROM tab1 AS cor0
----
154

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

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

skipif mysql # not compatible
query I rowsort label-7019
SELECT - COUNT ( * ) FROM tab2 WHERE col1 * + 59 * + col1 IS NULL
----
0

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

query II rowsort
SELECT DISTINCT - col0 + + - col0, col1 AS col1 FROM tab2
----
-128
77
-150
67
-92
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7022
SELECT DISTINCT CAST( - 14 AS SIGNED ) * 89 + - 87 FROM tab0
----
-1333

skipif mysql # not compatible
query I rowsort label-7022
SELECT DISTINCT CAST ( - 14 AS INTEGER ) * 89 + - 87 FROM tab0
----
-1333

query I rowsort
SELECT + 20 / + + col1 + + - col0 AS col0 FROM tab1 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL - + 36 + - - col1 FROM tab1 AS cor0
----
-22
-31
11

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

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

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

query I rowsort
SELECT DISTINCT - - ( + - 73 ) * + col0 + + 2 + col1 AS col2 FROM tab2 AS cor0
----
-3305
-4593
-5406

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

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

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

skipif mysql # not compatible
query I rowsort label-7031
SELECT - + SUM ( ALL - - col0 ) FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT ALL + 55 * ( - 36 ) * + COUNT( * ) * - 27 AS col0 FROM tab2 AS cor0
----
160380

skipif mysql # not compatible
query I rowsort label-7032
SELECT ALL + 55 * ( - 36 ) * + COUNT ( * ) * - 27 AS col0 FROM tab2 AS cor0
----
160380

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

query I rowsort
SELECT - 89 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= ( NULL )
----

query I rowsort
SELECT ALL - 19 * - + col1 FROM tab2
----
1273
1463
969

onlyif mysql # DIV for integer division: 
query II rowsort label-7036
SELECT ALL col2 DIV col0 AS col2, 64 AS col2 FROM tab1
----
0
64
0
64
1
64

skipif mysql # not compatible
query II rowsort label-7036
SELECT ALL col2 / col0 AS col2, 64 AS col2 FROM tab1
----
0
64
0
64
1
64

query I rowsort
SELECT 35 AS col2 FROM tab2 WHERE NOT 4 + + + 71 IN ( 6 )
----
35
35
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7038
SELECT - 95 * + COUNT( * ), 92 DIV - COUNT( * ) AS col2 FROM tab0
----
-285
-30

skipif mysql # not compatible
query II rowsort label-7038
SELECT - 95 * + COUNT ( * ), 92 / - COUNT ( * ) AS col2 FROM tab0
----
-285
-30

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT DISTINCT + SUM( - col1 ) * + 75 AS col2 FROM tab0 AS cor0
----
-7725

skipif mysql # not compatible
query I rowsort label-7040
SELECT DISTINCT + SUM ( - col1 ) * + 75 AS col2 FROM tab0 AS cor0
----
-7725

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7042
SELECT - AVG ( 66 ) + + ( - CAST( NULL AS SIGNED ) ) AS col1 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7042
SELECT - AVG ( 66 ) + + ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7044
SELECT DISTINCT 36, 39 DIV 65 * - 0 * col0 + + col1 * col0 * - col2 AS col1 FROM tab2
----
36
-197120
36
-291450
36
-53958

skipif mysql # not compatible
query II rowsort label-7044
SELECT DISTINCT 36, 39 / 65 * - 0 * col0 + + col1 * col0 * - col2 AS col1 FROM tab2
----
36
-197120
36
-291450
36
-53958

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

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

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

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

query II rowsort
SELECT ALL + 31, - col0 AS col0 FROM tab2
----
31
-46
31
-64
31
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7048
SELECT ALL 5 + - COUNT( - + col1 ) DIV - 69 AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL 5 + - COUNT ( - + col1 ) / - 69 AS col0 FROM tab1
----
5

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 / + col1 < + ( - col0 ) + + + 8
----

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 + - - 85 ) IS NULL
----

query II rowsort
SELECT ALL 81, - col0 AS col1 FROM tab0 WHERE - col1 + 95 - - - col2 IS NOT NULL
----
81
-15
81
-87
81
-97

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col1 AND + + col1
----

query I rowsort
SELECT DISTINCT - col2 - + col0 - - - col1 AS col2 FROM tab1 AS cor0
----
-149
-161
-206

query II rowsort
SELECT - + 46 + col0 AS col2, col1 / + - col1 AS col2 FROM tab2 AS cor0 WHERE NULL <> col1
----

query I rowsort
SELECT DISTINCT col1 * + 7 + col0 FROM tab0
----
104
234
582

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col2 * - col0 + 26 col1 FROM tab0 cor0
----
-33109
-8674
-950671

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7059
SELECT ALL COUNT( * ) AS col1, 95 AS col0 FROM tab0
----
3
95

skipif mysql # not compatible
query II rowsort label-7059
SELECT ALL COUNT ( * ) AS col1, 95 AS col0 FROM tab0
----
3
95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7060
SELECT ALL COUNT( * ) * + - CAST( NULL AS DECIMAL ) * 38 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7060
SELECT ALL COUNT ( * ) * + - CAST ( NULL AS REAL ) * 38 AS col0 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 32 IN ( - col1 * col1, 85 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT MIN( - 50 ) FROM tab0, tab1 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-7062
SELECT MIN ( - 50 ) FROM tab0, tab1 cor0
----
-50

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - 21 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT + COUNT( * ) * + SUM( DISTINCT col2 ) FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-7064
SELECT + COUNT ( * ) * + SUM ( DISTINCT col2 ) FROM tab0 AS cor0
----
468

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

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

query I rowsort
SELECT ALL - col0 * + - col0 + + col1 * col1 FROM tab2
----
10025
10114
4717

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > 89
----

query I rowsort
SELECT - - 73 + + 45 AS col2 FROM tab2 AS cor0
----
118
118
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7071
SELECT + + 45 * + - COUNT( - col0 ) + - 41 + - + CAST( - + 23 AS SIGNED ) FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-7071
SELECT + + 45 * + - COUNT ( - col0 ) + - 41 + - + CAST ( - + 23 AS INTEGER ) FROM tab0 AS cor0
----
-153

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT + 87 + - MIN( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-7074
SELECT + 87 + - MIN ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
72

query I rowsort
SELECT ALL - + col2 * + ( - ( - 92 ) ) AS col0 FROM tab1 cor0
----
-5428
-6256
-8832

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT + - 14 + 31 * + + SUM( - col1 ) FROM tab0 AS cor0
----
-3207

skipif mysql # not compatible
query I rowsort label-7077
SELECT + - 14 + 31 * + + SUM ( - col1 ) FROM tab0 AS cor0
----
-3207

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT ALL + 60 * COUNT( + col0 ) AS col2 FROM tab0 cor0
----
180

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL + 60 * COUNT ( + col0 ) AS col2 FROM tab0 cor0
----
180

query I rowsort
SELECT ALL - + 52 + - + 73 + col2 * - col0 + + col2 * + col0 FROM tab1 cor0
----
-125
-125
-125

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

skipif mysql # not compatible
query I rowsort label-7080
SELECT DISTINCT COUNT ( + 44 ) / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - 61 * col0 col1 FROM tab1
----
-298656
-305915
-377468

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7083
SELECT DISTINCT - COUNT( * ) DIV 3 FROM tab1 WHERE - col1 IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-7083
SELECT DISTINCT - COUNT ( * ) / 3 FROM tab1 WHERE - col1 IS NOT NULL
----
-1

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7086
SELECT + col2 DIV - - ( 76 ) - + 13 AS col0 FROM tab1
----
-12
-13
-13

skipif mysql # not compatible
query I rowsort label-7086
SELECT + col2 / - - ( 76 ) - + 13 AS col0 FROM tab1
----
-12
-13
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7087
SELECT CAST( + 83 AS SIGNED ) - col0 - + 58 FROM tab0 AS cor0
----
-62
-72
10

skipif mysql # not compatible
query I rowsort label-7087
SELECT CAST ( + 83 AS INTEGER ) - col0 - + 58 FROM tab0 AS cor0
----
-62
-72
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT - COUNT( * ) + + SUM( + + 47 ) FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-7088
SELECT - COUNT ( * ) + + SUM ( + + 47 ) FROM tab2 AS cor0
----
138

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7089
SELECT * FROM tab1 AS cor0 WHERE 2 IN ( - col2 * - 78, + col2 + - - ( - 5 ), + col0, - CAST( - col2 AS DECIMAL ) + + 76 * col2 )
----

skipif mysql # not compatible
query III rowsort label-7089
SELECT * FROM tab1 AS cor0 WHERE 2 IN ( - col2 * - 78, + col2 + - - ( - 5 ), + col0, - CAST ( - col2 AS REAL ) + + 76 * col2 )
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT - 76 = + - 16 )
----

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

query II rowsort
SELECT DISTINCT + col1 AS col1, + 85 + + ( + 85 ) AS col2 FROM tab0 AS cor0
----
1
170
21
170
81
170

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

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

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

query II rowsort
SELECT - col0, - 11 AS col2 FROM tab1 AS cor0
----
-51
-11
-85
-11
-91
-11

query I rowsort
SELECT - col0 * + + col0 * - col2 FROM tab2
----
163840
326250
48668

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7100
SELECT ALL 6 + + 85 * + 97 * - 38 AS col0, CAST( 23 AS SIGNED ) col1 FROM tab1
----
-313304
23
-313304
23
-313304
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7100
SELECT ALL 6 + + 85 * + 97 * - 38 AS col0, CAST ( 23 AS INTEGER ) col1 FROM tab1
----
-313304
23
-313304
23
-313304
23

query I rowsort
SELECT - 46 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT + + 96 * + col1 * - ( - col0 ) + - 38 AS col2 FROM tab0 AS cor0
----
116602
175354
9274

query I rowsort
SELECT 92 + - - col2 FROM tab2 cor0
----
115
132
150

onlyif mysql # DIV for integer division: 
query II rowsort label-7104
SELECT DISTINCT - col1 col1, 37 + col1 DIV + 83 AS col1 FROM tab0 AS cor0
----
-1
37
-21
37
-81
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7104
SELECT DISTINCT - col1 col1, 37 + col1 / + 83 AS col1 FROM tab0 AS cor0
----
-1
37
-21
37
-81
37

onlyif mysql # DIV for integer division: 
query II rowsort label-7105
SELECT DISTINCT + + col2, - 47 DIV - - 56 FROM tab0 AS cor0
----
10
0
47
0
99
0

skipif mysql # not compatible
query II rowsort label-7105
SELECT DISTINCT + + col2, - 47 / - - 56 FROM tab0 AS cor0
----
10
0
47
0
99
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - col1 + col2 - col1 - - col1 col0 FROM tab1
----
1440
3264
354

query III rowsort
SELECT * FROM tab0 WHERE ( col2 BETWEEN + col0 - - 53 + col0 + + + 73 AND ( + 26 ) )
----

query I rowsort
SELECT col0 + - col0 * + - col2 + + col2 + - col1 AS col1 FROM tab2
----
1076
2587
4416

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT COUNT( * ) * + MAX( - + 6 ) FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-7110
SELECT COUNT ( * ) * + MAX ( - + 6 ) FROM tab1 AS cor0
----
-18

query I rowsort
SELECT + - 11 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

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

query I rowsort
SELECT DISTINCT + + ( + + col1 ) AS col2 FROM tab1 AS cor0
----
14
47
5

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

query II rowsort
SELECT - 55, 25 AS col1 FROM tab0 AS cor0
----
-55
25
-55
25
-55
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7116
SELECT DISTINCT col0 + + + CAST( NULL AS SIGNED ) + 46 + - col0, col0 + + col0 + - col2 * col2 AS col1 FROM tab2
----
NULL
-1472
NULL
-3214
NULL
-437

skipif mysql # not compatible
query II rowsort label-7116
SELECT DISTINCT col0 + + + CAST ( NULL AS INTEGER ) + 46 + - col0, col0 + + col0 + - col2 * col2 AS col1 FROM tab2
----
NULL
-1472
NULL
-3214
NULL
-437

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT DISTINCT SUM( ALL - 65 ) FROM tab1
----
-195

skipif mysql # not compatible
query I rowsort label-7117
SELECT DISTINCT SUM ( ALL - 65 ) FROM tab1
----
-195

query I rowsort
SELECT ALL - col1 * + + 33 + + col2 AS col0 FROM tab2
----
-1660
-2153
-2501

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7119
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( + - CAST( - - col1 AS DECIMAL ) AS SIGNED ) BETWEEN - + col0 + - - col2 AND - + 24
----

skipif mysql # not compatible
query III rowsort label-7119
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( + - CAST ( - - col1 AS REAL ) AS INTEGER ) BETWEEN - + col0 + - - col2 AND - + 24
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7123
SELECT + + 10, + MIN( + 74 ) col2 FROM tab0 AS cor0
----
10
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7123
SELECT + + 10, + MIN ( + 74 ) col2 FROM tab0 AS cor0
----
10
74

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE NOT ( + - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT - COUNT( * ) + + ( - 89 ) + - COUNT( * ) FROM tab1, tab2 AS cor0
----
-107

skipif mysql # not compatible
query I rowsort label-7125
SELECT - COUNT ( * ) + + ( - 89 ) + - COUNT ( * ) FROM tab1, tab2 AS cor0
----
-107

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7126
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - 35 AND - CAST( NULL AS SIGNED ) / - + 63 * col0 + + - 51
----

skipif mysql # not compatible
query III rowsort label-7126
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - 35 AND - CAST ( NULL AS INTEGER ) / - + 63 * col0 + + - 51
----

query I rowsort
SELECT ALL + col0 + 84 * + col2 + 99 AS col0 FROM tab1 AS cor0
----
5140
5902
8214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7128
SELECT - 28 * - + CAST( + col1 AS SIGNED ) FROM tab0 cor0
----
2268
28
588

skipif mysql # not compatible
query I rowsort label-7128
SELECT - 28 * - + CAST ( + col1 AS INTEGER ) FROM tab0 cor0
----
2268
28
588

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

skipif mysql # not compatible
query I rowsort label-7129
SELECT - + MAX ( ALL - 36 ) FROM tab0 AS cor0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-7130
SELECT ALL - - col2 - + col1 * col0 DIV - col1 FROM tab0 AS cor0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-7130
SELECT ALL - - col2 - + col1 * col0 / - col1 FROM tab0 AS cor0
----
196
62
97

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

query III rowsort
SELECT * FROM tab1 WHERE NULL <= 81
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7133
SELECT DISTINCT + COUNT ( * ) AS col2, 9 col2 FROM tab1
----
3
9

query I rowsort
SELECT ALL + 9 + col0 AS col2 FROM tab2
----
55
73
84

query I rowsort
SELECT 33 - - col2 FROM tab1
----
101
129
92

query II rowsort
SELECT col2 - - col1 - - 70, 42 AS col0 FROM tab1
----
134
42
180
42
185
42

query I rowsort
SELECT col1 - - + col1 FROM tab0
----
162
2
42

query I rowsort
SELECT ALL 4 * 97 AS col1 FROM tab1
----
388
388
388

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT DISTINCT 22 * - + COUNT( * ) col2 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7139
SELECT DISTINCT 22 * - + COUNT ( * ) col2 FROM tab1
----
-66

query I rowsort
SELECT DISTINCT - col0 + + col1 FROM tab0 WHERE NOT + 31 + col1 IS NOT NULL
----

query II rowsort
SELECT ALL + 16, col1 AS col1 FROM tab2 cor0
----
16
51
16
67
16
77

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

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

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

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

query I rowsort
SELECT DISTINCT ( - - col0 ) * + 79 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

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

query I rowsort
SELECT ALL + 90 AS col0 FROM tab1 cor0
----
90
90
90

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7149
SELECT CAST( + ( + col0 ) AS SIGNED ) FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7149
SELECT CAST ( + ( + col0 ) AS INTEGER ) FROM tab1 cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7150
SELECT 25 DIV - col1 AS col2 FROM tab1
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-7150
SELECT 25 / - col1 AS col2 FROM tab1
----
-1
-5
0

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

query I rowsort
SELECT - 41 * - col1 AS col1 FROM tab0
----
3321
41
861

query I rowsort
SELECT DISTINCT col0 + + ( - 1 ) FROM tab1
----
50
84
90

query I rowsort
SELECT ALL - col1 * - + 67 AS col1 FROM tab2
----
3417
4489
5159

query II rowsort
SELECT + col1 AS col0, col1 * - 41 AS col0 FROM tab0 AS cor0
----
1
-41
21
-861
81
-3321

query I rowsort
SELECT DISTINCT - - col2 + + - 22 * - - 28 FROM tab1 AS cor0
----
-520
-548
-557

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE + col2 BETWEEN - 28 / - col2 AND - - col0
----
23
40
58

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

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

query I rowsort
SELECT + 5 + - 96 FROM tab0 cor0
----
-91
-91
-91

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

query I rowsort
SELECT ALL - ( + col0 ) - - 37 FROM tab0 AS cor0
----
-50
-60
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT 19 * + 4 + SUM( ALL + - col2 ) col2 FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7162
SELECT 19 * + 4 + SUM ( ALL + - col2 ) col2 FROM tab0 AS cor0
----
-80

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT DISTINCT + 86 * - + COUNT( * ) AS col2 FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-7166
SELECT DISTINCT + 86 * - + COUNT ( * ) AS col2 FROM tab2
----
-258

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

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

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

query I rowsort
SELECT DISTINCT - + 3 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-3

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

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

query II rowsort
SELECT - 27 AS col2, col1 FROM tab2
----
-27
51
-27
67
-27
77

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7174
SELECT COUNT( * ) * - COUNT( * ) * + - 18 + + 21 FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-7174
SELECT COUNT ( * ) * - COUNT ( * ) * + - 18 + + 21 FROM tab2 AS cor0
----
183

query I rowsort
SELECT - col1 + 87 * + col2 * - col1 * + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + 35
----

query I rowsort
SELECT - col1 + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-2652
-4556
-6006

query I rowsort
SELECT DISTINCT - col2 * - + ( + 33 ) AS col2 FROM tab0 AS cor0
----
1551
3267
330

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 cor0 WHERE NOT - col0 / + 84 IS NULL
----
-10
-47
-99

query I rowsort
SELECT col2 + - - 4 AS col2 FROM tab1 AS cor0
----
100
63
72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 31 / + + col1 ) NOT BETWEEN ( NULL ) AND 19
----

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7183
SELECT DISTINCT 5 * 88 DIV - COUNT( * ) FROM tab1
----
-146

skipif mysql # not compatible
query I rowsort label-7183
SELECT DISTINCT 5 * 88 / - COUNT ( * ) FROM tab1
----
-146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 + - + 45 * + - 44 - col0 + - col0 + - + 98 col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL 30 * + + col0 + - col0 FROM tab2
----
1334
1856
2175

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

query I rowsort
SELECT ALL + 86 + - - 82 FROM tab2
----
168
168
168

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

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE col0 * col1 + - col2 IS NOT NULL
----
51
85
91

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

query I rowsort
SELECT 16 * + col2 AS col2 FROM tab0
----
1584
160
752

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

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

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

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 cor0 WHERE + col2 = 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT DISTINCT + MIN( DISTINCT + 28 ) * 34 + + COUNT( * ) AS col2 FROM tab0
----
955

skipif mysql # not compatible
query I rowsort label-7195
SELECT DISTINCT + MIN ( DISTINCT + 28 ) * 34 + + COUNT ( * ) AS col2 FROM tab0
----
955

query I rowsort
SELECT + col0 * + col0 + col2 * - 77 AS col2 FROM tab2
----
1016
1159
345

query I rowsort
SELECT ALL col1 - + - 71 AS col2 FROM tab0 AS cor0
----
152
72
92

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT ALL - MIN( - ( - 98 ) ) FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-7199
SELECT ALL - MIN ( - ( - 98 ) ) FROM tab1 AS cor0
----
-98

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 6 ) col0 FROM tab1
----
-6
-6
-6

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

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

query II rowsort
SELECT ALL col2, 21 AS col1 FROM tab1
----
59
21
68
21
96
21

query I rowsort
SELECT - 82 * 51 AS col0 FROM tab0
----
-4182
-4182
-4182

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT ( NOT ( - + 79 BETWEEN NULL AND + 90 ) )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7208
SELECT ALL + MAX( col2 ) AS col0, 86 AS col0 FROM tab1 AS cor0
----
96
86

skipif mysql # not compatible
query II rowsort label-7208
SELECT ALL + MAX ( col2 ) AS col0, 86 AS col0 FROM tab1 AS cor0
----
96
86

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7210
SELECT - CAST( NULL AS SIGNED ) col0, - COUNT( * ) FROM tab2 AS cor0
----
NULL
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7210
SELECT - CAST ( NULL AS INTEGER ) col0, - COUNT ( * ) FROM tab2 AS cor0
----
NULL
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT ( + COUNT( * ) ) / + - AVG ( DISTINCT + col0 ) FROM tab1 WHERE col2 NOT BETWEEN NULL AND NULL AND NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7212
SELECT ( + COUNT ( * ) ) / + - AVG ( DISTINCT + col0 ) FROM tab1 WHERE col2 NOT BETWEEN NULL AND NULL AND NOT ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT + 1 * COUNT( * ) * - 2 + 97 + - 1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
78

skipif mysql # not compatible
query I rowsort label-7213
SELECT + 1 * COUNT ( * ) * - 2 + 97 + - 1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 + + - col1, - col1 col0 FROM tab1
----
37
-14
44
-47
80
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7215
SELECT ALL - + 89 * - - col0 AS col2, CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1335
NULL
-7743
NULL
-8633
NULL

skipif mysql # not compatible
query II rowsort label-7215
SELECT ALL - + 89 * - - col0 AS col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1335
NULL
-7743
NULL
-8633
NULL

query I rowsort
SELECT DISTINCT - + 64 * + col0 FROM tab0 AS cor0
----
-5568
-6208
-960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7217
SELECT + 12 * + - COUNT( * ) * - CAST( 82 AS SIGNED ) + + 19 AS col0 FROM tab1
----
2971

skipif mysql # not compatible
query I rowsort label-7217
SELECT + 12 * + - COUNT ( * ) * - CAST ( 82 AS INTEGER ) + + 19 AS col0 FROM tab1
----
2971

onlyif mysql # DIV for integer division: 
query I rowsort label-7218
SELECT ALL + 19 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7218
SELECT ALL + 19 / + col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2 col1, col2 FROM tab0 WHERE NULL < NULL
----

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 + + + col1 FROM tab0 cor0
----
100
128
31

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab1 WHERE NOT ( NOT NULL <> + 64 * 7 * + + 41 + - - col2 )
----

query I rowsort
SELECT + col2 - - col1 * + 16 FROM tab2
----
1130
1272
839

query I rowsort
SELECT - 44 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7232
SELECT DISTINCT - ( + - COUNT( * ) ) AS col2, + 76 * MAX( 2 ) FROM tab1 AS cor0
----
3
152

skipif mysql # not compatible
query II rowsort label-7232
SELECT DISTINCT - ( + - COUNT ( * ) ) AS col2, + 76 * MAX ( 2 ) FROM tab1 AS cor0
----
3
152

onlyif mysql # DIV for integer division: 
query II rowsort label-7233
SELECT + 17 DIV + + col1 * - col0, col2 AS col1 FROM tab2 AS cor0
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-7233
SELECT + 17 / + + col1 * - col0, col2 AS col1 FROM tab2 AS cor0
----
0
23
0
40
0
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / col0 <= NULL
----

query I rowsort
SELECT + 54 + col2 AS col2 FROM tab1 AS cor0
----
113
122
150

onlyif mysql # DIV for integer division: 
query I rowsort label-7236
SELECT col1 + + - 85 DIV + + 55 FROM tab2 AS cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-7236
SELECT col1 + + - 85 / + + 55 FROM tab2 AS cor0
----
50
66
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7237
SELECT + + 24 + 40 / + SUM( ALL CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7237
SELECT + + 24 + 40 / + SUM ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 95 FROM tab2 cor0 WHERE NOT - col1 * - - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * - - ( col2 ) AS col0 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT col1 * - col0 + + 50 FROM tab2 AS cor0
----
-2296
-4878
-4975

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT ALL - COUNT( * ) + COUNT( * ) * + 64 AS col2 FROM tab0
----
189

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL - COUNT ( * ) + COUNT ( * ) * + 64 AS col2 FROM tab0
----
189

query I rowsort
SELECT DISTINCT col0 - + 54 FROM tab2
----
-8
10
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT - 84 - - - MIN( 21 ) AS col0 FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-7247
SELECT - 84 - - - MIN ( 21 ) AS col0 FROM tab2
----
-105

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7248
SELECT col2 - - + CAST ( + col1 AS INTEGER ) col0 FROM tab0 AS cor0
----
100
128
31

query II rowsort
SELECT col1 * + - 20 - col1 AS col1, col1 FROM tab0 AS cor0
----
-1701
81
-21
1
-441
21

query I rowsort
SELECT DISTINCT - 86 * col0 - + col1 AS col0 FROM tab1 AS cor0
----
-4400
-7315
-7873

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

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

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

query I rowsort
SELECT DISTINCT col2 + + col0 + - col2 * + + col1 + + ( + col0 ) + + - col2 AS col1 FROM tab0
----
-36
-3777
95

query I rowsort
SELECT ALL - 47 + 14 FROM tab2
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT DISTINCT COUNT( DISTINCT - + col2 ) col1 FROM tab1
----
3

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

query I rowsort
SELECT 3 * 88 FROM tab2
----
264
264
264

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

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

query I rowsort
SELECT ALL - ( + 31 ) * - col1 FROM tab0 AS cor0
----
2511
31
651

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT col2 + + 22 IN ( - col1, ( + + col2 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 91 / - col2 + - 38 ) IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-7264
SELECT ALL - COUNT ( * ) * COUNT ( - col0 ) FROM tab0
----
-9

query I rowsort
SELECT 0 * + col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT DISTINCT COUNT( * ) * + + 35 * - - COUNT( * ) * SUM( ALL + col0 ) FROM tab1
----
71505

skipif mysql # not compatible
query I rowsort label-7266
SELECT DISTINCT COUNT ( * ) * + + 35 * - - COUNT ( * ) * SUM ( ALL + col0 ) FROM tab1
----
71505

query I rowsort
SELECT col2 * + 41 FROM tab0
----
1927
4059
410

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT DISTINCT + - 31 + - + 90 - COUNT( * ) * + COUNT( * ) col1 FROM tab2 WHERE NOT NULL > + col1
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7268
SELECT DISTINCT + - 31 + - + 90 - COUNT ( * ) * + COUNT ( * ) col1 FROM tab2 WHERE NOT NULL > + col1
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7269
SELECT DISTINCT CAST( + 60 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-7269
SELECT DISTINCT CAST ( + 60 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT + ( COUNT( * ) ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-7270
SELECT + ( COUNT ( * ) ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query I rowsort
SELECT ALL col2 * - + col2 + - 31 FROM tab0
----
-131
-2240
-9832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 44 col2 FROM tab2 AS cor0
----
44

query I rowsort
SELECT col0 + 99 AS col1 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
150
184
190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7274
SELECT CAST( + 83 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7274
SELECT CAST ( + 83 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT - - col0 - - col1 FROM tab2 AS cor0 WHERE - col2 <= NULL
----

query I rowsort
SELECT DISTINCT + ( + 70 ) FROM tab0 cor0
----
70

query II rowsort
SELECT ALL - - col1 AS col1, col0 AS col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7278
SELECT ALL - - col0 + col2 + - col0 DIV - 27 FROM tab2 AS cor0
----
106
135
70

skipif mysql # not compatible
query I rowsort label-7278
SELECT ALL - - col0 + col2 + - col0 / - 27 FROM tab2 AS cor0
----
106
135
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT - + COUNT( * ) + + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7279
SELECT - + COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7280
SELECT - col2 + + col0 - + + 69 DIV + col0 AS col2 FROM tab2 AS cor0
----
17
22
23

skipif mysql # not compatible
query I rowsort label-7280
SELECT - col2 + + col0 - + + 69 / + col0 AS col2 FROM tab2 AS cor0
----
17
22
23

query II rowsort
SELECT DISTINCT + 65 AS col2, ( col1 ) AS col2 FROM tab1
----
65
14
65
47
65
5

query I rowsort
SELECT DISTINCT col0 + + ( + col0 ) FROM tab0
----
174
194
30

query I rowsort
SELECT - 21 + + 54 * + + ( + - ( - col2 ) ) FROM tab0
----
2517
519
5325

query I rowsort
SELECT ALL 63 + col1 FROM tab1 AS cor0
----
110
68
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - col0 ) - - col0 col0 FROM tab2 cor0
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT - MIN( - + col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7286
SELECT - MIN ( - + col1 ) AS col0 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT DISTINCT - COUNT( * ) - + 95 * - 55 + + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
5225

skipif mysql # not compatible
query I rowsort label-7287
SELECT DISTINCT - COUNT ( * ) - + 95 * - 55 + + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
5225

query I rowsort
SELECT ( - - 85 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 + col2 + + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7290
SELECT - 23 DIV + col2 + - col1 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7290
SELECT - 23 / + col2 + - col1 FROM tab1 cor0
----
-14
-47
-5

query II rowsort
SELECT - ( + - col0 ) AS col0, - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - + ( col1 ), - 98 AS col2 FROM tab2 AS cor0
----
-51
-98
-67
-98
-77
-98

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 col2 FROM tab2 AS cor0
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT - MAX( DISTINCT - 50 ) AS col1 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-7295
SELECT - MAX ( DISTINCT - 50 ) AS col1 FROM tab1 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-7296
SELECT 75 col1, + ( - - COUNT( ALL + col0 ) ) AS col2 FROM tab1
----
75
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7296
SELECT 75 col1, + ( - - COUNT ( ALL + col0 ) ) AS col2 FROM tab1
----
75
3

query I rowsort
SELECT ALL col2 * 83 AS col0 FROM tab2
----
1909
3320
4814

query I rowsort
SELECT + - col2 * - col0 + - col1 AS col0 FROM tab1 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( 9, col1 + + + ( + - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT ALL MAX( - - 6 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-7300
SELECT ALL MAX ( - - 6 ) FROM tab1
----
6

query I rowsort
SELECT + ( - - 22 ) AS col1 FROM tab0
----
22
22
22

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( col0 ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT DISTINCT - ( - COUNT( DISTINCT 70 ) ) * + 7 + COUNT( * ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-7303
SELECT DISTINCT - ( - COUNT ( DISTINCT 70 ) ) * + 7 + COUNT ( * ) AS col0 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT + 61 + ( - COUNT( * ) ) FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-7304
SELECT + 61 + ( - COUNT ( * ) ) FROM tab0
----
58

query I rowsort
SELECT col1 * 46 AS col2 FROM tab1
----
2162
230
644

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE - col0 > col0
----
0

skipif mysql # not compatible
query I rowsort label-7306
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE - col0 > col0
----
0

query I rowsort
SELECT AVG ( + col2 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7308
SELECT - ( 75 ) AS col0 FROM tab1 WHERE NOT col0 / CAST( NULL AS SIGNED ) + + 29 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7308
SELECT - ( 75 ) AS col0 FROM tab1 WHERE NOT col0 / CAST ( NULL AS INTEGER ) + + 29 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT DISTINCT COUNT( * ) col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7309
SELECT DISTINCT COUNT ( * ) col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT ALL - COUNT( * ) + - 70 FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL - COUNT ( * ) + - 70 FROM tab0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT + COUNT( * ) * 68 AS col0 FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-7311
SELECT + COUNT ( * ) * 68 AS col0 FROM tab0
----
204

query I rowsort
SELECT col2 FROM tab0 WHERE ( - col2 ) NOT BETWEEN + 33 AND NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT MIN( - 25 ) AS col0 FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-7313
SELECT MIN ( - 25 ) AS col0 FROM tab0
----
-25

query I rowsort
SELECT + col2 * - col1 + col1 * + 23 FROM tab1
----
-1022
-180
-2115

onlyif mysql # DIV for integer division: 
query I rowsort label-7315
SELECT DISTINCT - col0 DIV - 62 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-7315
SELECT DISTINCT - col0 / - 62 FROM tab2
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 86 col1 FROM tab0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT + COUNT( * ) * ( 50 ) FROM tab1 WHERE NULL IS NULL
----
150

skipif mysql # not compatible
query I rowsort label-7317
SELECT + COUNT ( * ) * ( 50 ) FROM tab1 WHERE NULL IS NULL
----
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 col0 FROM tab1
----
-35
-35
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-7319
SELECT col2 DIV + 71 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7319
SELECT col2 / + 71 AS col2 FROM tab1
----
0
0
1

query I rowsort
SELECT - ( 35 ) + ( - ( 52 ) + col2 * + 47 ) AS col2 FROM tab0 WHERE NOT ( col1 * 58 ) = + col2 + 75 * col2
----
2122
383
4566

onlyif mysql # DIV for integer division: 
query I rowsort label-7321
SELECT ALL - 39 DIV col2 - + col2 * - 9 AS col0 FROM tab0
----
423
87
891

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL - 39 / col2 - + col2 * - 9 AS col0 FROM tab0
----
423
87
891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7322
SELECT + col2 - CAST( - 10 AS SIGNED ) FROM tab2
----
33
50
68

skipif mysql # not compatible
query I rowsort label-7322
SELECT + col2 - CAST ( - 10 AS INTEGER ) FROM tab2
----
33
50
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7323
SELECT + 34 DIV col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7323
SELECT + 34 / col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT - MIN( 2 ) + - COUNT( DISTINCT col1 ) FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-7324
SELECT - MIN ( 2 ) + - COUNT ( DISTINCT col1 ) FROM tab0
----
-5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( - col0 ) - col2 <> ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7326
SELECT - COUNT( * ) DIV + 26 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7326
SELECT - COUNT ( * ) / + 26 AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7327
SELECT - 41 DIV COUNT( * ) + + 59 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7327
SELECT - 41 / COUNT ( * ) + + 59 FROM tab2 AS cor0
----
46

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( col1 + col2 ) NOT BETWEEN NULL AND - 29
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT ALL - COUNT( * ) * COUNT( * ) + + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0
----
-72

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL - COUNT ( * ) * COUNT ( * ) + + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0
----
-72

query I rowsort
SELECT + ( AVG ( col2 ) ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT ALL - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7331
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
-9

query I rowsort
SELECT + 89 * 70 FROM tab1 AS cor0
----
6230
6230
6230

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 / 1 < ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 = col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT DISTINCT + MIN( 39 ) * COUNT( * ) FROM tab2 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-7335
SELECT DISTINCT + MIN ( 39 ) * COUNT ( * ) FROM tab2 AS cor0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> col2
----
0

skipif mysql # not compatible
query I rowsort label-7336
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> col2
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 22 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + 92 ) * col0 FROM tab2 AS cor0
----
-4232
-5888
-6900

query I rowsort
SELECT DISTINCT + 80 * - - 94 FROM tab2
----
7520

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT DISTINCT MIN( + col1 ) * 92 FROM tab1
----
460

skipif mysql # not compatible
query I rowsort label-7340
SELECT DISTINCT MIN ( + col1 ) * 92 FROM tab1
----
460

query I rowsort
SELECT - ( - + 47 ) AS col2 FROM tab0
----
47
47
47

query I rowsort
SELECT ALL ( 14 ) AS col0 FROM tab0 WHERE NOT + 12 / + col1 IS NULL
----
14
14
14

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 42 ) IS NOT NULL
----

query I rowsort
SELECT col0 * + + col1 * ( - col2 * - 6 ) FROM tab2
----
1182720
1748700
323748

query I rowsort
SELECT ALL 45 * - + 58 + col2 AS col2 FROM tab2
----
-2552
-2570
-2587

query I rowsort
SELECT DISTINCT + col1 * + col2 AS col2 FROM tab2 WHERE NOT col0 IS NULL
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 64 col1 FROM tab1
----
64

query I rowsort
SELECT DISTINCT - col1 * + col2 AS col0 FROM tab1 WHERE NOT + 75 IN ( - col2 * - col2 )
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7349
SELECT DISTINCT * FROM tab2 WHERE ( + col0 / + col0 ) NOT BETWEEN ( CAST( NULL AS SIGNED ) + - 91 ) AND ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7349
SELECT DISTINCT * FROM tab2 WHERE ( + col0 / + col0 ) NOT BETWEEN ( CAST ( NULL AS INTEGER ) + - 91 ) AND ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT DISTINCT + 79 + + - COUNT( * ) AS col0 FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-7350
SELECT DISTINCT + 79 + + - COUNT ( * ) AS col0 FROM tab1
----
76

query I rowsort
SELECT col2 + - - col1 * col0 FROM tab0 AS cor0
----
1262
1837
196

query I rowsort
SELECT - 26 * ( + col1 ) FROM tab0 AS cor0
----
-2106
-26
-546

query I rowsort
SELECT - 30 * - + col0 AS col1 FROM tab2 AS cor0
----
1380
1920
2250

query I rowsort
SELECT + - 58 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 0 + + col2 * - col0 IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NULL < ( - - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col2 FROM tab2 AS cor0 WHERE + 48 NOT IN ( - 95 )
----
42
42
42

query I rowsort
SELECT DISTINCT + + 21 * - 80 * + col2 - - col0 * + col0 AS col2 FROM tab1 AS cor0
----
-105959
-158679
-91895

query I rowsort
SELECT ALL + + 47 - - col1 - - + col0 + col2 * + col1 AS col2 FROM tab0 AS cor0
----
244
365
3950

query I rowsort
SELECT - 67 + col2 AS col0 FROM tab1 AS cor0
----
-8
1
29

query I rowsort
SELECT - 71 + - col1 FROM tab0 AS cor0
----
-152
-72
-92

query I rowsort
SELECT + col2 * col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
1058
2560
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col2 * + + col1 * col1 col1 FROM tab2 AS cor0
----
-237096
-260287
-59777

query I rowsort
SELECT + col0 + - 81 AS col1 FROM tab1 AS cor0
----
-30
10
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7365
SELECT DISTINCT - - CAST( NULL AS SIGNED ) - - + 19 col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7365
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) - - + 19 col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7366
SELECT DISTINCT col1 DIV 1 + - 85 * + col2 * - 95 FROM tab0
----
379606
799426
80771

skipif mysql # not compatible
query I rowsort label-7366
SELECT DISTINCT col1 / 1 + - 85 * + col2 * - 95 FROM tab0
----
379606
799426
80771

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT + 48 + MAX( ALL - col2 ) AS col0 FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-7367
SELECT + 48 + MAX ( ALL - col2 ) AS col0 FROM tab1
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7368
SELECT ( + 53 ) DIV - COUNT( * ) FROM tab0 WHERE ( + col1 ) IS NOT NULL
----
-17

skipif mysql # not compatible
query I rowsort label-7368
SELECT ( + 53 ) / - COUNT ( * ) FROM tab0 WHERE ( + col1 ) IS NOT NULL
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7369
SELECT - COUNT( * ) DIV - + 4 AS col1, 10 AS col0 FROM tab1
----
0
10

skipif mysql # not compatible
query II rowsort label-7369
SELECT - COUNT ( * ) / - + 4 AS col1, 10 AS col0 FROM tab1
----
0
10

query I rowsort
SELECT ALL ( + col1 ) AS col1 FROM tab2 WHERE NOT 54 > - ( 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT COUNT( * ) FROM tab0 WHERE NOT NULL <> ( + + ( + - col2 ) / + col2 + - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7371
SELECT COUNT ( * ) FROM tab0 WHERE NOT NULL <> ( + + ( + - col2 ) / + col2 + - col1 )
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 IN ( + col2 + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT DISTINCT + COUNT( * ) * - ( - COUNT( * ) ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7374
SELECT DISTINCT + COUNT ( * ) * - ( - COUNT ( * ) ) FROM tab2
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col0 * col1 + + 28 col2 FROM tab2 AS cor0
----
-119618
-336647
-379428

query I rowsort
SELECT DISTINCT + ( col0 ) * - - 29 AS col1 FROM tab0 AS cor0
----
2523
2813
435

query I rowsort
SELECT - + 90 * 14 AS col0 FROM tab2 cor0
----
-1260
-1260
-1260

query I rowsort
SELECT - 67 + - col0 - + 6 * - + 37 * - 32 AS col0 FROM tab1 AS cor0
----
-7222
-7256
-7262

query I rowsort
SELECT DISTINCT col0 * col0 * + - 58 FROM tab1 AS cor0
----
-150858
-419050
-480298

query II rowsort
SELECT + + ( - + 44 ) + - - col2 AS col1, - 25 AS col1 FROM tab0 AS cor0
----
-34
-25
3
-25
55
-25

query I rowsort
SELECT ALL ( 80 ) AS col2 FROM tab2 AS cor0
----
80
80
80

query I rowsort
SELECT + 77 + 42 AS col1 FROM tab0 AS cor0
----
119
119
119

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - - 5 ) IS NOT NULL
----

query I rowsort
SELECT ALL + 26 * + 30 AS col0 FROM tab0 cor0
----
780
780
780

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( col0 + - ( - 76 ) ) NOT IN ( col2 * col0 )
----

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE - col2 <> + ( col2 )
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1173
-3080
-3886

query I rowsort
SELECT ALL + 63 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT IN ( + 17 + - col1 )
----

query I rowsort
SELECT ( - col0 ) AS col1 FROM tab1 WHERE - col0 * col0 + + col0 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT ( + - COUNT( + + 60 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7391
SELECT ( + - COUNT ( + + 60 ) ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7392
SELECT DISTINCT col2 + CAST( - ( - - col0 ) AS SIGNED ) FROM tab0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-7392
SELECT DISTINCT col2 + CAST ( - ( - - col0 ) AS INTEGER ) FROM tab0
----
-77
2
32

query I rowsort
SELECT ALL + 25 * - - 88 * col2 AS col1 FROM tab0 AS cor0
----
103400
217800
22000

query I rowsort
SELECT 18 * - col1 FROM tab2 AS cor0
----
-1206
-1386
-918

onlyif mysql # DIV for integer division: 
query I rowsort label-7395
SELECT DISTINCT - + col2 DIV col2 + - 28 col1 FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7395
SELECT DISTINCT - + col2 / col2 + - 28 col1 FROM tab2 AS cor0
----
-29

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 79 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7397
SELECT - 21 DIV + col1 + - col1 * + - col2 AS col2 FROM tab1
----
1343
291
3196

skipif mysql # not compatible
query I rowsort label-7397
SELECT - 21 / + col1 + - col1 * + - col2 AS col2 FROM tab1
----
1343
291
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT ALL COUNT( * ) + - + ( 15 ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL COUNT ( * ) + - + ( 15 ) FROM tab0
----
-12

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7400
SELECT + + CAST( - - ( col2 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7400
SELECT + + CAST ( - - ( col2 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7401
SELECT ALL - col2 * - + col2 * - - col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + CAST( NULL AS SIGNED ) AND + col1
----

skipif mysql # not compatible
query I rowsort label-7401
SELECT ALL - col2 * - + col2 * - - col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + CAST ( NULL AS INTEGER ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT MAX( + ( 28 ) ) FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-7402
SELECT MAX ( + ( 28 ) ) FROM tab1 AS cor0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7403
SELECT + CAST( ( col1 ) AS SIGNED ) * - - 98 FROM tab2 AS cor0
----
4998
6566
7546

skipif mysql # not compatible
query I rowsort label-7403
SELECT + CAST ( ( col1 ) AS INTEGER ) * - - 98 FROM tab2 AS cor0
----
4998
6566
7546

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT ALL - COUNT( * ) - - 18 col0 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7404
SELECT ALL - COUNT ( * ) - - 18 col0 FROM tab2 AS cor0
----
15

query I rowsort
SELECT + 34 AS col0 FROM tab0 cor0 WHERE + col2 IS NOT NULL
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT DISTINCT - 61 + - + 15 - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-7406
SELECT DISTINCT - 61 + - + 15 - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-79

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT ALL ( COUNT( * ) ) + 2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7408
SELECT ALL ( COUNT ( * ) ) + 2 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7409
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT col0 - - - col1 FROM tab2
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query II rowsort label-7411
SELECT + COUNT( * ) col1, + 57 AS col1 FROM tab1
----
3
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7411
SELECT + COUNT ( * ) col1, + 57 AS col1 FROM tab1
----
3
57

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + 52 * + + 0 - - ( + col1 ) > + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7413
SELECT - col0 DIV + 52 AS col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7413
SELECT - col0 / + 52 AS col0 FROM tab1
----
-1
-1
0

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT - col0 * - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 11 * + 35 AS col2 FROM tab2
----
385
385
385

onlyif mysql # DIV for integer division: 
query II rowsort label-7416
SELECT - col2 DIV + ( + col2 ) AS col0, + ( - 45 ) * - + ( - col0 ) * + col1 + + col2 FROM tab2
----
-1
-105547
-1
-221720
-1
-226067

skipif mysql # not compatible
query II rowsort label-7416
SELECT - col2 / + ( + col2 ) AS col0, + ( - 45 ) * - + ( - col0 ) * + col1 + + col2 FROM tab2
----
-1
-105547
-1
-221720
-1
-226067

query I rowsort
SELECT - 95 * + - col2 + + 25 + col0 AS col2 FROM tab1 AS cor0
----
5715
6576
9196

query I rowsort
SELECT DISTINCT + + 81 FROM tab2 cor0
----
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 93 ) >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 4 col2, - col1 + - col2 FROM tab0 cor0
----
4
-100
4
-128
4
-31

query II rowsort
SELECT ALL + col0, - col1 AS col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7422
SELECT ALL MAX( + + 51 ) AS col0, 47 DIV + + COUNT( * ) AS col0 FROM tab0
----
51
15

skipif mysql # not compatible
query II rowsort label-7422
SELECT ALL MAX ( + + 51 ) AS col0, 47 / + + COUNT ( * ) AS col0 FROM tab0
----
51
15

query II rowsort
SELECT ALL - 56, - 62 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7424
SELECT col1 * + col2 DIV col2 AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7424
SELECT col1 * + col2 / col2 AS col2 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT DISTINCT + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7425
SELECT DISTINCT + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT ALL - - 48 * AVG ( - ( - 58 ) ) FROM tab1 AS cor0 WHERE NOT + 16 IS NOT NULL OR NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab0 AS cor0 WHERE NOT - col2 * + - col0 IS NULL
----
10
47
99

query I rowsort
SELECT + 37 - 74 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IN ( col0, - col1 + - 70 )
----

query I rowsort
SELECT + + 59 * + - col0 * 41 FROM tab1 AS cor0
----
-123369
-205615
-220129

query I rowsort
SELECT - + col0 AS col1 FROM tab0 WHERE + ( - 73 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + + 41 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 71 + - - col1 FROM tab0
----
152
72
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7433
SELECT ALL - col0 + - ( + + col0 ) DIV + + 51 FROM tab0
----
-15
-88
-98

skipif mysql # not compatible
query I rowsort label-7433
SELECT ALL - col0 + - ( + + col0 ) / + + 51 FROM tab0
----
-15
-88
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-7434
SELECT col0 DIV - col2 + - + 9 FROM tab2
----
-10
-10
-11

skipif mysql # not compatible
query I rowsort label-7434
SELECT col0 / - col2 + - + 9 FROM tab2
----
-10
-10
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT MIN( + col0 ) + - - COUNT( * ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-7435
SELECT MIN ( + col0 ) + - - COUNT ( * ) FROM tab1
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-7436
SELECT - 68, SUM( + + col0 ) AS col0 FROM tab1 WHERE NULL <= ( NULL )
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-7436
SELECT - 68, SUM ( + + col0 ) AS col0 FROM tab1 WHERE NULL <= ( NULL )
----
-68
NULL

query I rowsort
SELECT 12 + + - col2 AS col2 FROM tab0
----
-35
-87
2

query I rowsort
SELECT col2 + - + 32 FROM tab0
----
-22
15
67

query I rowsort
SELECT col2 * - 59 + - 17 + - - 90 * col2 AS col1 FROM tab0 AS cor0
----
1440
293
3052

query I rowsort
SELECT - ( - - 23 ) * + col1 FROM tab0 cor0
----
-1863
-23
-483

query I rowsort
SELECT ALL + - 95 AS col1 FROM tab0 AS cor0
----
-95
-95
-95

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7442
SELECT DISTINCT - CAST( - CAST( 82 AS DECIMAL ) AS SIGNED ) FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-7442
SELECT DISTINCT - CAST ( - CAST ( 82 AS REAL ) AS INTEGER ) FROM tab2 AS cor0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7443
SELECT + 84 * + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7443
SELECT + 84 * + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * - 50 * + col2 + - col2 FROM tab0
----
10490
190303
4851

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7445
SELECT - - CAST( + + ( - col2 ) AS SIGNED ) + - col0 AS col0 FROM tab1 AS cor0
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-7445
SELECT - - CAST ( + + ( - col2 ) AS INTEGER ) + - col0 AS col0 FROM tab1 AS cor0
----
-144
-147
-159

query II rowsort
SELECT DISTINCT - col1 AS col2, - col2 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7447
SELECT ALL - CAST( - + 17 AS SIGNED ) FROM tab1 AS cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL - CAST ( - + 17 AS INTEGER ) FROM tab1 AS cor0
----
17
17
17

onlyif mysql # aggregate syntax: 
query II rowsort label-7448
SELECT - + 98, COUNT( * ) * - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-98
-9

skipif mysql # not compatible
query II rowsort label-7448
SELECT - + 98, COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-98
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT + + MIN( ALL + + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7449
SELECT + + MIN ( ALL + + col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL + ( + 89 ) AS col2 FROM tab2
----
89
89
89

query II rowsort
SELECT DISTINCT - ( - col2 ), - 24 AS col2 FROM tab0
----
10
-24
47
-24
99
-24

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN + col1 / - 13 AND + + 62
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 >= col0
----

query I rowsort
SELECT ALL - 3 AS col1 FROM tab0 cor0
----
-3
-3
-3

query I rowsort
SELECT - 15 + + - 5 AS col1 FROM tab2 AS cor0
----
-20
-20
-20

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 63 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - 93 ) FROM tab1 cor0 WHERE ( ( + 69 IS NOT NULL ) )
----
93
93
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + + + col1 * - col1, col2 col0 FROM tab2 AS cor0
----
-2550
23
-4422
58
-5852
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7459
SELECT 70 - + + col0 AS col1 FROM tab1 AS cor0 WHERE ( ( + CAST( - col1 AS SIGNED ) ) IS NOT NULL )
----
-15
-21
19

skipif mysql # not compatible
query I rowsort label-7459
SELECT 70 - + + col0 AS col1 FROM tab1 AS cor0 WHERE ( ( + CAST ( - col1 AS INTEGER ) ) IS NOT NULL )
----
-15
-21
19

query I rowsort
SELECT + col0 * - 11 + ( + + col1 ) + - col2 * - col2 * 92 FROM tab0 AS cor0
----
203144
8264
900626

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > ( + col1 )
----

query I rowsort
SELECT ALL + col2 + 81 AS col2 FROM tab0
----
128
180
91

query II rowsort
SELECT ALL col2 + + 16 AS col0, col0 FROM tab2
----
39
46
56
64
74
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT + MAX( 56 ) FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-7464
SELECT + MAX ( 56 ) FROM tab2
----
56

query I rowsort
SELECT DISTINCT + col2 + + col0 + - 60 AS col1 FROM tab2
----
44
73
9

query I rowsort
SELECT - col2 + - - 87 FROM tab2 AS cor0
----
29
47
64

query I rowsort
SELECT 38 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT - ( + 27 ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT DISTINCT - 66 + + col0 * col0 FROM tab0
----
159
7503
9343

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7470
SELECT COUNT( * ) DIV + - COUNT( * ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7470
SELECT COUNT ( * ) / + - COUNT ( * ) AS col0 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT AVG ( ALL 69 ) FROM tab0 AS cor0 WHERE + 25 IN ( - col2 + - - col1 )
----
NULL

query I rowsort
SELECT DISTINCT + col2 * - + 35 * + - col0 - 23 FROM tab0 cor0
----
24652
30427
336082

query I rowsort
SELECT ALL 46 * col1 - col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE NOT ( + + col1 ) NOT IN ( col2 - 91 - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT DISTINCT + COUNT( * ) * 93 AS col1 FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-7475
SELECT DISTINCT + COUNT ( * ) * 93 AS col1 FROM tab1
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT ALL - + COUNT( * ) AS col0 FROM tab0 WHERE NOT - + 34 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7476
SELECT ALL - + COUNT ( * ) AS col0 FROM tab0 WHERE NOT - + 34 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT + SUM( - col2 ) col2 FROM tab1
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7477
SELECT + SUM ( - col2 ) col2 FROM tab1
----
-223

onlyif mysql # DIV for integer division: 
query I rowsort label-7478
SELECT DISTINCT 90 DIV + + col1 FROM tab1
----
1
18
6

skipif mysql # not compatible
query I rowsort label-7478
SELECT DISTINCT 90 / + + col1 FROM tab1
----
1
18
6

query I rowsort
SELECT col2 FROM tab1 WHERE NOT + - col1 IN ( + + col0 )
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7480
SELECT DISTINCT - col0 DIV + 52 AS col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-7480
SELECT DISTINCT - col0 / + 52 AS col2 FROM tab1
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7481
SELECT - col2 DIV - - 51 AS col1 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7481
SELECT - col2 / - - 51 AS col1 FROM tab0 cor0
----
-1
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 = col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( 46 ) AS col1 FROM tab0
----
46
46
46

query III rowsort
SELECT * FROM tab2 WHERE + col1 * - 13 - 60 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( - 90 ) * 4 * + col2 - + col2 + + col2 FROM tab0 AS cor0
----
-16920
-35640
-3600

query I rowsort
SELECT - - 83 FROM tab0 AS cor0 WHERE col0 / + col2 >= NULL
----

query I rowsort
SELECT + + 90 + col1 * 94 + - 82 FROM tab2 cor0
----
4802
6306
7246

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7488
SELECT DISTINCT - col2, + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-7488
SELECT DISTINCT - col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT DISTINCT + ( - 33 ) + - 44 AS col0 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT ( + - 88 ) + COUNT( * ) - - + 30 col0 FROM tab2
----
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7490
SELECT ( + - 88 ) + COUNT ( * ) - - + 30 col0 FROM tab2
----
-55

query I rowsort
SELECT 71 + + col0 - - col2 AS col2 FROM tab2
----
140
175
204

query I rowsort
SELECT DISTINCT col2 * col1 + - 82 FROM tab2
----
1091
2998
3804

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7493
SELECT col2 + + ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7493
SELECT col2 + + ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + + + col0 AS col1 FROM tab1
----
138
65
90

query II rowsort
SELECT DISTINCT col2 AS col0, - col2 FROM tab2
----
23
-23
40
-40
58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT ALL - ( - - SUM( - + 3 ) ) + + 45 col0 FROM tab0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7496
SELECT ALL - ( - - SUM ( - + 3 ) ) + + 45 col0 FROM tab0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7497
SELECT ALL - 66 + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7497
SELECT ALL - 66 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 5 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT - col0 * - col0 FROM tab1 WHERE ( col0 / - col1 * + + 71 * + + 28 + - col2 ) IS NOT NULL
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7500
SELECT DISTINCT ( - 52 ) + - CAST( NULL AS SIGNED ) + + 16 / col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7500
SELECT DISTINCT ( - 52 ) + - CAST ( NULL AS INTEGER ) + + 16 / col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT ALL MIN( - - 74 ) AS col0 FROM tab0 cor0
----
74

skipif mysql # not compatible
query I rowsort label-7501
SELECT ALL MIN ( - - 74 ) AS col0 FROM tab0 cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT - MAX( - col0 ) col0 FROM tab2 cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7502
SELECT - MAX ( - col0 ) col0 FROM tab2 cor0
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7503
SELECT ALL - 30 - + - ( COUNT( ALL - col1 ) ) DIV + SUM( - 68 ) FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-7503
SELECT ALL - 30 - + - ( COUNT ( ALL - col1 ) ) / + SUM ( - 68 ) FROM tab0 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT DISTINCT MIN( ALL - - 90 ) FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-7504
SELECT DISTINCT MIN ( ALL - - 90 ) FROM tab2 AS cor0
----
90

query I rowsort
SELECT col2 - - col0 + + col2 FROM tab2
----
144
191
92

query I rowsort
SELECT - col2 - 62 FROM tab0
----
-109
-161
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT + COUNT( * ) + + MAX( + col2 ) FROM tab0 WHERE NOT - 66 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7507
SELECT + COUNT ( * ) + + MAX ( + col2 ) FROM tab0 WHERE NOT - 66 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> 57 + 29
----

query I rowsort
SELECT ALL - 90 * + + 79 * - 59 FROM tab1 AS cor0
----
419490
419490
419490

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT DISTINCT + SUM( - ( - + col1 ) ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7510
SELECT DISTINCT + SUM ( - ( - + col1 ) ) FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT SUM( ALL - - 36 ) FROM tab2 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-7511
SELECT SUM ( ALL - - 36 ) FROM tab2 AS cor0
----
108

query I rowsort
SELECT - - 81 + 4 AS col1 FROM tab1 WHERE NOT + col2 / - col0 + - col1 + - + 17 + + col1 <= - col0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT DISTINCT 27 * - - SUM( DISTINCT - col2 ) AS col0 FROM tab1
----
-6021

skipif mysql # not compatible
query I rowsort label-7513
SELECT DISTINCT 27 * - - SUM ( DISTINCT - col2 ) AS col0 FROM tab1
----
-6021

query III rowsort
SELECT * FROM tab0 WHERE NOT - 12 / - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7515
SELECT + + MIN( DISTINCT 92 ) DIV - COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-30

skipif mysql # not compatible
query I rowsort label-7515
SELECT + + MIN ( DISTINCT 92 ) / - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT DISTINCT + MIN( ALL + + col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-7516
SELECT DISTINCT + MIN ( ALL + + col1 ) FROM tab2
----
51

query I rowsort
SELECT + - 69 * + col0 FROM tab0 WHERE NOT NULL <= + col1 / - + col0 * + col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 97 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7519
SELECT ALL + 25 * - MIN( col1 ) + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7519
SELECT ALL + 25 * - MIN ( col1 ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + col1 * + col1 AS col1 FROM tab2 cor0
----
2601
4489
5929

query II rowsort
SELECT - 10, col2 AS col0 FROM tab0 AS cor0
----
-10
10
-10
47
-10
99

query II rowsort
SELECT + col1 AS col0, col1 + + 85 * - + col2 FROM tab1 cor0
----
14
-8146
47
-5733
5
-5010

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT ALL - 17 * + COUNT( * ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL - 17 * + COUNT ( * ) FROM tab1 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7524
SELECT - - col0 * 99 * + 13 + CAST( NULL AS SIGNED ), + 78 AS col0 FROM tab1 AS cor0
----
NULL
78
NULL
78
NULL
78

skipif mysql # not compatible
query II rowsort label-7524
SELECT - - col0 * 99 * + 13 + CAST ( NULL AS INTEGER ), + 78 AS col0 FROM tab1 AS cor0
----
NULL
78
NULL
78
NULL
78

query I rowsort
SELECT DISTINCT - + col1 + - 54 FROM tab0 AS cor0
----
-135
-55
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7526
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7527
SELECT + SUM( - col2 ) + - CAST( - 80 AS DECIMAL ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7527
SELECT + SUM ( - col2 ) + - CAST ( - 80 AS REAL ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + + 5 * + col0 FROM tab1 AS cor0
----
255
425
455

onlyif mysql # DIV for integer division: 
query I rowsort label-7529
SELECT DISTINCT - col1 DIV 3 DIV - 14 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7529
SELECT DISTINCT - col1 / 3 / - 14 FROM tab2 cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7530
SELECT * FROM tab0 AS cor0 WHERE - ( + col0 ) - - - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-7530
SELECT * FROM tab0 AS cor0 WHERE - ( + col0 ) - - - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL - + col2 AS col1, 28 FROM tab1 AS cor0
----
-59
28
-68
28
-96
28

query I rowsort
SELECT DISTINCT col1 + + col0 * - + col2 + - 28 FROM tab1
----
-4910
-5038
-6169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7533
SELECT + 40 - + col0 * - CAST( - 61 AS SIGNED ) FROM tab1
----
-3071
-5145
-5511

skipif mysql # not compatible
query I rowsort label-7533
SELECT + 40 - + col0 * - CAST ( - 61 AS INTEGER ) FROM tab1
----
-3071
-5145
-5511

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT - ( + COUNT( * ) ) + - 5 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-7534
SELECT - ( + COUNT ( * ) ) + - 5 FROM tab1 AS cor0
----
-8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 71 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( + - col2 ) <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT DISTINCT - MAX( - - col2 ) AS col1 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7537
SELECT DISTINCT - MAX ( - - col2 ) AS col1 FROM tab1 cor0
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7538
SELECT ALL + 95 DIV - + SUM( DISTINCT col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL + 95 / - + SUM ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT DISTINCT - + ( - COUNT( DISTINCT + col0 ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7539
SELECT DISTINCT - + ( - COUNT ( DISTINCT + col0 ) ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE 89 + - 64 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT DISTINCT - ( + COUNT( 4 ) ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7541
SELECT DISTINCT - ( + COUNT ( 4 ) ) AS col1 FROM tab2 cor0
----
-3

query II rowsort
SELECT ALL - - 45, col1 FROM tab1 AS cor0
----
45
14
45
47
45
5

query I rowsort
SELECT 28 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
28
28
28

query II rowsort
SELECT + + 11, 8 * - + 14 AS col1 FROM tab0 AS cor0
----
11
-112
11
-112
11
-112

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 75 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7546
SELECT + CAST( col2 AS SIGNED ) AS col1, - 51 * 47 * - col2 - + ( + CAST( NULL AS SIGNED ) ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-7546
SELECT + CAST ( col2 AS INTEGER ) AS col1, - 51 * 47 * - col2 - + ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7547
SELECT - MIN( DISTINCT + 48 ) AS col0, 68 FROM tab1
----
-48
68

skipif mysql # not compatible
query II rowsort label-7547
SELECT - MIN ( DISTINCT + 48 ) AS col0, 68 FROM tab1
----
-48
68

query II rowsort
SELECT - col0 * - col1, ( + col2 ) FROM tab2
----
2346
23
4928
40
5025
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7549
SELECT DISTINCT + col1 DIV + + col1 + - 13 * - col0 + - ( col0 ) AS col2 FROM tab2 AS cor0
----
553
769
901

skipif mysql # not compatible
query I rowsort label-7549
SELECT DISTINCT + col1 / + + col1 + - 13 * - col0 + - ( col0 ) AS col2 FROM tab2 AS cor0
----
553
769
901

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT - - 58 + 17 * COUNT( * ) col2 FROM tab1 AS cor0
----
109

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7550
SELECT - - 58 + 17 * COUNT ( * ) col2 FROM tab1 AS cor0
----
109

query I rowsort
SELECT ALL - 18 * + col0 * - col2 FROM tab1 AS cor0
----
111384
88128
90270

query I rowsort
SELECT + - ( 98 ) * + + col2 * - + col2 FROM tab0 AS cor0
----
216482
960498
9800

query I rowsort
SELECT DISTINCT + 78 * + col0 + - 72 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + + col0 * 13 + + col0 FROM tab1 AS cor0
----
1190
1274
714

query I rowsort
SELECT ALL col2 - col1 + - - 75 FROM tab2 AS cor0
----
38
47
66

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) > col0 + - col2 - + col1
----

query II rowsort
SELECT - col1 + + col2 * - + col1, col0 AS col2 FROM tab2 AS cor0
----
-1224
46
-3157
64
-3953
75

query I rowsort
SELECT DISTINCT + 65 - col0 + + col2 FROM tab1 AS cor0
----
110
39
42

onlyif mysql # DIV for integer division: 
query I rowsort label-7559
SELECT DISTINCT 45 DIV col0 AS col2 FROM tab0 cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-7559
SELECT DISTINCT 45 / col0 AS col2 FROM tab0 cor0
----
0
3

query I rowsort
SELECT DISTINCT 8 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 81 * - col1 * - + col0 + - - col1 FROM tab1 AS cor0
----
34430
346484
57848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7562
SELECT ( + CAST( col1 AS SIGNED ) ) AS col2 FROM tab1 WHERE - 71 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7562
SELECT ( + CAST ( col1 AS INTEGER ) ) AS col2 FROM tab1 WHERE - 71 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL IS NOT NULL OR - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + 20 AS col0, 50 AS col0 FROM tab1
----
20
50
20
50
20
50

query I rowsort
SELECT col2 + + 84 AS col0 FROM tab0
----
131
183
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, + col1 col1 FROM tab2
----
-51
51
-67
67
-77
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7567
SELECT ALL * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) > + 69 + + + col0
----

skipif mysql # not compatible
query III rowsort label-7567
SELECT ALL * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) > + 69 + + + col0
----

query II rowsort
SELECT ALL col0, - 42 AS col1 FROM tab1
----
51
-42
85
-42
91
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT DISTINCT COUNT( * ) * 41 + + - 34 AS col2 FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-7569
SELECT DISTINCT COUNT ( * ) * 41 + + - 34 AS col2 FROM tab0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7570
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7570
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT + - col0 FROM tab1 AS cor0 WHERE - 90 = - + 72 * - col0 + - - col2 + + col0 * 11 * + + ( col0 ) * col0 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT ALL - - MAX( + col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL - - MAX ( + col0 ) AS col2 FROM tab0 AS cor0
----
97

query II rowsort
SELECT DISTINCT + 45 + + 92, col1 AS col1 FROM tab0 AS cor0 WHERE NULL > 29 * + + 18 * - col2
----

query I rowsort
SELECT ALL - - 40 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT DISTINCT MIN( - ( + 79 ) ) FROM tab2
----
-79

skipif mysql # not compatible
query I rowsort label-7575
SELECT DISTINCT MIN ( - ( + 79 ) ) FROM tab2
----
-79

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 54 > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7578
SELECT - - 0 DIV - + 33 * - - 67, col1 AS col1 FROM tab0 AS cor0
----
0
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-7578
SELECT - - 0 / - + 33 * - - 67, col1 AS col1 FROM tab0 AS cor0
----
0
1
0
21
0
81

query I rowsort
SELECT + 20 * - 22 AS col2 FROM tab1 AS cor0
----
-440
-440
-440

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT - COUNT( * ) + - COUNT( * ) FROM tab0 cor0 WHERE NOT ( + - col2 ) IS NULL
----
-6

skipif mysql # not compatible
query I rowsort label-7580
SELECT - COUNT ( * ) + - COUNT ( * ) FROM tab0 cor0 WHERE NOT ( + - col2 ) IS NULL
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7581
SELECT + - col0 DIV + - col2 AS col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7581
SELECT + - col0 / + - col2 AS col2 FROM tab2 AS cor0
----
1
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col2, 34 + + 2 * - 60 col1 FROM tab2
----
23
-86
40
-86
58
-86

query I rowsort
SELECT DISTINCT - 0 + - col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE - col1 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7585
SELECT CAST( + ( + - CAST( + COUNT( * ) AS SIGNED ) ) AS SIGNED ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7585
SELECT CAST ( + ( + - CAST ( + COUNT ( * ) AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT SUM( + ( 94 ) ) AS col2 FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-7586
SELECT SUM ( + ( 94 ) ) AS col2 FROM tab2
----
282

onlyif mysql # aggregate syntax: 
query II rowsort label-7587
SELECT DISTINCT + 1 * + MAX( ALL - col1 ) AS col1, COUNT( * ) col0 FROM tab0 AS cor0
----
-1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7587
SELECT DISTINCT + 1 * + MAX ( ALL - col1 ) AS col1, COUNT ( * ) col0 FROM tab0 AS cor0
----
-1
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7588
SELECT - 74 DIV + + COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-24

skipif mysql # not compatible
query I rowsort label-7588
SELECT - 74 / + + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-24

query I rowsort
SELECT ALL 52 + 88 + - + 32 AS col1 FROM tab1 AS cor0
----
108
108
108

query I rowsort
SELECT - ( 18 ) AS col1 FROM tab2 cor0
----
-18
-18
-18

query I rowsort
SELECT DISTINCT + 67 - - + 47 FROM tab2 AS cor0
----
114

query I rowsort
SELECT - 4 * col1 FROM tab1 AS cor0
----
-188
-20
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7593
SELECT + - col2 * - CAST( NULL AS SIGNED ) AS col0, col1 col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7593
SELECT + - col2 * - CAST ( NULL AS INTEGER ) AS col0, col1 col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT DISTINCT - col0 * + ( + + 10 ) AS col2 FROM tab1 AS cor0
----
-510
-850
-910

query I rowsort
SELECT ALL + - col2 * - col0 AS col2 FROM tab0 cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT DISTINCT + 31 + - SUM( + 29 ) FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-7596
SELECT DISTINCT + 31 + - SUM ( + 29 ) FROM tab2
----
-56

query I rowsort
SELECT col1 - + 77 FROM tab1
----
-30
-63
-72

query I rowsort
SELECT 25 - + col1 FROM tab0
----
-56
24
4

query I rowsort
SELECT ALL col0 * - 4 * + 10 FROM tab1
----
-2040
-3400
-3640

query I rowsort
SELECT DISTINCT col0 + + + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 col2 FROM tab0 AS cor0 WHERE NOT + 74 IS NULL
----
-1215
-1827
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col2, - col1 col0 FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON - + 69 > NULL
----

query I rowsort
SELECT ALL + 81 FROM tab0 WHERE ( - - 8 ) = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7605
SELECT DISTINCT + CAST( + - col0 AS SIGNED ) col1 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7605
SELECT DISTINCT + CAST ( + - col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT ALL - 99 AS col0, col0 AS col2 FROM tab2 cor0
----
-99
46
-99
64
-99
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT DISTINCT - MAX( col2 ) AS col2 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT - MAX ( col2 ) AS col2 FROM tab1 cor0
----
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 24 + + + 65 + + 79 / 13 > + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7609
SELECT 88 AS col0, + 53 - - 67 DIV 83 * - 82 col0 FROM tab1 AS cor0
----
88
53
88
53
88
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7609
SELECT 88 AS col0, + 53 - - 67 / 83 * - 82 col0 FROM tab1 AS cor0
----
88
53
88
53
88
53

query I rowsort
SELECT ALL + 98 + + + 61 + - + 55 FROM tab1
----
104
104
104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 77 + - 51, 78 col0 FROM tab1
----
-128
78
-128
78
-128
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT ALL - 71 + COUNT( * ) FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL - 71 + COUNT ( * ) FROM tab0
----
-68

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( - 74, 99 * - + 45 )
----

query I rowsort
SELECT 41 * - col1 + col1 * col2 AS col2 FROM tab2
----
-77
-918
1139

onlyif mysql # DIV for integer division: 
query I rowsort label-7615
SELECT + + col0 DIV col1 AS col2 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-7615
SELECT + + col0 / col1 AS col2 FROM tab0 AS cor0
----
0
4
97

query I rowsort
SELECT ( + 99 ) AS col0 FROM tab1
----
99
99
99

query I rowsort
SELECT + ( + 38 ) * ( + + col1 ) AS col2 FROM tab1
----
1786
190
532

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT DISTINCT - COUNT( + 40 ) + + 50 AS col0 FROM tab0 WHERE NULL IS NULL
----
47

skipif mysql # not compatible
query I rowsort label-7618
SELECT DISTINCT - COUNT ( + 40 ) + + 50 AS col0 FROM tab0 WHERE NULL IS NULL
----
47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 11 + + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - col2 - + - col1 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7621
SELECT ALL CAST( NULL AS SIGNED ) + - 45 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL CAST ( NULL AS INTEGER ) + - 45 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT ALL - COUNT( DISTINCT - 76 ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL - COUNT ( DISTINCT - 76 ) AS col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL - 96 - col1 + + + col2 - col0 FROM tab0 AS cor0
----
-145
-194
-95

query I rowsort
SELECT + 77 + - 51 FROM tab1 AS cor0
----
26
26
26

onlyif mysql # aggregate syntax: 
query II rowsort label-7625
SELECT DISTINCT - + COUNT( * ) AS col1, + 83 FROM tab2 AS cor0
----
-3
83

skipif mysql # not compatible
query II rowsort label-7625
SELECT DISTINCT - + COUNT ( * ) AS col1, + 83 FROM tab2 AS cor0
----
-3
83

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 6 < col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7627
SELECT ALL 82 - + col1 - - - ( - col0 ) + 82 DIV - col2 + + 62 FROM tab0 AS cor0
----
202
240
77

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL 82 - + col1 - - - ( - col0 ) + 82 / - col2 + + 62 FROM tab0 AS cor0
----
202
240
77

query I rowsort
SELECT DISTINCT col2 * + 18 AS col1 FROM tab1
----
1062
1224
1728

query I rowsort
SELECT DISTINCT - col1 * - col0 * - col2 FROM tab1
----
-25075
-290836
-68544

query I rowsort
SELECT DISTINCT + 77 * - col1 * + 7 AS col1 FROM tab0
----
-11319
-43659
-539

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab2 WHERE NOT col1 NOT BETWEEN - 54 AND NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) < + 32 - - 27
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7633
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) > + col0
----

skipif mysql # not compatible
query III rowsort label-7633
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) > + col0
----

query I rowsort
SELECT DISTINCT - 92 * 17 * + col2 AS col1 FROM tab2
----
-35972
-62560
-90712

query I rowsort
SELECT + 33 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query II rowsort
SELECT ALL col1 * - + 31 * + + col2 AS col2, + col1 AS col0 FROM tab1 AS cor0
----
-41664
14
-9145
5
-99076
47

query I rowsort
SELECT col0 + - ( + + 64 ) + - - col0 FROM tab0 AS cor0
----
-34
110
130

query I rowsort
SELECT + col0 + 46 AS col0 FROM tab2 AS cor0
----
110
121
92

query II rowsort
SELECT DISTINCT - col1 AS col0, - col0 AS col0 FROM tab0 cor0 WHERE NOT col1 IS NULL
----
-1
-97
-21
-87
-81
-15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7640
SELECT CAST( NULL AS DECIMAL ) + + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7640
SELECT CAST ( NULL AS REAL ) + + COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT ALL COUNT( * ) * - + 7 * - 72 FROM tab2 AS cor0
----
1512

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL COUNT ( * ) * - + 7 * - 72 FROM tab2 AS cor0
----
1512

query I rowsort
SELECT DISTINCT col0 + + + 35 FROM tab1 AS cor0
----
120
126
86

onlyif mysql # DIV for integer division: 
query I rowsort label-7643
SELECT 85 DIV - - 72 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7643
SELECT 85 / - - 72 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7644
SELECT ALL + 52 AS col2, COUNT( * ) FROM tab0
----
52
3

skipif mysql # not compatible
query II rowsort label-7644
SELECT ALL + 52 AS col2, COUNT ( * ) FROM tab0
----
52
3

query III rowsort
SELECT * FROM tab2 WHERE - 86 IS NULL
----

query I rowsort
SELECT ALL - col0 * + 18 + 90 - + - col0 FROM tab1
----
-1355
-1457
-777

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT - COUNT( * ) * + COUNT( * ) col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7647
SELECT - COUNT ( * ) * + COUNT ( * ) col0 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 = + + 69
----

query II rowsort
SELECT ALL + col1 * 49 AS col1, + col1 AS col0 FROM tab1
----
2303
47
245
5
686
14

query I rowsort
SELECT ALL + col0 * + col1 * - 96 + col0 + + col2 AS col1 FROM tab0 WHERE NULL > + + col1 + - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7651
SELECT ALL + 28 - + 94 + + + col1 * - CAST( NULL AS DECIMAL ) * + + ( + 96 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL + 28 - + 94 + + + col1 * - CAST ( NULL AS REAL ) * + + ( + 96 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7652
SELECT ALL + + col0 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN CAST( col1 AS SIGNED ) AND 41 + + 91
----

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL + + col0 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN CAST ( col1 AS INTEGER ) AND 41 + + 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT DISTINCT ( + MIN( + + 47 ) ) col1 FROM tab0 AS cor0 WHERE NOT ( NOT - 83 NOT BETWEEN - col1 AND 34 * + col1 / - col1 )
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7653
SELECT DISTINCT ( + MIN ( + + 47 ) ) col1 FROM tab0 AS cor0 WHERE NOT ( NOT - 83 NOT BETWEEN - col1 AND 34 * + col1 / - col1 )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7654
SELECT + CAST( + col1 AS SIGNED ) * 87 FROM tab1 cor0
----
1218
4089
435

skipif mysql # not compatible
query I rowsort label-7654
SELECT + CAST ( + col1 AS INTEGER ) * 87 FROM tab1 cor0
----
1218
4089
435

query II rowsort
SELECT DISTINCT + 81 AS col2, - 29 + - - 38 FROM tab0
----
81
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT ALL - MAX( + 3 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7656
SELECT ALL - MAX ( + 3 ) AS col0 FROM tab0
----
-3

query II rowsort
SELECT - 7 AS col2, + col0 + + col1 * + col1 FROM tab1
----
-7
110
-7
2300
-7
247

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7658
SELECT - COUNT( * ) DIV - 97 * - 15 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7658
SELECT - COUNT ( * ) / - 97 * - 15 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 * + 32 * - 5 AS col1 FROM tab0 AS cor0
----
-15840
-1600
-7520

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT MIN( ALL - - 51 ) AS col1 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7660
SELECT MIN ( ALL - - 51 ) AS col1 FROM tab0 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT COUNT( * ) FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NOT - 59 <= - 73
----
9

skipif mysql # not compatible
query I rowsort label-7661
SELECT COUNT ( * ) FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NOT - 59 <= - 73
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT - ( + MAX( ALL + col2 ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-7662
SELECT - ( + MAX ( ALL + col2 ) ) FROM tab0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 16 * - col0 col0 FROM tab1 AS cor0
----
78336
80240
99008

query I rowsort
SELECT ALL + 1 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
1
1
1

query I rowsort
SELECT ALL - 82 AS col1 FROM tab1 AS cor0 WHERE NOT col0 * + - 40 / + + 68 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7666
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 33 - - CAST( - col1 AS SIGNED ) * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7666
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 33 - - CAST ( - col1 AS INTEGER ) * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7667
SELECT DISTINCT + + CAST( - 68 AS SIGNED ) col2 FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7667
SELECT DISTINCT + + CAST ( - 68 AS INTEGER ) col2 FROM tab2 AS cor0
----
-68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7668
SELECT 54 + + - CAST( NULL AS DECIMAL ) * 26 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7668
SELECT 54 + + - CAST ( NULL AS REAL ) * 26 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 79 + + col2 FROM tab0
----
126
178
89

onlyif mysql # DIV for integer division: 
query I rowsort label-7670
SELECT + 44 DIV + + 76 + + 85 AS col1 FROM tab2
----
85
85
85

skipif mysql # not compatible
query I rowsort label-7670
SELECT + 44 / + + 76 + + 85 AS col1 FROM tab2
----
85
85
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7671
SELECT ALL 3 DIV - - ( - col1 ) col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7671
SELECT ALL 3 / - - ( - col1 ) col1 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE - - col2 + + 31 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7673
SELECT + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT 28 NOT BETWEEN NULL AND + - col2
----

skipif mysql # not compatible
query I rowsort label-7673
SELECT + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT 28 NOT BETWEEN NULL AND + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7674
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 53 / + 35 AND + CAST( 12 AS SIGNED ) / + col1 + col2
----

skipif mysql # not compatible
query III rowsort label-7674
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 53 / + 35 AND + CAST ( 12 AS INTEGER ) / + col1 + col2
----

query I rowsort
SELECT DISTINCT - + ( + 87 ) AS col1 FROM tab2 AS cor0
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-7676
SELECT ALL col1 * + ( + ( + 85 ) ) + - ( + col1 ) + - + 4 DIV + 76 * - 22 - + col1 FROM tab2 AS cor0
----
4233
5561
6391

skipif mysql # not compatible
query I rowsort label-7676
SELECT ALL col1 * + ( + ( + 85 ) ) + - ( + col1 ) + - + 4 / + 76 * - 22 - + col1 FROM tab2 AS cor0
----
4233
5561
6391

onlyif mysql # aggregate syntax: 
query II rowsort label-7677
SELECT + + COUNT( + 24 ), + 62 AS col0 FROM tab0 AS cor0
----
3
62

skipif mysql # not compatible
query II rowsort label-7677
SELECT + + COUNT ( + 24 ), + 62 AS col0 FROM tab0 AS cor0
----
3
62

query I rowsort
SELECT col0 + - col0 - + col0 + col1 - - col2 FROM tab2
----
28
50
53

query I rowsort
SELECT col2 + + + 1 FROM tab0
----
100
11
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT - - 87 + 21 * + + COUNT( * ) FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-7680
SELECT - - 87 + 21 * + + COUNT ( * ) FROM tab2 AS cor0
----
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + col0 col0 FROM tab1 AS cor0
----
37
44
80

query II rowsort
SELECT 86 + + 51 * + col1 AS col0, + col0 + col0 - - col1 AS col0 FROM tab2 AS cor0
----
2687
143
3503
217
4013
205

query II rowsort
SELECT + + col1 AS col2, + col2 * + ( col2 ) FROM tab2 AS cor0
----
51
529
67
3364
77
1600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 8, - col2 col0 FROM tab1 AS cor0
----
8
-59
8
-68
8
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7685
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE CAST( NULL AS SIGNED ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7685
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE CAST ( NULL AS INTEGER ) < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT MAX( + - 94 ) AS col2 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-7686
SELECT MAX ( + - 94 ) AS col2 FROM tab1
----
-94

query I rowsort
SELECT + col0 - + col0 * - col2 AS col0 FROM tab1
----
4947
5100
6279

query II rowsort
SELECT col2 - ( + + col1 ) - - + col0 AS col0, 22 FROM tab1
----
112
22
133
22
139
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * + col1 + - + 3 - + + 48 - col1 col2 FROM tab2 AS cor0
----
-1275
-3208
-4004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7690
SELECT + 61 * + CAST( NULL AS SIGNED ) + - 51 AS col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7690
SELECT + 61 * + CAST ( NULL AS INTEGER ) + - 51 AS col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + 40 * + - col1 FROM tab2
----
-2040
-2680
-3080

query I rowsort
SELECT DISTINCT - 93 * + - col0 FROM tab1 cor0
----
4743
7905
8463

onlyif mysql # DIV for integer division: 
query I rowsort label-7693
SELECT DISTINCT + + ( col2 ) DIV - - col0 + - 35 FROM tab0 AS cor0
----
-32
-34
-35

skipif mysql # not compatible
query I rowsort label-7693
SELECT DISTINCT + + ( col2 ) / - - col0 + - 35 FROM tab0 AS cor0
----
-32
-34
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT ALL + - MIN( + + col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7694
SELECT ALL + - MIN ( + + col2 ) AS col2 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT - MIN( - - 45 ) AS col2 FROM tab2 cor0 WHERE NOT 61 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7695
SELECT - MIN ( - - 45 ) AS col2 FROM tab2 cor0 WHERE NOT 61 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT + 47 * + MIN( ALL + col0 ) AS col2 FROM tab0
----
705

skipif mysql # not compatible
query I rowsort label-7696
SELECT + 47 * + MIN ( ALL + col0 ) AS col2 FROM tab0
----
705

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT - 13 * + - MAX( DISTINCT col0 ) FROM tab1
----
1183

skipif mysql # not compatible
query I rowsort label-7697
SELECT - 13 * + - MAX ( DISTINCT col0 ) FROM tab1
----
1183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7698
SELECT CAST( + 24 AS SIGNED ) FROM tab2
----
24
24
24

skipif mysql # not compatible
query I rowsort label-7698
SELECT CAST ( + 24 AS INTEGER ) FROM tab2
----
24
24
24

query I rowsort
SELECT + ( - col2 ) * + col1 FROM tab2
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col1, - 47 + - + ( + col1 ) col0, - col2 AS col0 FROM tab0
----
9 values hashing to 854bd5a25327f38cbcf813e569305bc8

query II rowsort
SELECT ALL col0, + 77 AS col1 FROM tab1
----
51
77
85
77
91
77

query II rowsort
SELECT col2, + 95 * - col1 - 70 FROM tab0
----
10
-2065
47
-7765
99
-165

query I rowsort
SELECT 90 AS col1 FROM tab1 AS cor0 WHERE NOT ( ( col0 ) <> ( NULL ) )
----

query II rowsort
SELECT col0, col0 * + col0 AS col0 FROM tab0 AS cor0
----
15
225
87
7569
97
9409

query I rowsort
SELECT + 59 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7706
SELECT DISTINCT + 74 * - ( + 67 ) * CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7706
SELECT DISTINCT + 74 * - ( + 67 ) * CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT ALL 10 * - ( - - 18 ) + - + col1 AS col2 FROM tab2
----
-231
-247
-257

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7708
SELECT ALL + 19 + - + CAST( NULL AS SIGNED ) + + 64 + + 52 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL + 19 + - + CAST ( NULL AS INTEGER ) + + 64 + + 52 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col1 + col2, col2 AS col1 FROM tab1 AS cor0
----
21
68
54
59
82
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT - + MAX( ALL - 65 ) + + 46 AS col2 FROM tab1 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-7710
SELECT - + MAX ( ALL - 65 ) + + 46 AS col2 FROM tab1 AS cor0
----
111

query I rowsort
SELECT - 0 + col1 - + col2 AS col1 FROM tab2
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7712
SELECT col2 + 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-7712
SELECT col2 + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + + - 5 FROM tab0
----
10
82
92

query I rowsort
SELECT ALL ( - ( + col2 ) ) + - 60 FROM tab0
----
-107
-159
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT + COUNT( * ) + 60 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-7715
SELECT + COUNT ( * ) + 60 FROM tab0
----
63

query I rowsort
SELECT DISTINCT col2 + - col2 * + + col0 * col2 FROM tab2
----
-102360
-24311
-252242

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + - 30 / - 30 )
----

query I rowsort
SELECT DISTINCT - col0 + - + col2 AS col1 FROM tab0
----
-196
-62
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7719
SELECT + col2 * - ( - col1 ) / + col2 + 22 - CAST( NULL AS DECIMAL ) * + 24 - col0 * col1 - - 62 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7719
SELECT + col2 * - ( - col1 ) / + col2 + 22 - CAST ( NULL AS REAL ) * + 24 - col0 * col1 - - 62 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + + col2 AS col0, + 24 AS col0 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
59
24
68
24
96
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7721
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE ( + col2 ) - - 79 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-7721
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( + col2 ) - - 79 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col1 / + col2 + - col1 * - col1 FROM tab1 WHERE NULL IN ( - col2 - 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT SUM( ALL col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-7723
SELECT SUM ( ALL col2 ) AS col1 FROM tab1
----
223

query III rowsort
SELECT * FROM tab0 WHERE - col0 / - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE - col2 - col0 * ( - 55 * 14 ) IS NULL
----

query I rowsort
SELECT ALL col0 + 77 AS col1 FROM tab1
----
128
162
168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7727
SELECT 24 + + COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7727
SELECT 24 + + COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT + COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 WHERE NOT - col1 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7728
SELECT + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 WHERE NOT - col1 IS NULL
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 NOT BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT col0 + - col1 * - col2 AS col0 FROM tab1
----
1395
3287
380

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT DISTINCT ( - ( 80 ) ) AS col0 FROM tab2
----
-80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 NOT IN ( - col0 )
----

query I rowsort
SELECT + col2 + + 0 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL - 65 AS col2 FROM tab2 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NOT - col0 NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7736
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT - col0 NOT IN ( col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT + col1 * + col1 + 7 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7737
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT + col1 * + col1 + 7 IS NOT NULL
----
0

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT col2 <= col1
----
51
85
91

query III rowsort
SELECT * FROM tab2 WHERE col2 NOT BETWEEN NULL AND col1 - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7740
SELECT CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL BETWEEN ( + col1 * col0 ) AND col1 + - col2
----

skipif mysql # not compatible
query I rowsort label-7740
SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL BETWEEN ( + col1 * col0 ) AND col1 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7741
SELECT CAST( - 92 AS SIGNED ) FROM tab1 WHERE NOT ( - col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7741
SELECT CAST ( - 92 AS INTEGER ) FROM tab1 WHERE NOT ( - col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( col1 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT ALL SUM( ALL 67 ) + + COUNT( * ) * COUNT( * ) FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-7743
SELECT ALL SUM ( ALL 67 ) + + COUNT ( * ) * COUNT ( * ) FROM tab0
----
210

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 82 / 4 NOT IN ( + 46 + 51 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7745
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-9

query I rowsort
SELECT ALL ( 16 ) - col2 FROM tab2 AS cor0
----
-24
-42
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-7747
SELECT 91 DIV + col0 AS col1 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-7747
SELECT 91 / + col0 AS col1 FROM tab0 AS cor0
----
0
1
6

query I rowsort
SELECT + - 93 * - col2 AS col2 FROM tab1 cor0
----
5487
6324
8928

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT DISTINCT + + COUNT( * ) * - 11 - SUM( + col2 - + col1 ) * 61 FROM tab1 AS cor0
----
-9610

skipif mysql # not compatible
query I rowsort label-7749
SELECT DISTINCT + + COUNT ( * ) * - 11 - SUM ( + col2 - + col1 ) * 61 FROM tab1 AS cor0
----
-9610

query I rowsort
SELECT ( + 92 ) AS col2 FROM tab2 cor0 WHERE NULL <= 28 * + 48
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col0 AND ( NULL )
----

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NULL NOT IN ( - ( col2 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 NOT IN ( 29 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7755
SELECT * FROM tab2 WHERE col0 * CAST( NULL AS SIGNED ) + - col1 NOT IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-7755
SELECT * FROM tab2 WHERE col0 * CAST ( NULL AS INTEGER ) + - col1 NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7756
SELECT * FROM tab1 WHERE NULL IN ( col0 * CAST( + ( + CAST( col0 AS SIGNED ) ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7756
SELECT * FROM tab1 WHERE NULL IN ( col0 * CAST ( + ( + CAST ( col0 AS INTEGER ) ) AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT DISTINCT - COUNT( * ) * 41 * - COUNT( * ) FROM tab1
----
369

skipif mysql # not compatible
query I rowsort label-7757
SELECT DISTINCT - COUNT ( * ) * 41 * - COUNT ( * ) FROM tab1
----
369

query III rowsort
SELECT * FROM tab0 WHERE ( 53 + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 15 - - 55 * ( col0 + 63 ) AS col0 FROM tab2
----
6010
7000
7605

query I rowsort
SELECT 76 * + 79 + - col2 FROM tab0
----
5905
5957
5994

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 4 NOT BETWEEN col0 AND - 63 / - 25
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 + + + col1 + - ( 51 ) AS col2 FROM tab2
----
103
51
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT COUNT( * ) + - 96 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-7763
SELECT COUNT ( * ) + - 96 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-285

query I rowsort
SELECT col0 + ( + 1 ) AS col1 FROM tab2 cor0
----
47
65
76

query I rowsort
SELECT + - ( - ( + col0 ) ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT - 84 AS col1 FROM tab0 AS cor0 WHERE 42 IN ( - 68 )
----

query I rowsort
SELECT ALL - col2 * + 39 + + col0 AS col0 FROM tab2 AS cor0
----
-1496
-2187
-851

query I rowsort
SELECT ALL col1 * - 38 AS col0 FROM tab1 AS cor0
----
-1786
-190
-532

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT ALL - COUNT( * ) * 36 FROM tab1 AS cor0 WHERE + col0 <= + col1
----
0

skipif mysql # not compatible
query I rowsort label-7769
SELECT ALL - COUNT ( * ) * 36 FROM tab1 AS cor0 WHERE + col0 <= + col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7770
SELECT - 82 DIV ( - col1 ) * col0 FROM tab0
----
15
261
7954

skipif mysql # not compatible
query I rowsort label-7770
SELECT - 82 / ( - col1 ) * col0 FROM tab0
----
15
261
7954

query I rowsort
SELECT ALL 76 AS col1 FROM tab2 WHERE 2 * + col2 >= col2
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT DISTINCT COUNT( DISTINCT 81 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7772
SELECT DISTINCT COUNT ( DISTINCT 81 ) AS col0 FROM tab0
----
1

query I rowsort
SELECT DISTINCT + + 70 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
70

query I rowsort
SELECT DISTINCT 49 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
49

query II rowsort
SELECT + col0 AS col1, col2 * + 25 FROM tab1 AS cor0
----
51
2400
85
1475
91
1700

query II rowsort
SELECT ALL - + col0 AS col0, ( + col1 ) + 64 * + col0 FROM tab2 AS cor0
----
-46
2995
-64
4173
-75
4867

query I rowsort
SELECT DISTINCT 89 * - col2 * col2 FROM tab1 AS cor0
----
-309809
-411536
-820224

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * - col1 * 57 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * - - 76 FROM tab0 cor0
----
1596
6156
76

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT 69 / + + ( - col0 ) * col2 <> col0 * - 55
----

query I rowsort
SELECT DISTINCT - + 16 * + col1 FROM tab0 AS cor0
----
-1296
-16
-336

onlyif mysql # DIV for integer division: 
query II rowsort label-7782
SELECT - col2 AS col2, col2 DIV - 21 + ( 64 ) col2 FROM tab2 AS cor0
----
-23
63
-40
63
-58
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7782
SELECT - col2 AS col2, col2 / - 21 + ( 64 ) col2 FROM tab2 AS cor0
----
-23
63
-40
63
-58
62

query II rowsort
SELECT 89 * - col2, col0 AS col0 FROM tab1
----
-5251
85
-6052
91
-8544
51

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 + + + col1 - - 75 * + - col1 * + col1 * 87 AS col2 FROM tab2
----
-16971451
-29290600
-38686608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7786
SELECT 45 + - CAST( col1 AS SIGNED ) - col2 FROM tab0
----
-55
-83
14

skipif mysql # not compatible
query I rowsort label-7786
SELECT 45 + - CAST ( col1 AS INTEGER ) - col2 FROM tab0
----
-55
-83
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7787
SELECT ALL * FROM tab0 WHERE NOT + - col1 + + + CAST( NULL AS SIGNED ) + - col1 NOT BETWEEN ( + 44 ) AND col1
----

skipif mysql # not compatible
query III rowsort label-7787
SELECT ALL * FROM tab0 WHERE NOT + - col1 + + + CAST ( NULL AS INTEGER ) + - col1 NOT BETWEEN ( + 44 ) AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - - col1 col0 FROM tab2 AS cor0
----
1173
3080
3886

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - - col0 <= + 79 / - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT - COUNT( DISTINCT - + col0 ) * + 21 col0 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7790
SELECT - COUNT ( DISTINCT - + col0 ) * + 21 col0 FROM tab2 AS cor0
----
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7791
SELECT * FROM tab1 AS cor0 WHERE + 52 NOT BETWEEN NULL AND ( + 1 + + CAST( col2 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-7791
SELECT * FROM tab1 AS cor0 WHERE + 52 NOT BETWEEN NULL AND ( + 1 + + CAST ( col2 AS REAL ) )
----

query I rowsort
SELECT + col1 * 44 + + col2 AS col1 FROM tab0 cor0
----
143
3611
934

query I rowsort
SELECT DISTINCT - col0 * + 70 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL NOT BETWEEN + - 72 AND col1 + 43 / - col1 )
----

query II rowsort
SELECT - col1, - 72 AS col2 FROM tab2
----
-51
-72
-67
-72
-77
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7795
SELECT DISTINCT + col2 - + CAST( NULL AS SIGNED ) + + + 60 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7795
SELECT DISTINCT + col2 - + CAST ( NULL AS INTEGER ) + + + 60 FROM tab1
----
NULL

query I rowsort
SELECT ALL + - 7 + - + col2 + col2 * - col2 FROM tab1 AS cor0
----
-3547
-4699
-9319

query II rowsort
SELECT col0, 78 AS col1 FROM tab0 AS cor0 WHERE - col0 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT DISTINCT COUNT( * ) + ( COUNT( + col0 ) ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7798
SELECT DISTINCT COUNT ( * ) + ( COUNT ( + col0 ) ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT ALL + 2 - + col1 AS col0 FROM tab2 AS cor0
----
-49
-65
-75

query I rowsort
SELECT ALL + ( 62 ) * col2 - col1 AS col0 FROM tab2 AS cor0
----
1375
2403
3529

query I rowsort
SELECT 77 AS col2 FROM tab1 AS cor0 WHERE - 87 NOT BETWEEN - col0 * + - 71 AND + col2
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT + ( - 34 ) + - COUNT( * ) + 4 AS col0 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-7802
SELECT + ( - 34 ) + - COUNT ( * ) + 4 AS col0 FROM tab0 AS cor0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7803
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= CAST( col2 AS SIGNED ) + - col1
----

skipif mysql # not compatible
query III rowsort label-7803
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= CAST ( col2 AS INTEGER ) + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7804
SELECT 91 AS col2, - CAST( NULL AS DECIMAL ) + 3 * COUNT( * ) FROM tab1 WHERE + - col2 IS NOT NULL
----
91
NULL

skipif mysql # not compatible
query II rowsort label-7804
SELECT 91 AS col2, - CAST ( NULL AS REAL ) + 3 * COUNT ( * ) FROM tab1 WHERE + - col2 IS NOT NULL
----
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT SUM( - - 49 ) FROM tab0 WHERE ( NOT NULL IS NOT NULL )
----
147

skipif mysql # not compatible
query I rowsort label-7805
SELECT SUM ( - - 49 ) FROM tab0 WHERE ( NOT NULL IS NOT NULL )
----
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab2 WHERE NOT ( - + ( + - 31 ) ) < + col2
----
46

query I rowsort
SELECT ALL ( + col1 ) + - ( 8 ) AS col1 FROM tab1 WHERE NOT ( - - col2 * - col2 * + col0 + + col2 ) IS NULL
----
-3
39
6

query II rowsort
SELECT DISTINCT 90 AS col1, - 26 AS col2 FROM tab2
----
90
-26

query I rowsort
SELECT DISTINCT col2 * col0 AS col1 FROM tab2 WHERE NOT ( col2 + - - col2 * - col1 ) > ( - ( - col1 ) )
----
1058
2560
4350

query I rowsort
SELECT 15 FROM tab1 WHERE NOT ( NOT - 52 * col2 <> + ( col2 ) - col1 )
----
15
15
15

query I rowsort
SELECT DISTINCT 39 - 85 AS col0 FROM tab2 WHERE + col0 + + - col1 NOT BETWEEN ( - col0 * + col1 + col2 ) AND + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7812
SELECT - COUNT( * ) AS col1, - 87 AS col0 FROM tab1
----
-3
-87

skipif mysql # not compatible
query II rowsort label-7812
SELECT - COUNT ( * ) AS col1, - 87 AS col0 FROM tab1
----
-3
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT DISTINCT SUM( DISTINCT - ( col0 ) ) col0 FROM tab2 cor0
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7813
SELECT DISTINCT SUM ( DISTINCT - ( col0 ) ) col0 FROM tab2 cor0
----
-185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7814
SELECT - - 11 * + + COUNT( * ) DIV + COUNT( * ) FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-7814
SELECT - - 11 * + + COUNT ( * ) / + COUNT ( * ) FROM tab1 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT DISTINCT MAX( ALL + col0 ) * + - 49 FROM tab0 AS cor0
----
-4753

skipif mysql # not compatible
query I rowsort label-7815
SELECT DISTINCT MAX ( ALL + col0 ) * + - 49 FROM tab0 AS cor0
----
-4753

query II rowsort
SELECT col1 AS col0, - col1 + 86 FROM tab0 AS cor0
----
1
85
21
65
81
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 50 BETWEEN NULL AND 83
----

query I rowsort
SELECT - - col0 * - col2 * col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT ALL - SUM( - + col1 ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL - SUM ( - + col1 ) AS col1 FROM tab2
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( + 10 ) AS col2, - 77 col1 FROM tab0 AS cor0
----
-10
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT + COUNT( * ) + - MIN( ALL + col1 ) * SUM( + + col1 ) AS col2 FROM tab2 AS cor0
----
-9942

skipif mysql # not compatible
query I rowsort label-7821
SELECT + COUNT ( * ) + - MIN ( ALL + col1 ) * SUM ( + + col1 ) AS col2 FROM tab2 AS cor0
----
-9942

query I rowsort
SELECT 59 + col1 + col2 FROM tab1 AS cor0
----
123
169
174

query I rowsort
SELECT DISTINCT + col0 * + col0 * - 17 * + col2 FROM tab0 AS cor0
----
-1286730
-15835347
-179775

query I rowsort
SELECT - ( - + 41 ) * - - 36 AS col0 FROM tab1 AS cor0
----
1476
1476
1476

query I rowsort
SELECT col0 / col2 FROM tab0 AS cor0 WHERE NOT ( 45 ) * col0 + + 77 NOT IN ( - - col0 + 45 * + 54 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7826
SELECT ALL - 21 + - CAST( NULL AS SIGNED ) / COUNT( * ) + + + MAX( - + 9 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7826
SELECT ALL - 21 + - CAST ( NULL AS INTEGER ) / COUNT ( * ) + + + MAX ( - + 9 ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = + 53 * - - col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7828
SELECT ALL 96 + + CAST( - + col2 AS SIGNED ) DIV + col2 AS col0, + col2 AS col1 FROM tab2
----
95
23
95
40
95
58

skipif mysql # not compatible
query II rowsort label-7828
SELECT ALL 96 + + CAST ( - + col2 AS INTEGER ) / + col2 AS col0, + col2 AS col1 FROM tab2
----
95
23
95
40
95
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT DISTINCT + - ( SUM( DISTINCT + col0 ) ) + + ( + MIN( ALL + + col2 ) ) FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-7829
SELECT DISTINCT + - ( SUM ( DISTINCT + col0 ) ) + + ( + MIN ( ALL + + col2 ) ) FROM tab1 AS cor0
----
-168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7830
SELECT ALL + 98 DIV COUNT( * ) AS col1 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL + 98 / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
32

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 - col2 <> ( NULL )
----

query I rowsort
SELECT DISTINCT + 53 + + col1 * 95 FROM tab2 AS cor0
----
4898
6418
7368

query I rowsort
SELECT ALL col1 - col1 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7834
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * + + col2 - + - col1 * - + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7834
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * + + col2 - + - col1 * - + col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * + 72 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 15 FROM tab2 AS cor0 WHERE - col1 NOT IN ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7837
SELECT DISTINCT 15 - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7837
SELECT DISTINCT 15 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT ALL - 88 * + + COUNT( * ) FROM tab0
----
-264

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL - 88 * + + COUNT ( * ) FROM tab0
----
-264

query II rowsort
SELECT ALL - 6, col2 AS col2 FROM tab2 AS cor0
----
-6
23
-6
40
-6
58

query I rowsort
SELECT ALL - col0 * - + 50 AS col0 FROM tab2 cor0
----
2300
3200
3750

query I rowsort
SELECT DISTINCT + 90 AS col1 FROM tab0 cor0
----
90

query I rowsort
SELECT - col2 * - 88 + + 90 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( col2 ) col0 FROM tab1
----
-3481
-4624
-9216

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 52 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 11 * - + col1 AS col2 FROM tab0 AS cor0
----
11
231
891

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT ALL MAX( DISTINCT + + 93 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL MAX ( DISTINCT + + 93 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT ALL + SUM( col0 ) * 72 FROM tab2 cor0
----
13320

skipif mysql # not compatible
query I rowsort label-7847
SELECT ALL + SUM ( col0 ) * 72 FROM tab2 cor0
----
13320

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( 72 )
----

query I rowsort
SELECT 82 * - col2 AS col0 FROM tab2 AS cor0
----
-1886
-3280
-4756

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( - + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 37 + 14 AS col0 FROM tab0 cor0
----
51
51
51

query I rowsort
SELECT DISTINCT 87 * + 29 * - 22 FROM tab1, tab0 AS cor0
----
-55506

query I rowsort
SELECT - 38 * + + col2 + - col1 * + 72 FROM tab0
----
-1892
-3834
-7618

query I rowsort
SELECT + 41 + + + col2 AS col2 FROM tab2
----
64
81
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7855
SELECT COUNT( * ) DIV + COUNT( * ) + + COUNT( * ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-7855
SELECT COUNT ( * ) / + COUNT ( * ) + + COUNT ( * ) FROM tab2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7856
SELECT + CAST( NULL AS SIGNED ) * + 10 + + + ( + col1 ) / col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7856
SELECT + CAST ( NULL AS INTEGER ) * + 10 + + + ( + col1 ) / col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 96 + - - ( - col0 ) AS col0 FROM tab1
----
11
45
5

query I rowsort
SELECT - 65 / - 49 + + 29 AS col1 FROM tab2 WHERE NULL >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 14 NOT IN ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE ( - + ( - col1 ) + 99 ) NOT BETWEEN col2 * - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7861
SELECT ALL + col1 * col2, col1 * col2 / - col0 / CAST( - col0 AS SIGNED ) AS col0 FROM tab2 WHERE NOT ( NOT ( NULL ) BETWEEN - 86 AND NULL )
----

skipif mysql # not compatible
query II rowsort label-7861
SELECT ALL + col1 * col2, col1 * col2 / - col0 / CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 WHERE NOT ( NOT ( NULL ) BETWEEN - 86 AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7862
SELECT DISTINCT - col2 + CAST( NULL AS SIGNED ), col2 AS col0 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-7862
SELECT DISTINCT - col2 + CAST ( NULL AS INTEGER ), col2 AS col0 FROM tab0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT 26 FROM tab0 AS cor0 WHERE col2 * + + ( - + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT - COUNT( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7864
SELECT - COUNT ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col2 + + col1 - - + col0 AS col1 FROM tab0
----
118
143
197

query I rowsort
SELECT ALL + 90 + - 80 AS col0 FROM tab0
----
10
10
10

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - + 26 AND - 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT 76 + - COUNT( * ) FROM tab2 AS cor0 WHERE col1 / - 52 IS NOT NULL
----
73

skipif mysql # not compatible
query I rowsort label-7868
SELECT 76 + - COUNT ( * ) FROM tab2 AS cor0 WHERE col1 / - 52 IS NOT NULL
----
73

query I rowsort
SELECT DISTINCT - 56 - - + 7 AS col2 FROM tab0 AS cor0
----
-49

query I rowsort
SELECT ALL 22 + + - col0 AS col0 FROM tab0 AS cor0
----
-65
-75
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT - + SUM( + 88 ) col2 FROM tab1 AS cor0
----
-264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7871
SELECT - + SUM ( + 88 ) col2 FROM tab1 AS cor0
----
-264

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT col1 + - ( - col1 ) IS NULL
----
-23
-40
-58

query II rowsort
SELECT + col0, col0 AS col0 FROM tab1 cor0
----
51
51
85
85
91
91

query I rowsort
SELECT ( col2 ) * - col0 * - 15 AS col0 FROM tab2 AS cor0
----
15870
38400
65250

query II rowsort
SELECT + 18 * + 6 + col0, + col0 * - 44 AS col0 FROM tab2 cor0
----
154
-2024
172
-2816
183
-3300

query II rowsort
SELECT - col0 * + col0 AS col2, 92 FROM tab0
----
-225
92
-7569
92
-9409
92

query I rowsort
SELECT DISTINCT - col1 * - 67 AS col1 FROM tab1
----
3149
335
938

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 10 + col2 * - col1 IS NULL
----

query I rowsort
SELECT ALL - col0 - 11 + - col2 + + 33 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * col2 * - col0 AS col2 FROM tab0
----
10575
75690
931491

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7881
SELECT + + col0 col0 FROM tab0 WHERE NOT 70 * + + col0 * + - CAST( NULL AS DECIMAL ) / CAST( + - 28 AS SIGNED ) + + col0 * + + col0 + - col1 + - 39 - 53 / + col1 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7881
SELECT + + col0 col0 FROM tab0 WHERE NOT 70 * + + col0 * + - CAST ( NULL AS REAL ) / CAST ( + - 28 AS INTEGER ) + + col0 * + + col0 + - col1 + - 39 - 53 / + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col0 ) > 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT + + 72 * - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-7883
SELECT + + 72 * - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
216

query I rowsort
SELECT 86 AS col1 FROM tab1 cor0
----
86
86
86

onlyif mysql # DIV for integer division: 
query II rowsort label-7885
SELECT col1 DIV + - col0, + col1 FROM tab0 AS cor0
----
-5
81
0
1
0
21

skipif mysql # not compatible
query II rowsort label-7885
SELECT col1 / + - col0, + col1 FROM tab0 AS cor0
----
-5
81
0
1
0
21

query I rowsort
SELECT DISTINCT - 44 AS col2 FROM tab2 cor0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7887
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7887
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT DISTINCT - 18 + + - COUNT( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-27

skipif mysql # not compatible
query I rowsort label-7888
SELECT DISTINCT - 18 + + - COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT - MIN( DISTINCT - ( - 48 ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-48

skipif mysql # not compatible
query I rowsort label-7889
SELECT - MIN ( DISTINCT - ( - 48 ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT ALL + + SUM( DISTINCT 19 ) AS col0 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-7890
SELECT ALL + + SUM ( DISTINCT 19 ) AS col0 FROM tab2 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT - + MAX( col0 ) + + SUM( - - col2 ) AS col0 FROM tab1 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-7891
SELECT - + MAX ( col0 ) + + SUM ( - - col2 ) AS col0 FROM tab1 AS cor0
----
132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 63 col0 FROM tab2 AS cor0
----
114
130
140

query I rowsort
SELECT + - 93 + col0 + 64 * + col0 FROM tab1 AS cor0
----
3222
5432
5822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7894
SELECT - - ( - col1 ) * - col0 + + col0 + + CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
4300
451
669

skipif mysql # not compatible
query I rowsort label-7894
SELECT - - ( - col1 ) * - col0 + + col0 + + CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
4300
451
669

query I rowsort
SELECT ALL + 14 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14
14
14

query I rowsort
SELECT - col0 * - col0 + + col2 + + 12 * + + 49 * col2 * + 89 FROM tab1 AS cor0
----
3094872
3566925
5026569

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT DISTINCT - SUM( + + col2 ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-7897
SELECT DISTINCT - SUM ( + + col2 ) AS col0 FROM tab0
----
-156

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 / + 97 + + 86 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 91 + + + col0 FROM tab0
----
106
178
188

query I rowsort
SELECT DISTINCT - + AVG ( - col2 ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7901
SELECT ALL col2 + + ( + 86 ) DIV + 82 - + col1 FROM tab1
----
22
55
83

skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL col2 + + ( + 86 ) / + 82 - + col1 FROM tab1
----
22
55
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7902
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - MAX( col1 ) - + 96 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7902
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - MAX ( col1 ) - + 96 AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7903
SELECT DISTINCT + COUNT( * ) AS col0, - 83 * SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7903
SELECT DISTINCT + COUNT ( * ) AS col0, - 83 * SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
3
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7904
SELECT ALL - 39 - + 31 + + col1 * col0 DIV - col2 FROM tab2 AS cor0
----
-156
-172
-193

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL - 39 - + 31 + + col1 * col0 / - col2 FROM tab2 AS cor0
----
-156
-172
-193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7905
SELECT DISTINCT - 10 - + CAST( NULL AS SIGNED ) + + - 81 * + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7905
SELECT DISTINCT - 10 - + CAST ( NULL AS INTEGER ) + + - 81 * + col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 44 * + col1 * - - col0 AS col1 FROM tab0
----
4268
53460
80388

query I rowsort
SELECT col0 * + + 54 * + col1 FROM tab1
----
22950
230958
38556

query II rowsort
SELECT ALL col2 * - col0 AS col1, + col0 AS col2 FROM tab2
----
-1058
46
-2560
64
-4350
75

query I rowsort
SELECT DISTINCT - + 5 AS col2 FROM tab2 AS cor0
----
-5

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 BETWEEN + - col2 AND ( + col1 + - col1 + - 19 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 * - 4 - + col1 FROM tab1 AS cor0
----
141
15
42

query I rowsort
SELECT 41 * + col0 FROM tab0
----
3567
3977
615

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT - 59 * + COUNT( * ) AS col0 FROM tab2 WHERE NOT ( NOT + 13 IS NOT NULL )
----
-177

skipif mysql # not compatible
query I rowsort label-7913
SELECT - 59 * + COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( NOT + 13 IS NOT NULL )
----
-177

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT + col2 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7915
SELECT - col0 DIV - ( + - col0 ) FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7915
SELECT - col0 / - ( + - col0 ) FROM tab0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7916
SELECT - + 92 * - - col1 AS col1 FROM tab0 WHERE NOT - - col0 NOT BETWEEN CAST( + + col1 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-7916
SELECT - + 92 * - - col1 AS col1 FROM tab0 WHERE NOT - - col0 NOT BETWEEN CAST ( + + col1 AS INTEGER ) AND NULL
----

query I rowsort
SELECT DISTINCT - 7 * - - 64 AS col2 FROM tab2
----
-448

query II rowsort
SELECT + col0 AS col1, col1 - + 93 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
-12
87
-72
97
-92

query II rowsort
SELECT ALL col2 AS col1, ( 62 ) FROM tab0
----
10
62
47
62
99
62

query I rowsort
SELECT DISTINCT + col2 * + col2 * col1 - + 31 + - 68 FROM tab1 AS cor0
----
128925
17306
217229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 col2 FROM tab0 cor0
----
-25
-25
-25

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT 90 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + ( + 39 ) col1 FROM tab1 AS cor0
----
124
130
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT + 34 + SUM( col0 ) FROM tab0
----
233

skipif mysql # not compatible
query I rowsort label-7925
SELECT + 34 + SUM ( col0 ) FROM tab0
----
233

query I rowsort
SELECT + col1 + + 87 FROM tab0
----
108
168
88

query I rowsort
SELECT ALL col0 + - - 28 * + - col2 * - - 33 AS col0 FROM tab1
----
-54431
-62741
-88653

query II rowsort
SELECT col2 * - col2 + col0, col2 FROM tab2 WHERE + 84 IS NULL
----

query I rowsort
SELECT + col2 + col2 * - col0 + + - 92 FROM tab1
----
-4892
-5048
-6212

query I rowsort
SELECT ALL - ( - col2 ) + + 54 - - ( - col1 ) AS col2 FROM tab2
----
17
26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT + SUM( col0 ) - - MAX( ALL 80 ) col2 FROM tab2 AS cor0
----
265

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7931
SELECT + SUM ( col0 ) - - MAX ( ALL 80 ) col2 FROM tab2 AS cor0
----
265

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7932
SELECT + CAST( NULL AS DECIMAL ) - + + 85 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7932
SELECT + CAST ( NULL AS REAL ) - + + 85 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT DISTINCT + ( COUNT( * ) ) - + 7 AS col2 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-7933
SELECT DISTINCT + ( COUNT ( * ) ) - + 7 AS col2 FROM tab1
----
-4

query I rowsort
SELECT + - ( - 29 ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT + COUNT( DISTINCT - ( 6 ) ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7935
SELECT + COUNT ( DISTINCT - ( 6 ) ) AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7936
SELECT + col2 AS col2, col0 DIV + + 41 AS col1 FROM tab1 cor0
----
59
2
68
2
96
1

skipif mysql # not compatible
query II rowsort label-7936
SELECT + col2 AS col2, col0 / + + 41 AS col1 FROM tab1 cor0
----
59
2
68
2
96
1

query II rowsort
SELECT ALL 35 + - col0, col1 AS col1 FROM tab2 AS cor0 WHERE 47 >= - col1 * - col1
----

query II rowsort
SELECT + + col1, - 14 FROM tab2 AS cor0
----
51
-14
67
-14
77
-14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + - 18 < NULL OR NULL NOT IN ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 col2 FROM tab0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7941
SELECT DISTINCT COUNT( * ) DIV - 5 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7941
SELECT DISTINCT COUNT ( * ) / - 5 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 92 col1 FROM tab1
----
92

query II rowsort
SELECT ALL - col2 * col2 * + col2 + + + col1, 85 AS col0 FROM tab0 AS cor0 WHERE NOT ( col2 / 21 ) IS NULL
----
-103742
85
-970298
85
-979
85

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 cor0 WHERE NOT NULL < ( col1 + - + 53 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col0 / + + 7 * + col2 / - - col2 NOT IN ( + - col0, - 77 * 40 * + col2 - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col1, 42 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 + - - ( + 24 ) - + + col1 > NULL
----

query I rowsort
SELECT col0 + - 26 AS col2 FROM tab0 AS cor0
----
-11
61
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT DISTINCT - SUM( col2 ) * MIN( + col2 ) FROM tab0 AS cor0
----
-1560

skipif mysql # not compatible
query I rowsort label-7949
SELECT DISTINCT - SUM ( col2 ) * MIN ( + col2 ) FROM tab0 AS cor0
----
-1560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 * - col2 col2 FROM tab1 AS cor0
----
-4012
-4624
-6528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7951
SELECT ALL COUNT( * ) DIV + MAX( DISTINCT + ( + 82 ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL COUNT ( * ) / + MAX ( DISTINCT + ( + 82 ) ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7952
SELECT DISTINCT - - MIN( DISTINCT - + 6 ) DIV - 51 + - COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7952
SELECT DISTINCT - - MIN ( DISTINCT - + 6 ) / - 51 + - COUNT ( * ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE + + 3 - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7954
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE ( NOT col2 * - - col1 + - + ( col0 ) >= CAST( + - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7954
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE ( NOT col2 * - - col1 + - + ( col0 ) >= CAST ( + - col0 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( - col0 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7956
SELECT col2 - - col2 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT col2 - - col2 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7957
SELECT ALL col1 DIV + col2 + + 33 AS col2 FROM tab1
----
33
33
33

skipif mysql # not compatible
query I rowsort label-7957
SELECT ALL col1 / + col2 + + 33 AS col2 FROM tab1
----
33
33
33

onlyif mysql # aggregate syntax: 
query III rowsort label-7958
SELECT COUNT( + + ( - col1 ) ) - + MAX( DISTINCT 54 ) AS col1, SUM( DISTINCT + - 23 ), + + COUNT( * ) * - - COUNT( * ) AS col1 FROM tab0
----
-51
-23
9

skipif mysql # not compatible
query III rowsort label-7958
SELECT COUNT ( + + ( - col1 ) ) - + MAX ( DISTINCT 54 ) AS col1, SUM ( DISTINCT + - 23 ), + + COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab0
----
-51
-23
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 42 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col0 * + - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7961
SELECT ALL + + col2 - - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL + + col2 - - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= - ( + - col2 ) / + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7963
SELECT ALL + CAST( + COUNT( ALL + - 61 ) AS SIGNED ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL + CAST ( + COUNT ( ALL + - 61 ) AS INTEGER ) AS col1 FROM tab2 cor0
----
3

query I rowsort
SELECT + 11 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT DISTINCT MAX( - + col0 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT MAX ( - + col0 ) AS col0 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT DISTINCT + + ( + - MAX( DISTINCT - ( - col0 ) ) ) col1 FROM tab1 cor0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7966
SELECT DISTINCT + + ( + - MAX ( DISTINCT - ( - col0 ) ) ) col1 FROM tab1 cor0
----
-91

query I rowsort
SELECT - - 35 AS col0 FROM tab1 cor0
----
35
35
35

query II rowsort
SELECT DISTINCT col1, - col0 - col0 FROM tab0 AS cor0
----
1
-194
21
-174
81
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT ALL + MIN( - col2 ) * - 22 * MIN( + + col1 ) FROM tab2 AS cor0
----
65076

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL + MIN ( - col2 ) * - 22 * MIN ( + + col1 ) FROM tab2 AS cor0
----
65076

query I rowsort
SELECT DISTINCT 45 * - col1 AS col1 FROM tab1 AS cor0
----
-2115
-225
-630

query I rowsort
SELECT col1 + - - col1 AS col0 FROM tab2 cor0 WHERE NOT 68 * + col1 + - + 81 IS NULL
----
102
134
154

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( - 31 ) AND - 11 - + 75 * col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT DISTINCT MAX( ALL - col0 ) col1 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7973
SELECT DISTINCT MAX ( ALL - col0 ) col1 FROM tab0
----
-15

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 29 / + + col2 * - col2 * col2 * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7975
SELECT ALL 71 AS col2, COUNT( * ) FROM tab0
----
71
3

skipif mysql # not compatible
query II rowsort label-7975
SELECT ALL 71 AS col2, COUNT ( * ) FROM tab0
----
71
3

query I rowsort
SELECT col1 * + col2 * 92 AS col0 FROM tab0
----
19320
350244
9108

query II rowsort
SELECT DISTINCT col2, + col2 AS col1 FROM tab0 WHERE NOT ( + 85 ) NOT IN ( 44 + - 44, - 6 + + 81, - + 47, + 7, + col0, 12 )
----

query I rowsort
SELECT ( col0 ) + - + 26 FROM tab0
----
-11
61
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col0 FROM tab0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT - 62 + + col2 AS col2 FROM tab0
----
-15
-52
37

query I rowsort
SELECT + ( + - 8 ) + + - col1 FROM tab2
----
-59
-75
-85

query I rowsort
SELECT DISTINCT - 23 * - 41 FROM tab2
----
943

query I rowsort
SELECT DISTINCT - - 97 * + 74 FROM tab0 cor0
----
7178

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7984
SELECT - 65 * - - 51 FROM tab0 AS cor0 WHERE col2 * + + col2 + - CAST( + col1 AS DECIMAL ) IS NOT NULL
----
-3315
-3315
-3315

skipif mysql # not compatible
query I rowsort label-7984
SELECT - 65 * - - 51 FROM tab0 AS cor0 WHERE col2 * + + col2 + - CAST ( + col1 AS REAL ) IS NOT NULL
----
-3315
-3315
-3315

query I rowsort
SELECT DISTINCT + 57 * - col2 AS col0 FROM tab2 cor0
----
-1311
-2280
-3306

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT ALL MIN( 50 ) FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL MIN ( 50 ) FROM tab0
----
50

query I rowsort
SELECT 7 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7988
SELECT + ( - COUNT( * ) ) DIV + + 78 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7988
SELECT + ( - COUNT ( * ) ) / + + 78 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT DISTINCT 75 + - MAX( DISTINCT + col2 ) FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-7989
SELECT DISTINCT 75 + - MAX ( DISTINCT + col2 ) FROM tab0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7990
SELECT ALL CAST( AVG ( DISTINCT col1 ) AS SIGNED ) * + COUNT( * ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7990
SELECT ALL CAST ( AVG ( DISTINCT col1 ) AS INTEGER ) * + COUNT ( * ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL - + ( - + col2 ) - - col0 FROM tab2 cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT MAX( - col0 ) + + - 73 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-127

skipif mysql # not compatible
query I rowsort label-7992
SELECT MAX ( - col0 ) + + - 73 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-127

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + 35 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 - + 30 + - ( + 88 ) AS col1 FROM tab1 AS cor0
----
-123
-132
-165

query I rowsort
SELECT col2 * + col0 + col1 + + col2 FROM tab1 AS cor0
----
5006
5079
6303

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7996
SELECT ALL col1 - - - 44 - + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7996
SELECT ALL col1 - - - 44 - + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT ALL - ( + COUNT( * ) ) + + + 10 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL - ( + COUNT ( * ) ) + + + 10 FROM tab1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT COUNT( * ) + + 31 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-7998
SELECT COUNT ( * ) + + 31 FROM tab2
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + ( col0 ) AS col0, + col1 * + col2 * + ( 18 ) col0 FROM tab1
----
138
57528
65
24192
90
5310

query II rowsort
SELECT col2, + ( col1 ) FROM tab2
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query II rowsort label-8001
SELECT ALL - ( + + COUNT( * ) ) + 10, + COUNT( * ) AS col0 FROM tab0
----
7
3

skipif mysql # not compatible
query II rowsort label-8001
SELECT ALL - ( + + COUNT ( * ) ) + 10, + COUNT ( * ) AS col0 FROM tab0
----
7
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8002
SELECT CAST( + col0 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col0 * col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8002
SELECT CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col0 * col0 IS NOT NULL
----

query II rowsort
SELECT + col1 AS col1, - 94 AS col0 FROM tab2 AS cor0
----
51
-94
67
-94
77
-94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( col0 ) * + 21 AS col1 FROM tab0
----
1827
2037
315

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8006
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= ( CAST( - col0 AS SIGNED ) + + 72 )
----

skipif mysql # not compatible
query III rowsort label-8006
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= ( CAST ( - col0 AS INTEGER ) + + 72 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT COUNT( DISTINCT 44 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8007
SELECT COUNT ( DISTINCT 44 ) FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8008
SELECT ALL + - ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8008
SELECT ALL + - ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8009
SELECT + col0 DIV 18 * - + col0 FROM tab0 AS cor0
----
-348
-485
0

skipif mysql # not compatible
query I rowsort label-8009
SELECT + col0 / 18 * - + col0 FROM tab0 AS cor0
----
-348
-485
0

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE + col1 * + col1 IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT ( - 94 ) AS col2 FROM tab2 AS cor0
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8012
SELECT MIN( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8012
SELECT MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( NOT ( NULL >= + 72 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8014
SELECT DISTINCT col0 + - - col0 + - col1 + - + 22 - + + CAST( 30 AS SIGNED ) FROM tab2
----
-1
-11
31

skipif mysql # not compatible
query I rowsort label-8014
SELECT DISTINCT col0 + - - col0 + - col1 + - + 22 - + + CAST ( 30 AS INTEGER ) FROM tab2
----
-1
-11
31

query I rowsort
SELECT DISTINCT + 62 + + col0 AS col0 FROM tab1
----
113
147
153

query I rowsort
SELECT - 13 - col2 FROM tab1 WHERE 43 >= + ( + - col0 )
----
-109
-72
-81

query I rowsort
SELECT ( 31 ) + - - col1 AS col1 FROM tab2 WHERE - 95 - + col0 NOT IN ( - col2 * - col1, + 80, - 12 )
----
108
82
98

query I rowsort
SELECT - 99 * + 98 AS col0 FROM tab0
----
-9702
-9702
-9702

query I rowsort
SELECT DISTINCT col0 + + - 28 AS col0 FROM tab1
----
23
57
63

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 34 / - 51 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 39 + col0 AS col2 FROM tab2 AS cor0
----
25
36
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8022
SELECT ALL + - 96 * COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 - - CAST( NULL AS SIGNED ) + + col1 * + + col1 IN ( 63 + + + 94, col0 + - - ( + col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8022
SELECT ALL + - 96 * COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 - - CAST ( NULL AS INTEGER ) + + col1 * + + col1 IN ( 63 + + + 94, col0 + - - ( + col2 ) )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 90 + + 13 col0 FROM tab1 cor0
----
103
103
103

onlyif mysql # DIV for integer division: 
query I rowsort label-8024
SELECT + col2 DIV + - col2 + - 69 AS col2 FROM tab2 AS cor0
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-8024
SELECT + col2 / + - col2 + - 69 AS col2 FROM tab2 AS cor0
----
-70
-70
-70

query I rowsort
SELECT ALL col1 * + 19 + col0 * + 32 AS col0 FROM tab0
----
2019
3123
3183

query I rowsort
SELECT ALL 15 + 64 AS col0 FROM tab1 AS cor0
----
79
79
79

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 96 + + - 50 IS NULL
----

query II rowsort
SELECT - - col0 AS col2, col2 AS col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8029
SELECT DISTINCT - - 22 - - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-25
-77
12

skipif mysql # not compatible
query I rowsort label-8029
SELECT DISTINCT - - 22 - - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-25
-77
12

query I rowsort
SELECT DISTINCT + - ( + - col0 ) AS col0 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE - 89 + col1 IS NOT NULL
----
51
67
77

query I rowsort
SELECT + 5 * - col1 * 28 AS col1 FROM tab0 AS cor0
----
-11340
-140
-2940

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8033
SELECT ALL + + 71 DIV - + ( 57 ) + + 87 DIV + COUNT( + col2 ) - + COUNT( * ) col1, - 83 AS col0 FROM tab2 AS cor0
----
25
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8033
SELECT ALL + + 71 / - + ( 57 ) + + 87 / + COUNT ( + col2 ) - + COUNT ( * ) col1, - 83 AS col0 FROM tab2 AS cor0
----
25
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT DISTINCT + 76 - - + 42 * - COUNT( + 24 ) FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-8034
SELECT DISTINCT + 76 - - + 42 * - COUNT ( + 24 ) FROM tab1 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT DISTINCT - 95 - MAX( DISTINCT + 16 ) FROM tab1
----
-111

skipif mysql # not compatible
query I rowsort label-8035
SELECT DISTINCT - 95 - MAX ( DISTINCT + 16 ) FROM tab1
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) col2 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8036
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) col2 FROM tab2
----
9

query I rowsort
SELECT DISTINCT ( - col2 ) * - 31 AS col2 FROM tab2
----
1240
1798
713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8038
SELECT ALL 5 * - ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL 5 * - ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT DISTINCT - 62 * + MAX( + col2 ) FROM tab1
----
-5952

skipif mysql # not compatible
query I rowsort label-8039
SELECT DISTINCT - 62 * + MAX ( + col2 ) FROM tab1
----
-5952

query I rowsort
SELECT ALL + col1 * + 91 * - col0 AS col2 FROM tab1
----
-38675
-389207
-64974

onlyif mysql # DIV for integer division: 
query I rowsort label-8041
SELECT - col0 DIV col2 col2 FROM tab0
----
-8
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8041
SELECT - col0 / col2 col2 FROM tab0
----
-8
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8042
SELECT MAX( - 43 ) * - SUM( CAST( col0 AS SIGNED ) ) AS col2 FROM tab1
----
9761

skipif mysql # not compatible
query I rowsort label-8042
SELECT MAX ( - 43 ) * - SUM ( CAST ( col0 AS INTEGER ) ) AS col2 FROM tab1
----
9761

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8043
SELECT 80 * - 59 * + CAST( - col2 AS SIGNED ) AS col2 FROM tab2
----
108560
188800
273760

skipif mysql # not compatible
query I rowsort label-8043
SELECT 80 * - 59 * + CAST ( - col2 AS INTEGER ) AS col2 FROM tab2
----
108560
188800
273760

onlyif mysql # DIV for integer division: 
query I rowsort label-8044
SELECT col2 DIV - + 49 + - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-59

skipif mysql # not compatible
query I rowsort label-8044
SELECT col2 / - + 49 + - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8045
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + col1 + CAST( + col1 AS SIGNED ) + + col0 - + col0 NOT BETWEEN NULL AND + col2
----
-3

skipif mysql # not compatible
query I rowsort label-8045
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + col1 + CAST ( + col1 AS INTEGER ) + + col0 - + col0 NOT BETWEEN NULL AND + col2
----
-3

query I rowsort
SELECT ALL + 89 * - + col2 FROM tab2
----
-2047
-3560
-5162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8047
SELECT DISTINCT - CAST( + + CAST( NULL AS DECIMAL ) AS SIGNED ) / - - MIN( ALL - col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8047
SELECT DISTINCT - CAST ( + + CAST ( NULL AS REAL ) AS INTEGER ) / - - MIN ( ALL - col0 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT + COUNT( * ) AS col1 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-8048
SELECT + COUNT ( * ) AS col1 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8049
SELECT 51 AS col1, MAX( col2 ) FROM tab2
----
51
58

skipif mysql # not compatible
query II rowsort label-8049
SELECT 51 AS col1, MAX ( col2 ) FROM tab2
----
51
58

query I rowsort
SELECT DISTINCT + - ( + 85 ) FROM tab2 cor0
----
-85

query I rowsort
SELECT col0 + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT + 35 * - + 98 IS NULL
----
-66
66
96

query I rowsort
SELECT DISTINCT - + col1 * - col2 * 71 AS col2 FROM tab0 cor0
----
14910
270297
7029

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, 75 * - col1 * + col0 col0 FROM tab0 cor0
----
10
-137025
47
-91125
99
-7275

query II rowsort
SELECT ALL + col0, col0 + + col1 FROM tab2 AS cor0
----
46
97
64
141
75
142

query I rowsort
SELECT + col0 + + 42 AS col2 FROM tab2
----
106
117
88

onlyif mysql # aggregate syntax: 
query II rowsort label-8056
SELECT ALL 96 + - COUNT( * ), ( - - COUNT( * ) ) + - COUNT( * ) AS col0 FROM tab1
----
93
0

skipif mysql # not compatible
query II rowsort label-8056
SELECT ALL 96 + - COUNT ( * ), ( - - COUNT ( * ) ) + - COUNT ( * ) AS col0 FROM tab1
----
93
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT + 75 + - MAX( + col1 ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-8057
SELECT + 75 + - MAX ( + col1 ) FROM tab0
----
-6

query II rowsort
SELECT col1 + + ( - - col2 ) - - - 76 + + col1 * + - col1 * 19 + + + ( - col1 ) AS col1, 66 FROM tab0
----
-124688
66
-8445
66
4
66

query II rowsort
SELECT ALL 23 + + + 23 AS col2, - col0 - - 4 FROM tab0
----
46
-11
46
-83
46
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8060
SELECT ALL 63 + - CAST( + - 18 AS SIGNED ) AS col2 FROM tab0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-8060
SELECT ALL 63 + - CAST ( + - 18 AS INTEGER ) AS col2 FROM tab0
----
81
81
81

query I rowsort
SELECT col1 + + - 28 + + 52 FROM tab2
----
101
75
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8062
SELECT 66 * 71 + - col2 DIV - 55 AS col2 FROM tab0
----
4686
4686
4687

skipif mysql # not compatible
query I rowsort label-8062
SELECT 66 * 71 + - col2 / - 55 AS col2 FROM tab0
----
4686
4686
4687

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 59 + - col1 = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( 94 ) * 75 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE - col1 - col0 BETWEEN NULL AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 col1 FROM tab0
----
43
43
43

query I rowsort
SELECT DISTINCT 15 + + - col0 FROM tab2
----
-31
-49
-60

query I rowsort
SELECT ALL + + col1 * - col0 - + + col2 AS col0 FROM tab1 AS cor0
----
-4345
-484
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT ALL MAX( DISTINCT col1 ) * - 49 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3969

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL MAX ( DISTINCT col1 ) * - 49 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col0 + + + 81 col2 FROM tab1 AS cor0
----
-344
-4196
-633

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT - 77 + COUNT( * ) FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-8071
SELECT - 77 + COUNT ( * ) FROM tab0 AS cor0
----
-74

query I rowsort
SELECT ALL 45 - + - 67 AS col2 FROM tab2 AS cor0
----
112
112
112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - col2 ) * 41 col2 FROM tab2 AS cor0
----
1640
2378
943

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT ALL - MIN( ALL 15 ) AS col1 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8074
SELECT ALL - MIN ( ALL 15 ) AS col1 FROM tab2 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT - MIN( + 59 ) col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8075
SELECT - MIN ( + 59 ) col2 FROM tab1 AS cor0
----
-59

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 * - col0 + + ( + - 53 ) + col2 * ( col0 ) - - 97 / + ( - 92 ) + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 53 * - 95
----

query II rowsort
SELECT DISTINCT 15, + col0 FROM tab2 cor0
----
15
46
15
64
15
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8079
SELECT - 44 DIV col1 * + + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8079
SELECT - 44 / col1 * + + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * 85 FROM tab1 AS cor0
----
-4335
-7225
-7735

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8081
SELECT DISTINCT COUNT( DISTINCT + col0 ) DIV + + 96 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8081
SELECT DISTINCT COUNT ( DISTINCT + col0 ) / + + 96 AS col1 FROM tab1
----
0

query I rowsort
SELECT + + 65 AS col2 FROM tab2 AS cor0 WHERE NOT ( + col1 IS NULL )
----
65
65
65

query I rowsort
SELECT DISTINCT + - 56 AS col2 FROM tab0 AS cor0
----
-56

query I rowsort
SELECT + col1 * - 2 + + col2 FROM tab2 cor0
----
-114
-76
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-8085
SELECT + 63 * - + col2 DIV + + col2 + + col0 * - 22 * + col1 FROM tab0 AS cor0
----
-2197
-26793
-40257

skipif mysql # not compatible
query I rowsort label-8085
SELECT + 63 * - + col2 / + + col2 + + col0 * - 22 * + col1 FROM tab0 AS cor0
----
-2197
-26793
-40257

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8086
SELECT + + CAST( - MAX( DISTINCT 93 ) AS SIGNED ) FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-8086
SELECT + + CAST ( - MAX ( DISTINCT 93 ) AS INTEGER ) FROM tab1 AS cor0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8087
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN 45 AND + 34 + + CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8087
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN 45 AND + 34 + + CAST ( col1 AS INTEGER )
----

query I rowsort
SELECT ALL + 30 AS col1 FROM tab1 AS cor0 WHERE NOT ( - col2 * 80 * 87 <= NULL )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL <= NULL )
----

query I rowsort
SELECT DISTINCT - - col1 + - col0 AS col0 FROM tab2 WHERE + col0 IS NOT NULL
----
-8
13
5

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NULL BETWEEN + + 46 AND + col1
----

query I rowsort
SELECT ALL 7 + + col2 FROM tab2
----
30
47
65

query II rowsort
SELECT DISTINCT - col2 * ( + + 88 ) + - col0 * - + col1 * - ( + col2 ) * - col0 - col1, + col2 AS col0 FROM tab1
----
2126178
59
26460045
68
3487282
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT + ( + + MAX( DISTINCT + col2 ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-8094
SELECT + ( + + MAX ( DISTINCT + col2 ) ) FROM tab0
----
99

query I rowsort
SELECT 70 - col2 FROM tab1 AS cor0
----
-26
11
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8096
SELECT ALL - col0 DIV 12 FROM tab2 AS cor0
----
-3
-5
-6

skipif mysql # not compatible
query I rowsort label-8096
SELECT ALL - col0 / 12 FROM tab2 AS cor0
----
-3
-5
-6

query I rowsort
SELECT ( - 58 ) AS col0 FROM tab0, tab1 cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

query I rowsort
SELECT ALL + - col0 - 75 FROM tab2 AS cor0
----
-121
-139
-150

query I rowsort
SELECT ALL ( - 65 ) AS col0 FROM tab1 AS cor0
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT DISTINCT MAX( ALL - + col2 ) FROM tab0 AS cor0 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8100
SELECT DISTINCT MAX ( ALL - + col2 ) FROM tab0 AS cor0 WHERE NULL <= NULL
----
NULL

query I rowsort
SELECT + col0 * + 81 * 48 * - ( + ( + - 53 ) ) AS col2 FROM tab0
----
17927568
19988208
3090960

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 75 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8103
SELECT 62 DIV + col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8103
SELECT 62 / + col1 FROM tab2
----
0
0
1

query III rowsort
SELECT * FROM tab0 WHERE NOT - 75 * + - 77 > - 96
----

query II rowsort
SELECT + 34 AS col2, col2 + + - col1 AS col2 FROM tab0 AS cor0
----
34
-11
34
-34
34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT ( - MIN( DISTINCT + col0 ) ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8106
SELECT ( - MIN ( DISTINCT + col0 ) ) FROM tab0 AS cor0
----
-15

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 IN ( + col0, ( - - 68 ) + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT ALL + SUM( DISTINCT - + col2 ) * 86 FROM tab1
----
-19178

skipif mysql # not compatible
query I rowsort label-8108
SELECT ALL + SUM ( DISTINCT - + col2 ) * 86 FROM tab1
----
-19178

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IS NOT NULL OR NOT NULL = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col1 AS col0, col2 AS col1 FROM tab2
----
-51
23
-67
58
-77
40

query I rowsort
SELECT ALL + 93 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - + col2 col1 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT ALL - + SUM( - col1 ) * + 49 FROM tab1 AS cor0
----
3234

skipif mysql # not compatible
query I rowsort label-8113
SELECT ALL - + SUM ( - col1 ) * + 49 FROM tab1 AS cor0
----
3234

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 64 <> col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * - 38 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT - 70 + + - COUNT( + + col0 ) + + ( - COUNT( * ) ) AS col0 FROM tab0
----
-76

skipif mysql # not compatible
query I rowsort label-8116
SELECT - 70 + + - COUNT ( + + col0 ) + + ( - COUNT ( * ) ) AS col0 FROM tab0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT DISTINCT - 33 * - COUNT( + + 37 ) AS col2 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-8117
SELECT DISTINCT - 33 * - COUNT ( + + 37 ) AS col2 FROM tab1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT COUNT( * ) FROM tab0 WHERE ( ( NOT NULL <= + 43 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8118
SELECT COUNT ( * ) FROM tab0 WHERE ( ( NOT NULL <= + 43 ) )
----
0

query I rowsort
SELECT - col1 * col0 + + 75 AS col1 FROM tab1
----
-350
-4202
-639

query I rowsort
SELECT + col1 + - col0 * - col2 FROM tab2
----
1109
2637
4417

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8122
SELECT + CAST( + + col1 AS SIGNED ) FROM tab2 AS cor0 WHERE col1 NOT BETWEEN NULL AND + col2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8122
SELECT + CAST ( + + col1 AS INTEGER ) FROM tab2 AS cor0 WHERE col1 NOT BETWEEN NULL AND + col2
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + ( - - 45 ) * + 47 col0 FROM tab0 AS cor0
----
209385
21150
99405

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT + COUNT( * ) - - - 49 + - - COUNT( * ) col0 FROM tab0 cor0
----
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8124
SELECT + COUNT ( * ) - - - 49 + - - COUNT ( * ) col0 FROM tab0 cor0
----
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - 12 col1 FROM tab1 AS cor0
----
-108
-71
-80

query I rowsort
SELECT - 35 - - 27 * - - col1 + - - 38 AS col1 FROM tab1
----
1272
138
381

onlyif mysql # aggregate syntax: 
query II rowsort label-8127
SELECT ALL - COUNT( * ) AS col0, MAX( + + col0 ) * 88 FROM tab0
----
-3
8536

skipif mysql # not compatible
query II rowsort label-8127
SELECT ALL - COUNT ( * ) AS col0, MAX ( + + col0 ) * 88 FROM tab0
----
-3
8536

query II rowsort
SELECT ALL 20 * 61, 93 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query II rowsort
SELECT 18, + 10 + - 33 * col2 * 14 AS col0 FROM tab0 AS cor0
----
18
-21704
18
-45728
18
-4610

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT + 25 >= + col2
----
67
77

query II rowsort
SELECT col1 * - col0 * + - 93 AS col0, - 85 FROM tab1 AS cor0
----
39525
-85
397761
-85
66402
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-8132
SELECT ALL + ( - + 90 ) * ( 64 ) DIV + - 14 + - + col0 FROM tab2 AS cor0
----
336
347
365

skipif mysql # not compatible
query I rowsort label-8132
SELECT ALL + ( - + 90 ) * ( 64 ) / + - 14 + - + col0 FROM tab2 AS cor0
----
336
347
365

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * - col0 NOT BETWEEN + col1 + - + col1 AND + 28 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8134
SELECT ALL 83, CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
83
NULL
83
NULL
83
NULL

skipif mysql # not compatible
query II rowsort label-8134
SELECT ALL 83, CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
83
NULL
83
NULL
83
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT ALL - MIN( ALL - - 26 ) col0 FROM tab0
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8135
SELECT ALL - MIN ( ALL - - 26 ) col0 FROM tab0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT ALL + + COUNT( * ) AS col2 FROM tab1 WHERE NOT + - col0 * + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8136
SELECT ALL + + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + - col0 * + col0 IS NULL
----
3

query I rowsort
SELECT ( + - col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 * + 94 IS NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + 54 FROM tab0 AS cor0 WHERE NOT + 87 NOT BETWEEN - col0 * col0 - - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8139
SELECT + SUM( DISTINCT + col0 ), 18 col1 FROM tab0 AS cor0
----
199
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8139
SELECT + SUM ( DISTINCT + col0 ), 18 col1 FROM tab0 AS cor0
----
199
18

query IIIIII rowsort
SELECT * FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT ALL ( + - MIN( 54 ) ) * - + COUNT( * ) FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-8141
SELECT ALL ( + - MIN ( 54 ) ) * - + COUNT ( * ) FROM tab2
----
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 + + col2 + + 84 col2 FROM tab2 AS cor0
----
103
121
86

query I rowsort
SELECT + + col1 * - col2 - - col2 FROM tab1 AS cor0
----
-1248
-236
-3128

query I rowsort
SELECT - ( + col2 ) * + col0 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT ( - 71 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8146
SELECT - col2 DIV 7 * - col1 AS col1 FROM tab0 cor0
----
14
21
486

skipif mysql # not compatible
query I rowsort label-8146
SELECT - col2 / 7 * - col1 AS col1 FROM tab0 cor0
----
14
21
486

onlyif mysql # DIV for integer division: 
query I rowsort label-8147
SELECT DISTINCT col1 * 33 DIV + col0 + - col1 AS col0 FROM tab1
----
-30
-4
-5

skipif mysql # not compatible
query I rowsort label-8147
SELECT DISTINCT col1 * 33 / + col0 + - col1 AS col0 FROM tab1
----
-30
-4
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT ALL + SUM( - + 82 ) + + COUNT( * ) FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL + SUM ( - + 82 ) + + COUNT ( * ) FROM tab0
----
-243

query III rowsort
SELECT * FROM tab1 WHERE 44 / - + 60 BETWEEN - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + 94 col2 FROM tab1
----
-3
-43
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT DISTINCT + MAX( DISTINCT col0 ) + - 4 FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-8151
SELECT DISTINCT + MAX ( DISTINCT col0 ) + - 4 FROM tab2
----
71

query I rowsort
SELECT ALL + 59 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8153
SELECT COUNT( * ) DIV - - SUM( ALL + + col1 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8153
SELECT COUNT ( * ) / - - SUM ( ALL + + col1 ) AS col2 FROM tab0
----
0

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 71 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8155
SELECT - 16 * - col0 + - col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8155
SELECT - 16 * - col0 + - col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8156
SELECT + + ( + CAST( COUNT( * ) AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8156
SELECT + + ( + CAST ( COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 3 * - 52 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
156
156
156

query I rowsort
SELECT - + col2 AS col1 FROM tab2 AS cor0 WHERE NOT 84 + + + col2 * col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 87 AS col2 FROM tab2 cor0
----
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-8160
SELECT DISTINCT 65 AS col0, + col1 DIV col1 FROM tab1
----
65
1

skipif mysql # not compatible
query II rowsort label-8160
SELECT DISTINCT 65 AS col0, + col1 / col1 FROM tab1
----
65
1

query I rowsort
SELECT 14 * + col2 FROM tab0
----
1386
140
658

query II rowsort
SELECT ALL 55, + col1 FROM tab0
----
55
1
55
21
55
81

query I rowsort
SELECT 54 * ( - - col2 ) * + col2 FROM tab0
----
119286
529254
5400

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8164
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-8164
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 / - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8166
SELECT - col2 + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8166
SELECT - col2 + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8167
SELECT - 67 + CAST( + col0 AS SIGNED ) AS col2, + 6 AS col1 FROM tab2 AS cor0
----
-21
6
-3
6
8
6

skipif mysql # not compatible
query II rowsort label-8167
SELECT - 67 + CAST ( + col0 AS INTEGER ) AS col2, + 6 AS col1 FROM tab2 AS cor0
----
-21
6
-3
6
8
6

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT - - ( + col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8170
SELECT ALL - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8170
SELECT ALL - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 67 AS col0 FROM tab1 AS cor0 WHERE ( + col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8172
SELECT ALL + col1 AS col0, + 25 DIV + + col0 FROM tab1 AS cor0
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-8172
SELECT ALL + col1 AS col0, + 25 / + + col0 FROM tab1 AS cor0
----
14
0
47
0
5
0

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 WHERE NOT - col1 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT - 10 + + ( COUNT( * ) ) FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-8174
SELECT - 10 + + ( COUNT ( * ) ) FROM tab2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT - 64 * + COUNT( * ) + COUNT( * ) AS col1 FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-8175
SELECT - 64 * + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0
----
-189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8176
SELECT - MIN( col0 ) * ( COUNT( * ) ) + MAX( col1 ) DIV + 4 FROM tab1
----
-142

skipif mysql # not compatible
query I rowsort label-8176
SELECT - MIN ( col0 ) * ( COUNT ( * ) ) + MAX ( col1 ) / + 4 FROM tab1
----
-142

query I rowsort
SELECT DISTINCT + col2 * 25 FROM tab1
----
1475
1700
2400

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 6 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT ALL - COUNT( * ) * - 95 AS col0 FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL - COUNT ( * ) * - 95 AS col0 FROM tab1
----
285

query I rowsort
SELECT + col1 + + 39 FROM tab0 WHERE NOT + col1 NOT BETWEEN col0 AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8181
SELECT - 64 * + CAST( NULL AS SIGNED ) + ( + 52 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8181
SELECT - 64 * + CAST ( NULL AS INTEGER ) + ( + 52 ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT ALL - ( 77 ) + COUNT( * ) FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL - ( 77 ) + COUNT ( * ) FROM tab1
----
-74

query I rowsort
SELECT DISTINCT col0 + - 79 * 47 FROM tab1
----
-3622
-3628
-3662

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 80 > + ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * 63 + col0 FROM tab2
----
1495
2584
3729

query I rowsort
SELECT + 55 * ( col0 * col1 ) + 13 FROM tab1
----
23388
235248
39283

query I rowsort
SELECT + col1 * + 65 AS col2 FROM tab0
----
1365
5265
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 + + col2 col0 FROM tab1
----
1440
3264
354

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * - col1 IS NOT NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE 56 + col1 * col2 <> NULL
----

query I rowsort
SELECT ALL 11 * + col0 + + col0 AS col2 FROM tab2
----
552
768
900

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT SUM( col0 ) * + MAX( ALL + 96 - + 50 ) AS col2 FROM tab2
----
8510

skipif mysql # not compatible
query I rowsort label-8192
SELECT SUM ( col0 ) * + MAX ( ALL + 96 - + 50 ) AS col2 FROM tab2
----
8510

query I rowsort
SELECT ALL - col0 + 71 AS col1 FROM tab0
----
-16
-26
56

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 * + col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 94 * + col0 FROM tab1
----
-4794
-7990
-8554

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT NULL <= col2 * + 38 + col2
----

query I rowsort
SELECT ALL + 28 * 91 AS col0 FROM tab1
----
2548
2548
2548

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < ( - ( - col0 ) )
----

query I rowsort
SELECT col2 FROM tab1 WHERE NULL <= + 93
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab2 WHERE 62 <> ( col1 )
----
51
67
77

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT DISTINCT SUM( ALL - col2 ) AS col0 FROM tab2 AS cor0 WHERE col2 >= ( 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT SUM ( ALL - col2 ) AS col0 FROM tab2 AS cor0 WHERE col2 >= ( 66 )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 71 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT ALL 8 * COUNT( * ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL 8 * COUNT ( * ) FROM tab0
----
24

query I rowsort
SELECT ALL col2 * - col0 AS col0 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8207
SELECT DISTINCT ( - 49 ) / CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8207
SELECT DISTINCT ( - 49 ) / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 ) IN ( col0 + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( - 84 / col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 + col0 * + col2 col0 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT - COUNT( 81 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8211
SELECT - COUNT ( 81 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NULL < ( col2 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT MAX( - col0 ) col1 FROM tab1 cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8213
SELECT MAX ( - col0 ) col1 FROM tab1 cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT DISTINCT + COUNT( * ) * - 45 FROM tab0 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-8214
SELECT DISTINCT + COUNT ( * ) * - 45 FROM tab0 AS cor0
----
-135

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT + col2 * col2 + col0 > + 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT ALL MAX( DISTINCT + 99 ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-8216
SELECT ALL MAX ( DISTINCT + 99 ) FROM tab2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8217
SELECT ALL + MIN( + - CAST( CAST( + col1 AS SIGNED ) AS SIGNED ) ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL + MIN ( + - CAST ( CAST ( + col1 AS INTEGER ) AS INTEGER ) ) AS col0 FROM tab2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8218
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) + + col1 * + 51 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) + + col1 * + 51 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT + MAX( + + 12 ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-8219
SELECT + MAX ( + + 12 ) FROM tab2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT DISTINCT - 25 - + MIN( ALL 42 ) col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8220
SELECT DISTINCT - 25 - + MIN ( ALL 42 ) col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8221
SELECT + - CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8221
SELECT + - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - 15 + + col0 AS col1 FROM tab1 AS cor0
----
36
70
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT - 29 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-8223
SELECT - 29 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-32

query I rowsort
SELECT DISTINCT + + col0 * - - col0 AS col1 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT DISTINCT MIN( + col1 ) col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8225
SELECT DISTINCT MIN ( + col1 ) col1 FROM tab2 AS cor0
----
51

query I rowsort
SELECT + 78 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT 69 + col1 AS col0 FROM tab1
----
116
74
83

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 92 * - 56 FROM tab0 WHERE 89 NOT BETWEEN ( NULL ) AND + 37 + col0
----
-5152

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL NOT BETWEEN ( col0 ) AND ( NULL ) )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NOT + 81 + - col2 BETWEEN ( NULL ) AND ( col2 * + col2 ) )
----

query I rowsort
SELECT + ( - 6 ) AS col2 FROM tab0 AS cor0
----
-6
-6
-6

query I rowsort
SELECT DISTINCT col0 - + + 82 + + - 57 * 52 FROM tab2 AS cor0
----
-2971
-2982
-3000

query I rowsort
SELECT ALL + 51 - 74 + - - col2 + + col2 * col1 FROM tab1 AS cor0
----
1417
3241
331

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT col2 - + col0 + + col0 AS col0 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 > ( + 5 + - 11 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT ALL COUNT( * ) * 16 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-8238
SELECT ALL COUNT ( * ) * 16 FROM tab1
----
48

query III rowsort
SELECT * FROM tab1 WHERE col1 / + col1 * + col1 > col0 / - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + col0 / + col2 - col2 )
----

query I rowsort
SELECT - col2 * - col1 * + 31 + + + 0 FROM tab1
----
41664
9145
99076

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT ALL + COUNT( ALL - col0 ) + ( - - COUNT( * ) ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8242
SELECT ALL + COUNT ( ALL - col0 ) + ( - - COUNT ( * ) ) AS col1 FROM tab2
----
6

query I rowsort
SELECT + 40 + - + 9 FROM tab2
----
31
31
31

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NOT + + ( - 5 ) + 66 IS NOT NULL
----

query I rowsort
SELECT ( col2 ) AS col2 FROM tab2 WHERE NOT - 46 / + - 7 IN ( - - col1 )
----
23
40
58

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 cor0 WHERE NOT ( + 20 ) * - col2 * - + col0 / col0 + col2 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT + - ( - COUNT( + col2 ) ) * - + 2 * + MAX( - col0 ) FROM tab2 cor0
----
276

skipif mysql # not compatible
query I rowsort label-8247
SELECT + - ( - COUNT ( + col2 ) ) * - + 2 * + MAX ( - col0 ) FROM tab2 cor0
----
276

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - - col2 ) - + col1 + + col2 < + 43
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT DISTINCT MAX( ALL + - 50 ) AS col0 FROM tab2 AS cor0 WHERE NULL IN ( col2, col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT MAX ( ALL + - 50 ) AS col0 FROM tab2 AS cor0 WHERE NULL IN ( col2, col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT DISTINCT + MAX( col0 ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-8250
SELECT DISTINCT + MAX ( col0 ) FROM tab0 cor0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8251
SELECT ALL 44 * COUNT( * ) + + MAX( col2 ) + - 22 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL 44 * COUNT ( * ) + + MAX ( col2 ) + - 22 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 = + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * + col0 * - 66 + + + 5 AS col2, - col1 col0 FROM tab2
----
-168955
-77
-287095
-67
-69823
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT COUNT( * ) + - MAX( col0 ) AS col0 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-8254
SELECT COUNT ( * ) + - MAX ( col0 ) AS col0 FROM tab2
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8255
SELECT DISTINCT - COUNT( * ) + + 53 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8255
SELECT DISTINCT - COUNT ( * ) + + 53 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL 97 + + 47 + - col2 AS col2 FROM tab2
----
104
121
86

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NOT ( col0 + + col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + 27 + 82 * 42 AS col0 FROM tab2 AS cor0 WHERE ( col2 ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col2, + col2 AS col0 FROM tab2 cor0
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8261
SELECT ALL - + 80 AS col2, CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab1 AS cor0
----
-80
NULL
-80
NULL
-80
NULL

skipif mysql # not compatible
query II rowsort label-8261
SELECT ALL - + 80 AS col2, CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab1 AS cor0
----
-80
NULL
-80
NULL
-80
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8262
SELECT ALL + - 37 * - + ( col0 ) * ( - CAST( NULL AS SIGNED ) ) + + + 45 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL + - 37 * - + ( col0 ) * ( - CAST ( NULL AS INTEGER ) ) + + + 45 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8263
SELECT col2 DIV - col0 + + CAST( - + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-18
-87
-98

skipif mysql # not compatible
query I rowsort label-8263
SELECT col2 / - col0 + + CAST ( - + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-18
-87
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT - MAX( - 70 ) AS col1 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-8264
SELECT - MAX ( - 70 ) AS col1 FROM tab2
----
70

query III rowsort
SELECT * FROM tab2 WHERE - col1 IS NULL AND NULL NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8266
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 * + col2 + CAST( - 35 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8266
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 * + col2 + CAST ( - 35 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * + col0 - 19 FROM tab0 AS cor0
----
1196
1808
78

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT - - 64 + - SUM( - + col0 ) FROM tab2 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-8269
SELECT - - 64 + - SUM ( - + col0 ) FROM tab2 AS cor0
----
249

query I rowsort
SELECT DISTINCT + + col1 - 13 FROM tab2 AS cor0
----
38
54
64

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL > + 88 + + 99
----

query I rowsort
SELECT - - 10 + + col1 AS col0 FROM tab0 AS cor0
----
11
31
91

onlyif mysql # aggregate syntax: 
query II rowsort label-8273
SELECT ALL - 86, - COUNT( * ) AS col2 FROM tab1
----
-86
-3

skipif mysql # not compatible
query II rowsort label-8273
SELECT ALL - 86, - COUNT ( * ) AS col2 FROM tab1
----
-86
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= - + col2 + - col0
----

query II rowsort
SELECT ALL 64 AS col1, - col0 AS col1 FROM tab2 WHERE NOT ( 6 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8276
SELECT ALL + CAST( + + col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8276
SELECT ALL + CAST ( + + col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT DISTINCT col1 * - col2 + + - col0 AS col2 FROM tab1 AS cor0
----
-1395
-3287
-380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8278
SELECT DISTINCT - 9 * - CAST( - MAX( - 97 ) AS SIGNED ) FROM tab1
----
873

skipif mysql # not compatible
query I rowsort label-8278
SELECT DISTINCT - 9 * - CAST ( - MAX ( - 97 ) AS INTEGER ) FROM tab1
----
873

query I rowsort
SELECT + - 59 + - 78 * + col1 FROM tab2 AS cor0
----
-4037
-5285
-6065

query I rowsort
SELECT - col0 + + + col0 AS col2 FROM tab0 AS cor0 WHERE NOT col1 / - col0 + - + col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8281
SELECT ALL * FROM tab2 cor0 WHERE NOT ( + 51 ) * - col2 + CAST( col2 AS SIGNED ) IN ( + col2, + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8281
SELECT ALL * FROM tab2 cor0 WHERE NOT ( + 51 ) * - col2 + CAST ( col2 AS INTEGER ) IN ( + col2, + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 + 94 col2 FROM tab1 AS cor0
----
1438
3290
389

query II rowsort
SELECT - col0 * + + 35 AS col0, - col0 + - col1 FROM tab0 AS cor0
----
-3045
-108
-3395
-98
-525
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8284
SELECT DISTINCT + + 4 DIV + MIN( DISTINCT - + col2 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8284
SELECT DISTINCT + + 4 / + MIN ( DISTINCT - + col2 ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8285
SELECT ALL + col2 * CAST( NULL AS SIGNED ) AS col0, col1 AS col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-8285
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) AS col0, col1 AS col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( col2, col2, - col0 )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col1 BETWEEN - col2 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( + col0 ) * - - col2 + + - col1 AS col2 FROM tab1
----
4882
5010
6141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8289
SELECT ALL 55 / + + col0 col0 FROM tab0 WHERE - 88 * - 49 IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8289
SELECT ALL 55 / + + col0 col0 FROM tab0 WHERE - 88 * - 49 IN ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + col1 * - + 29 AS col0 FROM tab1
----
-1363
-145
-406

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8291
SELECT ALL - CAST( CAST( - 38 AS SIGNED ) AS DECIMAL ) AS col0 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8291
SELECT ALL - CAST ( CAST ( - 38 AS INTEGER ) AS REAL ) AS col0 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 + - col1 col2 FROM tab1 AS cor0
----
-118
-76
-85

query I rowsort
SELECT DISTINCT - col0 * + col2 + + + col2 AS col2 FROM tab2 AS cor0
----
-1035
-2520
-4292

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 74 col0 FROM tab1 AS cor0
----
-74
-74
-74

query I rowsort
SELECT - col0 + + col2 + + 27 AS col2 FROM tab2 cor0
----
10
3
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8296
SELECT DISTINCT col2 DIV col0 * col2 AS col2 FROM tab1 cor0
----
0
96

skipif mysql # not compatible
query I rowsort label-8296
SELECT DISTINCT col2 / col0 * col2 AS col2 FROM tab1 cor0
----
0
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8297
SELECT DISTINCT COUNT( * ) + - 54 + + COUNT( * ) * - - CAST( NULL AS SIGNED ) / - 50 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8297
SELECT DISTINCT COUNT ( * ) + - 54 + + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) / - 50 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ( + 48 ) AS col0 FROM tab2
----
48
48
48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8299
SELECT ALL + CAST( NULL AS DECIMAL ) * - + col2 + + 47 + + + ( + - col1 ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8299
SELECT ALL + CAST ( NULL AS REAL ) * - + col2 + + 47 + + + ( + - col1 ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 40 - col0 FROM tab1
----
-11
-45
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8301
SELECT COUNT( * ) DIV COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE + col0 * + - col1 IN ( col1 * col1 * - col2 + col0, - col0, + col0 * + col2 + - 90 * - 98 )
----
1

skipif mysql # not compatible
query I rowsort label-8301
SELECT COUNT ( * ) / COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE + col0 * + - col1 IN ( col1 * col1 * - col2 + col0, - col0, + col0 * + col2 + - 90 * - 98 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT + SUM( DISTINCT col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-8302
SELECT + SUM ( DISTINCT col0 ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT - col2 - - - 66 FROM tab0 cor0
----
-113
-165
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + - col0 col1 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8305
SELECT DISTINCT + 33 DIV 51 * + col2 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8305
SELECT DISTINCT + 33 / 51 * + col2 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL 86 FROM tab1 WHERE ( + 92 ) IS NOT NULL
----
86
86
86

onlyif mysql # aggregate syntax: 
query II rowsort label-8307
SELECT + MIN( ALL 77 ) AS col2, + 27 AS col2 FROM tab1
----
77
27

skipif mysql # not compatible
query II rowsort label-8307
SELECT + MIN ( ALL 77 ) AS col2, + 27 AS col2 FROM tab1
----
77
27

query I rowsort
SELECT - - 68 FROM tab0 WHERE NOT - - col2 IS NULL
----
68
68
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8309
SELECT + CAST( - 0 AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8309
SELECT + CAST ( - 0 AS INTEGER ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8310
SELECT - 14 DIV + + COUNT( * ) FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-8310
SELECT - 14 / + + COUNT ( * ) FROM tab2
----
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8311
SELECT col1 * - + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8311
SELECT col1 * - + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8312
SELECT ALL + CAST( - 64 AS SIGNED ) FROM tab0
----
-64
-64
-64

skipif mysql # not compatible
query I rowsort label-8312
SELECT ALL + CAST ( - 64 AS INTEGER ) FROM tab0
----
-64
-64
-64

query I rowsort
SELECT 53 * - 91 FROM tab1
----
-4823
-4823
-4823

query II rowsort
SELECT ALL 95 AS col0, - col1 AS col2 FROM tab1
----
95
-14
95
-47
95
-5

query I rowsort
SELECT ALL 42 FROM tab2 WHERE NOT - 56 <> NULL
----

query I rowsort
SELECT DISTINCT - + col0 * col1 - + - col0 FROM tab0 AS cor0
----
-1200
-1740
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8317
SELECT ALL + - col0 * + col1 + + col2 - + col2 + + 70 DIV col2 FROM tab2 AS cor0
----
-2343
-4927
-5024

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL + - col0 * + col1 + + col2 - + col2 + + 70 / col2 FROM tab2 AS cor0
----
-2343
-4927
-5024

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8318
SELECT + - CAST( NULL AS SIGNED ) col0, - col2 + + + col0 AS col2 FROM tab0 AS cor0
----
NULL
-2
NULL
-32
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8318
SELECT + - CAST ( NULL AS INTEGER ) col0, - col2 + + + col0 AS col2 FROM tab0 AS cor0
----
NULL
-2
NULL
-32
NULL
77

onlyif mysql # DIV for integer division: 
query II rowsort label-8319
SELECT DISTINCT - - col2, col0 DIV - col0 AS col2 FROM tab1 AS cor0 WHERE col2 * col1 * - + 21 * - 99 NOT BETWEEN + 39 AND - col2
----
59
-1
68
-1
96
-1

skipif mysql # not compatible
query II rowsort label-8319
SELECT DISTINCT - - col2, col0 / - col0 AS col2 FROM tab1 AS cor0 WHERE col2 * col1 * - + 21 * - 99 NOT BETWEEN + 39 AND - col2
----
59
-1
68
-1
96
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8320
SELECT ALL - 73 col2, COUNT( * ) FROM tab0 cor0
----
-73
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8320
SELECT ALL - 73 col2, COUNT ( * ) FROM tab0 cor0
----
-73
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8321
SELECT ALL + + col2 + - col1 * - - col1 * col1 * - - CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL + + col2 + - col1 * - - col1 * col1 * - - CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col0 * - col2 + + - col0 * 16, + col0 AS col1 FROM tab0
----
-11155
97
-2262
87
-945
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8323
SELECT + COUNT( * ) + SUM( ALL - col0 ) + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8323
SELECT + COUNT ( * ) + SUM ( ALL - col0 ) + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query II rowsort
SELECT ALL + ( - - col1 ) + + ( 56 ), + 26 + col1 + - - col2 AS col0 FROM tab0
----
137
154
57
126
77
57

query I rowsort
SELECT DISTINCT - - col2 + - 82 AS col1 FROM tab2 AS cor0
----
-24
-42
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 + + col2 * - 67 col0 FROM tab2
----
-1491
-2630
-3836

query I rowsort
SELECT - - 26 FROM tab2 WHERE NULL < + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 6 + - + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8329
SELECT * FROM tab0 AS cor0 WHERE NOT 21 * - 83 + + CAST( NULL AS SIGNED ) * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8329
SELECT * FROM tab0 AS cor0 WHERE NOT 21 * - 83 + + CAST ( NULL AS INTEGER ) * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + - col1, ( 83 ) AS col2 FROM tab0 cor0
----
-1
83
-21
83
-81
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT - 88 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-8331
SELECT - 88 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-264

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col0 / + - 99 < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT DISTINCT SUM( + - ( - col1 ) ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-8333
SELECT DISTINCT SUM ( + - ( - col1 ) ) AS col1 FROM tab0
----
103

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8334
SELECT DISTINCT - 2 AS col0 FROM tab1 WHERE NOT - + CAST( NULL AS DECIMAL ) * - 70 <= - 46 * + ( - col1 ) * col0 + col1
----

skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT - 2 AS col0 FROM tab1 WHERE NOT - + CAST ( NULL AS REAL ) * - 70 <= - 46 * + ( - col1 ) * col0 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8335
SELECT - - col1 AS col2, - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-8335
SELECT - - col1 AS col2, - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT + - ( - 35 ) FROM tab1 AS cor0
----
35
35
35

query I rowsort
SELECT ALL - + 62 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT ALL - ( - - ( - col2 ) ) FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT - 87 + COUNT( * ) + ( + COUNT( * ) ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8339
SELECT - 87 + COUNT ( * ) + ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT col0 * + ( col0 ) AS col2 FROM tab0 AS cor0
----
225
7569
9409

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 85 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - col1 FROM tab2 cor0 WHERE NOT col2 IS NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 40 IS NULL
----

query I rowsort
SELECT ALL - 20 AS col2 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE ( 67 < NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8346
SELECT CAST( NULL AS DECIMAL ) + col2 AS col1, col2 + + CAST( + - col1 AS SIGNED ) + - col1 FROM tab0 WHERE ( CAST( 41 AS DECIMAL ) < + col0 / + col0 )
----

skipif mysql # not compatible
query II rowsort label-8346
SELECT CAST ( NULL AS REAL ) + col2 AS col1, col2 + + CAST ( + - col1 AS INTEGER ) + - col1 FROM tab0 WHERE ( CAST ( 41 AS REAL ) < + col0 / + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8347
SELECT DISTINCT MAX( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8347
SELECT DISTINCT MAX ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8348
SELECT ALL MIN( + - col0 ) + - SUM( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL MIN ( + - col0 ) + - SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT + 47 + - + 61 + + + col2 * + col2 FROM tab0
----
2195
86
9787

query I rowsort
SELECT - - col1 + - col0 AS col0 FROM tab0 cor0
----
-66
-96
66

query I rowsort
SELECT 17 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8352
SELECT - CAST( + - col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8352
SELECT - CAST ( + - col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT DISTINCT - + MAX( DISTINCT ( ( + col0 ) ) ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT - + MAX ( DISTINCT ( ( + col0 ) ) ) AS col1 FROM tab0 AS cor0
----
-97

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT ALL + - ( + COUNT( 3 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL + - ( + COUNT ( 3 ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT + 75 FROM tab1 AS cor0 WHERE NOT NULL >= + 36
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 79 * + 10 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8359
SELECT col0 DIV - ( - col0 ) FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8359
SELECT col0 / - ( - col0 ) FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8360
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT - col0 - col0 * 86 + + + CAST( NULL AS SIGNED ) * - col2 / col1 - - - ( + + col0 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT - col0 - col0 * 86 + + + CAST ( NULL AS INTEGER ) * - col2 / col1 - - - ( + + col0 ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT SUM( ALL + col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8361
SELECT SUM ( ALL + col0 ) AS col2 FROM tab2
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-8362
SELECT ALL col2 DIV - 19 AS col2 FROM tab0
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL col2 / - 19 AS col2 FROM tab0
----
-2
-5
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8363
SELECT + CAST( 23 AS SIGNED ) * + col2 * - col1 * + 42 + + col1 AS col0 FROM tab0
----
-202839
-3677481
-95633

skipif mysql # not compatible
query I rowsort label-8363
SELECT + CAST ( 23 AS INTEGER ) * + col2 * - col1 * + 42 + + col1 AS col0 FROM tab0
----
-202839
-3677481
-95633

query I rowsort
SELECT 53 * - 37 FROM tab0
----
-1961
-1961
-1961

query II rowsort
SELECT DISTINCT - col2, - 61 AS col1 FROM tab1 cor0
----
-59
-61
-68
-61
-96
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, col2 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT ALL - COUNT( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL - COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8368
SELECT ALL - 59 + + col0 * + + col0 * - col2 AS col0, + CAST( + + 36 AS SIGNED ) FROM tab1
----
-249755
36
-426334
36
-563167
36

skipif mysql # not compatible
query II rowsort label-8368
SELECT ALL - 59 + + col0 * + + col0 * - col2 AS col0, + CAST ( + + 36 AS INTEGER ) FROM tab1
----
-249755
36
-426334
36
-563167
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT - COUNT( * ) * - + 10 col0 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8369
SELECT - COUNT ( * ) * - + 10 col0 FROM tab0 AS cor0
----
30

query I rowsort
SELECT DISTINCT + 55 / 32 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + 86 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8372
SELECT * FROM tab2 AS cor0 WHERE ( + 69 NOT IN ( + col0 / - + col1, 20, + - CAST( NULL AS SIGNED ) * - 21 ) ) OR - 67 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8372
SELECT * FROM tab2 AS cor0 WHERE ( + 69 NOT IN ( + col0 / - + col1, 20, + - CAST ( NULL AS INTEGER ) * - 21 ) ) OR - 67 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 76 <= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 49 + + col1 - col2 * col0 FROM tab0 cor0
----
-673
-898
-9651

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT DISTINCT + MAX( ALL - + col2 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8375
SELECT DISTINCT + MAX ( ALL - + col2 ) AS col1 FROM tab0 AS cor0
----
-10

query II rowsort
SELECT - col1 + 36 + + + ( - - col2 ), + col0 FROM tab0 AS cor0 WHERE NULL > - 73
----

query II rowsort
SELECT - 39 + - col2 AS col0, + col0 AS col2 FROM tab0
----
-138
97
-49
87
-86
15

query I rowsort
SELECT - 5 + ( + - col2 ) FROM tab1
----
-101
-64
-73

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 81 > col0 + - - 66
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8380
SELECT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) - 65 * + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8380
SELECT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) - 65 * + CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8381
SELECT - CAST( - + col0 AS SIGNED ) AS col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8381
SELECT - CAST ( - + col0 AS INTEGER ) AS col2 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8382
SELECT DISTINCT col2 DIV + - 60 + - + col0 * col0 FROM tab0
----
-225
-7569
-9410

skipif mysql # not compatible
query I rowsort label-8382
SELECT DISTINCT col2 / + - 60 + - + col0 * col0 FROM tab0
----
-225
-7569
-9410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8383
SELECT ALL col0 - + CAST( + ( + + col0 ) AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL col0 - + CAST ( + ( + + col0 ) AS INTEGER ) FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE - col1 IN ( + + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8385
SELECT + - ( - col2 ) DIV - 81 - - col2 AS col1 FROM tab0 AS cor0
----
10
47
98

skipif mysql # not compatible
query I rowsort label-8385
SELECT + - ( - col2 ) / - 81 - - col2 AS col1 FROM tab0 AS cor0
----
10
47
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT + + COUNT( * ) - MIN( DISTINCT col1 ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-8386
SELECT + + COUNT ( * ) - MIN ( DISTINCT col1 ) FROM tab1 AS cor0
----
-2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 46 + - 79 - + col2 * - col1 / - col2 * col1 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8388
SELECT + CAST( NULL AS SIGNED ) / COUNT( DISTINCT col1 ) * + 84 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8388
SELECT + CAST ( NULL AS INTEGER ) / COUNT ( DISTINCT col1 ) * + 84 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL + 53 * + col2 FROM tab2
----
1219
2120
3074

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8390
SELECT DISTINCT + ( CAST( - 55 AS SIGNED ) ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-55

skipif mysql # not compatible
query I rowsort label-8390
SELECT DISTINCT + ( CAST ( - 55 AS INTEGER ) ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 41 col0 FROM tab1
----
-2091
-3485
-3731

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT DISTINCT MIN( col1 ) AS col1 FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-8392
SELECT DISTINCT MIN ( col1 ) AS col1 FROM tab2 cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab0 AS cor0 WHERE NULL <> col1
----

query I rowsort
SELECT ALL 44 * col1 - ( + col2 ) FROM tab2 AS cor0
----
2221
2890
3348

query II rowsort
SELECT ( - ( col1 ) ), col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 68 = col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT - 67 IN ( - 15 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8398
SELECT DISTINCT - col0 * + + CAST( - col1 AS SIGNED ) * - col0 + + ( col0 ) AS col2 FROM tab0
----
-158862
-18210
-9312

skipif mysql # not compatible
query I rowsort label-8398
SELECT DISTINCT - col0 * + + CAST ( - col1 AS INTEGER ) * - col0 + + ( col0 ) AS col2 FROM tab0
----
-158862
-18210
-9312

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT ALL COUNT( * ) * + 43 AS col2 FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL COUNT ( * ) * + 43 AS col2 FROM tab0
----
129

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col2 * - 70 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - + 25 ) AS col2 FROM tab0 AS cor0
----
-25
-25
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8402
SELECT ALL + + col1 * - - col2 * + ( + - CAST( - col0 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
25075
290836
68544

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL + + col1 * - - col2 * + ( + - CAST ( - col0 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
25075
290836
68544

query I rowsort
SELECT + - ( col1 ) * - col0 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT 94 < ( col2 )
----
-51
-67
-77

query I rowsort
SELECT ALL + 6 * + col0 + col1 + - 93 + + - col2 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8406
SELECT - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8406
SELECT - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8407
SELECT + ( - 9 ) * CAST( COUNT( * ) AS SIGNED ) * - - ( + - COUNT( * ) ) + - - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
738

skipif mysql # not compatible
query I rowsort label-8407
SELECT + ( - 9 ) * CAST ( COUNT ( * ) AS INTEGER ) * - - ( + - COUNT ( * ) ) + - - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
738

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8408
SELECT + + col0 * + CAST( - col0 AS SIGNED ) + + 54 FROM tab1 cor0
----
-2547
-7171
-8227

skipif mysql # not compatible
query I rowsort label-8408
SELECT + + col0 * + CAST ( - col0 AS INTEGER ) + + 54 FROM tab1 cor0
----
-2547
-7171
-8227

onlyif mysql # aggregate syntax: 
query II rowsort label-8409
SELECT + COUNT( * ) AS col2, - COUNT( * ) col1 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8409
SELECT + COUNT ( * ) AS col2, - COUNT ( * ) col1 FROM tab0 AS cor0
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT + MIN( - - 60 ) AS col1 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-8410
SELECT + MIN ( - - 60 ) AS col1 FROM tab0 AS cor0
----
60

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * - - ( 6 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT + - 92 * 87 + COUNT( * ) + + + MIN( DISTINCT - 48 ) FROM tab2 AS cor0
----
-8049

skipif mysql # not compatible
query I rowsort label-8412
SELECT + - 92 * 87 + COUNT ( * ) + + + MIN ( DISTINCT - 48 ) FROM tab2 AS cor0
----
-8049

onlyif mysql # aggregate syntax: 
query II rowsort label-8413
SELECT DISTINCT + ( - MIN( + - col0 ) ), - COUNT( * ) AS col0 FROM tab2 AS cor0
----
75
-3

skipif mysql # not compatible
query II rowsort label-8413
SELECT DISTINCT + ( - MIN ( + - col0 ) ), - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
75
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT DISTINCT - MAX( col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL = + + col1 * 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8414
SELECT DISTINCT - MAX ( col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL = + + col1 * 42 )
----
NULL

query I rowsort
SELECT - - col0 * - 62 FROM tab0 AS cor0
----
-5394
-6014
-930

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT ALL COUNT( DISTINCT + - col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL COUNT ( DISTINCT + - col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----
0

query I rowsort
SELECT - + col2 FROM tab1 AS cor0 WHERE ( NOT + 46 BETWEEN NULL AND - - col2 )
----

query II rowsort
SELECT + col2 AS col1, col1 / + col2 * col2 FROM tab2 WHERE NULL NOT IN ( - col2 )
----

query I rowsort
SELECT ALL col0 + - col1 * + col2 FROM tab2
----
-1127
-3016
-3811

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8421
SELECT DISTINCT + MAX( - col2 ) DIV + 49 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8421
SELECT DISTINCT + MAX ( - col2 ) / + 49 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT ALL COUNT( ALL - 13 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8422
SELECT ALL COUNT ( ALL - 13 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT + ( + 67 ) - - COUNT( * ) AS col2 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-8423
SELECT + ( + 67 ) - - COUNT ( * ) AS col2 FROM tab0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8424
SELECT - 28 DIV + 57 + ( + col1 ) + col0 FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-8424
SELECT - 28 / + 57 + ( + col1 ) + col0 FROM tab1
----
138
65
90

query I rowsort
SELECT ALL col2 - + + 48 AS col1 FROM tab2
----
-25
-8
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab2 cor0 WHERE col0 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-10
-47
-99

query II rowsort
SELECT DISTINCT - 29, - col2 FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT col2 * - 62 FROM tab2
----
-1426
-2480
-3596

onlyif mysql # DIV for integer division: 
query I rowsort label-8430
SELECT + 22 DIV col1 DIV - - ( - + col2 ) AS col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8430
SELECT + 22 / col1 / - - ( - + col2 ) AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - ( + 93 ) AS col0 FROM tab2 AS cor0
----
-93
-93
-93

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 6 >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0 + 23
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8434
SELECT DISTINCT + col1 DIV 81, col0 FROM tab0 AS cor0
----
0
87
0
97
1
15

skipif mysql # not compatible
query II rowsort label-8434
SELECT DISTINCT + col1 / 81, col0 FROM tab0 AS cor0
----
0
87
0
97
1
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 93 col2 FROM tab2 WHERE NOT + 92 / 94 - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 + col1 NOT BETWEEN - 80 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8437
SELECT ALL * FROM tab1 WHERE - CAST( NULL AS SIGNED ) - + col1 <> col0 + - col2 * col2
----

skipif mysql # not compatible
query III rowsort label-8437
SELECT ALL * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) - + col1 <> col0 + - col2 * col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8438
SELECT DISTINCT + CAST( - - MAX( + 26 ) AS SIGNED ) + ( - + COUNT( * ) ) AS col2 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-8438
SELECT DISTINCT + CAST ( - - MAX ( + 26 ) AS INTEGER ) + ( - + COUNT ( * ) ) AS col2 FROM tab1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT - MIN( + - col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-8439
SELECT - MIN ( + - col2 ) FROM tab0
----
99

query III rowsort
SELECT * FROM tab2 WHERE NOT - 13 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 - + col2 FROM tab0 WHERE NOT + col2 IS NULL
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT ALL + 87 + COUNT( * ) AS col2 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL + 87 + COUNT ( * ) AS col2 FROM tab0
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 * ( - - 41 ) * + 0 col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT - 26 + SUM( ALL col0 ) AS col2 FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-8444
SELECT - 26 + SUM ( ALL col0 ) AS col2 FROM tab2
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8445
SELECT ALL ( - 53 ) * + CAST( 83 AS SIGNED ) AS col1 FROM tab2
----
-4399
-4399
-4399

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL ( - 53 ) * + CAST ( 83 AS INTEGER ) AS col1 FROM tab2
----
-4399
-4399
-4399

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * - col1 <= + 99 + + - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8447
SELECT COUNT( * ) + + 65 DIV + - MAX( DISTINCT - col2 ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8447
SELECT COUNT ( * ) + + 65 / + - MAX ( DISTINCT - col2 ) AS col2 FROM tab0
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8448
SELECT DISTINCT - - 56 + - + col2 + + col0 * CAST( NULL AS DECIMAL ) + + + col0 + + - col0 + + 48 / - col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8448
SELECT DISTINCT - - 56 + - + col2 + + col0 * CAST ( NULL AS REAL ) + + + col0 + + - col0 + + 48 / - col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8449
SELECT ALL - 30 DIV + col1 AS col2 FROM tab1 AS cor0
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL - 30 / + col1 AS col2 FROM tab1 AS cor0
----
-2
-6
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 35 * - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT ALL + COUNT( - + col0 ) FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 + - col1 + + ( + col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL + COUNT ( - + col0 ) FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 + - col1 + + ( + col1 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8452
SELECT DISTINCT + COUNT( + col1 ) FROM tab1 AS cor0 WHERE NOT ( NOT - 27 NOT BETWEEN 54 - col0 + - - CAST( NULL AS SIGNED ) / + 9 / - col1 AND - - ( 58 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8452
SELECT DISTINCT + COUNT ( + col1 ) FROM tab1 AS cor0 WHERE NOT ( NOT - 27 NOT BETWEEN 54 - col0 + - - CAST ( NULL AS INTEGER ) / + 9 / - col1 AND - - ( 58 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8453
SELECT - CAST( NULL AS SIGNED ) * - ( 77 ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8453
SELECT - CAST ( NULL AS INTEGER ) * - ( 77 ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT ALL + 9 + COUNT( * ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8454
SELECT ALL + 9 + COUNT ( * ) FROM tab0 AS cor0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 79 + - + col2 * - + col0 col2 FROM tab2 AS cor0
----
1137
2639
4429

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT DISTINCT - + COUNT( + 18 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8456
SELECT DISTINCT - + COUNT ( + 18 ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col1 + - 61 * col1 AS col1 FROM tab2 AS cor0
----
-3060
-4020
-4620

query I rowsort
SELECT + col0 * - 50 AS col1 FROM tab0
----
-4350
-4850
-750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + - col0 col0 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT ALL col2 + + 68 - + - col1 AS col0 FROM tab2
----
142
185
193

query III rowsort
SELECT DISTINCT col0, col1 - 45, + 71 AS col0 FROM tab1
----
9 values hashing to cb15a70a701dbf2cf8f4d7e0ea2f1cb2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8462
SELECT * FROM tab2 WHERE NOT col1 * - 3 + col0 <> + col0 * + col0 / col1 / + ( - - CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8462
SELECT * FROM tab2 WHERE NOT col1 * - 3 + col0 <> + col0 * + col0 / col1 / + ( - - CAST ( + col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8463
SELECT ALL - COUNT( * ) DIV - 40 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8463
SELECT ALL - COUNT ( * ) / - 40 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 2 AS col1 FROM tab0 cor0
----
2

query I rowsort
SELECT - 40 * + - col1 AS col0 FROM tab0 AS cor0
----
3240
40
840

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT + col0 = + 82 - + ( + + 24 ) * + col1 + - col1
----
23
40
58

query I rowsort
SELECT - ( col1 ) * + col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 / - + 56 NOT IN ( + 82, - ( 63 ) * + - col2 + - 20, col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8469
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8469
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 92 * 28 FROM tab2 AS cor0
----
2576
2576
2576

query I rowsort
SELECT ALL - 66 * - col2 * col2 AS col2 FROM tab1 AS cor0
----
229746
305184
608256

query I rowsort
SELECT ALL 10 AS col0 FROM tab2 AS cor0 WHERE - col1 + col2 * + col1 NOT BETWEEN NULL AND ( - col0 )
----
10
10
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8473
SELECT - + CAST( - MAX( ALL - col2 ) AS SIGNED ) FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8473
SELECT - + CAST ( - MAX ( ALL - col2 ) AS INTEGER ) FROM tab2 cor0
----
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8474
SELECT CAST( NULL AS DECIMAL ) + + 73 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8474
SELECT CAST ( NULL AS REAL ) + + 73 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT DISTINCT - 82 * MAX( ALL + col2 ) + 20 FROM tab0
----
-8098

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT - 82 * MAX ( ALL + col2 ) + 20 FROM tab0
----
-8098

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT ALL COUNT( ALL col2 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8476
SELECT ALL COUNT ( ALL col2 ) col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT DISTINCT + COUNT( * ) + - + 84 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-8477
SELECT DISTINCT + COUNT ( * ) + - + 84 FROM tab1
----
-81

query I rowsort
SELECT col1 + + + ( col1 ) FROM tab2 AS cor0
----
102
134
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8479
SELECT ALL + - 88 * CAST( - 3 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
264
264
264

skipif mysql # not compatible
query I rowsort label-8479
SELECT ALL + - 88 * CAST ( - 3 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
264
264
264

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8480
SELECT - 39 DIV + + COUNT( * ), 80 AS col1 FROM tab2, tab0 AS cor0
----
-4
80

skipif mysql # not compatible
query II rowsort label-8480
SELECT - 39 / + + COUNT ( * ), 80 AS col1 FROM tab2, tab0 AS cor0
----
-4
80

query I rowsort
SELECT ALL - 42 + 46 * - col0 * + col0 AS col2 FROM tab2
----
-188458
-258792
-97378

onlyif mysql # aggregate syntax: 
query II rowsort label-8482
SELECT COUNT( * ), SUM( DISTINCT + col2 ) AS col1 FROM tab2
----
3
121

skipif mysql # not compatible
query II rowsort label-8482
SELECT COUNT ( * ), SUM ( DISTINCT + col2 ) AS col1 FROM tab2
----
3
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8483
SELECT + + 89 AS col1 FROM tab0 WHERE 19 * CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND - col1
----

skipif mysql # not compatible
query I rowsort label-8483
SELECT + + 89 AS col1 FROM tab0 WHERE 19 * CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT ALL ( 36 ) AS col1 FROM tab1 AS cor0
----
36
36
36

query I rowsort
SELECT + col0 - + - col2 + - col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT - col0 - - col0 * 0 AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT ALL + col0 * - col1, + col2 FROM tab1
----
-425
59
-4277
68
-714
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 col1 FROM tab2
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-8489
SELECT ALL 95 * - 26, ( COUNT( * ) ) AS col0 FROM tab1
----
-2470
3

skipif mysql # not compatible
query II rowsort label-8489
SELECT ALL 95 * - 26, ( COUNT ( * ) ) AS col0 FROM tab1
----
-2470
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8490
SELECT - 10 DIV + 19 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8490
SELECT - 10 / + 19 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8491
SELECT - 32 DIV - 1 AS col2 FROM tab2 AS cor0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-8491
SELECT - 32 / - 1 AS col2 FROM tab2 AS cor0
----
32
32
32

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 79 - col0 + + 39 NOT BETWEEN + - ( 55 ) AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 34 * - col2 AS col2 FROM tab1
----
-2006
-2312
-3264

query II rowsort
SELECT ALL + - 83 AS col2, col2 * ( col0 ) * col2 + 28 FROM tab0 AS cor0
----
-83
33163
-83
8728
-83
950725

query I rowsort
SELECT + + 48 * - + col0 FROM tab0 AS cor0
----
-4176
-4656
-720

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8496
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + ( - - col0 ) + + ( - + CAST( - col1 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8496
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + ( - - col0 ) + + ( - + CAST ( - col1 AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 < + ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 28 * + - col0 * + + col0 * + col0 BETWEEN + 63 + + col2 + + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT ALL - + MAX( - col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL - + MAX ( - col2 ) AS col0 FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8500
SELECT - CAST( col0 AS SIGNED ) + col0 AS col0, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-8500
SELECT - CAST ( col0 AS INTEGER ) + col0 AS col0, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
0
NULL
0
NULL
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT DISTINCT - MAX( ALL - - col2 ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8501
SELECT DISTINCT - MAX ( ALL - - col2 ) AS col2 FROM tab1
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8502
SELECT - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) DIV + COUNT( * ) + + + 88 + 73 FROM tab2
----
161

skipif mysql # not compatible
query I rowsort label-8502
SELECT - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) / + COUNT ( * ) + + + 88 + 73 FROM tab2
----
161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 + - - col0 * ( - col2 ) col2 FROM tab2
----
-3659
-8489
-8839

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT + MAX( DISTINCT + - col0 ) + - COUNT( * ) AS col1 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-8504
SELECT + MAX ( DISTINCT + - col0 ) + - COUNT ( * ) AS col1 FROM tab0
----
-18

query I rowsort
SELECT ALL col2 * + + ( col1 ) * + 4 + + 37 FROM tab2
----
12357
15581
4729

query I rowsort
SELECT DISTINCT + 91 + - col1 FROM tab2
----
14
24
40

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE 63 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8508
SELECT ALL col0 - + CAST( + 68 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-22
-4
7

skipif mysql # not compatible
query I rowsort label-8508
SELECT ALL col0 - + CAST ( + 68 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-22
-4
7

onlyif mysql # aggregate syntax: 
query II rowsort label-8509
SELECT DISTINCT - COUNT( * ), - COUNT( * ) FROM tab0 cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-8509
SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) FROM tab0 cor0
----
-3
-3

query I rowsort
SELECT + ( 58 ) - + col0 FROM tab0
----
-29
-39
43

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - col2 * - col2 )
----

query I rowsort
SELECT DISTINCT - col0 - col0 * col2 - + col0 + - - col1 AS col0 FROM tab2 AS cor0
----
-1099
-2611
-4433

query I rowsort
SELECT ALL + + col2 * ( ( - col1 ) ) FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-8514
SELECT DISTINCT - 71 DIV - 55 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8514
SELECT DISTINCT - 71 / - 55 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT ALL COUNT( * ) * + 77 FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-8515
SELECT ALL COUNT ( * ) * + 77 FROM tab0
----
231

query I rowsort
SELECT col2 * 93 AS col0 FROM tab1
----
5487
6324
8928

query I rowsort
SELECT ALL - 91 * - col1 * - 18 AS col2 FROM tab2
----
-109746
-126126
-83538

query II rowsort
SELECT DISTINCT - 67, col1 AS col1 FROM tab1
----
-67
14
-67
47
-67
5

query I rowsort
SELECT DISTINCT + 58 * - 61 FROM tab2
----
-3538

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8520
SELECT DISTINCT + COUNT( * ) DIV + - 78 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8520
SELECT DISTINCT + COUNT ( * ) / + - 78 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT + COUNT( + + 90 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8521
SELECT + COUNT ( + + 90 ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8522
SELECT - 6 DIV + 87 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8522
SELECT - 6 / + 87 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT + COUNT( + 34 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8523
SELECT + COUNT ( + 34 ) col0 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, col0 AS col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT ALL ( + ( + col2 ) ) * - + 4 AS col2 FROM tab2 AS cor0
----
-160
-232
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query II rowsort
SELECT 46 + + col0 AS col1, col0 AS col0 FROM tab2 AS cor0
----
110
64
121
75
92
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8528
SELECT + CAST( - - ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) * col0 + + col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8528
SELECT + CAST ( - - ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) * col0 + + col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE NOT - 11 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8530
SELECT 82 DIV + 88 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8530
SELECT 82 / + 88 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + - 72 * - col1 AS col0 FROM tab1 AS cor0
----
1008
3384
360

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8532
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 + - - ( - col1 ) < + col1 + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8532
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 + - - ( - col1 ) < + col1 + CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL + + 45 + - + 67 AS col2 FROM tab0 AS cor0
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT ALL - 52 + - COUNT( * ) AS col0 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL - 52 + - COUNT ( * ) AS col0 FROM tab2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT ALL MAX( col0 ) * 39 * + MIN( DISTINCT - 82 ) AS col0 FROM tab0
----
-310206

skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL MAX ( col0 ) * 39 * + MIN ( DISTINCT - 82 ) AS col0 FROM tab0
----
-310206

query II rowsort
SELECT DISTINCT col2 + - col2 + - 20 + col0 + + + col2 * col1 * - col2 AS col0, - 79 FROM tab2 WHERE col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 64 IS NULL
----

query I rowsort
SELECT ALL 10 + + + col1 AS col0 FROM tab0
----
11
31
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 + + col2 col1 FROM tab0
----
148
59
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT - MIN( + - 12 ) + 77 + - COUNT( * ) FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-8540
SELECT - MIN ( + - 12 ) + 77 + - COUNT ( * ) FROM tab2 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT + MIN( DISTINCT + col0 ) + 98 AS col1 FROM tab0 AS cor0
----
113

skipif mysql # not compatible
query I rowsort label-8541
SELECT + MIN ( DISTINCT + col0 ) + 98 AS col1 FROM tab0 AS cor0
----
113

query I rowsort
SELECT - - ( + col2 ) + - + 5 * col0 FROM tab2 AS cor0
----
-207
-280
-317

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8543
SELECT ALL + - CAST( 54 AS SIGNED ) - COUNT( + col0 ) FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-8543
SELECT ALL + - CAST ( 54 AS INTEGER ) - COUNT ( + col0 ) FROM tab0 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT - - MAX( col0 ) - MAX( + - 85 ) * 41 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN 29 * + 57 * + - 82 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8544
SELECT - - MAX ( col0 ) - MAX ( + - 85 ) * 41 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN 29 * + 57 * + - 82 AND NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8545
SELECT COUNT( * ) DIV - 20 col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8545
SELECT COUNT ( * ) / - 20 col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT ALL - COUNT( - 23 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8546
SELECT ALL - COUNT ( - 23 ) FROM tab1
----
-3

query I rowsort
SELECT + col1 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT + - MIN( DISTINCT - 54 ) col0 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8548
SELECT + - MIN ( DISTINCT - 54 ) col0 FROM tab0 AS cor0
----
54

query I rowsort
SELECT ALL - + col2 FROM tab2 AS cor0 WHERE col2 * 8 * 45 * + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT - COUNT( ALL 14 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8550
SELECT - COUNT ( ALL 14 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8551
SELECT DISTINCT + + 62, COUNT( * ) col2 FROM tab2 AS cor0
----
62
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8551
SELECT DISTINCT + + 62, COUNT ( * ) col2 FROM tab2 AS cor0
----
62
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, - 54 FROM tab1 cor0
----
51
-54
85
-54
91
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT + SUM( - 36 ) col1 FROM tab1 cor0
----
-108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8553
SELECT + SUM ( - 36 ) col1 FROM tab1 cor0
----
-108

query I rowsort
SELECT ALL - + ( + 26 ) FROM tab0 AS cor0
----
-26
-26
-26

query I rowsort
SELECT - ( - 53 ) AS col0 FROM tab2 AS cor0
----
53
53
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8556
SELECT DISTINCT - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8556
SELECT DISTINCT - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 WHERE NULL >= NULL
----
NULL

query I rowsort
SELECT DISTINCT - + col1 AS col2 FROM tab1 WHERE NOT + + 74 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT - SUM( + ( col2 ) ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-8558
SELECT - SUM ( + ( col2 ) ) FROM tab2
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-8559
SELECT + col1 DIV - + col0 * + 40 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8559
SELECT + col1 / - + col0 * + 40 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT col0 * col1 + + ( + - 43 ) + + col0 / - 60 FROM tab0 WHERE NOT - ( + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT ALL SUM( ALL - ( - col2 ) ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL SUM ( ALL - ( - col2 ) ) FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT + ( - SUM( ALL col1 ) ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8562
SELECT + ( - SUM ( ALL col1 ) ) AS col1 FROM tab1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-8563
SELECT + 68 DIV + - col2 AS col1 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8563
SELECT + 68 / + - col2 AS col1 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT ALL ( 69 ) * - 2 FROM tab1 cor0
----
-138
-138
-138

query I rowsort
SELECT DISTINCT - ( col2 ) * - 89 AS col1 FROM tab0 AS cor0
----
4183
8811
890

onlyif mysql # DIV for integer division: 
query I rowsort label-8566
SELECT ALL 74 DIV - - 4 FROM tab0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-8566
SELECT ALL 74 / - - 4 FROM tab0
----
18
18
18

onlyif mysql # DIV for integer division: 
query I rowsort label-8567
SELECT DISTINCT - - 53 * + - 89 + - ( + 9 ) DIV + col1 FROM tab1 cor0
----
-4717
-4718

skipif mysql # not compatible
query I rowsort label-8567
SELECT DISTINCT - - 53 * + - 89 + - ( + 9 ) / + col1 FROM tab1 cor0
----
-4717
-4718

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < 45
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - 25 ) col2 FROM tab2 cor0
----
25
25
25

query I rowsort
SELECT - 21 * - col1 * 51 + col2 + - 39 FROM tab0 AS cor0
----
1131
22462
86759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8571
SELECT DISTINCT + col1 + CAST( + 11 AS SIGNED ) FROM tab2
----
62
78
88

skipif mysql # not compatible
query I rowsort label-8571
SELECT DISTINCT + col1 + CAST ( + 11 AS INTEGER ) FROM tab2
----
62
78
88

query I rowsort
SELECT DISTINCT - col0 - + + col0 FROM tab0
----
-174
-194
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-8573
SELECT ALL + + col2 DIV 21 FROM tab1 WHERE + col0 <> col1
----
2
3
4

skipif mysql # not compatible
query I rowsort label-8573
SELECT ALL + + col2 / 21 FROM tab1 WHERE + col0 <> col1
----
2
3
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 + - - col1 * col0 col2 FROM tab0 cor0
----
1314
1926
196

query I rowsort
SELECT ALL + - ( - col0 ) * - + col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8576
SELECT + CAST( NULL AS SIGNED ) * + 23 - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8576
SELECT + CAST ( NULL AS INTEGER ) * + 23 - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT ALL - COUNT( * ) - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL - COUNT ( * ) - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT - COUNT( * ) - + + 91 - - COUNT( * ) FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8578
SELECT - COUNT ( * ) - + + 91 - - COUNT ( * ) FROM tab2 AS cor0
----
-91

query I rowsort
SELECT + - 72 FROM tab0 AS cor0 WHERE NOT col0 * col0 * col0 / 48 * + col2 = - + 23 * col0 / col2
----
-72
-72
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 col0 FROM tab2 cor0
----
58

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + + col1 AND + ( 11 ) + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 > + 74 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT + + COUNT( DISTINCT - 32 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8583
SELECT + + COUNT ( DISTINCT - 32 ) AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT + + COUNT( * ) * 25 AS col2 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8584
SELECT + + COUNT ( * ) * 25 AS col2 FROM tab0 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8585
SELECT - 98 * - CAST( - col2 AS SIGNED ) FROM tab0
----
-4606
-9702
-980

skipif mysql # not compatible
query I rowsort label-8585
SELECT - 98 * - CAST ( - col2 AS INTEGER ) FROM tab0
----
-4606
-9702
-980

query I rowsort
SELECT - ( - 37 ) AS col0 FROM tab1
----
37
37
37

query I rowsort
SELECT ALL + ( - - 69 ) FROM tab2
----
69
69
69

query II rowsort
SELECT ALL col0, 68 FROM tab0
----
15
68
87
68
97
68

query I rowsort
SELECT ( + - 23 ) FROM tab1
----
-23
-23
-23

query II rowsort
SELECT ALL - col2 AS col2, col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT + col2 / - col0 + + 67 * - col2 > + col2 * + - 0 * + col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8592
SELECT + + 77 DIV - COUNT( - col2 ) AS col0 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-8592
SELECT + + 77 / - COUNT ( - col2 ) AS col0 FROM tab2 AS cor0
----
-25

query II rowsort
SELECT ALL + col2 * - col1, col2 FROM tab0 AS cor0
----
-210
10
-3807
47
-99
99

query I rowsort
SELECT ALL 31 * + - col1 AS col0 FROM tab2 AS cor0
----
-1581
-2077
-2387

query I rowsort
SELECT ALL - 53 + + ( - 21 ) AS col2 FROM tab2
----
-74
-74
-74

query II rowsort
SELECT ALL - col2 + 23, - col1 AS col1 FROM tab2
----
-17
-77
-35
-67
0
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT DISTINCT - COUNT( * ) + - MAX( + col2 ) AS col0 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-8597
SELECT DISTINCT - COUNT ( * ) + - MAX ( + col2 ) AS col0 FROM tab1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT COUNT( * ) AS col0 FROM tab1 WHERE + 77 NOT BETWEEN 68 AND 92
----
0

skipif mysql # not compatible
query I rowsort label-8598
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE + 77 NOT BETWEEN 68 AND 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT ALL + - SUM( - col0 ) * 19 AS col0 FROM tab0 AS cor0
----
3781

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL + - SUM ( - col0 ) * 19 AS col0 FROM tab0 AS cor0
----
3781

query II rowsort
SELECT DISTINCT - 72 * - - col0 AS col0, 90 * - col0 * 59 FROM tab2 AS cor0
----
-3312
-244260
-4608
-339840
-5400
-398250

query I rowsort
SELECT DISTINCT + - col2 + 73 AS col2 FROM tab2 AS cor0
----
15
33
50

query II rowsort
SELECT ALL - col2 * 38 AS col0, - col0 + - 99 FROM tab1 AS cor0
----
-2242
-184
-2584
-190
-3648
-150

query I rowsort
SELECT DISTINCT + col0 + - 85 + + col1 AS col0 FROM tab2 cor0
----
12
56
57

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8605
SELECT - col0 DIV + ( + col0 ) FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8605
SELECT - col0 / + ( + col0 ) FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL + col2 + + + col1 AS col1 FROM tab1
----
110
115
64

query I rowsort
SELECT DISTINCT + 55 * - + 3 AS col2 FROM tab1 WHERE - + col0 IS NOT NULL
----
-165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8608
SELECT - 81 * - COUNT( * ) + - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8608
SELECT - 81 * - COUNT ( * ) + - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + - - ( + 6 ) * + col0 NOT BETWEEN - + 2 + 19 AND NULL
----

query I rowsort
SELECT col1 + + 58 FROM tab2 AS cor0
----
109
125
135

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT DISTINCT - MIN( - col2 ) - + COUNT( * ) - COUNT( * ) FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-8611
SELECT DISTINCT - MIN ( - col2 ) - + COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT + COUNT( DISTINCT + col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8612
SELECT + COUNT ( DISTINCT + col1 ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8613
SELECT + CAST( COUNT( + col0 ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8613
SELECT + CAST ( COUNT ( + col0 ) AS INTEGER ) FROM tab0
----
3

query I rowsort
SELECT - 14 + col0 AS col2 FROM tab0
----
1
73
83

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 BETWEEN ( NULL ) AND ( + col1 + 84 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT + COUNT( * ) + + 19 FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-8616
SELECT + COUNT ( * ) + + 19 FROM tab2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8617
SELECT + CAST( - 96 AS SIGNED ) AS col2 FROM tab2
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-8617
SELECT + CAST ( - 96 AS INTEGER ) AS col2 FROM tab2
----
-96
-96
-96

query I rowsort
SELECT ALL - col0 - - col2 FROM tab1 WHERE NULL IS NULL
----
-23
-26
45

query I rowsort
SELECT 97 + - col1 FROM tab0
----
16
76
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8620
SELECT DISTINCT col1 * 65 + CAST( NULL AS SIGNED ) * - col1 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8620
SELECT DISTINCT col1 * 65 + CAST ( NULL AS INTEGER ) * - col1 col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL ( col2 ) FROM tab1 WHERE ( col1 ) IN ( - ( - col0 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8622
SELECT SUM( col0 ) + - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8622
SELECT SUM ( col0 ) + - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL >= NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - 76 * + 89 <= - col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 / + col2 <= ( - col0 - + col2 / - 85 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT ALL - MAX( + 64 ) AS col0 FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL - MAX ( + 64 ) AS col0 FROM tab1
----
-64

query I rowsort
SELECT + 36 + ( + ( + col2 ) ) FROM tab1
----
104
132
95

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( + 63 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT - MAX( ( - col0 ) ) AS col0 FROM tab1 WHERE + 86 IN ( + 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8628
SELECT - MAX ( ( - col0 ) ) AS col0 FROM tab1 WHERE + 86 IN ( + 73 )
----
NULL

query I rowsort
SELECT - col2 * col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 50 * - col1 AS col2 FROM tab2
----
2550
3350
3850

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT ( COUNT( * ) ) col2 FROM tab2 WHERE 58 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8631
SELECT ( COUNT ( * ) ) col2 FROM tab2 WHERE 58 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8632
SELECT * FROM tab2 AS cor0 WHERE NOT + 74 - CAST( + 20 AS SIGNED ) * 2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8632
SELECT * FROM tab2 AS cor0 WHERE NOT + 74 - CAST ( + 20 AS INTEGER ) * 2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 / + 94 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( 83 * + col2 )
----

query I rowsort
SELECT DISTINCT col1 + + 57 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= col0
----

query I rowsort
SELECT DISTINCT + 91 FROM tab0 AS cor0 CROSS JOIN tab1
----
91

query I rowsort
SELECT 72 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 )
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 50 * + col2 - 34 ) BETWEEN 55 + col2 AND ( ( + col1 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8640
SELECT CAST( NULL AS DECIMAL ) FROM tab2 cor0 CROSS JOIN tab0 WHERE NOT - 76 IS NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8640
SELECT CAST ( NULL AS REAL ) FROM tab2 cor0 CROSS JOIN tab0 WHERE NOT - 76 IS NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT DISTINCT + COUNT( * ) * + 4 AS col0 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-8641
SELECT DISTINCT + COUNT ( * ) * + 4 AS col0 FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8642
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
-9

query I rowsort
SELECT DISTINCT + - col2 + 53 AS col1 FROM tab1 cor0
----
-15
-43
-6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 14 * col2 NOT BETWEEN - col1 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 69 - col0 AS col0 FROM tab2 AS cor0
----
-6
23
5

query I rowsort
SELECT DISTINCT ( col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 59 * + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + + 84 AS col2 FROM tab0 AS cor0
----
84

query I rowsort
SELECT 52 + - col0 AS col2 FROM tab0
----
-35
-45
37

onlyif mysql # DIV for integer division: 
query I rowsort label-8651
SELECT + ( + col1 ) DIV col0 + + 67 FROM tab1
----
67
67
67

skipif mysql # not compatible
query I rowsort label-8651
SELECT + ( + col1 ) / col0 + + 67 FROM tab1
----
67
67
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8652
SELECT ALL ( - + col1 ) + CAST( + col0 AS SIGNED ) AS col0 FROM tab2
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-8652
SELECT ALL ( - + col1 ) + CAST ( + col0 AS INTEGER ) AS col0 FROM tab2
----
-13
-5
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8653
SELECT - col2 / + - ( 93 ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8653
SELECT - col2 / + - ( 93 ) * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 60 * - 45 FROM tab1
----
-2700
-2700
-2700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8655
SELECT + 66 DIV + COUNT( * ) FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-8655
SELECT + 66 / + COUNT ( * ) FROM tab0
----
22

query I rowsort
SELECT ( col2 ) * + col2 AS col2 FROM tab2
----
1600
3364
529

query III rowsort
SELECT * FROM tab0 WHERE - col2 + - 50 * - col0 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT 1 * - MAX( ALL col0 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8658
SELECT 1 * - MAX ( ALL col0 ) AS col0 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT DISTINCT MIN( ALL + 93 ) AS col2 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-8659
SELECT DISTINCT MIN ( ALL + 93 ) AS col2 FROM tab1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT DISTINCT + COUNT( * ) + + - COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8660
SELECT DISTINCT + COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT ( - col0 ) + - col1 FROM tab0
----
-108
-96
-98

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 IN ( col1 )
----

query I rowsort
SELECT + col2 * + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8664
SELECT DISTINCT CAST( + CAST( - COUNT( * ) AS DECIMAL ) AS SIGNED ) col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8664
SELECT DISTINCT CAST ( + CAST ( - COUNT ( * ) AS REAL ) AS INTEGER ) col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT + ( + col2 ) * ( col2 * - col0 ) FROM tab0 AS cor0
----
-33135
-8700
-950697

onlyif mysql # DIV for integer division: 
query I rowsort label-8666
SELECT DISTINCT - col1 DIV + + col0 col2 FROM tab2
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8666
SELECT DISTINCT - col1 / + + col0 col2 FROM tab2
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8667
SELECT + 59 DIV col1 FROM tab1 WHERE NOT - - 49 + + col1 IS NULL
----
1
11
4

skipif mysql # not compatible
query I rowsort label-8667
SELECT + 59 / col1 FROM tab1 WHERE NOT - - 49 + + col1 IS NULL
----
1
11
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - 24 col1 FROM tab1 cor0
----
1128
120
336

query I rowsort
SELECT DISTINCT + ( - + 8 ) AS col2 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT ( 13 ) * + 87 AS col1 FROM tab2 AS cor0
----
1131
1131
1131

onlyif mysql # DIV for integer division: 
query I rowsort label-8671
SELECT - col0 DIV + 24 AS col1 FROM tab0 AS cor0
----
-3
-4
0

skipif mysql # not compatible
query I rowsort label-8671
SELECT - col0 / + 24 AS col1 FROM tab0 AS cor0
----
-3
-4
0

query I rowsort
SELECT - col0 * + 88 FROM tab2 AS cor0
----
-4048
-5632
-6600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8673
SELECT CAST( + - ( COUNT( * ) ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8673
SELECT CAST ( + - ( COUNT ( * ) ) AS INTEGER ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( col0 ) NOT IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 55 + col1 * - - col1 + 92 FROM tab2 AS cor0
----
2748
4636
6076

onlyif mysql # DIV for integer division: 
query I rowsort label-8676
SELECT DISTINCT 19 DIV - - col2 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-8676
SELECT DISTINCT 19 / - - col2 FROM tab0
----
0
1

query I rowsort
SELECT DISTINCT col2 + - col1 * - col1 FROM tab0
----
100
451
6608

query I rowsort
SELECT ALL + col0 * - 36 FROM tab2 WHERE - col0 BETWEEN ( + - col0 ) AND - col0
----
-1656
-2304
-2700

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + + - col2 NOT BETWEEN - 56 * col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8681
SELECT - CAST( NULL AS SIGNED ) * col2 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-8681
SELECT - CAST ( NULL AS INTEGER ) * col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8682
SELECT + col1 + CAST( 12 AS SIGNED ) FROM tab1 AS cor0
----
17
26
59

skipif mysql # not compatible
query I rowsort label-8682
SELECT + col1 + CAST ( 12 AS INTEGER ) FROM tab1 AS cor0
----
17
26
59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 > + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 87 + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IN ( col0 )
----
101
134
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8685
SELECT col2 * - col0 * + col0 + + CAST( NULL AS DECIMAL ) + + col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8685
SELECT col2 * - col0 * + col0 + + CAST ( NULL AS REAL ) + + col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 53 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT ALL 99 * COUNT( * ) AS col2 FROM tab1 WHERE ( - col0 * ( - col0 ) + - 25 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8687
SELECT ALL 99 * COUNT ( * ) AS col2 FROM tab1 WHERE ( - col0 * ( - col0 ) + - 25 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT + 9 * col1 + - - 92 + + col0 FROM tab1
----
222
269
606

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 14 IS NOT NULL
----

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE col2 NOT IN ( + - col2 * 45 - - col0 )
----
51
85
91

query II rowsort
SELECT + + col0 AS col1, + 61 + - - 26 FROM tab1 AS cor0
----
51
87
85
87
91
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8692
SELECT ALL + CAST( - col2 AS SIGNED ) * - ( + - col2 ) + + 66 FROM tab1 AS cor0
----
-3415
-4558
-9150

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL + CAST ( - col2 AS INTEGER ) * - ( + - col2 ) + + 66 FROM tab1 AS cor0
----
-3415
-4558
-9150

query I rowsort
SELECT + col2 * + ( + + col1 ) - - + 93 * - + 59 FROM tab0 AS cor0
----
-1680
-5277
-5388

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN - 48 AND NULL AND col0 <= + + col2 + - ( + 19 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 47 col2, + col0 AS col0 FROM tab1
----
47
51
47
85
47
91

query I rowsort
SELECT col0 - - 6 FROM tab0
----
103
21
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8697
SELECT DISTINCT + COUNT( * ) DIV - - 81 AS col1 FROM tab2 WHERE ( NOT NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8697
SELECT DISTINCT + COUNT ( * ) / - - 81 AS col1 FROM tab2 WHERE ( NOT NULL IS NULL )
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( + 56 IS NULL )
----

query I rowsort
SELECT 29 + - 32 * + - col1 FROM tab2
----
1661
2173
2493

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - + 95 col2 FROM tab2
----
-4370
-6080
-7125

query II rowsort
SELECT DISTINCT 15, col0 AS col1 FROM tab1
----
15
51
15
85
15
91

query I rowsort
SELECT 70 * + + col1 AS col2 FROM tab2
----
3570
4690
5390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8703
SELECT ALL + - MIN( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 WHERE + 56 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL + - MIN ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 WHERE + 56 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8704
SELECT - 44 col1, COUNT( * ) col2 FROM tab0
----
-44
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8704
SELECT - 44 col1, COUNT ( * ) col2 FROM tab0
----
-44
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 66 * - col2 >= ( + col2 * + col1 )
----

query I rowsort
SELECT - ( - 57 ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL <> NULL
----

query I rowsort
SELECT 58 * - col1 FROM tab0 AS cor0
----
-1218
-4698
-58

query I rowsort
SELECT + - 39 * + col0 * col2 AS col1 FROM tab2 cor0
----
-169650
-41262
-99840

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( col1 * 97 / + col1 )
----

query I rowsort
SELECT DISTINCT - ( - - ( + col2 ) ) FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 AS cor0 WHERE NOT 76 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * - 96 * - + col0 col0, col1 AS col2 FROM tab0
----
21600
81
726624
21
903264
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT + MAX( ALL col1 ) * COUNT( col2 ) * ( + 39 ) + + 90 FROM tab1
----
5589

skipif mysql # not compatible
query I rowsort label-8714
SELECT + MAX ( ALL col1 ) * COUNT ( col2 ) * ( + 39 ) + + 90 FROM tab1
----
5589

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * 15 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col0, 89 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND + 92
----

query I rowsort
SELECT DISTINCT + col0 + + - col1 AS col0 FROM tab1
----
37
44
80

query I rowsort
SELECT col1 + 12 AS col1 FROM tab2
----
63
79
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT ALL - SUM( DISTINCT + - col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-8719
SELECT ALL - SUM ( DISTINCT + - col2 ) FROM tab1
----
223

query I rowsort
SELECT - 54 * + - 4 + - col1 AS col0 FROM tab1
----
169
202
211

query III rowsort
SELECT * FROM tab1 WHERE - ( - 95 ) + - + ( col2 ) NOT IN ( + - 6 ) OR NOT - 58 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT - - SUM( + col2 ) * + ( + 22 ) FROM tab2 AS cor0
----
2662

skipif mysql # not compatible
query I rowsort label-8722
SELECT - - SUM ( + col2 ) * + ( + 22 ) FROM tab2 AS cor0
----
2662

query III rowsort
SELECT * FROM tab0 WHERE - col2 + 83 BETWEEN 7 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT ALL - - 79 * + + COUNT( * ) + + 67 * 69 * MIN( + + ( + col0 ) ) FROM tab1 cor0
----
236010

skipif mysql # not compatible
query I rowsort label-8724
SELECT ALL - - 79 * + + COUNT ( * ) + + 67 * 69 * MIN ( + + ( + col0 ) ) FROM tab1 cor0
----
236010

query I rowsort
SELECT ALL + + 98 + + 8 AS col2 FROM tab0 AS cor0
----
106
106
106

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT ALL + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE + col1 + - + col0 NOT BETWEEN - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE + col1 + - + col0 NOT BETWEEN - col2 AND NULL
----
0

query I rowsort
SELECT - col0 + col0 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - - col1 + - 12 * + 75 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 IN ( col2, - 67, + 18 )
----
-853
-886
-895

query II rowsort
SELECT DISTINCT + col2 - + + col2 - + 33 + col0 AS col0, + 13 FROM tab0 AS cor0
----
-18
13
54
13
64
13

query II rowsort
SELECT - col1 * col2 * - col0 * - 77 AS col0, - col1 FROM tab0 AS cor0
----
-1406790
-21
-4397085
-81
-739431
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 + + + col0 = - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 60 * col1 AS col1 FROM tab0
----
1260
4860
60

query I rowsort
SELECT ( + 0 ) * col0 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL 12 + - 21 FROM tab0 WHERE NOT - + col2 <= + 52 + + + 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT DISTINCT - COUNT( + 45 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT - COUNT ( + 45 ) AS col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT DISTINCT COUNT( ALL + 57 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8736
SELECT DISTINCT COUNT ( ALL + 57 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT - SUM( - 98 ) FROM tab0 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-8737
SELECT - SUM ( - 98 ) FROM tab0 AS cor0
----
294

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> 95 + + col1
----

query I rowsort
SELECT DISTINCT - 72 * + + 56 FROM tab2 AS cor0
----
-4032

query I rowsort
SELECT ALL col2 * + 91 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN NULL AND - 90 * - ( - - 14 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT DISTINCT + 33 * + + ( - - COUNT( * ) ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8741
SELECT DISTINCT + 33 * + + ( - - COUNT ( * ) ) FROM tab1 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT ALL COUNT( DISTINCT - + 55 ) * - - MAX( DISTINCT col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8742
SELECT ALL COUNT ( DISTINCT - + 55 ) * - - MAX ( DISTINCT col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-8743
SELECT + 3 DIV - col0 AS col1, - col2 * + col1 - - 47 FROM tab2 AS cor0
----
0
-1126
0
-3033
0
-3839

skipif mysql # not compatible
query II rowsort label-8743
SELECT + 3 / - col0 AS col1, - col2 * + col1 - - 47 FROM tab2 AS cor0
----
0
-1126
0
-3033
0
-3839

onlyif mysql # DIV for integer division: 
query I rowsort label-8744
SELECT + + col1 DIV - - 12 + - col1 FROM tab0 AS cor0
----
-1
-20
-75

skipif mysql # not compatible
query I rowsort label-8744
SELECT + + col1 / - - 12 + - col1 FROM tab0 AS cor0
----
-1
-20
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8745
SELECT + col1 DIV + 68 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8745
SELECT + col1 / + 68 FROM tab0 cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8746
SELECT ALL - + 29 * CAST( + + col2 AS SIGNED ) FROM tab2 AS cor0
----
-1160
-1682
-667

skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL - + 29 * CAST ( + + col2 AS INTEGER ) FROM tab2 AS cor0
----
-1160
-1682
-667

query I rowsort
SELECT - col1 * - + 69 * + 11 FROM tab1 AS cor0
----
10626
35673
3795

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 11 + + + 71 IS NULL
----

query I rowsort
SELECT ALL col2 + - + col2 - - col2 AS col2 FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT col0 + + + 46 * + col0 AS col2 FROM tab0
----
4089
4559
705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8751
SELECT ALL CAST( NULL AS SIGNED ) / - col2 + - ( + ( - 20 ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL CAST ( NULL AS INTEGER ) / - col2 + - ( + ( - 20 ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * + - col1 AS col2 FROM tab1 WHERE + 10 * col0 + 65 NOT IN ( + col0, - 77 + col0 * - col1 )
----
-425
-4277
-714

query I rowsort
SELECT ALL + 17 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8754
SELECT + + CAST( NULL AS DECIMAL ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8754
SELECT + + CAST ( NULL AS REAL ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8755
SELECT + + CAST( NULL AS SIGNED ) + col0 AS col2, + 2 col1 FROM tab0 AS cor0
----
NULL
2
NULL
2
NULL
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8755
SELECT + + CAST ( NULL AS INTEGER ) + col0 AS col2, + 2 col1 FROM tab0 AS cor0
----
NULL
2
NULL
2
NULL
2

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 93 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8757
SELECT ALL 23 * - - COUNT( * ) + + + COUNT( * ) AS col1, COUNT( * ) * - - 4 AS col1 FROM tab1 AS cor0
----
72
12

skipif mysql # not compatible
query II rowsort label-8757
SELECT ALL 23 * - - COUNT ( * ) + + + COUNT ( * ) AS col1, COUNT ( * ) * - - 4 AS col1 FROM tab1 AS cor0
----
72
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT DISTINCT - COUNT( ALL 75 ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8758
SELECT DISTINCT - COUNT ( ALL 75 ) col2 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8759
SELECT ( - 0 ) DIV col2 * col1 - col2 * - col2 + - col2 AS col1 FROM tab2 AS cor0
----
1560
3306
506

skipif mysql # not compatible
query I rowsort label-8759
SELECT ( - 0 ) / col2 * col1 - col2 * - col2 + - col2 AS col1 FROM tab2 AS cor0
----
1560
3306
506

query I rowsort
SELECT ALL col1 - + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8761
SELECT DISTINCT - 5 DIV - COUNT( * ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT - 5 / - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 83 + + col0 - + col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT DISTINCT ( - MIN( DISTINCT - 81 ) ) AS col1 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-8763
SELECT DISTINCT ( - MIN ( DISTINCT - 81 ) ) AS col1 FROM tab2
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8764
SELECT col2 DIV - 49 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-8764
SELECT col2 / - 49 FROM tab0
----
-2
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 34 NOT BETWEEN - 86 AND 4
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT DISTINCT - COUNT( * ) * + 34 FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT - COUNT ( * ) * + 34 FROM tab1 AS cor0
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8767
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( - col0, + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8767
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( - col0, + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + col0 * - col0 + + + col0 + + 96 AS col1 FROM tab0 AS cor0
----
-114
-7386
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT DISTINCT + 65 * + COUNT( DISTINCT - - col1 ) + - COUNT( * ) + + + SUM( DISTINCT col2 ) FROM tab2 AS cor0
----
313

skipif mysql # not compatible
query I rowsort label-8769
SELECT DISTINCT + 65 * + COUNT ( DISTINCT - - col1 ) + - COUNT ( * ) + + + SUM ( DISTINCT col2 ) FROM tab2 AS cor0
----
313

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8770
SELECT + CAST( NULL AS DECIMAL ) * col2 * col2 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8770
SELECT + CAST ( NULL AS REAL ) * col2 * col2 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8771
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-8771
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8772
SELECT ALL - + 78 AS col1, + SUM( DISTINCT - - 68 ) col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-78
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8772
SELECT ALL - + 78 AS col1, + SUM ( DISTINCT - - 68 ) col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-78
68

query I rowsort
SELECT DISTINCT - 11 AS col0 FROM tab0 AS cor0 WHERE NOT ( + 54 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8774
SELECT + + col1, 71 AS col2 FROM tab1 cor0 WHERE NULL NOT IN ( + ( + - ( 47 ) ), - col1 * + - col1, + col2 * CAST( NULL AS SIGNED ) - + col1 + col0 + + 33 * + col0 )
----

skipif mysql # not compatible
query II rowsort label-8774
SELECT + + col1, 71 AS col2 FROM tab1 cor0 WHERE NULL NOT IN ( + ( + - ( 47 ) ), - col1 * + - col1, + col2 * CAST ( NULL AS INTEGER ) - + col1 + col0 + + 33 * + col0 )
----

query I rowsort
SELECT ALL 62 + + 47 + + + col0 * + - col1 AS col2 FROM tab1
----
-316
-4168
-605

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT - COUNT( * ) + + COUNT( * ) + 90 + - 41 * + - 26 AS col0 FROM tab2
----
1156

skipif mysql # not compatible
query I rowsort label-8776
SELECT - COUNT ( * ) + + COUNT ( * ) + 90 + - 41 * + - 26 AS col0 FROM tab2
----
1156

query III rowsort
SELECT * FROM tab2 WHERE - 48 <> - + 56
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8778
SELECT CAST( + 8 AS SIGNED ) FROM tab0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-8778
SELECT CAST ( + 8 AS INTEGER ) FROM tab0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT col2 + - col1 + + col1 - + - col0 * - col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8779
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT col2 + - col1 + + col1 - + - col0 * - col0 >= NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8780
SELECT col1, + col1 DIV + ( + col0 ) AS col0 FROM tab0
----
1
0
21
0
81
5

skipif mysql # not compatible
query II rowsort label-8780
SELECT col1, + col1 / + ( + col0 ) AS col0 FROM tab0
----
1
0
21
0
81
5

query I rowsort
SELECT ALL + col2 + - col2 * + - col1 AS col0 FROM tab1
----
1440
3264
354

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 3 / col0 NOT IN ( + col2, col1 + col2, - + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8783
SELECT DISTINCT - COUNT( * ) * - 91 AS col2, 1 AS col2 FROM tab2 AS cor0
----
273
1

skipif mysql # not compatible
query II rowsort label-8783
SELECT DISTINCT - COUNT ( * ) * - 91 AS col2, 1 AS col2 FROM tab2 AS cor0
----
273
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT MIN( ALL - - 68 ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-8784
SELECT MIN ( ALL - - 68 ) FROM tab1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT DISTINCT - COUNT( * ) * - - MAX( - - col0 ) AS col1 FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-8785
SELECT DISTINCT - COUNT ( * ) * - - MAX ( - - col0 ) AS col1 FROM tab0
----
-291

query I rowsort
SELECT ALL + 22 AS col2 FROM tab2 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col0 * 18 * col1 + + 11 + col2 + - col1 AND - 14 * + - col1 + - 77 + col1 * + - 85
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 33 >= - col1
----

query II rowsort
SELECT ALL 43, col1 AS col2 FROM tab0 AS cor0
----
43
1
43
21
43
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT ALL - + MAX( - 24 ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-8790
SELECT ALL - + MAX ( - 24 ) FROM tab1 AS cor0
----
24

query I rowsort
SELECT + col1 * - col2 + 78 + 99 AS col0 FROM tab1 AS cor0
----
-1167
-118
-3019

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NULL OR NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0 * - 18 AS col2, + 87 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1530
87
-1638
87
-918
87

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT ALL - COUNT( * ) * - 16 + + 67 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
211

skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL - COUNT ( * ) * - 16 + + 67 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
211

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) + + col1 col2 FROM tab1
----
138
65
90

query I rowsort
SELECT + col0 + + - col0 * col2 + + ( - col0 ) FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT - + 78 * 60 + - 56 * 31 FROM tab1 cor0
----
-6416
-6416
-6416

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT + - COUNT( * ) * MAX( - + 26 ) FROM tab0 cor0
----
78

skipif mysql # not compatible
query I rowsort label-8799
SELECT + - COUNT ( * ) * MAX ( - + 26 ) FROM tab0 cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT - COUNT( * ) * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8800
SELECT - COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8801
SELECT - ( col2 ) / + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8801
SELECT - ( col2 ) / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 9 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + - 47 * + col0 col1 FROM tab2 AS cor0
----
-192512
-264375
-99452

query I rowsort
SELECT DISTINCT ( + 22 ) AS col1 FROM tab0 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT ALL - SUM( DISTINCT + col2 ) + 15 AS col2 FROM tab1 AS cor0
----
-208

skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL - SUM ( DISTINCT + col2 ) + 15 AS col2 FROM tab1 AS cor0
----
-208

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - + col1 AND NULL
----

query I rowsort
SELECT ALL 68 * - - col1 FROM tab2 WHERE col0 + - 1 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + - + ( + ( col2 ) ) FROM tab2
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8809
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( + 87 * + 51 * + + col0 + - col2 + - + col0 + 14 * - ( CAST( NULL AS SIGNED ) ) ) AND 94
----

skipif mysql # not compatible
query III rowsort label-8809
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( + 87 * + 51 * + + col0 + - col2 + - + col0 + 14 * - ( CAST ( NULL AS INTEGER ) ) ) AND 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT COUNT( * ) + - 36 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-8810
SELECT COUNT ( * ) + - 36 FROM tab1
----
-33

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND + 8
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8812
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 WHERE - + 24 - - 86 + + - 49 + - - 20 NOT IN ( + ( - 12 ) )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 WHERE - + 24 - - 86 + + - 49 + - - 20 NOT IN ( + ( - 12 ) )
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + + col2 + 99 AS col1 FROM tab2 AS cor0
----
145
179
215

onlyif mysql # DIV for integer division: 
query I rowsort label-8814
SELECT - 83 DIV + col0 + + col2 FROM tab0 AS cor0
----
10
42
99

skipif mysql # not compatible
query I rowsort label-8814
SELECT - 83 / + col0 + + col2 FROM tab0 AS cor0
----
10
42
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + 95 col2 FROM tab2 AS cor0
----
4370
6080
7125

query I rowsort
SELECT - ( + 95 ) + + + 14 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, - 51 col1 FROM tab2 AS cor0
----
-23
-51
-40
-51
-58
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8818
SELECT ALL + MAX( + col2 ) DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL + MAX ( + col2 ) / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT ALL MAX( ALL 85 ) col0 FROM tab2 cor0
----
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8819
SELECT ALL MAX ( ALL 85 ) col0 FROM tab2 cor0
----
85

query I rowsort
SELECT DISTINCT ( - col1 ) * 53 + - col0 FROM tab1 AS cor0 WHERE 87 / + + ( col2 ) NOT IN ( + - 31 * - col2 )
----
-2582
-350
-793

query I rowsort
SELECT ALL col2 * - 96 FROM tab1 AS cor0
----
-5664
-6528
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT + ( col0 ) * - + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8822
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT + ( col0 ) * - + col2 IS NOT NULL
----
0

query I rowsort
SELECT ALL 63 * - col1 AS col1 FROM tab1
----
-2961
-315
-882

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

query I rowsort
SELECT col2 * 47 * - 59 AS col0 FROM tab0
----
-130331
-274527
-27730

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8826
SELECT ALL - ( 32 ) DIV - + COUNT( * ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL - ( 32 ) / - + COUNT ( * ) FROM tab0
----
10

query I rowsort
SELECT ALL + 21 * + 57 * - col1 * - 10 FROM tab1
----
167580
562590
59850

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT - COUNT( * ) FROM tab2 WHERE NOT NULL IN ( col0, - 26 )
----
0

skipif mysql # not compatible
query I rowsort label-8828
SELECT - COUNT ( * ) FROM tab2 WHERE NOT NULL IN ( col0, - 26 )
----
0

query I rowsort
SELECT col2 * ( - + col2 ) AS col0 FROM tab2
----
-1600
-3364
-529

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - - 67 ) * + + col2 * + col0 * col0 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT - 29 + 67 FROM tab0 cor0 WHERE NOT 85 + - 35 / + 42 - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8833
SELECT ALL COUNT( 51 ) col1, 38 FROM tab1 AS cor0
----
3
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8833
SELECT ALL COUNT ( 51 ) col1, 38 FROM tab1 AS cor0
----
3
38

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT MIN( ALL 56 ) FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-8835
SELECT MIN ( ALL 56 ) FROM tab0
----
56

query I rowsort
SELECT + + 96 + - col0 - + - col1 * - col0 AS col1 FROM tab1 AS cor0
----
-414
-4272
-669

query I rowsort
SELECT DISTINCT + - col2 + 68 AS col1 FROM tab0 AS cor0
----
-31
21
58

query I rowsort
SELECT ALL + + col2 + + 96 + + 99 * + - col0 AS col2 FROM tab2 AS cor0
----
-4435
-6200
-7271

query I rowsort
SELECT + ( 11 ) + + + 31 - - col2 FROM tab2 AS cor0
----
100
65
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT DISTINCT + COUNT( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8840
SELECT DISTINCT + COUNT ( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL - col0 AS col1, 89 FROM tab0 cor0
----
-15
89
-87
89
-97
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 col1 FROM tab2 AS cor0
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + - 56 col1 FROM tab1
----
12
3
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8844
SELECT ALL CAST( + ( + ( + 25 ) ) AS SIGNED ) AS col0 FROM tab2
----
25
25
25

skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL CAST ( + ( + ( + 25 ) ) AS INTEGER ) AS col0 FROM tab2
----
25
25
25

onlyif mysql # DIV for integer division: 
query I rowsort label-8845
SELECT 92 DIV 11 DIV col0 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8845
SELECT 92 / 11 / col0 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 - - ( col1 ) * + - 94 AS col2 FROM tab2 cor0
----
-4817
-6356
-7278

query I rowsort
SELECT - - col0 * - - col1 AS col2 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT DISTINCT + 78 * - - col1 * + 20 FROM tab2
----
104520
120120
79560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + + ( + 77 ) + - 17 col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
2
20
37

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT ( NOT - 37 * + col0 IS NOT NULL )
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8851
SELECT ALL - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) + - AVG ( + + 53 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) + - AVG ( + + 53 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT DISTINCT COUNT( * ) * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
9

query I rowsort
SELECT ALL - - 62 * - col1 - - + ( - col1 ) FROM tab2 AS cor0
----
-3213
-4221
-4851

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8854
SELECT 89 DIV 71 + - CAST( - 35 AS SIGNED ) FROM tab0 AS cor0
----
36
36
36

skipif mysql # not compatible
query I rowsort label-8854
SELECT 89 / 71 + - CAST ( - 35 AS INTEGER ) FROM tab0 AS cor0
----
36
36
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8855
SELECT 91, COUNT( * ) DIV + - 70 col1 FROM tab2 AS cor0
----
91
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8855
SELECT 91, COUNT ( * ) / + - 70 col1 FROM tab2 AS cor0
----
91
0

query I rowsort
SELECT DISTINCT col0 * + + col0 * - 53 FROM tab0
----
-11925
-401157
-498677

query III rowsort
SELECT ALL * FROM tab0 WHERE - 99 * + col1 + - - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8858
SELECT DISTINCT col2 * + col0 DIV + col0 AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8858
SELECT DISTINCT col2 * + col0 / + col0 AS col2 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8859
SELECT ALL - col2 / - 43 * col2 AS col2 FROM tab0 WHERE col0 - col0 > + CAST( NULL AS DECIMAL ) * col2
----

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL - col2 / - 43 * col2 AS col2 FROM tab0 WHERE col0 - col0 > + CAST ( NULL AS REAL ) * col2
----

query I rowsort
SELECT 83 * + 74 FROM tab2
----
6142
6142
6142

query I rowsort
SELECT ALL col0 * + 61 + 87 FROM tab0 WHERE NOT + col0 + + - col2 + - + col1 * col1 * + col0 IS NOT NULL
----

query I rowsort
SELECT - col1 * + col2 * + + col0 * col2 FROM tab0 AS cor0
----
-182700
-2683935
-950697

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 * 74 * col1 = + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + ( - ( 24 ) ) + - col0, col2 FROM tab0 AS cor0
----
-111
10
-121
99
-39
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT + - COUNT( * ) - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-8865
SELECT + - COUNT ( * ) - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-8866
SELECT + MIN( - col1 ) AS col2, - 12 AS col0 FROM tab0 AS cor0
----
-81
-12

skipif mysql # not compatible
query II rowsort label-8866
SELECT + MIN ( - col1 ) AS col2, - 12 AS col0 FROM tab0 AS cor0
----
-81
-12

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * + 6 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT DISTINCT 9 * + - COUNT( * ) col0 FROM tab1 cor0
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8868
SELECT DISTINCT 9 * + - COUNT ( * ) col0 FROM tab1 cor0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-8869
SELECT DISTINCT + col1 DIV + col1 - col1 * + col0 AS col0 FROM tab0 AS cor0
----
-1214
-1826
-96

skipif mysql # not compatible
query I rowsort label-8869
SELECT DISTINCT + col1 / + col1 - col1 * + col0 AS col0 FROM tab0 AS cor0
----
-1214
-1826
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT DISTINCT + 26 * - COUNT( * ) col2 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8870
SELECT DISTINCT + 26 * - COUNT ( * ) col2 FROM tab1 AS cor0
----
-78

query I rowsort
SELECT col1 + + col0 + 43 - 99 AS col1 FROM tab2 WHERE + col0 BETWEEN + - 47 / - + col0 AND - 85
----

query I rowsort
SELECT ( - 96 ) - - - col2 - - col0 * - col0 FROM tab1
----
-2793
-7380
-8445

query I rowsort
SELECT ALL col0 * - col2 * + col1 + + + 96 * - + col1 FROM tab1
----
-25555
-295348
-69888

query I rowsort
SELECT ALL + col1 + - 93 AS col1 FROM tab1
----
-46
-79
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT ALL - 39 - - MAX( - 44 ) - - ( - COUNT( * ) ) AS col0 FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL - 39 - - MAX ( - 44 ) - - ( - COUNT ( * ) ) AS col0 FROM tab0
----
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + - ( - 15 ) col0 FROM tab2
----
61
79
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT DISTINCT SUM( DISTINCT 44 ) AS col1 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-8877
SELECT DISTINCT SUM ( DISTINCT 44 ) AS col1 FROM tab0 AS cor0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8878
SELECT ALL + 5 col2, col0 * + - 47 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
5
NULL
5
NULL
5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8878
SELECT ALL + 5 col2, col0 * + - 47 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
5
NULL
5
NULL
5
NULL

query II rowsort
SELECT 22, + col0 / col2 FROM tab0 AS cor0 WHERE NOT NULL <= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8880
SELECT ALL - col1 FROM tab2 WHERE NOT - col0 * - col2 IS NOT NULL OR NULL NOT BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-8880
SELECT ALL - col1 FROM tab2 WHERE NOT - col0 * - col2 IS NOT NULL OR NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8881
SELECT ALL + CAST( - 84 AS SIGNED ) FROM tab0 AS cor0
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-8881
SELECT ALL + CAST ( - 84 AS INTEGER ) FROM tab0 AS cor0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT DISTINCT COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8882
SELECT DISTINCT COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8883
SELECT - CAST( + 49 AS SIGNED ) FROM tab0 AS cor0
----
-49
-49
-49

skipif mysql # not compatible
query I rowsort label-8883
SELECT - CAST ( + 49 AS INTEGER ) FROM tab0 AS cor0
----
-49
-49
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 / col0 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 15 FROM tab0, tab2 cor0
----
15

query I rowsort
SELECT ALL + col0 * - col1 AS col0 FROM tab0 WHERE NOT ( NULL ) > ( NULL )
----

query I rowsort
SELECT ALL 60 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT - ( + ( ( + 43 ) ) ) + COUNT( * ) AS col1 FROM tab1
----
-40

skipif mysql # not compatible
query I rowsort label-8888
SELECT - ( + ( ( + 43 ) ) ) + COUNT ( * ) AS col1 FROM tab1
----
-40

query I rowsort
SELECT 3 + + col0 AS col0 FROM tab0
----
100
18
90

query I rowsort
SELECT ALL - 38 * - - 67 AS col1 FROM tab0
----
-2546
-2546
-2546

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT - + ( COUNT( * ) ) * + 37 + - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-8891
SELECT - + ( COUNT ( * ) ) * + 37 + - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8892
SELECT * FROM tab0 AS cor0 WHERE + col0 * col1 * - col2 * CAST( NULL AS SIGNED ) > col1
----

skipif mysql # not compatible
query III rowsort label-8892
SELECT * FROM tab0 AS cor0 WHERE + col0 * col1 * - col2 * CAST ( NULL AS INTEGER ) > col1
----

query I rowsort
SELECT ALL + col2 * col1 + ( - col2 ) AS col2 FROM tab0 cor0
----
0
200
3760

query I rowsort
SELECT DISTINCT - 92 * ( + col1 ) AS col0 FROM tab2 cor0
----
-4692
-6164
-7084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8895
SELECT DISTINCT + - CAST( - ( 93 ) AS SIGNED ) FROM tab1 cor0
----
93

skipif mysql # not compatible
query I rowsort label-8895
SELECT DISTINCT + - CAST ( - ( 93 ) AS INTEGER ) FROM tab1 cor0
----
93

query I rowsort
SELECT ALL - 91 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query II rowsort
SELECT - 21, - col0 AS col0 FROM tab2
----
-21
-46
-21
-64
-21
-75

query I rowsort
SELECT DISTINCT + 16 + + - col1 AS col1 FROM tab2
----
-35
-51
-61

query III rowsort
SELECT * FROM tab1 WHERE + - 14 > 75 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT + MAX( - - col0 ) + - 68 AS col1 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-8900
SELECT + MAX ( - - col0 ) + - 68 AS col1 FROM tab2
----
7

query I rowsort
SELECT ALL + 22 + - + 1 FROM tab1
----
21
21
21

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE ( - - 2 ) <= col2
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8903
SELECT DISTINCT - 85 DIV + ( + - col0 ) + + 76 * + col0 - + col2 AS col2 FROM tab1 cor0
----
3781
6402
6848

skipif mysql # not compatible
query I rowsort label-8903
SELECT DISTINCT - 85 / + ( + - col0 ) + + 76 * + col0 - + col2 AS col2 FROM tab1 cor0
----
3781
6402
6848

query I rowsort
SELECT DISTINCT + + ( + 81 ) + - col2 FROM tab1 AS cor0
----
-15
13
22

onlyif mysql # DIV for integer division: 
query I rowsort label-8905
SELECT ALL + col0 DIV - 95 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL + col0 / - 95 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8906
SELECT DISTINCT + + col0 AS col1 FROM tab0 AS cor0 WHERE ( NOT NULL >= - - CAST( col1 AS SIGNED ) * - 73 + - 29 )
----

skipif mysql # not compatible
query I rowsort label-8906
SELECT DISTINCT + + col0 AS col1 FROM tab0 AS cor0 WHERE ( NOT NULL >= - - CAST ( col1 AS INTEGER ) * - 73 + - 29 )
----

query I rowsort
SELECT - - col0 * - col1 + - - 96 * + col1 FROM tab0 AS cor0
----
-1
189
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8908
SELECT CAST( NULL AS SIGNED ) * - CAST( + - col2 AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8908
SELECT CAST ( NULL AS INTEGER ) * - CAST ( + - col2 AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT - ( MIN( + + col1 ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-8909
SELECT - ( MIN ( + + col1 ) ) FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT ALL - MAX( DISTINCT - - col0 ) / - + MAX( + - 71 ) - + AVG ( ALL - 47 ) AS col2 FROM tab1 WHERE col1 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL - MAX ( DISTINCT - - col0 ) / - + MAX ( + - 71 ) - + AVG ( ALL - 47 ) AS col2 FROM tab1 WHERE col1 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT MIN( - ( + 71 ) ) FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-8911
SELECT MIN ( - ( + 71 ) ) FROM tab2
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-8912
SELECT ALL - 10 * col2 DIV - ( - 9 ) FROM tab1
----
-106
-65
-75

skipif mysql # not compatible
query I rowsort label-8912
SELECT ALL - 10 * col2 / - ( - 9 ) FROM tab1
----
-106
-65
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8913
SELECT + 18 DIV - - 38 + + 33 AS col0 FROM tab0 AS cor0
----
33
33
33

skipif mysql # not compatible
query I rowsort label-8913
SELECT + 18 / - - 38 + + 33 AS col0 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT 90 * + + col0 FROM tab2 AS cor0
----
4140
5760
6750

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT DISTINCT MAX( - col0 ) FROM tab0 AS cor0 WHERE col1 + - + 68 BETWEEN - - col0 AND + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT MAX ( - col0 ) FROM tab0 AS cor0 WHERE col1 + - + 68 BETWEEN - - col0 AND + + 28
----
NULL

query I rowsort
SELECT 81 * + col0 FROM tab0
----
1215
7047
7857

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 65 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL - ( + 8 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 31 >= - 53 OR + 25 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 cor0 WHERE - col1 BETWEEN + col1 AND NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE + + 38 BETWEEN + col0 AND - + col0 * + + ( + 54 )
----

query I rowsort
SELECT + - ( - col1 ) AS col0 FROM tab0 WHERE NOT + 4 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 - - col2 + + 13 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * 41 FROM tab2
----
1640
2378
943

query I rowsort
SELECT ALL - 27 * col2 FROM tab2
----
-1080
-1566
-621

query I rowsort
SELECT - col2 + + col2 * + 62 * col1 - ( - - col2 ) FROM tab1 AS cor0
----
18172
198016
83136

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8927
SELECT ALL - 20 * + CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8927
SELECT ALL - 20 * + CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT ( COUNT( * ) ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8928
SELECT ( COUNT ( * ) ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT DISTINCT ( - MAX( DISTINCT + col0 ) ) * COUNT( * ) * 51 FROM tab1 WHERE - - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8929
SELECT DISTINCT ( - MAX ( DISTINCT + col0 ) ) * COUNT ( * ) * 51 FROM tab1 WHERE - - col1 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab0 AS cor0 WHERE ( NULL ) IN ( col0 )
----

query II rowsort
SELECT + col1 AS col0, 94 * col0 FROM tab0 AS cor0
----
1
9118
21
8178
81
1410

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 - + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 10 * - col2 - - + col0 + 33 FROM tab1 AS cor0
----
-472
-556
-876

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8934
SELECT + col2 - - + CAST( - - col1 AS SIGNED ) FROM tab0 AS cor0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-8934
SELECT + col2 - - + CAST ( - - col1 AS INTEGER ) FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT - + col0 - 4 AS col2 FROM tab1 cor0
----
-55
-89
-95

query I rowsort
SELECT - - col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col0, + 31 * + + 65 + - col2 FROM tab2
----
51
1992
67
1957
77
1975

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT ALL + MAX( ALL + col0 ) * - COUNT( * ) + + - COUNT( * ) FROM tab0 WHERE NOT col1 * col2 IS NULL
----
-294

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL + MAX ( ALL + col0 ) * - COUNT ( * ) + + - COUNT ( * ) FROM tab0 WHERE NOT col1 * col2 IS NULL
----
-294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8939
SELECT - 19 DIV COUNT( * ) * 67 FROM tab0
----
-402

skipif mysql # not compatible
query I rowsort label-8939
SELECT - 19 / COUNT ( * ) * 67 FROM tab0
----
-402

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT - col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT MAX( ALL - - 74 ) FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-8941
SELECT MAX ( ALL - - 74 ) FROM tab0
----
74

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 NOT IN ( - + 35, - col0 * + col2, - col1 * - - col0 * col2 * - col1 * + col2, - col1, + - 51 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - + 74 AS col1, 80 AS col0 FROM tab0 WHERE NOT NULL >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT - 37 * COUNT( ALL col2 ) + - ( COUNT( * ) ) FROM tab0 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-8944
SELECT - 37 * COUNT ( ALL col2 ) + - ( COUNT ( * ) ) FROM tab0 AS cor0
----
-114

query II rowsort
SELECT - + col0, + 5 * + - col2 + - ( + col0 ) + col2 AS col1 FROM tab1 AS cor0
----
-51
-435
-85
-321
-91
-363

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8946
SELECT ALL + - CAST( + - 60 AS SIGNED ) FROM tab2 cor0 WHERE ( NULL ) <> col1
----

skipif mysql # not compatible
query I rowsort label-8946
SELECT ALL + - CAST ( + - 60 AS INTEGER ) FROM tab2 cor0 WHERE ( NULL ) <> col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8947
SELECT DISTINCT - COUNT( * ), + 53 AS col0 FROM tab2 AS cor0
----
-3
53

skipif mysql # not compatible
query II rowsort label-8947
SELECT DISTINCT - COUNT ( * ), + 53 AS col0 FROM tab2 AS cor0
----
-3
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8948
SELECT MAX( ALL - CAST( NULL AS SIGNED ) ) * + - 74 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8948
SELECT MAX ( ALL - CAST ( NULL AS INTEGER ) ) * + - 74 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT 50 * - col1 * - - col2 AS col2 FROM tab1
----
-14750
-159800
-67200

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT 16 * 72 * - - COUNT( DISTINCT + + 48 ) * - + 61 FROM tab2 AS cor0
----
-70272

skipif mysql # not compatible
query I rowsort label-8950
SELECT 16 * 72 * - - COUNT ( DISTINCT + + 48 ) * - + 61 FROM tab2 AS cor0
----
-70272

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT col0 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8952
SELECT ALL + + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL + + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + ( + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 67 FROM tab2 AS cor0 WHERE col2 + col2 / + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT ALL - - 91 + + SUM( + col1 ) AS col1 FROM tab1 AS cor0
----
157

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL - - 91 + + SUM ( + col1 ) AS col1 FROM tab1 AS cor0
----
157

query I rowsort
SELECT DISTINCT 88 AS col2 FROM tab2 cor0
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( col0 ) + + 98 col0, col0 AS col2 FROM tab0
----
113
15
185
87
195
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT - 76 + + COUNT( * ) AS col1 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-8958
SELECT - 76 + + COUNT ( * ) AS col1 FROM tab1
----
-73

query I rowsort
SELECT - col0 + 16 AS col0 FROM tab0
----
-71
-81
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8960
SELECT ALL * FROM tab0 WHERE + col0 BETWEEN NULL AND CAST( NULL AS SIGNED ) * - + col1 / - 29 * - col1
----

skipif mysql # not compatible
query III rowsort label-8960
SELECT ALL * FROM tab0 WHERE + col0 BETWEEN NULL AND CAST ( NULL AS INTEGER ) * - + col1 / - 29 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8961
SELECT - col0 - + + col0 AS col1 FROM tab2 WHERE - CAST( NULL AS SIGNED ) BETWEEN NULL AND + col0
----

skipif mysql # not compatible
query I rowsort label-8961
SELECT - col0 - + + col0 AS col1 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT DISTINCT SUM( col1 ) + - 74 * - + 75 FROM tab2
----
5745

skipif mysql # not compatible
query I rowsort label-8962
SELECT DISTINCT SUM ( col1 ) + - 74 * - + 75 FROM tab2
----
5745

query I rowsort
SELECT + col2 + - 40 * - col2 * - col0 FROM tab0
----
-28153
-34790
-384021

query I rowsort
SELECT ALL - 49 + - + 48 FROM tab0
----
-97
-97
-97

query I rowsort
SELECT 26 + - col2 FROM tab1
----
-33
-42
-70

query I rowsort
SELECT - col2 * + 39 * - col1 + - col1 * - 61 AS col0 FROM tab2
----
124817
155641
48858

query II rowsort
SELECT 72, - col0 AS col2 FROM tab0
----
72
-15
72
-87
72
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT DISTINCT + ( + COUNT( DISTINCT + col2 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8968
SELECT DISTINCT + ( + COUNT ( DISTINCT + col2 ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8969
SELECT - 70 AS col1, - COUNT( * ) FROM tab0 AS cor0
----
-70
-3

skipif mysql # not compatible
query II rowsort label-8969
SELECT - 70 AS col1, - COUNT ( * ) FROM tab0 AS cor0
----
-70
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT DISTINCT - ( + + COUNT( DISTINCT - - 84 ) ) AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8970
SELECT DISTINCT - ( + + COUNT ( DISTINCT - - 84 ) ) AS col1 FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 + - - 48 col2 FROM tab2 AS cor0
----
53
53
53

query I rowsort
SELECT - AVG ( DISTINCT - ( col0 ) ) FROM tab1 WHERE ( NOT col1 >= NULL )
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL >= NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8974
SELECT DISTINCT + MAX( 24 ) + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8974
SELECT DISTINCT + MAX ( 24 ) + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * - - 1 - col0 FROM tab0 AS cor0
----
-174
-194
-30

query I rowsort
SELECT 4 * 31 + 67 / + + 78 * - - 86 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + ( + 43 ) * + col2 AS col0 FROM tab2 cor0
----
1720
2494
989

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 1 * col2 * - col0 + ( - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT DISTINCT - 74 * COUNT( * ) FROM tab1 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-8979
SELECT DISTINCT - 74 * COUNT ( * ) FROM tab1 AS cor0
----
-222

query I rowsort
SELECT + col1 * + 13 AS col0 FROM tab1 AS cor0
----
182
611
65

query II rowsort
SELECT DISTINCT + ( col2 ) AS col0, + 11 FROM tab0 AS cor0
----
10
11
47
11
99
11

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 <= - 24 + - 85
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT - 68 + - col0 NOT BETWEEN NULL AND + - col2
----

query I rowsort
SELECT DISTINCT - 60 * - 82 FROM tab2
----
4920

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT DISTINCT - 16 * - COUNT( * ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-8985
SELECT DISTINCT - 16 * - COUNT ( * ) FROM tab2
----
48

query I rowsort
SELECT DISTINCT col1 * col0 * - + col2 AS col2 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # DIV for integer division: 
query I rowsort label-8987
SELECT DISTINCT - 34 DIV + 50 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8987
SELECT DISTINCT - 34 / + 50 FROM tab0
----
0

query I rowsort
SELECT ALL 29 * - 37 AS col2 FROM tab1
----
-1073
-1073
-1073

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 3 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + 79 * - + 23 + + 27 AS col2, - col2 AS col0 FROM tab0 AS cor0
----
-1790
-10
-1790
-47
-1790
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * col1 col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-8992
SELECT DISTINCT + col0 DIV - + col1 AS col2 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-8992
SELECT DISTINCT + col0 / - + col1 AS col2 FROM tab2
----
-1
0

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT + 81 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT ALL + MIN( - col2 ) col2 FROM tab1
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8994
SELECT ALL + MIN ( - col2 ) col2 FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT DISTINCT + ( MIN( + ( - - col1 ) ) ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8995
SELECT DISTINCT + ( MIN ( + ( - - col1 ) ) ) AS col1 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab0 AS cor0 WHERE NOT 53 * - - col0 * + + col2 * + col2 IS NOT NULL
----

query II rowsort
SELECT - 1 AS col2, col2 FROM tab1 AS cor0
----
-1
59
-1
68
-1
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8998
SELECT + ( col0 ) / + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8998
SELECT + ( col0 ) / + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 46 + - 40 * + col0 FROM tab2 AS cor0
----
-1886
-2606
-3046

query I rowsort
SELECT DISTINCT ( ( col2 ) ) + + col1 AS col0 FROM tab1
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9001
SELECT ALL col0 + + - CAST( NULL AS SIGNED ) + + - col0 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9001
SELECT ALL col0 + + - CAST ( NULL AS INTEGER ) + + - col0 col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE - 56 * + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9003
SELECT ALL + CAST( COUNT( - col1 ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL + CAST ( COUNT ( - col1 ) AS INTEGER ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9004
SELECT + + col1 DIV - + col2 + - col2 + - + col0 * 4 - + - col0 + - - col0 * + 54 AS col0 FROM tab1 AS cor0
----
2505
4276
4573

skipif mysql # not compatible
query I rowsort label-9004
SELECT + + col1 / - + col2 + - col2 + - + col0 * 4 - + - col0 + - - col0 * + 54 AS col0 FROM tab1 AS cor0
----
2505
4276
4573

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + - ( + col0 ) + col2 - col2 - + col0 - + 28 col2 FROM tab0 AS cor0
----
-748
-9728
-985

query I rowsort
SELECT - 88 + + + col2 AS col2 FROM tab0 AS cor0
----
-41
-78
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col1 col2 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT ALL - 5 + - - COUNT( * ) col1 FROM tab1
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9008
SELECT ALL - 5 + - - COUNT ( * ) col1 FROM tab1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9009
SELECT DISTINCT - col0 AS col2, + col2 * + + CAST( NULL AS SIGNED ) FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-9009
SELECT DISTINCT - col0 AS col2, + col2 * + + CAST ( NULL AS INTEGER ) FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9010
SELECT ALL - CAST( NULL AS DECIMAL ) * + 69 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9010
SELECT ALL - CAST ( NULL AS REAL ) * + 69 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - - 95 ) FROM tab1 AS cor0
----
95
95
95

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 19 / - + 9 NOT IN ( - - col2, col0, + - col0, col1, - col2 * col1, + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT ALL - 56 * + SUM( DISTINCT + + col0 ) FROM tab0 AS cor0
----
-11144

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL - 56 * + SUM ( DISTINCT + + col0 ) FROM tab0 AS cor0
----
-11144

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT DISTINCT - - COUNT( - + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9014
SELECT DISTINCT - - COUNT ( - + col2 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 + - col1 + + + 92 AND NULL
----

query I rowsort
SELECT 39 FROM tab1 AS cor0 WHERE NOT col0 + 96 + - - ( + col1 ) BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 13 < + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 21 <= col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 NOT BETWEEN col0 AND - col1 * col2 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT DISTINCT + MIN( DISTINCT + 18 ) * 28 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9020
SELECT DISTINCT + MIN ( DISTINCT + 18 ) * 28 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE 25 + 32 NOT BETWEEN + ( col2 ) AND col0
----
-15
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 * - col0 col0 FROM tab2
----
-3542
-4928
-5775

query I rowsort
SELECT - + 28 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT DISTINCT - 50 + + COUNT( col1 ) AS col1 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-9024
SELECT DISTINCT - 50 + + COUNT ( col1 ) AS col1 FROM tab0
----
-47

query I rowsort
SELECT + + col1 * + col2 - + 76 AS col2 FROM tab2 AS cor0
----
1097
3004
3810

query I rowsort
SELECT col1 / col2 AS col0 FROM tab2 AS cor0 WHERE - col2 >= NULL
----

query II rowsort
SELECT ALL - col0, 22 AS col0 FROM tab0 AS cor0
----
-15
22
-87
22
-97
22

query I rowsort
SELECT DISTINCT + 58 * - + col0 AS col0 FROM tab0 AS cor0
----
-5046
-5626
-870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) + - col2 col1 FROM tab2
----
-117
-125
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 col0 FROM tab0
----
-66
-96
66

query II rowsort
SELECT + col1 AS col0, col0 AS col1 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT DISTINCT 84 + + - MAX( DISTINCT - col0 ) AS col1 FROM tab2
----
130

skipif mysql # not compatible
query I rowsort label-9032
SELECT DISTINCT 84 + + - MAX ( DISTINCT - col0 ) AS col1 FROM tab2
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9033
SELECT - ( - + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9033
SELECT - ( - + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + + ( + - col2 ) AS col1 FROM tab1
----
-118
-136
-192

query I rowsort
SELECT DISTINCT - col0 * - col1 + ( - col1 ) FROM tab0
----
1134
1806
96

query I rowsort
SELECT - - col1 - + - col2 AS col2 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT - + ( + ( - ( - + col2 ) ) ) - + + col0 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT DISTINCT - ( - 21 ) FROM tab0
----
21

query I rowsort
SELECT - col1 + + col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + - 91 AS col1 FROM tab0 cor0
----
-91
-91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT ALL - + SUM( DISTINCT 16 ) * - COUNT( * ) + 83 AS col1 FROM tab2 cor0
----
131

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL - + SUM ( DISTINCT 16 ) * - COUNT ( * ) + 83 AS col1 FROM tab2 cor0
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT - 69 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-9042
SELECT - 69 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-207

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 / - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + - ( 19 ), col0 FROM tab1 AS cor0
----
-19
51
-19
85
-19
91

query II rowsort
SELECT DISTINCT - col2 * col0 * 39, col0 * col2 AS col2 FROM tab2
----
-169650
4350
-41262
1058
-99840
2560

query II rowsort
SELECT DISTINCT + 43 AS col0, - ( + col0 ) FROM tab1
----
43
-51
43
-85
43
-91

query I rowsort
SELECT + - col2 - - col2 + - col1 * col1 * 61 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT + - MIN( + 46 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9048
SELECT + - MIN ( + 46 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT + 51 * + ( + 33 ) AS col1 FROM tab0 AS cor0
----
1683
1683
1683

query II rowsort
SELECT - + col1, + col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT DISTINCT + col0 * - 77 FROM tab2 AS cor0
----
-3542
-4928
-5775

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT DISTINCT + + MAX( DISTINCT 9 ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9052
SELECT DISTINCT + + MAX ( DISTINCT 9 ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT + 12 * - + 92 + + 56 * + - ( - 56 ) FROM tab0 AS cor0
----
2032
2032
2032

query I rowsort
SELECT DISTINCT - col1 - - 52 FROM tab0
----
-29
31
51

query I rowsort
SELECT DISTINCT + 81 * + 50 FROM tab0
----
4050

query III rowsort
SELECT * FROM tab1 WHERE + col1 <= ( - col1 )
----

query I rowsort
SELECT - 73 + col2 FROM tab2
----
-15
-33
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT ALL - COUNT( * ) + - ( COUNT( * ) ) col0 FROM tab2
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9058
SELECT ALL - COUNT ( * ) + - ( COUNT ( * ) ) col0 FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT DISTINCT 0 * COUNT( * ) AS col0 FROM tab1 WHERE 98 + + col1 NOT BETWEEN ( + 75 * - 28 ) AND col2
----
0

skipif mysql # not compatible
query I rowsort label-9059
SELECT DISTINCT 0 * COUNT ( * ) AS col0 FROM tab1 WHERE 98 + + col1 NOT BETWEEN ( + 75 * - 28 ) AND col2
----
0

query III rowsort
SELECT * FROM tab1 WHERE + col1 / + col0 + 19 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 20 AS col1 FROM tab1 WHERE NOT ( col1 ) NOT IN ( 93 * - col2 + 61 )
----

query I rowsort
SELECT col2 + 90 * - col0 FROM tab1
----
-4494
-7591
-8122

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT ( + col0 * col2 + + col0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9063
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT ( + col0 * col2 + + col0 ) IS NULL
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * - col1 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 / + 45 col0 FROM tab2 WHERE NOT col1 NOT IN ( - col2 * + 96 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT DISTINCT - COUNT( * ) - + 27 AS col0 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-9067
SELECT DISTINCT - COUNT ( * ) - + 27 AS col0 FROM tab1
----
-30

query I rowsort
SELECT + ( + 73 ) * 81 + - col1 FROM tab2
----
5836
5846
5862

query I rowsort
SELECT DISTINCT col1 * + col0 FROM tab0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT ALL + MIN( ALL + 17 ) AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
17

skipif mysql # not compatible
query I rowsort label-9070
SELECT ALL + MIN ( ALL + 17 ) AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
17

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 * 26 ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9072
SELECT ALL - 90 + CAST( + 57 - - COUNT( * ) * 4 AS SIGNED ) col2 FROM tab0
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9072
SELECT ALL - 90 + CAST ( + 57 - - COUNT ( * ) * 4 AS INTEGER ) col2 FROM tab0
----
-21

query I rowsort
SELECT ALL 91 + 89 AS col2 FROM tab0
----
180
180
180

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT - MAX( 14 ) + - COUNT( * ) AS col1 FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-9074
SELECT - MAX ( 14 ) + - COUNT ( * ) AS col1 FROM tab1
----
-17

query I rowsort
SELECT DISTINCT 81 * - 12 FROM tab2
----
-972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9076
SELECT DISTINCT + CAST( col1 AS SIGNED ) * col1 AS col2 FROM tab1
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-9076
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * col1 AS col2 FROM tab1
----
196
2209
25

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE + col1 + - 90 BETWEEN - col1 AND + col2
----
-15

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9079
SELECT - 84 DIV 87 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9079
SELECT - 84 / 87 AS col0 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 + 63 * - col0 IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 88 * - col1 FROM tab2 AS cor0
----
4488
5896
6776

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT DISTINCT SUM( ( - col1 ) ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-9082
SELECT DISTINCT SUM ( ( - col1 ) ) FROM tab0 AS cor0
----
-103

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 19 * col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT DISTINCT AVG ( + ( col0 ) ) + - COUNT( * ) AS col2 FROM tab2 cor0 WHERE NULL BETWEEN ( NULL ) AND ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9084
SELECT DISTINCT AVG ( + ( col0 ) ) + - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NULL BETWEEN ( NULL ) AND ( + col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9085
SELECT + - CAST( - 59 AS SIGNED ) FROM tab2 AS cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-9085
SELECT + - CAST ( - 59 AS INTEGER ) FROM tab2 AS cor0
----
59
59
59

query I rowsort
SELECT DISTINCT ( col2 ) AS col0 FROM tab1 AS cor0 WHERE ( - 17 ) + + 40 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 col2 FROM tab1
----
86

query I rowsort
SELECT DISTINCT col2 * - col1 * col0 + - col0 * + 5 FROM tab2
----
-197440
-291825
-54188

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT ALL ( + COUNT( * ) ) FROM tab2 WHERE NULL IN ( - col1 * col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9089
SELECT ALL ( + COUNT ( * ) ) FROM tab2 WHERE NULL IN ( - col1 * col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT - 34 + ( + MAX( ALL + 15 ) ) FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-9090
SELECT - 34 + ( + MAX ( ALL + 15 ) ) FROM tab2
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9091
SELECT + 52 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9091
SELECT + 52 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - 89 NOT BETWEEN ( - 87 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT + MIN( ALL - 72 ) AS col1 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9093
SELECT + MIN ( ALL - 72 ) AS col1 FROM tab0 AS cor0
----
-72

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 >= ( + ( col0 ) * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9095
SELECT ALL - 57 * + col2 - col2 DIV 81 AS col1 FROM tab2 AS cor0
----
-1311
-2280
-3306

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL - 57 * + col2 - col2 / 81 AS col1 FROM tab2 AS cor0
----
-1311
-2280
-3306

query I rowsort
SELECT DISTINCT + - col0 * 2 AS col2 FROM tab0 AS cor0
----
-174
-194
-30

query I rowsort
SELECT DISTINCT - col0 + col2 + + col0 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL ( col2 ) + + 10 FROM tab0
----
109
20
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT DISTINCT - COUNT( 11 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9099
SELECT DISTINCT - COUNT ( 11 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # DIV for integer division: 
query I rowsort label-9101
SELECT 80 + col0 + - ( - col1 ) DIV col0 AS col0 FROM tab2
----
127
145
155

skipif mysql # not compatible
query I rowsort label-9101
SELECT 80 + col0 + - ( - col1 ) / col0 AS col0 FROM tab2
----
127
145
155

query I rowsort
SELECT DISTINCT + col2 + 22 FROM tab1 AS cor0
----
118
81
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT DISTINCT - 43 - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9103
SELECT DISTINCT - 43 - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * + + 41 col0 FROM tab2 AS cor0
----
-1886
-2624
-3075

query I rowsort
SELECT ALL + - 53 FROM tab0 AS cor0 WHERE NOT 72 IS NULL
----
-53
-53
-53

query I rowsort
SELECT DISTINCT 55 + - col2 AS col2 FROM tab2 cor0
----
-3
15
32

query I rowsort
SELECT ALL col1 * + col2 FROM tab2 WHERE NOT NULL < ( + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL > ( col2 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT - ( - - 45 ) * + 19 * + COUNT( * ) + SUM( col1 + col2 * 0 ) * + COUNT( * ) FROM tab2
----
-1980

skipif mysql # not compatible
query I rowsort label-9109
SELECT - ( - - 45 ) * + 19 * + COUNT ( * ) + SUM ( col1 + col2 * 0 ) * + COUNT ( * ) FROM tab2
----
-1980

query I rowsort
SELECT - 72 AS col0 FROM tab0 cor0
----
-72
-72
-72

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 * col2 * - col1 + + 6 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 40 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-40

query I rowsort
SELECT - col2 * + - 98 AS col0 FROM tab2
----
2254
3920
5684

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT ALL 10 * ( COUNT( + - col2 ) ) AS col1 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL 10 * ( COUNT ( + - col2 ) ) AS col1 FROM tab1
----
30

onlyif mysql # DIV for integer division: 
query II rowsort label-9115
SELECT ALL + col2 DIV + + 89 + + col0 col2, 73 FROM tab2 AS cor0
----
46
73
64
73
75
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9115
SELECT ALL + col2 / + + 89 + + col0 col2, 73 FROM tab2 AS cor0
----
46
73
64
73
75
73

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( 86 + col0 ) IN ( 3 + + 39 + - col1 * col1 )
----
51
85
91

query I rowsort
SELECT - 67 * - col2 * - 10 FROM tab2 AS cor0
----
-15410
-26800
-38860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9118
SELECT - COUNT( * ) / - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9118
SELECT - COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col2 * + 47 * - col1 FROM tab1 AS cor0
----
13865
150212
63168

query II rowsort
SELECT DISTINCT col2 AS col2, col0 AS col0 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9121
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE NOT NULL BETWEEN 46 AND + 98 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9121
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE NOT NULL BETWEEN 46 AND + 98 + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + ( + col2 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9123
SELECT + + 22 * + col1 FROM tab1 WHERE NOT NULL NOT BETWEEN ( + + CAST( - col2 AS SIGNED ) ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9123
SELECT + + 22 * + col1 FROM tab1 WHERE NOT NULL NOT BETWEEN ( + + CAST ( - col2 AS INTEGER ) ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + 68 / ( + 45 ) * - col0 * - 85
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9125
SELECT ALL - col0 + 26 * - + CAST( + 60 AS SIGNED ) AS col2 FROM tab2
----
-1606
-1624
-1635

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL - col0 + 26 * - + CAST ( + 60 AS INTEGER ) AS col2 FROM tab2
----
-1606
-1624
-1635

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( + col0 ) / - col1 + + + col2 ) <> - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * + 2 * - col0 / - + 11 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - + col2, + col0 AS col1 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query I rowsort
SELECT + col2 + - + col2 + + col1 FROM tab0 AS cor0
----
1
21
81

query II rowsort
SELECT DISTINCT - col2 AS col2, 14 FROM tab1 AS cor0
----
-59
14
-68
14
-96
14

query I rowsort
SELECT ALL col1 - - + col1 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT + COUNT( * ) * ( COUNT( * ) ) col0 FROM tab0 AS cor0 WHERE - 69 + ( + 78 ) + - ( col1 ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9132
SELECT + COUNT ( * ) * ( COUNT ( * ) ) col0 FROM tab0 AS cor0 WHERE - 69 + ( + 78 ) + - ( col1 ) IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( col2 ) + + + col0 + + 56 * + 0 NOT BETWEEN NULL AND 29
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 34 * ( - col0 ) AS col0 FROM tab0 AS cor0
----
-2958
-3298
-510

query I rowsort
SELECT ALL - col1 - - col0 * 1 * - 36 AS col0 FROM tab0 AS cor0
----
-3153
-3493
-621

query I rowsort
SELECT 52 * - 37 + + col0 - + + col0 * col1 FROM tab2 AS cor0
----
-4224
-6788
-6874

query I rowsort
SELECT DISTINCT + - 16 + ( + col0 ) FROM tab0 AS cor0
----
-1
71
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT DISTINCT ( + - COUNT( * ) ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9138
SELECT DISTINCT ( + - COUNT ( * ) ) col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - col2 + ( col1 ) FROM tab2
----
28
37
9

query I rowsort
SELECT DISTINCT 34 * 42 AS col2 FROM tab2
----
1428

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT DISTINCT - SUM( 49 ) FROM tab0
----
-147

skipif mysql # not compatible
query I rowsort label-9141
SELECT DISTINCT - SUM ( 49 ) FROM tab0
----
-147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + - col1 col2 FROM tab2 WHERE NOT + 1 BETWEEN - + col1 * + + col1 * - + col2 AND NULL
----
-28
-37
-9

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 NOT IN ( + - col0 )
----

query I rowsort
SELECT ALL + + 32 AS col1 FROM tab1 AS cor0 WHERE ( + col1 * - + 23 ) IS NULL OR NOT col1 IS NULL
----
32
32
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9145
SELECT + - CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9145
SELECT + - CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 48 * + - col2 AS col0 FROM tab2 AS cor0
----
1104
1920
2784

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * + 24 = 88 + - - 84 / - 84
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - ( col1 ) AS col1, 59 AS col1 FROM tab2 cor0
----
-51
59
-67
59
-77
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9149
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 91 * 71 > + CAST( NULL AS SIGNED ) / 85
----

skipif mysql # not compatible
query III rowsort label-9149
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 91 * 71 > + CAST ( NULL AS INTEGER ) / 85
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9151
SELECT ALL - ( - COUNT( * ) ) * 17, + 91 + + MAX( ALL + col0 ) AS col2 FROM tab0
----
51
188

skipif mysql # not compatible
query II rowsort label-9151
SELECT ALL - ( - COUNT ( * ) ) * 17, + 91 + + MAX ( ALL + col0 ) AS col2 FROM tab0
----
51
188

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 62 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ( - col0 ) + col1 AS col1, col1 * + 66 FROM tab2
----
-8
4422
13
5082
5
3366

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - ( - col2 ) AND NULL
----

query II rowsort
SELECT ALL col1, - 90 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + ( + col0 ) FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
51
85
91

query II rowsort
SELECT ALL - 43 AS col2, 80 FROM tab2 AS cor0
----
-43
80
-43
80
-43
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 24 col1, - col1 AS col2 FROM tab2 AS cor0
----
24
-51
24
-67
24
-77

query I rowsort
SELECT + col2 * + col0 * - 86 FROM tab1 AS cor0
----
-421056
-431290
-532168

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9160
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( - col0 ) IN ( col2, + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-9160
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( - col0 ) IN ( col2, + CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT col0 - + + 49 - - col0 FROM tab1
----
121
133
53

query I rowsort
SELECT + 93 + 74 FROM tab1
----
167
167
167

onlyif mysql # DIV for integer division: 
query I rowsort label-9163
SELECT - col1 + - col0 DIV - col2 AS col0 FROM tab1
----
-14
-4
-46

skipif mysql # not compatible
query I rowsort label-9163
SELECT - col1 + - col0 / - col2 AS col0 FROM tab1
----
-14
-4
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9164
SELECT DISTINCT - col1 / - + CAST( NULL AS SIGNED ) / - col1 + col2 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9164
SELECT DISTINCT - col1 / - + CAST ( NULL AS INTEGER ) / - col1 + col2 AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + - col2 - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 8 AS col1 FROM tab0 AS cor0 WHERE + 97 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col2 + - - 97 * + + col1 BETWEEN - + ( - col0 ) * + 21 * - col2 AND + 48 / - - 6 - - 20
----
0

skipif mysql # not compatible
query I rowsort label-9167
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col2 + - - 97 * + + col1 BETWEEN - + ( - col0 ) * + 21 * - col2 AND + 48 / - - 6 - - 20
----
0

query I rowsort
SELECT ALL - + 70 - - col1 AS col2 FROM tab2 AS cor0
----
-19
-3
7

query I rowsort
SELECT DISTINCT - 39 + + col2 FROM tab2 AS cor0
----
-16
1
19

onlyif mysql # DIV for integer division: 
query I rowsort label-9170
SELECT + 98 + col0 DIV 59 FROM tab1 AS cor0
----
98
99
99

skipif mysql # not compatible
query I rowsort label-9170
SELECT + 98 + col0 / 59 FROM tab1 AS cor0
----
98
99
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9171
SELECT ALL - - ( + AVG ( ALL - 97 ) ) - MIN( + ( CAST( NULL AS DECIMAL ) ) ) * - COUNT( * ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9171
SELECT ALL - - ( + AVG ( ALL - 97 ) ) - MIN ( + ( CAST ( NULL AS REAL ) ) ) * - COUNT ( * ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9172
SELECT + 98 AS col0, - SUM( col2 ) * + COUNT( * ) FROM tab2 AS cor0
----
98
-363

skipif mysql # not compatible
query II rowsort label-9172
SELECT + 98 AS col0, - SUM ( col2 ) * + COUNT ( * ) FROM tab2 AS cor0
----
98
-363

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 57 > + col1
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT DISTINCT 98 * + - COUNT( * ) FROM tab1
----
-294

skipif mysql # not compatible
query I rowsort label-9174
SELECT DISTINCT 98 * + - COUNT ( * ) FROM tab1
----
-294

query I rowsort
SELECT col0 * 84 AS col0 FROM tab0 WHERE NOT ( ( col2 + + col2 + + col0 ) IS NULL )
----
1260
7308
8148

onlyif mysql # aggregate syntax: 
query II rowsort label-9176
SELECT 51 * + COUNT( * ), COUNT( * ) col0 FROM tab2
----
153
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9176
SELECT 51 * + COUNT ( * ), COUNT ( * ) col0 FROM tab2
----
153
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN - ( - ( - col2 ) ) / - 81 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT + SUM( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-9178
SELECT + SUM ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-103

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( + - col1 ) OR ( NULL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT DISTINCT + - COUNT( * ) * + - 58 AS col0 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-9180
SELECT DISTINCT + - COUNT ( * ) * + - 58 AS col0 FROM tab2 AS cor0
----
174

query I rowsort
SELECT DISTINCT + + col1 * + 82 AS col2 FROM tab1 AS cor0
----
1148
3854
410

query I rowsort
SELECT + col0 * - col0 + + - 8 * - 51 FROM tab1
----
-2193
-6817
-7873

query I rowsort
SELECT DISTINCT 84 * col1 + col0 - - col1 * + 52 AS col0 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT DISTINCT + 30 * - ( COUNT( * ) ) FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-9184
SELECT DISTINCT + 30 * - ( COUNT ( * ) ) FROM tab2
----
-90

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT DISTINCT - 95 * SUM( - - col0 ) * + + COUNT( * ) FROM tab1 cor0
----
-64695

skipif mysql # not compatible
query I rowsort label-9186
SELECT DISTINCT - 95 * SUM ( - - col0 ) * + + COUNT ( * ) FROM tab1 cor0
----
-64695

query I rowsort
SELECT + + 40 * + 47 AS col0 FROM tab2 AS cor0
----
1880
1880
1880

onlyif mysql # aggregate syntax: 
query II rowsort label-9188
SELECT COUNT( * ) AS col0, 13 FROM tab1 AS cor0
----
3
13

skipif mysql # not compatible
query II rowsort label-9188
SELECT COUNT ( * ) AS col0, 13 FROM tab1 AS cor0
----
3
13

query I rowsort
SELECT DISTINCT + ( - - col0 ) FROM tab2 cor0 WHERE ( NOT ( NOT col0 + col2 / + 99 >= - + 97 * - col1 / + 5 ) )
----

query I rowsort
SELECT DISTINCT + col2 * + 11 FROM tab2 AS cor0
----
253
440
638

query I rowsort
SELECT ALL 87 * - 75 AS col2 FROM tab2 AS cor0
----
-6525
-6525
-6525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, 29 * - col2 * - col0 col1 FROM tab1 AS cor0 WHERE NOT ( NULL = NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 89, col1 * - - col2 col1 FROM tab1 AS cor0
----
-89
1344
-89
295
-89
3196

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT DISTINCT ( + ( - - MIN( - 54 ) ) ) + SUM( 88 ) FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-9195
SELECT DISTINCT ( + ( - - MIN ( - 54 ) ) ) + SUM ( 88 ) FROM tab1
----
210

query I rowsort
SELECT DISTINCT - col0 * + - 10 * - + 12 FROM tab0
----
-10440
-11640
-1800

query I rowsort
SELECT DISTINCT - col2 + + 57 * + + col1 AS col1 FROM tab0 AS cor0
----
-42
1187
4570

query I rowsort
SELECT + + col2 + - 6 * col1 * - col2 FROM tab2 AS cor0
----
18520
23374
7061

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9199
SELECT DISTINCT + CAST( + col0 AS SIGNED ) DIV col1 - - col2 - - 54 - + col0 * + 42 * 26 FROM tab1 AS cor0
----
-55539
-92690
-99249

skipif mysql # not compatible
query I rowsort label-9199
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) / col1 - - col2 - - 54 - + col0 * + 42 * 26 FROM tab1 AS cor0
----
-55539
-92690
-99249

query I rowsort
SELECT + 37 + - col2 * + col0 FROM tab1 AS cor0
----
-4859
-4978
-6151

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT NULL IS NOT NULL )
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT ALL col2 + 44 + - col0 * - col0 FROM tab2
----
2183
4180
5727

query I rowsort
SELECT DISTINCT + - 92 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-92

query I rowsort
SELECT - + 36 - + col2 - - 3 AS col2 FROM tab2 AS cor0
----
-56
-73
-91

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 <> + + 61 + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 - 37 FROM tab1 cor0
----
14
48
54

query II rowsort
SELECT 27, col1 AS col0 FROM tab2 AS cor0
----
27
51
27
67
27
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9208
SELECT + 42 + + - col1 + col0 FROM tab2 WHERE NOT + col0 IN ( CAST( NULL AS SIGNED ), + 13, col1, + 62 * + + col1 + col1 + 7 * col0 + col0 )
----

skipif mysql # not compatible
query I rowsort label-9208
SELECT + 42 + + - col1 + col0 FROM tab2 WHERE NOT + col0 IN ( CAST ( NULL AS INTEGER ), + 13, col1, + 62 * + + col1 + col1 + 7 * col0 + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 92, 23 col2 FROM tab0
----
92
23

onlyif mysql # aggregate syntax: 
query II rowsort label-9210
SELECT + COUNT( * ) col2, 58 col2 FROM tab2
----
3
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9210
SELECT + COUNT ( * ) col2, 58 col2 FROM tab2
----
3
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 72, + ( + col2 ) col1 FROM tab2
----
72
23
72
40
72
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9212
SELECT col0 * CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9212
SELECT col0 * CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 35 * + - col0 FROM tab0 AS cor0
----
3045
3395
525

query I rowsort
SELECT DISTINCT - 7 * + 90 * - col2 * col0 FROM tab1 AS cor0
----
3084480
3159450
3898440

query II rowsort
SELECT - 20 AS col0, + col1 FROM tab2 AS cor0
----
-20
51
-20
67
-20
77

query II rowsort
SELECT DISTINCT - 19 * + col0, 13 * col1 FROM tab2 AS cor0 WHERE NULL BETWEEN col2 * - col2 * - + 43 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9217
SELECT ALL + 93 AS col1, - COUNT( * ) DIV + COUNT( * ) - - - COUNT( * ) * + 74 FROM tab2 AS cor0
----
93
-223

skipif mysql # not compatible
query II rowsort label-9217
SELECT ALL + 93 AS col1, - COUNT ( * ) / + COUNT ( * ) - - - COUNT ( * ) * + 74 FROM tab2 AS cor0
----
93
-223

query II rowsort
SELECT DISTINCT + col2 + - 13, + col2 AS col0 FROM tab0
----
-3
10
34
47
86
99

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * - 31 + + 44 - + col0 NOT IN ( + 55, col2 )
----

query I rowsort
SELECT DISTINCT - 47 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-47

query I rowsort
SELECT ALL 17 + + 34 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT DISTINCT ( - 93 ) + - - col0 AS col1 FROM tab2
----
-18
-29
-47

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 30 * 92 + - col1 * + 9 > + 3 + - ( + 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT ALL + MIN( ALL - 84 ) AS col0 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-9224
SELECT ALL + MIN ( ALL - 84 ) AS col0 FROM tab2 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT COUNT( ALL 11 ) AS col1 FROM tab1 AS cor0 WHERE ( col0 / + - col0 ) > - col0
----
3

skipif mysql # not compatible
query I rowsort label-9225
SELECT COUNT ( ALL 11 ) AS col1 FROM tab1 AS cor0 WHERE ( col0 / + - col0 ) > - col0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2 * - col0 )
----

query I rowsort
SELECT + 87 AS col2 FROM tab0 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT ALL - MAX( + - col2 ) + 92 FROM tab1
----
151

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL - MAX ( + - col2 ) + 92 FROM tab1
----
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9229
SELECT DISTINCT - 64 DIV - COUNT( * ) + 76 AS col2 FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-9229
SELECT DISTINCT - 64 / - COUNT ( * ) + 76 AS col2 FROM tab1
----
97

query I rowsort
SELECT DISTINCT 0 + + col2 AS col0 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT MIN( + col0 ) col2 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9231
SELECT MIN ( + col0 ) col2 FROM tab0
----
15

query I rowsort
SELECT DISTINCT - 90 + - + ( - col2 ) AS col0 FROM tab1
----
-22
-31
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * col2 > - + 74
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9234
SELECT ALL col2 DIV - col2 - - CAST( - col2 AS SIGNED ), + col0 AS col1 FROM tab2 AS cor0
----
-24
46
-41
64
-59
75

skipif mysql # not compatible
query II rowsort label-9234
SELECT ALL col2 / - col2 - - CAST ( - col2 AS INTEGER ), + col0 AS col1 FROM tab2 AS cor0
----
-24
46
-41
64
-59
75

query I rowsort
SELECT ALL + 0 - - col2 * - 98 FROM tab2 AS cor0
----
-2254
-3920
-5684

query I rowsort
SELECT col1 * + col1 + + 89 * ( - col0 ) + + col2 - + col1 FROM tab1 AS cor0
----
-4261
-5869
-7486

onlyif mysql # DIV for integer division: 
query I rowsort label-9237
SELECT + + 36 DIV + col0 - col2 + - col2 AS col2 FROM tab0 AS cor0
----
-198
-20
-92

skipif mysql # not compatible
query I rowsort label-9237
SELECT + + 36 / + col0 - col2 + - col2 AS col2 FROM tab0 AS cor0
----
-198
-20
-92

query II rowsort
SELECT ALL + col1 * + 38, col0 FROM tab0
----
3078
15
38
97
798
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9239
SELECT - CAST( + 27 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-9239
SELECT - CAST ( + 27 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-27
-27
-27

query I rowsort
SELECT + + ( ( + - col0 ) ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT + 85 * 17 * ( - col2 ) FROM tab2
----
-33235
-57800
-83810

query I rowsort
SELECT ALL + - 49 FROM tab1 WHERE + col0 IS NOT NULL
----
-49
-49
-49

query I rowsort
SELECT - 3 * col2 AS col0 FROM tab1
----
-177
-204
-288

query II rowsort
SELECT ALL 72, col2 FROM tab0
----
72
10
72
47
72
99

query I rowsort
SELECT - ( col0 ) AS col0 FROM tab2 WHERE NOT NULL <> - + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 26 IS NOT NULL
----

query II rowsort
SELECT ALL + col2, ( - col0 ) - + 89 FROM tab1
----
59
-174
68
-180
96
-140

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 < col1 / 84
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 * - col2 * col0 col0 FROM tab2 cor0
----
-128000
-217500
-52900

query I rowsort
SELECT + 13 * + ( + col1 ) AS col2 FROM tab2 AS cor0
----
1001
663
871

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT DISTINCT + COUNT( - + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9251
SELECT DISTINCT + COUNT ( - + col0 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL col2 AS col1, - col2 + + col0 AS col2 FROM tab0
----
10
77
47
-32
99
-2

query I rowsort
SELECT ALL 91 + + 79 AS col2 FROM tab2
----
170
170
170

query I rowsort
SELECT - col1 * col1 * 25 FROM tab1 AS cor0
----
-4900
-55225
-625

query I rowsort
SELECT 4 * - col1 AS col1 FROM tab2 AS cor0
----
-204
-268
-308

onlyif mysql # DIV for integer division: 
query I rowsort label-9256
SELECT - + 1 DIV - - 22 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9256
SELECT - + 1 / - - 22 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9257
SELECT ALL - 86 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9257
SELECT ALL - 86 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT 85 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-9258
SELECT 85 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-255

query I rowsort
SELECT ALL - col2 - ( + col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-117
-125
-74

query II rowsort
SELECT ALL col1, 0 * - - 88 + + - col1 AS col1 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

query II rowsort
SELECT DISTINCT + - col2, - col2 AS col0 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

query II rowsort
SELECT ALL + - col2, + 88 * + col2 AS col1 FROM tab1 AS cor0
----
-59
5192
-68
5984
-96
8448

query I rowsort
SELECT 35 * - - col1 + - ( + col0 ) AS col0 FROM tab2 cor0
----
1739
2270
2631

query I rowsort
SELECT + - 36 AS col1 FROM tab1 cor0
----
-36
-36
-36

query I rowsort
SELECT + 62 * ( 40 ) - - col2 FROM tab2
----
2503
2520
2538

query I rowsort
SELECT - col1 FROM tab2 WHERE NULL <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT ALL + ( - MIN( - - col1 ) ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-9267
SELECT ALL + ( - MIN ( - - col1 ) ) AS col1 FROM tab2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9268
SELECT DISTINCT * FROM tab0 WHERE col1 IS NOT NULL AND NOT - 83 * + - col1 >= col1 + + CAST( + + col2 AS SIGNED ) + col1
----
97
1
99

skipif mysql # not compatible
query III rowsort label-9268
SELECT DISTINCT * FROM tab0 WHERE col1 IS NOT NULL AND NOT - 83 * + - col1 >= col1 + + CAST ( + + col2 AS INTEGER ) + col1
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9269
SELECT ALL + 30 + col0 - + col1 * - ( + - 57 ) + - col0 + col2 * + - col1 * + + col2 - + col1 + - col0 DIV + 93 + + col1 AS col1, col2 + - + CAST( NULL AS SIGNED ) * - ( + ( col2 ) ) + + col1 AS col0 FROM tab1
----
-129792
NULL
-17660
NULL
-219977
NULL

skipif mysql # not compatible
query II rowsort label-9269
SELECT ALL + 30 + col0 - + col1 * - ( + - 57 ) + - col0 + col2 * + - col1 * + + col2 - + col1 + - col0 / + 93 + + col1 AS col1, col2 + - + CAST ( NULL AS INTEGER ) * - ( + ( col2 ) ) + + col1 AS col0 FROM tab1
----
-129792
NULL
-17660
NULL
-219977
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + - - col0, 19 col1 FROM tab2 WHERE - - 15 IS NOT NULL
----
104
19
133
19
69
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT - MIN( - 54 ) + - 51 AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9271
SELECT - MIN ( - 54 ) + - 51 AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + 63 * 84 FROM tab1 cor0
----
5292

query I rowsort
SELECT 93 * 63 AS col0 FROM tab0 AS cor0
----
5859
5859
5859

query I rowsort
SELECT ALL - col2 * + - 48 FROM tab0
----
2256
4752
480

query I rowsort
SELECT ALL ( - - 37 ) AS col2 FROM tab0
----
37
37
37

onlyif mysql # DIV for integer division: 
query I rowsort label-9276
SELECT DISTINCT - col1 DIV - + col2 + + 70 AS col2 FROM tab0 AS cor0
----
70
71
72

skipif mysql # not compatible
query I rowsort label-9276
SELECT DISTINCT - col1 / - + col2 + + 70 AS col2 FROM tab0 AS cor0
----
70
71
72

query II rowsort
SELECT ALL 47, col2 AS col2 FROM tab2 AS cor0
----
47
23
47
40
47
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, 94 AS col0 FROM tab2 AS cor0
----
23
94
40
94
58
94

onlyif mysql # DIV for integer division: 
query I rowsort label-9279
SELECT ALL + col1 DIV + 51 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9279
SELECT ALL + col1 / + 51 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9280
SELECT DISTINCT + COUNT( * ) AS col2, 49 FROM tab1 cor0
----
3
49

skipif mysql # not compatible
query II rowsort label-9280
SELECT DISTINCT + COUNT ( * ) AS col2, 49 FROM tab1 cor0
----
3
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT DISTINCT + + MAX( col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9281
SELECT DISTINCT + + MAX ( col0 ) FROM tab1 AS cor0
----
91

query II rowsort
SELECT ALL + col0 AS col1, col0 AS col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN NULL AND + + 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT DISTINCT - COUNT( * ) * + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9284
SELECT DISTINCT - COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9285
SELECT ALL col1 FROM tab0 AS cor0 WHERE + ( CAST( NULL AS SIGNED ) ) > - col0
----

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL col1 FROM tab0 AS cor0 WHERE + ( CAST ( NULL AS INTEGER ) ) > - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + 71 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col2 * 62 - - 50 BETWEEN 76 AND + ( 87 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 >= + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9289
SELECT ALL - - SUM( ALL - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 WHERE NOT ( NOT ( NOT ( ( - col2 / + col2 IS NOT NULL ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9289
SELECT ALL - - SUM ( ALL - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 WHERE NOT ( NOT ( NOT ( ( - col2 / + col2 IS NOT NULL ) ) ) )
----
NULL

query II rowsort
SELECT DISTINCT - 85 + - col1, + 21 * - col0 * + - col1 AS col1 FROM tab1 WHERE NULL IS NULL
----
-132
89817
-90
8925
-99
14994

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9291
SELECT ALL CAST( ( + COUNT( * ) ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL CAST ( ( + COUNT ( * ) ) AS INTEGER ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT DISTINCT COUNT( DISTINCT + - col2 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9292
SELECT DISTINCT COUNT ( DISTINCT + - col2 ) col1 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - ( + col0 ) ) col2 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL 57 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - col0 AND - col2 * col0 + + col1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9296
SELECT ALL 89 + - SUM( + col0 ) - - CAST( NULL AS DECIMAL ) / - 59 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9296
SELECT ALL 89 + - SUM ( + col0 ) - - CAST ( NULL AS REAL ) / - 59 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 73 + - 95 AS col0 FROM tab0
----
-22

query I rowsort
SELECT ALL - col1 + 40 FROM tab2
----
-11
-27
-37

query I rowsort
SELECT col2 + 21 AS col0 FROM tab0 AS cor0
----
120
31
68

query I rowsort
SELECT + - 4 + 25 FROM tab1 AS cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT DISTINCT - 29 + COUNT( * ) AS col2 FROM tab2 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-9301
SELECT DISTINCT - 29 + COUNT ( * ) AS col2 FROM tab2 cor0
----
-26

query I rowsort
SELECT DISTINCT + - col0 + 0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT - - col1 + + + col0 AS col0 FROM tab2 AS cor0
----
141
142
97

query II rowsort
SELECT ALL 81 AS col2, 32 AS col0 FROM tab2
----
81
32
81
32
81
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9305
SELECT - COUNT( * ) DIV MIN( ALL - 52 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9305
SELECT - COUNT ( * ) / MIN ( ALL - 52 ) FROM tab0
----
0

query I rowsort
SELECT ( - 41 ) AS col1 FROM tab0
----
-41
-41
-41

query II rowsort
SELECT DISTINCT + 63 + + col0 AS col2, col0 * + col1 FROM tab2
----
109
2346
127
4928
138
5025

query I rowsort
SELECT DISTINCT col0 - 54 FROM tab0
----
-39
33
43

query I rowsort
SELECT col1 - - + 16 AS col2 FROM tab2
----
67
83
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9310
SELECT DISTINCT - COUNT( * ) - - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9310
SELECT DISTINCT - COUNT ( * ) - - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL + col2 - - col2 + - col2 + + - col2 AS col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9312
SELECT + + col2 * - + CAST( col2 AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-9312
SELECT + + col2 * - + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3481
-4624
-9216

onlyif mysql # DIV for integer division: 
query I rowsort label-9313
SELECT DISTINCT + col2 * + col2 + - 61 + - 89 DIV - + 20 FROM tab2 AS cor0
----
1543
3307
472

skipif mysql # not compatible
query I rowsort label-9313
SELECT DISTINCT + col2 * + col2 + - 61 + - 89 / - + 20 FROM tab2 AS cor0
----
1543
3307
472

query I rowsort
SELECT DISTINCT + 67 * + 36 AS col1 FROM tab1
----
2412

query I rowsort
SELECT 88 * - + col0 AS col1 FROM tab1
----
-4488
-7480
-8008

onlyif mysql # DIV for integer division: 
query I rowsort label-9316
SELECT ALL + 34 * col2 DIV - - col1 FROM tab0
----
16
19
3366

skipif mysql # not compatible
query I rowsort label-9316
SELECT ALL + 34 * col2 / - - col1 FROM tab0
----
16
19
3366

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9317
SELECT ALL CAST( - MAX( 75 ) AS SIGNED ) col0 FROM tab0 cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9317
SELECT ALL CAST ( - MAX ( 75 ) AS INTEGER ) col0 FROM tab0 cor0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 col0 FROM tab0 AS cor0
----
43
43
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 82 * - + col2 col1, 54 * + col2 FROM tab0 AS cor0
----
3854
2538
8118
5346
820
540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9320
SELECT DISTINCT - 57 DIV + COUNT( * ) AS col2 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-9320
SELECT DISTINCT - 57 / + COUNT ( * ) AS col2 FROM tab0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT SUM( ( + 31 ) ) FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-9321
SELECT SUM ( ( + 31 ) ) FROM tab1
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9322
SELECT DISTINCT 13 DIV + 18 * - - COUNT( * ) * 66 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9322
SELECT DISTINCT 13 / + 18 * - - COUNT ( * ) * 66 AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL + col0 * + col0 AS col1 FROM tab1 WHERE NOT - + col1 BETWEEN NULL AND ( - col0 )
----
2601
7225
8281

query I rowsort
SELECT ALL 97 + + col1 FROM tab1
----
102
111
144

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 87 <= - - col0
----
15
81
47

query I rowsort
SELECT DISTINCT + ( + col2 ) + col2 + col2 AS col2 FROM tab0
----
141
297
30

query I rowsort
SELECT DISTINCT - 5 FROM tab2 cor0
----
-5

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT + 84 * col1 + - 61 + - 12 + - 59 FROM tab1 AS cor0
----
1044
288
3816

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT DISTINCT ( - COUNT( * ) ) + - + 49 FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-9330
SELECT DISTINCT ( - COUNT ( * ) ) + - + 49 FROM tab2
----
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 col0 FROM tab0 AS cor0 WHERE col2 * - col2 + + 1 >= ( col2 )
----

query I rowsort
SELECT ALL - + 32 - col0 FROM tab2 AS cor0
----
-107
-78
-96

query II rowsort
SELECT - - col1 * 15 AS col1, + col2 AS col0 FROM tab2 AS cor0
----
1005
58
1155
40
765
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9334
SELECT + 99 DIV - COUNT( * ) FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-9334
SELECT + 99 / - COUNT ( * ) FROM tab0 AS cor0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9335
SELECT + + 73 - - COUNT( DISTINCT + col0 ) DIV 54 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-9335
SELECT + + 73 - - COUNT ( DISTINCT + col0 ) / 54 FROM tab2 AS cor0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9336
SELECT ALL - ( + + col2 ) DIV + 40 + - - col1 * + + col2 + + col1 AS col2 FROM tab0
----
231
3887
98

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL - ( + + col2 ) / + 40 + - - col1 * + + col2 + + col1 AS col2 FROM tab0
----
231
3887
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT DISTINCT SUM( + col0 ) + + - 37 col2 FROM tab1
----
190

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9337
SELECT DISTINCT SUM ( + col0 ) + + - 37 col2 FROM tab1
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT - 89 + + - ( + 10 ) * - - MIN( + col1 ) * 32 AS col1 FROM tab1
----
-1689

skipif mysql # not compatible
query I rowsort label-9338
SELECT - 89 + + - ( + 10 ) * - - MIN ( + col1 ) * 32 AS col1 FROM tab1
----
-1689

query I rowsort
SELECT DISTINCT - col1 + - + col0 FROM tab0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT DISTINCT - 29 - + + COUNT( * ) FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-9340
SELECT DISTINCT - 29 - + + COUNT ( * ) FROM tab2
----
-32

query III rowsort
SELECT DISTINCT + col2, + col0 AS col1, + - col1 FROM tab1
----
9 values hashing to 2414f6a21a14a1038129123549ac9034

onlyif mysql # DIV for integer division: 
query I rowsort label-9342
SELECT - 99 DIV - col2 FROM tab0 AS cor0
----
1
2
9

skipif mysql # not compatible
query I rowsort label-9342
SELECT - 99 / - col2 FROM tab0 AS cor0
----
1
2
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT COUNT( * ) - 45 AS col0 FROM tab0 cor0 WHERE NOT NULL >= col2 * - + 59
----
-45

skipif mysql # not compatible
query I rowsort label-9343
SELECT COUNT ( * ) - 45 AS col0 FROM tab0 cor0 WHERE NOT NULL >= col2 * - + 59
----
-45

query II rowsort
SELECT 95 + + ( - col1 ) * + 35 * col0 AS col2, + col1 FROM tab1
----
-14780
5
-149600
47
-24895
14

query I rowsort
SELECT col2 * + 17 + 25 AS col1 FROM tab2
----
1011
416
705

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT ALL - ( COUNT( * ) ) + - 77 * + + 30 AS col2 FROM tab0
----
-2313

skipif mysql # not compatible
query I rowsort label-9346
SELECT ALL - ( COUNT ( * ) ) + - 77 * + + 30 AS col2 FROM tab0
----
-2313

query I rowsort
SELECT + col1 * - 12 + 10 FROM tab1
----
-158
-50
-554

query II rowsort
SELECT DISTINCT + 1 + - 57 AS col0, col2 + - - col0 * + - col1 FROM tab2
----
-56
-2323
-56
-4888
-56
-4967

query I rowsort
SELECT col0 * ( + + col0 ) AS col1 FROM tab0
----
225
7569
9409

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 59 ) <= NULL
----

query I rowsort
SELECT - col2 * + + ( 7 ) AS col2 FROM tab1 AS cor0
----
-413
-476
-672

query I rowsort
SELECT - 49 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * + col1 + + 39 * col2 FROM tab1 cor0
----
2726
4458
6929

query I rowsort
SELECT - col1 - + 55 AS col0 FROM tab2
----
-106
-122
-132

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9355
SELECT - + CAST( NULL AS SIGNED ) col0, 63 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 7bbb61b8c91581a182da536e19d05c48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9355
SELECT - + CAST ( NULL AS INTEGER ) col0, 63 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 7bbb61b8c91581a182da536e19d05c48

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 99 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col2 - - col2 >= col2 * col1 * + col0
----

query I rowsort
SELECT - 99 * 33 FROM tab1
----
-3267
-3267
-3267

onlyif mysql # DIV for integer division: 
query I rowsort label-9359
SELECT 1 DIV - - col0 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9359
SELECT 1 / - - col0 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT DISTINCT + ( SUM( ALL - 72 ) ) AS col2 FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-9360
SELECT DISTINCT + ( SUM ( ALL - 72 ) ) AS col2 FROM tab0
----
-216

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 7 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 <= + col1 - - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9363
SELECT + COUNT( - + col2 ) DIV 48 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9363
SELECT + COUNT ( - + col2 ) / 48 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL ( + col0 ) * - - col0 * + 38 FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN - + col1 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT + MAX( ALL - 90 ) FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-9365
SELECT + MAX ( ALL - 90 ) FROM tab0 AS cor0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9366
SELECT + CAST( + - AVG ( + - col2 ) AS SIGNED ) FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-9366
SELECT + CAST ( + - AVG ( + - col2 ) AS INTEGER ) FROM tab2 AS cor0
----
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 < ( + 24 * - + 23 * + col1 / - col1 - 55 * - ( ( + col0 ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 9 + - col0 + + col0 / + col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9369
SELECT 56 DIV - + col0 AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9369
SELECT 56 / - + col0 AS col2 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT ALL - - 26 * - COUNT( * ) col1 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9370
SELECT ALL - - 26 * - COUNT ( * ) col1 FROM tab2 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT + MAX( DISTINCT + + 35 ) FROM tab0 cor0
----
35

skipif mysql # not compatible
query I rowsort label-9371
SELECT + MAX ( DISTINCT + + 35 ) FROM tab0 cor0
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, + 7 FROM tab1 AS cor0
----
51
7
85
7
91
7

query I rowsort
SELECT DISTINCT ( + 42 ) AS col0 FROM tab0 AS cor0
----
42

query I rowsort
SELECT ALL + col2 + + 65 AS col0 FROM tab0 AS cor0
----
112
164
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT ALL - + COUNT( * ) FROM tab1 WHERE NULL BETWEEN + col0 + col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9375
SELECT ALL - + COUNT ( * ) FROM tab1 WHERE NULL BETWEEN + col0 + col1 AND NULL
----
0

query I rowsort
SELECT DISTINCT - col0 + - 81 AS col0 FROM tab1
----
-132
-166
-172

query III rowsort
SELECT ALL * FROM tab1 WHERE - 17 >= NULL
----

query II rowsort
SELECT - 1, col2 FROM tab1
----
-1
59
-1
68
-1
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col1 - - col2 <= + + 51
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) FROM tab1, tab0 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9380
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) FROM tab1, tab0 AS cor0 WHERE NOT NULL >= NULL
----
0

query I rowsort
SELECT DISTINCT + + 19 * - col0 FROM tab1 cor0
----
-1615
-1729
-969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9382
SELECT - MIN( ALL CAST( NULL AS SIGNED ) ) + - + 97 * + 25 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9382
SELECT - MIN ( ALL CAST ( NULL AS INTEGER ) ) + - + 97 * + 25 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT COUNT( DISTINCT + + 1 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-9383
SELECT COUNT ( DISTINCT + + 1 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9384
SELECT DISTINCT - col0 FROM tab1 WHERE - CAST( NULL AS SIGNED ) / + CAST( NULL AS SIGNED ) <> - col1
----

skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT - col0 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) <> - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT - 0 NOT BETWEEN + col2 - + + 79 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT DISTINCT - SUM( col2 ) + - - MIN( ALL + - col1 ) AS col0 FROM tab0 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-9386
SELECT DISTINCT - SUM ( col2 ) + - - MIN ( ALL + - col1 ) AS col0 FROM tab0 AS cor0
----
-237

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9387
SELECT DISTINCT COUNT( DISTINCT col1 ) DIV + + MAX( + + col2 ) - + - 66 * SUM( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
7986

skipif mysql # not compatible
query I rowsort label-9387
SELECT DISTINCT COUNT ( DISTINCT col1 ) / + + MAX ( + + col2 ) - + - 66 * SUM ( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
7986

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 78 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col1 ) NOT BETWEEN + 29 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9390
SELECT ALL + CAST( NULL AS SIGNED ) + - 59 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL + CAST ( NULL AS INTEGER ) + - 59 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 - + 15 * - + col1 FROM tab1 AS cor0
----
224
752
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 - - - 96 col2 FROM tab1 AS cor0
----
-4992
-5111
-6284

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT + + ( + col2 ) BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9394
SELECT * FROM tab0 AS cor0 WHERE ( CAST( + col2 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9394
SELECT * FROM tab0 AS cor0 WHERE ( CAST ( + col2 AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT DISTINCT - - 15 AS col2 FROM tab2 AS cor0
----
15

query I rowsort
SELECT ALL 96 * + - col0 FROM tab1
----
-4896
-8160
-8736

query I rowsort
SELECT ALL - col1 * - 97 FROM tab0
----
2037
7857
97

query III rowsort
SELECT * FROM tab1 WHERE NOT - 55 / + 80 - - - col1 >= - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9399
SELECT - 11 DIV - - col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9399
SELECT - 11 / - - col2 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT ALL SUM( - col1 ) * - 23 FROM tab0
----
2369

skipif mysql # not compatible
query I rowsort label-9400
SELECT ALL SUM ( - col1 ) * - 23 FROM tab0
----
2369

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT COUNT( - + 95 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9401
SELECT COUNT ( - + 95 ) col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT MIN( ALL - + 46 ) AS col1 FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-9402
SELECT MIN ( ALL - + 46 ) AS col1 FROM tab0
----
-46

query II rowsort
SELECT 27, + col2 FROM tab1
----
27
59
27
68
27
96

query I rowsort
SELECT - 9 * col2 FROM tab0
----
-423
-891
-90

query I rowsort
SELECT - - 72 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT - 82 * + col2 AS col0 FROM tab2
----
-1886
-3280
-4756

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE - 48 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9408
SELECT DISTINCT - ( - - 62 ) AS col2, col2 * 25 * + + 13 DIV + 13 FROM tab1 AS cor0
----
-62
1475
-62
1700
-62
2400

skipif mysql # not compatible
query II rowsort label-9408
SELECT DISTINCT - ( - - 62 ) AS col2, col2 * 25 * + + 13 / + 13 FROM tab1 AS cor0
----
-62
1475
-62
1700
-62
2400

query I rowsort
SELECT ALL + + col2 * + col2 - + col2 FROM tab1 AS cor0 WHERE 86 IS NOT NULL
----
3422
4556
9120

query I rowsort
SELECT ALL col2 + - 99 FROM tab0
----
-52
-89
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT DISTINCT COUNT( * ) + + + 70 AS col0 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-9411
SELECT DISTINCT COUNT ( * ) + + + 70 AS col0 FROM tab2
----
73

query I rowsort
SELECT col1 * - col0 + 71 + col1 FROM tab2
----
-2224
-4780
-4887

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT COUNT( DISTINCT + - col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9413
SELECT COUNT ( DISTINCT + - col2 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9414
SELECT - 14 * - CAST( + ( - col1 ) AS SIGNED ) AS col2 FROM tab1
----
-196
-658
-70

skipif mysql # not compatible
query I rowsort label-9414
SELECT - 14 * - CAST ( + ( - col1 ) AS INTEGER ) AS col2 FROM tab1
----
-196
-658
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT - - COUNT( * ) * + 81 AS col1 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-9415
SELECT - - COUNT ( * ) * + 81 AS col1 FROM tab0 AS cor0
----
243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9416
SELECT ALL CAST( 22 AS SIGNED ) FROM tab2 AS cor0
----
22
22
22

skipif mysql # not compatible
query I rowsort label-9416
SELECT ALL CAST ( 22 AS INTEGER ) FROM tab2 AS cor0
----
22
22
22

query I rowsort
SELECT DISTINCT - - 43 AS col0 FROM tab2 AS cor0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9418
SELECT DISTINCT - CAST( + - 84 AS SIGNED ) FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9418
SELECT DISTINCT - CAST ( + - 84 AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 78 + - 9 AS col1 FROM tab1
----
69
69
69

query I rowsort
SELECT ALL ( - + 40 ) * col0 * col2 * - col0 + col2 FROM tab0
----
3027610
37259739
423047

query I rowsort
SELECT DISTINCT + col0 - - col2 FROM tab0 cor0
----
196
62
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < - col0 * + - 83 + col0 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT DISTINCT SUM( ALL - - 59 ) AS col2 FROM tab2 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-9423
SELECT DISTINCT SUM ( ALL - - 59 ) AS col2 FROM tab2 AS cor0
----
177

onlyif mysql # aggregate syntax: 
query II rowsort label-9424
SELECT - - COUNT( * ), 3 + + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-9424
SELECT - - COUNT ( * ), 3 + + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9425
SELECT ALL - col0 AS col0, + col0 AS col1, CAST( - - col1 AS SIGNED ) * - + 49 + col2 + - 57 + - - col1 * + 57 FROM tab1 AS cor0
----
9 values hashing to 230433df8a04b3ab85e574ade17d48a0

skipif mysql # not compatible
query III rowsort label-9425
SELECT ALL - col0 AS col0, + col0 AS col1, CAST ( - - col1 AS INTEGER ) * - + 49 + col2 + - 57 + - - col1 * + 57 FROM tab1 AS cor0
----
9 values hashing to 230433df8a04b3ab85e574ade17d48a0

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT DISTINCT - + COUNT( DISTINCT + - col1 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9426
SELECT DISTINCT - + COUNT ( DISTINCT + - col1 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9427
SELECT MIN( DISTINCT - ( - + col2 ) ) * + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9427
SELECT MIN ( DISTINCT - ( - + col2 ) ) * + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9428
SELECT ( SUM( ALL - - CAST( - 92 AS SIGNED ) ) ) FROM tab0
----
-276

skipif mysql # not compatible
query I rowsort label-9428
SELECT ( SUM ( ALL - - CAST ( - 92 AS INTEGER ) ) ) FROM tab0
----
-276

query II rowsort
SELECT ALL 20 * + - 48, + col1 FROM tab1
----
-960
14
-960
47
-960
5

query I rowsort
SELECT DISTINCT + + 97 * - ( 37 ) FROM tab0 WHERE NOT + 31 = col2
----
-3589

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT NULL > - col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9432
SELECT - - COUNT( * ) DIV - + 13 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9432
SELECT - - COUNT ( * ) / - + 13 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9433
SELECT - - col0 DIV - + col1 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-9433
SELECT - - col0 / - + col1 FROM tab0 AS cor0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT ALL ( + MAX( + - col1 ) ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9434
SELECT ALL ( + MAX ( + - col1 ) ) AS col0 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT col1 + col0 + + + col1 + col0 FROM tab2
----
194
282
284

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 * - col0 col1 FROM tab0
----
-1365
-7917
-8827

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT DISTINCT + + COUNT( ALL + 14 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9437
SELECT DISTINCT + + COUNT ( ALL + 14 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL ( + col1 ) * 28 + col1 * - col2 + + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1935
-860
301

query I rowsort
SELECT + - col2 FROM tab1 cor0 WHERE NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT 74 * - MAX( col1 ) * - MAX( + + col1 ) AS col2 FROM tab2 cor0
----
438746

skipif mysql # not compatible
query I rowsort label-9440
SELECT 74 * - MAX ( col1 ) * - MAX ( + + col1 ) AS col2 FROM tab2 cor0
----
438746

query I rowsort
SELECT ALL - col1 + + 98 AS col1 FROM tab2 AS cor0
----
21
31
47

query II rowsort
SELECT DISTINCT + col1 AS col1, 35 AS col2 FROM tab2 AS cor0
----
51
35
67
35
77
35

onlyif mysql # aggregate syntax: 
query II rowsort label-9443
SELECT DISTINCT + - 95 * COUNT( * ) AS col0, 61 FROM tab0 WHERE - ( col1 ) + + col2 IS NULL
----
0
61

skipif mysql # not compatible
query II rowsort label-9443
SELECT DISTINCT + - 95 * COUNT ( * ) AS col0, 61 FROM tab0 WHERE - ( col1 ) + + col2 IS NULL
----
0
61

query II rowsort
SELECT DISTINCT col2 + - col1, ( + col2 ) * - + col1 AS col2 FROM tab2
----
-28
-1173
-37
-3080
-9
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + + + col0 col0, - col1 * + col1 col2 FROM tab0
----
196
-1
62
-6561
97
-441

onlyif mysql # DIV for integer division: 
query I rowsort label-9446
SELECT + col0 + 21 DIV + + 35 col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9446
SELECT + col0 + 21 / + + 35 col1 FROM tab1
----
51
85
91

query I rowsort
SELECT + 38 * - col1 + + col0 AS col0 FROM tab0
----
-3063
-711
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + + col1 + 75 col0 FROM tab1 cor0
----
140
165
213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 * + - 19 col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-1425
-1425
-1425

query I rowsort
SELECT 19 * - + 17 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d895a0550c70fa858ce325bf68129c38

query I rowsort
SELECT col1 - + col2 + + 75 AS col2 FROM tab2
----
103
112
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9452
SELECT + CAST( - col0 AS SIGNED ) col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9452
SELECT + CAST ( - col0 AS INTEGER ) col0 FROM tab1
----
-51
-85
-91

query II rowsort
SELECT - col0 AS col2, - col0 AS col2 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT + + COUNT( * ) * 44 AS col1 FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-9454
SELECT + + COUNT ( * ) * 44 AS col1 FROM tab2 AS cor0
----
132

query I rowsort
SELECT ALL 85 * col2 AS col2 FROM tab0
----
3995
8415
850

query I rowsort
SELECT ALL + 13 FROM tab2 WHERE NOT + + col2 * + col0 * + col2 IS NULL
----
13
13
13

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9457
SELECT ( ( + + ( - col2 ) ) ) DIV - col1 - + + CAST( + - CAST( + 92 AS SIGNED ) AS SIGNED ) FROM tab1
----
103
93
98

skipif mysql # not compatible
query I rowsort label-9457
SELECT ( ( + + ( - col2 ) ) ) / - col1 - + + CAST ( + - CAST ( + 92 AS INTEGER ) AS INTEGER ) FROM tab1
----
103
93
98

query I rowsort
SELECT ALL ( - + 62 ) AS col2 FROM tab2
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT ALL - SUM( - col0 ) * 66 FROM tab2
----
12210

skipif mysql # not compatible
query I rowsort label-9459
SELECT ALL - SUM ( - col0 ) * 66 FROM tab2
----
12210

onlyif mysql # aggregate syntax: 
query II rowsort label-9460
SELECT DISTINCT + 63 * + COUNT( * ) AS col2, COUNT( * ) AS col2 FROM tab2
----
189
3

skipif mysql # not compatible
query II rowsort label-9460
SELECT DISTINCT + 63 * + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab2
----
189
3

query I rowsort
SELECT DISTINCT ( ( - col2 ) ) AS col2 FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9462
SELECT - CAST( + 73 AS SIGNED ) AS col2 FROM tab1
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-9462
SELECT - CAST ( + 73 AS INTEGER ) AS col2 FROM tab1
----
-73
-73
-73

query I rowsort
SELECT col0 * + 24 AS col2 FROM tab0
----
2088
2328
360

onlyif mysql # DIV for integer division: 
query I rowsort label-9464
SELECT ALL - 5 * - + col2 DIV + col0 FROM tab0 AS cor0
----
0
15
5

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL - 5 * - + col2 / + col0 FROM tab0 AS cor0
----
0
15
5

query II rowsort
SELECT DISTINCT 27 * 87, col2 FROM tab0 AS cor0
----
2349
10
2349
47
2349
99

query I rowsort
SELECT ALL - 11 * + col2 * ( - col2 ) FROM tab2 cor0
----
17600
37004
5819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9467
SELECT CAST( - + COUNT( * ) AS SIGNED ) * - COUNT( * ) col1 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9467
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) * - COUNT ( * ) col1 FROM tab0
----
9

query I rowsort
SELECT + col2 + + 64 + + col1 AS col0 FROM tab2 AS cor0
----
138
181
189

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT ALL - + MAX( DISTINCT col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL - + MAX ( DISTINCT col2 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT DISTINCT ( - + 82 ) AS col2 FROM tab0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9471
SELECT col2 col1, 96 - CAST( col0 AS SIGNED ) FROM tab2
----
23
50
40
32
58
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9471
SELECT col2 col1, 96 - CAST ( col0 AS INTEGER ) FROM tab2
----
23
50
40
32
58
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9472
SELECT ALL 63 DIV - + COUNT( * ) + + SUM( DISTINCT - col1 ) AS col0 FROM tab0
----
-124

skipif mysql # not compatible
query I rowsort label-9472
SELECT ALL 63 / - + COUNT ( * ) + + SUM ( DISTINCT - col1 ) AS col0 FROM tab0
----
-124

query II rowsort
SELECT - col1, + col2 - col1 * 14 AS col2 FROM tab0
----
-1
85
-21
-284
-81
-1087

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT ALL + COUNT( * ) + + + 5 col1 FROM tab0
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9474
SELECT ALL + COUNT ( * ) + + + 5 col1 FROM tab0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - - - col0 col2 FROM tab2
----
0

query I rowsort
SELECT col1 - - 64 FROM tab0 AS cor0
----
145
65
85

query I rowsort
SELECT col0 * - 65 AS col0 FROM tab0
----
-5655
-6305
-975

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9478
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN 77 + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9478
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN 77 + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9479
SELECT + col2 DIV ( + ( + col1 ) * 14 ) + - col0 * + col0 col2 FROM tab0
----
-225
-7569
-9402

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9479
SELECT + col2 / ( + ( + col1 ) * 14 ) + - col0 * + col0 col2 FROM tab0
----
-225
-7569
-9402

onlyif mysql # DIV for integer division: 
query I rowsort label-9480
SELECT col1 DIV - col1 + - 67 FROM tab2
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-9480
SELECT col1 / - col1 + - 67 FROM tab2
----
-68
-68
-68

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 32 / - 17 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9482
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9482
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9483
SELECT COUNT( * ) DIV - MAX( DISTINCT - col0 ) + COUNT( * ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9483
SELECT COUNT ( * ) / - MAX ( DISTINCT - col0 ) + COUNT ( * ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT ALL + 0 * - SUM( ALL - 57 ) - 29 AS col0 FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-9484
SELECT ALL + 0 * - SUM ( ALL - 57 ) - 29 AS col0 FROM tab1
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-9485
SELECT DISTINCT col1 DIV - col2 + - 27 * col2 AS col0 FROM tab0
----
-1270
-2673
-272

skipif mysql # not compatible
query I rowsort label-9485
SELECT DISTINCT col1 / - col2 + - 27 * col2 AS col0 FROM tab0
----
-1270
-2673
-272

query I rowsort
SELECT - 10 + - 54 AS col1 FROM tab2
----
-64
-64
-64

query III rowsort
SELECT * FROM tab2 WHERE + col0 NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 BETWEEN col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( 35 ) AS col1 FROM tab2
----
-35
-35
-35

query I rowsort
SELECT DISTINCT - 57 + + 19 FROM tab0
----
-38

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 / col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9492
SELECT col1 DIV col1 + 88 FROM tab1
----
89
89
89

skipif mysql # not compatible
query I rowsort label-9492
SELECT col1 / col1 + 88 FROM tab1
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT - MAX( 93 ) FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-9493
SELECT - MAX ( 93 ) FROM tab1
----
-93

query I rowsort
SELECT DISTINCT ( 71 ) * col2 AS col2 FROM tab2
----
1633
2840
4118

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 98 IS NOT NULL
----

query I rowsort
SELECT ALL 34 + 72 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT + col2 + 21 * + 6 AS col2 FROM tab2
----
149
166
184

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 + 18 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9500
SELECT 13 DIV 14 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9500
SELECT 13 / 14 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 97 * - 30 + + col2 * col0 AS col2 FROM tab2 AS cor0 WHERE NOT - 49 BETWEEN NULL AND - col0
----
5470
7260

query I rowsort
SELECT - 14 * + col0 AS col0 FROM tab2 AS cor0
----
-1050
-644
-896

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND - col1 * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 * col1 col0 FROM tab2 cor0
----
1224
3157
3953

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> ( - col0 )
----

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 cor0 WHERE 91 NOT BETWEEN ( 59 + - col0 ) AND + col2 + col2 * 26
----

query I rowsort
SELECT ALL col2 * 25 FROM tab1 cor0
----
1475
1700
2400

query I rowsort
SELECT ALL + 26 FROM tab0 cor0 CROSS JOIN tab1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9509
SELECT - CAST( MAX( ALL - ( col0 ) ) AS SIGNED ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-9509
SELECT - CAST ( MAX ( ALL - ( col0 ) ) AS INTEGER ) AS col2 FROM tab2
----
46

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col2 * ( - col1 ) + 48 AND + col2
----

query I rowsort
SELECT DISTINCT - + 62 * col1 AS col2 FROM tab2 cor0
----
-3162
-4154
-4774

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + ( 57 ) * 90 + 86 ) > + col0 * - 85
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 59 + col0 FROM tab2 AS cor0
----
105
123
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9515
SELECT MAX( DISTINCT + 17 ) + 23 FROM tab2 AS cor0 WHERE + col2 / - col2 < CAST( NULL AS SIGNED ) * col2 + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9515
SELECT MAX ( DISTINCT + 17 ) + 23 FROM tab2 AS cor0 WHERE + col2 / - col2 < CAST ( NULL AS INTEGER ) * col2 + ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9516
SELECT DISTINCT - COUNT( * ) + - MIN( ALL + 19 ) DIV COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9516
SELECT DISTINCT - COUNT ( * ) + - MIN ( ALL + 19 ) / COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9517
SELECT DISTINCT + 53 DIV + 10 AS col2 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9517
SELECT DISTINCT + 53 / + 10 AS col2 FROM tab0 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT DISTINCT - COUNT( * ) col0 FROM tab1 cor0 WHERE ( NULL ) > ( + ( + col0 ) )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9518
SELECT DISTINCT - COUNT ( * ) col0 FROM tab1 cor0 WHERE ( NULL ) > ( + ( + col0 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9519
SELECT DISTINCT + 83 DIV - col0 FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-9519
SELECT DISTINCT + 83 / - col0 FROM tab0 AS cor0
----
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9520
SELECT ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9521
SELECT - COUNT( * ) DIV 62 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9521
SELECT - COUNT ( * ) / 62 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9522
SELECT ALL col2 / + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9522
SELECT ALL col2 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * col1 - col0 * col0 FROM tab0 AS cor0
----
-4032
-7779
-9508

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( - 19 ) NOT BETWEEN ( + col0 ) AND col2 * col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9525
SELECT COUNT( col0 ) * CAST( NULL AS SIGNED ) - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9525
SELECT COUNT ( col0 ) * CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE NOT col2 * col2 IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NULL > - col0
----

query I rowsort
SELECT DISTINCT 99 * - 76 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 32 ) IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT ALL + MAX( - ( col2 ) ) + 67 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-9530
SELECT ALL + MAX ( - ( col2 ) ) + 67 FROM tab2
----
44

query I rowsort
SELECT ALL + col0 + + - col2 FROM tab2
----
17
23
24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9532
SELECT SUM( ALL + CAST( NULL AS DECIMAL ) ) + - 80 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9532
SELECT SUM ( ALL + CAST ( NULL AS REAL ) ) + - 80 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( NULL ) AND + 7
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 / col0 ) < - col2 * + col1
----

query I rowsort
SELECT DISTINCT + 89 - 2 AS col2 FROM tab2 AS cor0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9536
SELECT DISTINCT + + 3 * ( SUM( + 92 ) ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9536
SELECT DISTINCT + + 3 * ( SUM ( + 92 ) ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT + 86 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9538
SELECT DISTINCT CAST( - 33 AS SIGNED ) col2 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9538
SELECT DISTINCT CAST ( - 33 AS INTEGER ) col2 FROM tab0 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT - SUM( - col2 ) AS col1 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-9539
SELECT - SUM ( - col2 ) AS col1 FROM tab1 cor0
----
223

onlyif mysql # aggregate syntax: 
query II rowsort label-9540
SELECT + COUNT( * ) AS col1, - COUNT( 17 ) FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-9540
SELECT + COUNT ( * ) AS col1, - COUNT ( 17 ) FROM tab0 AS cor0
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9541
SELECT ( + - CAST( NULL AS SIGNED ) ) * col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9541
SELECT ( + - CAST ( NULL AS INTEGER ) ) * col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 97 AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( col0 ) + - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col0 - 47 * - 48 )
----

query I rowsort
SELECT ALL + 70 * col0 + + col1 AS col1 FROM tab2 AS cor0
----
3271
4557
5317

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT ALL - - MAX( ALL - - col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9545
SELECT ALL - - MAX ( ALL - - col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT + - COUNT( + 52 ) AS col2 FROM tab2 WHERE NOT + col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9546
SELECT + - COUNT ( + 52 ) AS col2 FROM tab2 WHERE NOT + col1 IS NULL
----
-3

query I rowsort
SELECT + col1 * + 51 AS col0 FROM tab1
----
2397
255
714

onlyif mysql # DIV for integer division: 
query I rowsort label-9548
SELECT - col2 * + + col1 * 52 + 67 + - col2 * ( + 33 DIV 87 ) AS col2 FROM tab2
----
-160093
-202005
-60929

skipif mysql # not compatible
query I rowsort label-9548
SELECT - col2 * + + col1 * 52 + 67 + - col2 * ( + 33 / 87 ) AS col2 FROM tab2
----
-160093
-202005
-60929

query I rowsort
SELECT col1 + 49 + + col2 * + col1 + - col0 AS col0 FROM tab0
----
193
3922
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT + ( - 59 ) * 65 + + 95 + + COUNT( * ) FROM tab1
----
-3737

skipif mysql # not compatible
query I rowsort label-9550
SELECT + ( - 59 ) * 65 + + 95 + + COUNT ( * ) FROM tab1
----
-3737

query I rowsort
SELECT ( + 6 ) + - - 86 FROM tab0
----
92
92
92

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col2 ) = + 0 + col2
----

query I rowsort
SELECT + col1 + + col2 FROM tab1 WHERE NOT col1 = NULL
----

query I rowsort
SELECT DISTINCT + col2 * ( ( + 49 ) ) FROM tab2
----
1127
1960
2842

query I rowsort
SELECT - - ( - ( - 17 ) ) FROM tab0 WHERE NOT NULL <= + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9556
SELECT + col1 * col0 DIV - 93 AS col0 FROM tab0 AS cor0
----
-1
-13
-19

skipif mysql # not compatible
query I rowsort label-9556
SELECT + col1 * col0 / - 93 AS col0 FROM tab0 AS cor0
----
-1
-13
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT + ( - + MIN( DISTINCT + col1 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9557
SELECT + ( - + MIN ( DISTINCT + col1 ) ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT DISTINCT - MAX( DISTINCT + + col0 ) + - + COUNT( * ) AS col1 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-9558
SELECT DISTINCT - MAX ( DISTINCT + + col0 ) + - + COUNT ( * ) AS col1 FROM tab2
----
-78

query I rowsort
SELECT 72 + - - col0 FROM tab1
----
123
157
163

query III rowsort
SELECT * FROM tab2 WHERE ( 78 ) NOT BETWEEN ( - col2 ) AND ( NULL )
----

query I rowsort
SELECT + col2 + + 97 * - + col0 AS col2 FROM tab0
----
-1408
-8429
-9310

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9562
SELECT 41 / + - CAST( NULL AS DECIMAL ), + COUNT( DISTINCT - - col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9562
SELECT 41 / + - CAST ( NULL AS REAL ), + COUNT ( DISTINCT - - col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9563
SELECT DISTINCT + 16 DIV - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT + 16 / - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9564
SELECT ALL + 27 DIV + 78 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL + 27 / + 78 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL < col0 * - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT DISTINCT - MIN( DISTINCT - 49 ) AS col2 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-9566
SELECT DISTINCT - MIN ( DISTINCT - 49 ) AS col2 FROM tab0 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT - MIN( - + col2 ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-9567
SELECT - MIN ( - + col2 ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
96

query I rowsort
SELECT DISTINCT 2 + + + 46 * - + 6 AS col0 FROM tab2
----
-274

query I rowsort
SELECT ALL + ( + 84 ) AS col0 FROM tab2
----
84
84
84

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + + - 72 BETWEEN NULL AND - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT - 18 * + COUNT( * ) AS col2 FROM tab2 WHERE ( NULL ) BETWEEN ( - col0 * - + 14 + - col2 ) AND 8 * + 26
----
0

skipif mysql # not compatible
query I rowsort label-9571
SELECT - 18 * + COUNT ( * ) AS col2 FROM tab2 WHERE ( NULL ) BETWEEN ( - col0 * - + 14 + - col2 ) AND 8 * + 26
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT - 83 - + COUNT( * ) + + MIN( DISTINCT + + col1 ) + + ( + 39 ) AS col2 FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-9572
SELECT - 83 - + COUNT ( * ) + + MIN ( DISTINCT + + col1 ) + + ( + 39 ) AS col2 FROM tab0
----
-46

query I rowsort
SELECT ALL 49 AS col1 FROM tab2 WHERE NULL IS NULL
----
49
49
49

query III rowsort
SELECT * FROM tab2 WHERE + col2 >= ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9575
SELECT ALL col2 / - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT ( col0 + + ( col0 ) * + col2 / col2 ) NOT BETWEEN 53 + col0 AND - 1
----

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL col2 / - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( col0 + + ( col0 ) * + col2 / col2 ) NOT BETWEEN 53 + col0 AND - 1
----

query I rowsort
SELECT col2 - - col2 * + col1 * - + ( + col1 ) AS col0 FROM tab2
----
-237120
-260304
-59800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 23 col2 FROM tab1 WHERE NULL IS NULL
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT DISTINCT + - ( - 62 ) * - - SUM( DISTINCT col2 ) FROM tab2 AS cor0 WHERE + col2 = + + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT + - ( - 62 ) * - - SUM ( DISTINCT col2 ) FROM tab2 AS cor0 WHERE + col2 = + + 7
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9579
SELECT ( - - 28 ) AS col2, + COUNT( DISTINCT col2 ) col2 FROM tab2
----
28
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9579
SELECT ( - - 28 ) AS col2, + COUNT ( DISTINCT col2 ) col2 FROM tab2
----
28
3

onlyif mysql # DIV for integer division: 
query II rowsort label-9580
SELECT DISTINCT - col0 DIV col2, 49 + + - 30 AS col1 FROM tab0
----
-8
19
0
19

skipif mysql # not compatible
query II rowsort label-9580
SELECT DISTINCT - col0 / col2, 49 + + - 30 AS col1 FROM tab0
----
-8
19
0
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT DISTINCT - COUNT( + - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9581
SELECT DISTINCT - COUNT ( + - col0 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 / + col0 < NULL
----

query II rowsort
SELECT + col2 * col2, + col2 * - col2 AS col2 FROM tab2 AS cor0
----
1600
-1600
3364
-3364
529
-529

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 46 + - + col0 NOT BETWEEN col0 AND - - col0 * - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9585
SELECT - - COUNT( col0 ) AS col0, + 47 * + 44 FROM tab0 AS cor0
----
3
2068

skipif mysql # not compatible
query II rowsort label-9585
SELECT - - COUNT ( col0 ) AS col0, + 47 * + 44 FROM tab0 AS cor0
----
3
2068

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9586
SELECT DISTINCT + COUNT( * ) + - SUM( ALL + col0 ) DIV + + 47 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT + COUNT ( * ) + - SUM ( ALL + col0 ) / + + 47 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - ( 80 ) AS col0 FROM tab1 WHERE + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + + ( + col1 ) * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - - col0 + + col1 col1 FROM tab0 cor0
----
-144
-7548
-9408

query I rowsort
SELECT col1 + 69 AS col1 FROM tab2 AS cor0
----
120
136
146

query I rowsort
SELECT + + 28 + - col2 AS col0 FROM tab2 cor0
----
-12
-30
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9592
SELECT ALL + + COUNT( * ) AS col1, COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9592
SELECT ALL + + COUNT ( * ) AS col1, COUNT ( * ) FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT + - COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9593
SELECT + - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT ( col1 ) AS col0 FROM tab1 cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT - + COUNT( ALL + - 80 ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9595
SELECT - + COUNT ( ALL + - 80 ) AS col2 FROM tab1 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9596
SELECT - col2 DIV + - ( - col1 ) * - + 79 - col2 + + col1 FROM tab2 AS cor0
----
28
37
9

skipif mysql # not compatible
query I rowsort label-9596
SELECT - col2 / + - ( - col1 ) * - + 79 - col2 + + col1 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT DISTINCT 18 FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 + - + col2, + col2 * - col1, + col0 + - 92 )
----

query I rowsort
SELECT ALL col2 * - 33 - - col2 AS col0 FROM tab2 AS cor0
----
-1280
-1856
-736

query I rowsort
SELECT DISTINCT 56 AS col2 FROM tab0 cor0 WHERE NOT col0 IS NULL
----
56

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - - 68 )
----

query I rowsort
SELECT + + col0 FROM tab1 WHERE NOT + 79 - - + 86 IS NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9602
SELECT DISTINCT - col2 DIV - - col1 AS col1 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT - col2 / - - col1 AS col1 FROM tab1
----
-1
-11
-6

query III rowsort
SELECT * FROM tab1 WHERE NOT + - ( - col0 ) BETWEEN + 2 AND NULL
----

query I rowsort
SELECT + col1 * 34 * + col2 FROM tab0
----
129438
3366
7140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9605
SELECT ALL COUNT( * ) * - + CAST( + MAX( 2 ) AS SIGNED ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL COUNT ( * ) * - + CAST ( + MAX ( 2 ) AS INTEGER ) FROM tab1
----
-6

query II rowsort
SELECT - col0 AS col0, - col1 + + - 3 + col2 + - col0 + + 6 + + col2 + - col1 FROM tab0 AS cor0
----
-15
-80
-87
-106
-97
102

query I rowsort
SELECT DISTINCT - col0 FROM tab1 cor0 WHERE 60 / + col2 > + - ( - 32 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT ALL COUNT( * ) * MIN( ALL - 89 ) FROM tab0
----
-267

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL COUNT ( * ) * MIN ( ALL - 89 ) FROM tab0
----
-267

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9609
SELECT COUNT( DISTINCT - col1 ) DIV - COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9609
SELECT COUNT ( DISTINCT - col1 ) / - COUNT ( * ) FROM tab1
----
-1

query I rowsort
SELECT DISTINCT col2 * 72 AS col1 FROM tab2
----
1656
2880
4176

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT 32 * COUNT( * ) col2 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9611
SELECT 32 * COUNT ( * ) col2 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT ALL + ( COUNT( * ) ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL + ( COUNT ( * ) ) AS col0 FROM tab0 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col1, col2 + 17 col1 FROM tab2 AS cor0
----
23
40
40
57
58
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9614
SELECT DISTINCT - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * + 74 * COUNT( + - 28 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9614
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * + 74 * COUNT ( + - 28 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9615
SELECT + col1 + - CAST( NULL AS SIGNED ) + - + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9615
SELECT + col1 + - CAST ( NULL AS INTEGER ) + - + col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9616
SELECT CAST( NULL AS SIGNED ) * + - 35 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9616
SELECT CAST ( NULL AS INTEGER ) * + - 35 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9617
SELECT ALL * FROM tab2 WHERE + + CAST( + 99 AS SIGNED ) * - + 42 + - col1 <> - - 31
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9617
SELECT ALL * FROM tab2 WHERE + + CAST ( + 99 AS INTEGER ) * - + 42 + - col1 <> - - 31
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 99 * + ( ( - + 22 ) ) + + - 26 + - col1 * + col2 + col2 FROM tab2
----
-1676
-888
1002

query I rowsort
SELECT DISTINCT + 80 + - + col2 AS col2 FROM tab2 AS cor0
----
22
40
57

query I rowsort
SELECT ALL 42 + col0 FROM tab1 AS cor0
----
127
133
93

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 AS cor0 WHERE NOT - 65 IS NOT NULL
----

query II rowsort
SELECT - col2 AS col2, 36 FROM tab2 WHERE NULL IS NULL
----
-23
36
-40
36
-58
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT ALL + ( - COUNT( * ) ) + + ( + COUNT( * ) ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL + ( - COUNT ( * ) ) + + ( + COUNT ( * ) ) AS col2 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 99 BETWEEN col2 AND - 18 + - + 13 * + 22
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 7 IS NULL
----

query I rowsort
SELECT ALL - ( 71 ) - col1 * - col0 AS col2 FROM tab1 AS cor0
----
354
4206
643

query II rowsort
SELECT + col2 AS col0, col0 * - + 56 + - - 34 + col1 * + col1 AS col0 FROM tab0 AS cor0
----
10
-4397
47
5755
99
-5397

query II rowsort
SELECT ALL + - 87 AS col2, + 79 FROM tab2 AS cor0
----
-87
79
-87
79
-87
79

query II rowsort
SELECT DISTINCT - - ( + col2 ) AS col0, - ( ( + col1 ) ) * + + col1 / - + col2 * + col1 AS col0 FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9630
SELECT col0 DIV - 1 AS col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9630
SELECT col0 / - 1 AS col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT + col2 * - 80 AS col1 FROM tab1
----
-4720
-5440
-7680

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 WHERE NOT - 38 IS NOT NULL
----

query II rowsort
SELECT + 3 * + - 40, col0 FROM tab2
----
-120
46
-120
64
-120
75

query I rowsort
SELECT DISTINCT + ( + col0 ) * 47 FROM tab2
----
2162
3008
3525

query I rowsort
SELECT DISTINCT - + col2 * - 2 * - col1 AS col0 FROM tab2 AS cor0
----
-2346
-6160
-7772

query I rowsort
SELECT DISTINCT + 70 * - col0 * - col0 FROM tab0
----
15750
529830
658630

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT ALL - + COUNT( * ) FROM tab1 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9637
SELECT ALL - + COUNT ( * ) FROM tab1 WHERE NOT + col0 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( - 6 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9639
SELECT col2 DIV + CAST( + col0 AS SIGNED ) AS col1 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-9639
SELECT col2 / + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0
----
0
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9640
SELECT DISTINCT - - CAST( 49 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
49

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT - - CAST ( 49 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
49

query I rowsort
SELECT ALL + 55 * + + 88 * 68 FROM tab1
----
329120
329120
329120

onlyif mysql # aggregate syntax: 
query II rowsort label-9642
SELECT - + COUNT( * ) AS col0, 58 col0 FROM tab2 AS cor0
----
-3
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9642
SELECT - + COUNT ( * ) AS col0, 58 col0 FROM tab2 AS cor0
----
-3
58

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 33 - + - col1 BETWEEN ( + 81 + 63 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN - 39 AND NULL
----

query I rowsort
SELECT - ( + - 30 ) AS col2 FROM tab2 AS cor0
----
30
30
30

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 / - - ( + 97 ) * - col1 NOT BETWEEN - 41 AND - + 4 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9647
SELECT * FROM tab1 WHERE NULL NOT IN ( - CAST( NULL AS DECIMAL ), - 51 * - CAST( NULL AS SIGNED ) / col1 )
----

skipif mysql # not compatible
query III rowsort label-9647
SELECT * FROM tab1 WHERE NULL NOT IN ( - CAST ( NULL AS REAL ), - 51 * - CAST ( NULL AS INTEGER ) / col1 )
----

query I rowsort
SELECT DISTINCT col2 + - 78 * - 82 AS col2 FROM tab1
----
6455
6464
6492

query I rowsort
SELECT ALL + 64 + + col0 FROM tab1
----
115
149
155

query I rowsort
SELECT ALL - col0 * - 80 * col2 + + - col1 FROM tab0
----
56319
69579
768239

query I rowsort
SELECT DISTINCT + ( 68 ) + + col0 AS col1 FROM tab1
----
119
153
159

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT ALL MIN( ALL 1 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL MIN ( ALL 1 ) FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + ( - ( - + col2 ) ) col1 FROM tab1 cor0
----
110
115
64

query I rowsort
SELECT - col2 + col1 * - - col2 - - col1 AS col0 FROM tab0 AS cor0
----
1
221
3841

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NULL BETWEEN - 34 AND col2
----

query I rowsort
SELECT col2 * + 61 AS col1 FROM tab2 AS cor0
----
1403
2440
3538

query I rowsort
SELECT - 18 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

onlyif mysql # DIV for integer division: 
query I rowsort label-9658
SELECT + - col2 DIV 59 FROM tab1 WHERE - + col0 + + 16 - + - col1 IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9658
SELECT + - col2 / 59 FROM tab1 WHERE - + col0 + + 16 - + - col1 IS NOT NULL
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT ALL - ( - - COUNT( * ) ) + - COUNT( * ) AS col0 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL - ( - - COUNT ( * ) ) + - COUNT ( * ) AS col0 FROM tab1
----
-6

query I rowsort
SELECT ALL - - col1 * + col1 - + - 9 FROM tab0 AS cor0
----
10
450
6570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9661
SELECT - - col2 / + + ( + col1 ) - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9661
SELECT - - col2 / + + ( + col1 ) - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT COUNT( DISTINCT ( - + col1 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - 70
----
0

skipif mysql # not compatible
query I rowsort label-9662
SELECT COUNT ( DISTINCT ( - + col1 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - 70
----
0

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE ( col1 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - ( + col2 ) col1, col0 + + col0 + + 78 * + 10 FROM tab2 AS cor0
----
23
872
40
908
58
930

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE 3 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 64 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT DISTINCT + 31 * + MIN( 21 ) * + ( 80 ) FROM tab0 AS cor0
----
52080

skipif mysql # not compatible
query I rowsort label-9667
SELECT DISTINCT + 31 * + MIN ( 21 ) * + ( 80 ) FROM tab0 AS cor0
----
52080

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 13 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9669
SELECT ALL 25, + 37 / + CAST( NULL AS DECIMAL ) + - 42 AS col2 FROM tab0
----
25
NULL
25
NULL
25
NULL

skipif mysql # not compatible
query II rowsort label-9669
SELECT ALL 25, + 37 / + CAST ( NULL AS REAL ) + - 42 AS col2 FROM tab0
----
25
NULL
25
NULL
25
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9670
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT col1 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL BETWEEN ( NULL ) AND + 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT COUNT( * ) * - + SUM( + + 31 ) * - - SUM( ALL col1 ) col0 FROM tab0
----
-28737

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9672
SELECT COUNT ( * ) * - + SUM ( + + 31 ) * - - SUM ( ALL col1 ) col0 FROM tab0
----
-28737

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT SUM( ALL - - 13 ) AS col2 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-9673
SELECT SUM ( ALL - - 13 ) AS col2 FROM tab1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-9674
SELECT - COUNT( * ) AS col2, ( - 23 ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3
-69

skipif mysql # not compatible
query II rowsort label-9674
SELECT - COUNT ( * ) AS col2, ( - 23 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT ALL - COUNT( - - 18 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9675
SELECT ALL - COUNT ( - - 18 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT ( NULL ) IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT ALL + ( - 65 ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9677
SELECT ALL + ( - 65 ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-195

query I rowsort
SELECT DISTINCT - col1 * - 19 AS col1 FROM tab1 AS cor0
----
266
893
95

onlyif mysql # DIV for integer division: 
query I rowsort label-9679
SELECT DISTINCT 72 DIV + ( col1 ) AS col0 FROM tab0 AS cor0
----
0
3
72

skipif mysql # not compatible
query I rowsort label-9679
SELECT DISTINCT 72 / + ( col1 ) AS col0 FROM tab0 AS cor0
----
0
3
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9680
SELECT DISTINCT - 25 + - + CAST( + col1 AS SIGNED ) FROM tab1
----
-30
-39
-72

skipif mysql # not compatible
query I rowsort label-9680
SELECT DISTINCT - 25 + - + CAST ( + col1 AS INTEGER ) FROM tab1
----
-30
-39
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT DISTINCT + COUNT( * ) + 22 * COUNT( col2 ) AS col1 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-9681
SELECT DISTINCT + COUNT ( * ) + 22 * COUNT ( col2 ) AS col1 FROM tab2
----
69

query I rowsort
SELECT DISTINCT - + col2 - + - ( + 63 ) FROM tab0 AS cor0
----
-36
16
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9683
SELECT DISTINCT - - col1 - CAST( - + CAST( - - col1 AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
102
134
154

skipif mysql # not compatible
query I rowsort label-9683
SELECT DISTINCT - - col1 - CAST ( - + CAST ( - - col1 AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
102
134
154

query II rowsort
SELECT ALL + - col0 AS col0, 16 FROM tab0 AS cor0
----
-15
16
-87
16
-97
16

query I rowsort
SELECT ALL - 21 + + col2 FROM tab2
----
19
2
37

query I rowsort
SELECT - 24 + - 72 FROM tab2
----
-96
-96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 col1 FROM tab2
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT COUNT( * ) + - MAX( DISTINCT + 79 ) * - COUNT( * ) * 90 FROM tab2
----
21333

skipif mysql # not compatible
query I rowsort label-9688
SELECT COUNT ( * ) + - MAX ( DISTINCT + 79 ) * - COUNT ( * ) * 90 FROM tab2
----
21333

query I rowsort
SELECT - col0 FROM tab2 WHERE col0 + - - col2 + + col2 >= + 9
----
-46
-64
-75

query I rowsort
SELECT ( col2 ) + - 3 FROM tab1
----
56
65
93

query I rowsort
SELECT + col0 - + 87 FROM tab2 WHERE NOT ( 19 > - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT ALL COUNT( DISTINCT - - col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL COUNT ( DISTINCT - - col0 ) AS col0 FROM tab0 AS cor0
----
3

query II rowsort
SELECT 70, ( - 71 ) AS col1 FROM tab0 AS cor0
----
70
-71
70
-71
70
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT ALL + ( - + MAX( ALL + - col1 ) ) col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9694
SELECT ALL + ( - + MAX ( ALL + - col1 ) ) col0 FROM tab1 AS cor0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9695
SELECT DISTINCT - - 9 DIV - col1 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9695
SELECT DISTINCT - - 9 / - col1 FROM tab1 AS cor0
----
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9696
SELECT CAST( 93 AS SIGNED ) AS col2, 4 + + + MIN( DISTINCT col2 ) FROM tab1
----
93
63

skipif mysql # not compatible
query II rowsort label-9696
SELECT CAST ( 93 AS INTEGER ) AS col2, 4 + + + MIN ( DISTINCT col2 ) FROM tab1
----
93
63

query I rowsort
SELECT ALL 74 * - + col2 + + col1 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - + col2 FROM tab0 WHERE NOT - col2 + 13 <> + 78
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= + - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9700
SELECT DISTINCT - ( - 90 ) AS col2, COUNT( * ) FROM tab2 AS cor0
----
90
3

skipif mysql # not compatible
query II rowsort label-9700
SELECT DISTINCT - ( - 90 ) AS col2, COUNT ( * ) FROM tab2 AS cor0
----
90
3

query I rowsort
SELECT + 9 * + col0 - + 15 + col1 AS col1 FROM tab1 AS cor0
----
458
755
851

query I rowsort
SELECT DISTINCT - col2 * col1 + + col2 AS col0 FROM tab0 AS cor0
----
-200
-3760
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT ALL SUM( - - ( 63 ) ) FROM tab2 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL SUM ( - - ( 63 ) ) FROM tab2 AS cor0
----
189

query III rowsort
SELECT ALL * FROM tab1 WHERE + + ( + + col1 ) + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9705
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - 36 * - col0 * + col0 * col0 col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9705
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - 36 * - col0 * + col0 * col0 col1 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 <= col0 + - col2
----
97
1
99

query II rowsort
SELECT DISTINCT col0 AS col0, - col0 * col2 FROM tab2 AS cor0
----
46
-1058
64
-2560
75
-4350

query II rowsort
SELECT - 49 AS col1, 43 AS col0 FROM tab0 AS cor0
----
-49
43
-49
43
-49
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT DISTINCT + + MIN( ALL 42 ) AS col0 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-9709
SELECT DISTINCT + + MIN ( ALL 42 ) AS col0 FROM tab1 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT DISTINCT + SUM( ALL - + col1 ) + + 77 AS col2 FROM tab0 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-9710
SELECT DISTINCT + SUM ( ALL - + col1 ) + + 77 AS col2 FROM tab0 cor0
----
-26

query I rowsort
SELECT DISTINCT - ( ( + ( - col0 ) ) ) AS col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9712
SELECT DISTINCT - CAST( 98 AS SIGNED ), 28 col0 FROM tab0
----
-98
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9712
SELECT DISTINCT - CAST ( 98 AS INTEGER ), 28 col0 FROM tab0
----
-98
28

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL NOT IN ( + col2 / col1, col1 ) )
----

query I rowsort
SELECT col0 + + - ( 34 ) + + ( - - col0 ) FROM tab0
----
-4
140
160

query I rowsort
SELECT DISTINCT 74 + ( col2 ) AS col0 FROM tab2
----
114
132
97

query I rowsort
SELECT + 55 - - - col0 FROM tab1 AS cor0 WHERE + col0 * + 4 * + - 50 * - col0 + - col2 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * col2 IS NULL
----

query I rowsort
SELECT ALL col0 - - + col0 AS col2 FROM tab1 cor0
----
102
170
182

query I rowsort
SELECT col2 + + col0 * - col0 FROM tab1 AS cor0
----
-2505
-7166
-8213

query I rowsort
SELECT + + 85 * + col1 AS col0 FROM tab1 AS cor0
----
1190
3995
425

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT DISTINCT - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col1 * + col0 <= col0
----
2

skipif mysql # not compatible
query I rowsort label-9721
SELECT DISTINCT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col1 * + col0 <= col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9722
SELECT - + 15 * - - 80, + COUNT( DISTINCT 29 ) + - 3 DIV + 39 + - ( + 13 ) AS col2 FROM tab2 AS cor0
----
-1200
-12

skipif mysql # not compatible
query II rowsort label-9722
SELECT - + 15 * - - 80, + COUNT ( DISTINCT 29 ) + - 3 / + 39 + - ( + 13 ) AS col2 FROM tab2 AS cor0
----
-1200
-12

query I rowsort
SELECT DISTINCT + col1 - - + 29 * + col0 FROM tab0 AS cor0
----
2544
2814
516

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9724
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) + - + 54 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9724
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) + - + 54 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT col2 * 44 * + - 70, + col1 AS col0 FROM tab0
----
-144760
81
-304920
1
-30800
21

query I rowsort
SELECT + col1 * col1 * - col2 * 2 AS col1 FROM tab1
----
-2950
-300424
-37632

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 + + ( 48 ) + + col2 * - + col2 * - col0 * - 65 + 30 IS NULL
----

query I rowsort
SELECT + - col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-10
-47
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 < + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 92 FROM tab2 cor0
----
-92
-92
-92

query II rowsort
SELECT ALL + - col0, col1 FROM tab1 AS cor0 WHERE ( - 31 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9732
SELECT col0, CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-9732
SELECT col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 82 IS NULL
----

query II rowsort
SELECT col1, + col2 * - col0 AS col1 FROM tab0
----
1
-9603
21
-870
81
-705

onlyif mysql # DIV for integer division: 
query I rowsort label-9735
SELECT DISTINCT + 86 DIV - col0 AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9735
SELECT DISTINCT + 86 / - col0 AS col0 FROM tab2
----
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 29 = ( 37 )
----

query II rowsort
SELECT - col0, + ( + col2 ) AS col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 WHERE 31 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT - ( 17 ) - + MAX( + 13 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-30

skipif mysql # not compatible
query I rowsort label-9739
SELECT - ( 17 ) - + MAX ( + 13 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-9740
SELECT - col0 + - col0 + - col2 - ( - 7 ) DIV - col1 FROM tab2 AS cor0
----
-115
-168
-208

skipif mysql # not compatible
query I rowsort label-9740
SELECT - col0 + - col0 + - col2 - ( - 7 ) / - col1 FROM tab2 AS cor0
----
-115
-168
-208

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT DISTINCT + - SUM( + - 13 ) AS col1 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-9741
SELECT DISTINCT + - SUM ( + - 13 ) AS col1 FROM tab1 AS cor0
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 - - ( 61 ) col1 FROM tab1 cor0
----
-35
-7
2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT ALL + ( + - ( + ( + COUNT( DISTINCT - - 15 ) ) ) ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL + ( + - ( + ( + COUNT ( DISTINCT - - 15 ) ) ) ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT COUNT( * ) * - + COUNT( * ) + - 69 + 38 * ( + 43 ) AS col2 FROM tab0 AS cor0
----
1556

skipif mysql # not compatible
query I rowsort label-9745
SELECT COUNT ( * ) * - + COUNT ( * ) + - 69 + 38 * ( + 43 ) AS col2 FROM tab0 AS cor0
----
1556

query I rowsort
SELECT col2 * - 40 FROM tab2 AS cor0
----
-1600
-2320
-920

query I rowsort
SELECT col1 * col0 * - col2 AS col0 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT ALL - COUNT( * ) + 45 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL - COUNT ( * ) + 45 FROM tab2
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 * - col0 col1 FROM tab2
----
-262144
-421875
-97336

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT - COUNT( * ) * + 95 col0 FROM tab0
----
-285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9750
SELECT - COUNT ( * ) * + 95 col0 FROM tab0
----
-285

query I rowsort
SELECT ALL - 88 + + 44 - + 34 AS col1 FROM tab2
----
-78
-78
-78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9752
SELECT ALL * FROM tab2 WHERE NOT - col1 <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9752
SELECT ALL * FROM tab2 WHERE NOT - col1 <> + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT + ( + col0 ) + + - col1, col0 AS col0 FROM tab1
----
37
51
44
91
80
85

query II rowsort
SELECT col2 AS col0, 50 FROM tab0
----
10
50
47
50
99
50

query II rowsort
SELECT col0, - col1 * + - col2 AS col2 FROM tab1
----
51
1344
85
295
91
3196

query I rowsort
SELECT DISTINCT 83 - - 48 + col0 + ( + col2 ) * + 74 * 79 FROM tab0
----
274908
578982
58678

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 39 col1, - ( col0 ) AS col2 FROM tab1 AS cor0
----
39
-51
39
-85
39
-91

query I rowsort
SELECT DISTINCT ( - col0 ) * + col1 + + + col0 * + col1 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT + COUNT( * ) * + 63 AS col1 FROM tab0
----
189

skipif mysql # not compatible
query I rowsort label-9759
SELECT + COUNT ( * ) * + 63 AS col1 FROM tab0
----
189

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9760
SELECT ALL - ( - 81 ) DIV 78 AS col2, - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
1
-9

skipif mysql # not compatible
query II rowsort label-9760
SELECT ALL - ( - 81 ) / 78 AS col2, - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
1
-9

query I rowsort
SELECT DISTINCT col0 * col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT ALL + - SUM( - col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9762
SELECT ALL + - SUM ( - col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9763
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - ( - + col1 ) / - col0 AS col2, 52 FROM tab1 cor0
----
NULL
52

skipif mysql # not compatible
query II rowsort label-9763
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - ( - + col1 ) / - col0 AS col2, 52 FROM tab1 cor0
----
NULL
52

onlyif mysql # DIV for integer division: 
query I rowsort label-9764
SELECT DISTINCT col0 DIV col1 + col1 AS col0 FROM tab0 AS cor0
----
25
81
98

skipif mysql # not compatible
query I rowsort label-9764
SELECT DISTINCT col0 / col1 + col1 AS col0 FROM tab0 AS cor0
----
25
81
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT ALL SUM( ALL + + col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9765
SELECT ALL SUM ( ALL + + col2 ) AS col2 FROM tab0
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9766
SELECT + ( - COUNT( * ) ) FROM tab1 WHERE NOT + 6 NOT BETWEEN - 76 - + + ( - + CAST( + 49 AS SIGNED ) ) AND - + CAST( - col0 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-9766
SELECT + ( - COUNT ( * ) ) FROM tab1 WHERE NOT + 6 NOT BETWEEN - 76 - + + ( - + CAST ( + 49 AS INTEGER ) ) AND - + CAST ( - col0 AS INTEGER )
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 / - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT ALL 2 + - + COUNT( * ) * + COUNT( * ) FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL 2 + - + COUNT ( * ) * + COUNT ( * ) FROM tab1
----
-7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( NOT NULL IS NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9770
SELECT DISTINCT - CAST( col2 AS SIGNED ) + - 10 AS col1 FROM tab0
----
-109
-20
-57

skipif mysql # not compatible
query I rowsort label-9770
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + - 10 AS col1 FROM tab0
----
-109
-20
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT DISTINCT + - SUM( ALL - + col1 ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9771
SELECT DISTINCT + - SUM ( ALL - + col1 ) AS col2 FROM tab1 AS cor0
----
66

query I rowsort
SELECT ALL ( - 8 ) FROM tab0 AS cor0
----
-8
-8
-8

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 AS cor0 WHERE NOT col2 * - col0 IS NULL
----
1
21
81

query I rowsort
SELECT - 29 + col2 FROM tab0 AS cor0
----
-19
18
70

query II rowsort
SELECT 27 + - col1, + col2 AS col0 FROM tab1
----
-20
68
13
96
22
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query II rowsort
SELECT ALL - ( + + col2 ) + + col1 + + 68 AS col2, - col0 AS col2 FROM tab2 AS cor0
----
105
-64
77
-75
96
-46

query I rowsort
SELECT DISTINCT 70 - + col2 FROM tab1 AS cor0
----
-26
11
2

query I rowsort
SELECT - + col0 - col1 - + + 93 + col2 FROM tab1 cor0
----
-124
-163
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-9780
SELECT ALL - + 85 AS col0, - COUNT( col2 ) AS col1 FROM tab2 AS cor0
----
-85
-3

skipif mysql # not compatible
query II rowsort label-9780
SELECT ALL - + 85 AS col0, - COUNT ( col2 ) AS col1 FROM tab2 AS cor0
----
-85
-3

query I rowsort
SELECT DISTINCT 46 AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-9782
SELECT + 60 + - - 11 + ( 13 ) DIV - 5 - + - col2 + - col2 + col2 * + col1 + col0 + - col2 * ( + col0 ) FROM tab2 AS cor0
----
-320
230
653

skipif mysql # not compatible
query I rowsort label-9782
SELECT + 60 + - - 11 + ( 13 ) / - 5 - + - col2 + - col2 + col2 * + col1 + col0 + - col2 * ( + col0 ) FROM tab2 AS cor0
----
-320
230
653

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT ALL ( + MIN( - - col0 ) ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9783
SELECT ALL ( + MIN ( - - col0 ) ) AS col1 FROM tab2 AS cor0
----
46

query III rowsort
SELECT * FROM tab1 WHERE 61 < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + 4 AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9786
SELECT DISTINCT - 54 - + + CAST( NULL AS SIGNED ) - + col2 col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9786
SELECT DISTINCT - 54 - + + CAST ( NULL AS INTEGER ) - + col2 col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + 19 * - col1 * + col0 + - col2 FROM tab2
----
-44597
-93672
-95533

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9788
SELECT - CAST( - COUNT( + col1 ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9788
SELECT - CAST ( - COUNT ( + col1 ) AS INTEGER ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT ALL - SUM( DISTINCT - ( + col2 ) ) AS col1 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-9789
SELECT ALL - SUM ( DISTINCT - ( + col2 ) ) AS col1 FROM tab1 cor0
----
223

query II rowsort
SELECT - 16, 24 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to f7eac9e6b1d3d6dbfbdd56f8559f304b

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT - 68 * - SUM( + col2 ) * + COUNT( * ) AS col2 FROM tab1
----
45492

skipif mysql # not compatible
query I rowsort label-9791
SELECT - 68 * - SUM ( + col2 ) * + COUNT ( * ) AS col2 FROM tab1
----
45492

query I rowsort
SELECT ALL - + 77 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT col0 * - 72 + + col2 * 47 AS col0 FROM tab2 AS cor0
----
-2231
-2674
-2728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 90 col1, col2 AS col1 FROM tab1 AS cor0
----
90
59
90
68
90
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, + col0 col1 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <= + col1 + - col2 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT + + COUNT( + 58 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9797
SELECT + + COUNT ( + 58 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + ( - 99 ) AS col0 FROM tab1 AS cor0
----
-99
-99
-99

query I rowsort
SELECT ALL + col1 * + 24 AS col2 FROM tab2 AS cor0
----
1224
1608
1848

query II rowsort
SELECT ALL 56 AS col2, - 79 FROM tab1 AS cor0 WHERE col1 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9801
SELECT DISTINCT + 68 DIV - - COUNT( * ) FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-9801
SELECT DISTINCT + 68 / - - COUNT ( * ) FROM tab1 AS cor0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9802
SELECT DISTINCT + COUNT( + col0 ) + COUNT( * ) + 28 * CAST( NULL AS SIGNED ) * + + ( + 50 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9802
SELECT DISTINCT + COUNT ( + col0 ) + COUNT ( * ) + 28 * CAST ( NULL AS INTEGER ) * + + ( + 50 ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT - 99 * + col2 FROM tab1
----
-5841
-6732
-9504

query I rowsort
SELECT + 66 * + + 38 AS col0 FROM tab2
----
2508
2508
2508

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 / - col1 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 col2 FROM tab0 AS cor0 WHERE 70 NOT BETWEEN + 33 * - + 86 * - 12 * - - col1 AND + + 75 * - col1
----
1
441
6561

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT DISTINCT SUM( - col0 ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
597

skipif mysql # not compatible
query I rowsort label-9808
SELECT DISTINCT SUM ( - col0 ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
597

query I rowsort
SELECT DISTINCT - 56 * + col1 + 39 FROM tab0
----
-1137
-17
-4497

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < - - 70
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9811
SELECT ALL + + CAST( NULL AS SIGNED ) + 60 * + + 12 * col1 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-9811
SELECT ALL + + CAST ( NULL AS INTEGER ) + 60 * + + 12 * col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 cor0 WHERE + ( + col1 ) IS NULL
----

query I rowsort
SELECT ALL col2 - + col2 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT ALL COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9814
SELECT ALL COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT DISTINCT - MAX( DISTINCT + - col0 ) - + - COUNT( * ) + + 44 FROM tab2 cor0
----
93

skipif mysql # not compatible
query I rowsort label-9815
SELECT DISTINCT - MAX ( DISTINCT + - col0 ) - + - COUNT ( * ) + + 44 FROM tab2 cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT DISTINCT + COUNT( + + col2 ) - 64 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-9816
SELECT DISTINCT + COUNT ( + + col2 ) - 64 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9817
SELECT ALL MAX( DISTINCT col0 ) DIV COUNT( * ) AS col1 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL MAX ( DISTINCT col0 ) / COUNT ( * ) AS col1 FROM tab0
----
32

query I rowsort
SELECT ALL + 20 + + + col1 - + col1 AS col0 FROM tab2
----
20
20
20

query I rowsort
SELECT 18 * col2 AS col1 FROM tab0
----
1782
180
846

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT DISTINCT - SUM( ALL - col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-9820
SELECT DISTINCT - SUM ( ALL - col1 ) AS col2 FROM tab0
----
103

query I rowsort
SELECT + ( 68 ) AS col0 FROM tab0
----
68
68
68

query I rowsort
SELECT ALL - ( col0 ) AS col2 FROM tab2 WHERE + - 27 IN ( + - col0 )
----

query II rowsort
SELECT DISTINCT - - 8, 83 - + - col1 AS col1 FROM tab2 AS cor0
----
8
134
8
150
8
160

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 36 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 64 col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT + - 40 * - MIN( - col1 ) FROM tab1 AS cor0
----
-1880

skipif mysql # not compatible
query I rowsort label-9826
SELECT + - 40 * - MIN ( - col1 ) FROM tab1 AS cor0
----
-1880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9827
SELECT DISTINCT col1 AS col0 FROM tab1 cor0 WHERE NOT - CAST( - - 96 AS SIGNED ) / + col2 IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9827
SELECT DISTINCT col1 AS col0 FROM tab1 cor0 WHERE NOT - CAST ( - - 96 AS INTEGER ) / + col2 IS NULL
----
14
47
5

query I rowsort
SELECT + ( - 48 ) FROM tab2
----
-48
-48
-48

query II rowsort
SELECT DISTINCT 44, col1 FROM tab2
----
44
51
44
67
44
77

query I rowsort
SELECT - col1 + + + col1 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT DISTINCT - COUNT( * ) * - 2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9831
SELECT DISTINCT - COUNT ( * ) * - 2 FROM tab1
----
6

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT col2 >= + col0
----
-59
-68

query I rowsort
SELECT ALL + ( + + col2 ) * + + 70 - + - col0 FROM tab0 AS cor0
----
3305
7027
787

query I rowsort
SELECT ALL col0 * ( col1 ) * - - col0 - - 47 + - - ( + + col0 ) AS col2 FROM tab2 AS cor0
----
108009
315503
376997

query I rowsort
SELECT ALL ( + + col2 ) + + - col1 FROM tab1
----
21
54
82

onlyif mysql # aggregate syntax: 
query II rowsort label-9836
SELECT + 14 + + 64, + COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
78
9

skipif mysql # not compatible
query II rowsort label-9836
SELECT + 14 + + 64, + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
78
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9837
SELECT DISTINCT CAST( - CAST( 0 AS SIGNED ) AS SIGNED ) + + - COUNT( * ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9837
SELECT DISTINCT CAST ( - CAST ( 0 AS INTEGER ) AS INTEGER ) + + - COUNT ( * ) col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + ( - - 11 ) * + col0 - + col0 AS col1 FROM tab2 AS cor0
----
460
640
750

query I rowsort
SELECT DISTINCT + 86 - col0 * col1 - col1 FROM tab0 AS cor0
----
-12
-1210
-1762

query I rowsort
SELECT - col1 - 58 AS col2 FROM tab0 AS cor0
----
-139
-59
-79

query I rowsort
SELECT DISTINCT - ( 77 ) AS col0 FROM tab0 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT + - 81 + COUNT( * ) FROM tab1 cor0
----
-78

skipif mysql # not compatible
query I rowsort label-9842
SELECT + - 81 + COUNT ( * ) FROM tab1 cor0
----
-78

query I rowsort
SELECT DISTINCT - - col0 * col1 * - 87 AS col2 FROM tab0 AS cor0
----
-105705
-158949
-8439

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT DISTINCT COUNT( * ) * + + 1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9844
SELECT DISTINCT COUNT ( * ) * + + 1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9845
SELECT + CAST( NULL AS SIGNED ) * ( - 55 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9845
SELECT + CAST ( NULL AS INTEGER ) * ( - 55 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 16 AS col0 FROM tab2 AS cor0
----
16
16
16

query I rowsort
SELECT DISTINCT - ( + - 19 ) AS col2 FROM tab1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9848
SELECT CAST( ( + - COUNT( ALL 82 ) ) AS SIGNED ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9848
SELECT CAST ( ( + - COUNT ( ALL 82 ) ) AS INTEGER ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NOT NULL >= + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9850
SELECT ALL + 9 DIV - - 26 * COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL + 9 / - - 26 * COUNT ( * ) FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9851
SELECT 97 DIV + COUNT( - 7 ) AS col0 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-9851
SELECT 97 / + COUNT ( - 7 ) AS col0 FROM tab1
----
32

query II rowsort
SELECT ( + 73 ) AS col1, 1 FROM tab0 AS cor0
----
73
1
73
1
73
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT + - COUNT( * ) + - - COUNT( * ) AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9853
SELECT + - COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9854
SELECT DISTINCT CAST( + 46 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9854
SELECT DISTINCT CAST ( + 46 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT ALL + - MIN( DISTINCT - col1 ) AS col1 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL + - MIN ( DISTINCT - col1 ) AS col1 FROM tab1 cor0
----
47

query I rowsort
SELECT DISTINCT - col2 + + ( + 40 ) FROM tab1
----
-19
-28
-56

query II rowsort
SELECT DISTINCT - col2 * 67, + col1 AS col1 FROM tab0
----
-3149
81
-6633
1
-670
21

query II rowsort
SELECT DISTINCT col0 - + 73 AS col1, - col2 + + col2 FROM tab2
----
-27
0
-9
0
2
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 / col2 <= NULL
----

query I rowsort
SELECT + ( + - 92 ) AS col2 FROM tab0 AS cor0
----
-92
-92
-92

query I rowsort
SELECT 88 + - 67 + - - col1 FROM tab2
----
72
88
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9862
SELECT ALL + + CAST( - 19 AS SIGNED ) + 42 AS col2 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL + + CAST ( - 19 AS INTEGER ) + 42 AS col2 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT ALL SUM( - 51 ) AS col2 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-9863
SELECT ALL SUM ( - 51 ) AS col2 FROM tab1 AS cor0
----
-153

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 48 + - col0 + col2 + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT ALL + + MIN( ( + 82 ) ) FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL + + MIN ( ( + 82 ) ) FROM tab1 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT + ( - + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9866
SELECT + ( - + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9867
SELECT ALL - CAST( NULL AS SIGNED ) * - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL - CAST ( NULL AS INTEGER ) * - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT + - SUM( + + col2 ) AS col1 FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-9868
SELECT + - SUM ( + + col2 ) AS col1 FROM tab2 cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT - + 65 * - ( COUNT( * ) ) * - 67 col0 FROM tab1 AS cor0
----
-13065

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9869
SELECT - + 65 * - ( COUNT ( * ) ) * - 67 col0 FROM tab1 AS cor0
----
-13065

onlyif mysql # DIV for integer division: 
query I rowsort label-9870
SELECT ALL + col2 * 22 DIV 96 AS col0 FROM tab2
----
13
5
9

skipif mysql # not compatible
query I rowsort label-9870
SELECT ALL + col2 * 22 / 96 AS col0 FROM tab2
----
13
5
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT DISTINCT + MAX( - + col1 ) * - COUNT( * ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9871
SELECT DISTINCT + MAX ( - + col1 ) * - COUNT ( * ) col1 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9872
SELECT DISTINCT - 48 DIV - col0 AS col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-9872
SELECT DISTINCT - 48 / - col0 AS col0 FROM tab2
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9873
SELECT + + col1 + + col1 DIV - col0 FROM tab2 AS cor0
----
50
67
76

skipif mysql # not compatible
query I rowsort label-9873
SELECT + + col1 + + col1 / - col0 FROM tab2 AS cor0
----
50
67
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9874
SELECT ALL - COUNT( + ( - - CAST( col0 AS SIGNED ) ) ) * - 65 * + + 27 AS col1 FROM tab1 AS cor0
----
5265

skipif mysql # not compatible
query I rowsort label-9874
SELECT ALL - COUNT ( + ( - - CAST ( col0 AS INTEGER ) ) ) * - 65 * + + 27 AS col1 FROM tab1 AS cor0
----
5265

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT - + MIN( ALL + 26 ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9875
SELECT - + MIN ( ALL + 26 ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-26

query I rowsort
SELECT DISTINCT - 9 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9877
SELECT + 63 + - 97 + 32 + + - col1 * - col0 DIV col0 - + col2 + + col1 AS col2 FROM tab1
----
-51
-70
24

skipif mysql # not compatible
query I rowsort label-9877
SELECT + 63 + - 97 + 32 + + - col1 * - col0 / col0 - + col2 + + col1 AS col2 FROM tab1
----
-51
-70
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT DISTINCT COUNT( DISTINCT 69 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9878
SELECT DISTINCT COUNT ( DISTINCT 69 ) FROM tab0
----
1

query I rowsort
SELECT DISTINCT - 34 * col2 + + 54 * - - col0 FROM tab1
----
-510
2584
2602

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + 28 * - col0 + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9881
SELECT - - 69 DIV + + col1 FROM tab1 cor0
----
1
13
4

skipif mysql # not compatible
query I rowsort label-9881
SELECT - - 69 / + + col1 FROM tab1 cor0
----
1
13
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 14 col0 FROM tab1 cor0
----
-14
-14
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9883
SELECT ALL CAST( NULL AS SIGNED ) + + col0 + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9883
SELECT ALL CAST ( NULL AS INTEGER ) + + col0 + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9884
SELECT - 80 DIV - COUNT( ALL - + col0 ) AS col1 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-9884
SELECT - 80 / - COUNT ( ALL - + col0 ) AS col1 FROM tab0 AS cor0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9885
SELECT - + 77 / - CAST( NULL AS SIGNED ) * + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9885
SELECT - + 77 / - CAST ( NULL AS INTEGER ) * + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * col2 + - + col2 FROM tab2
----
-1640
-3422
-552

query I rowsort
SELECT DISTINCT - 15 - 79 FROM tab1
----
-94

query I rowsort
SELECT col1 + - 2 AS col1 FROM tab1
----
12
3
45

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - + col2 * - + col2 AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9890
SELECT col2 * col1 + 65 DIV 20 AS col1 FROM tab0
----
102
213
3810

skipif mysql # not compatible
query I rowsort label-9890
SELECT col2 * col1 + 65 / 20 AS col1 FROM tab0
----
102
213
3810

onlyif mysql # DIV for integer division: 
query I rowsort label-9891
SELECT 46 DIV - col2 AS col2 FROM tab0 AS cor0 WHERE ( ( NOT col2 IN ( + + col0, + 79 ) ) )
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-9891
SELECT 46 / - col2 AS col2 FROM tab0 AS cor0 WHERE ( ( NOT col2 IN ( + + col0, + 79 ) ) )
----
-4
0
0

query II rowsort
SELECT DISTINCT - - 31 AS col0, + ( - - col2 ) AS col2 FROM tab0 AS cor0
----
31
10
31
47
31
99

query I rowsort
SELECT 97 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT DISTINCT SUM( - + col1 ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-9894
SELECT DISTINCT SUM ( - + col1 ) AS col1 FROM tab2
----
-195

query I rowsort
SELECT DISTINCT + + 52 AS col1 FROM tab2 AS cor0
----
52

query I rowsort
SELECT DISTINCT - col0 * + - ( - + col2 ) AS col1 FROM tab1 cor0
----
-4896
-5015
-6188

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT 7 + col0 >= col0 + - + 9
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9898
SELECT DISTINCT + - 69 DIV col1 FROM tab0 AS cor0
----
-3
-69
0

skipif mysql # not compatible
query I rowsort label-9898
SELECT DISTINCT + - 69 / col1 FROM tab0 AS cor0
----
-3
-69
0

query II rowsort
SELECT col2 AS col0, col1 AS col2 FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT DISTINCT 26 * col1 * - ( col2 ) AS col2 FROM tab2
----
-101036
-30498
-80080

query II rowsort
SELECT 17, col1 AS col2 FROM tab1
----
17
14
17
47
17
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT ALL COUNT( * ) col2 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9902
SELECT ALL COUNT ( * ) col2 FROM tab0, tab1 AS cor0
----
9

query II rowsort
SELECT ALL - 69, 12 AS col1 FROM tab1
----
-69
12
-69
12
-69
12

query I rowsort
SELECT 13 * - 79 * - col2 FROM tab1
----
60593
69836
98592

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 42 = + col2
----

query I rowsort
SELECT DISTINCT + col2 + 92 FROM tab2 AS cor0
----
115
132
150

query I rowsort
SELECT col0 FROM tab1 WHERE NOT NULL < + 96
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col0 + + 46 ) <= ( - 72 ) * - col2
----

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9910
SELECT ALL + 79 - col1 DIV + 93 AS col1 FROM tab1
----
79
79
79

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL + 79 - col1 / + 93 AS col1 FROM tab1
----
79
79
79

query I rowsort
SELECT ALL - col1 + - 23 * - 11 FROM tab0
----
172
232
252

query III rowsort
SELECT * FROM tab1 WHERE ( 89 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( col0 + + col2 )
----

query I rowsort
SELECT + 72 * + 51 FROM tab0
----
3672
3672
3672

query I rowsort
SELECT + col1 * - 96 + col0 FROM tab2
----
-4850
-6357
-7328

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT + 78 + + COUNT( * ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9916
SELECT + 78 + + COUNT ( * ) AS col0 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT ALL COUNT( * ) * MAX( col1 ) AS col0 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL COUNT ( * ) * MAX ( col1 ) AS col0 FROM tab2
----
231

query I rowsort
SELECT DISTINCT - 60 AS col1 FROM tab1 WHERE - 51 + - col2 IS NULL
----

query I rowsort
SELECT 73 * - 83 AS col1 FROM tab0
----
-6059
-6059
-6059

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 15 * col1 NOT IN ( - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <> - col2 - col2
----

query I rowsort
SELECT DISTINCT 55 * ( - col2 ) FROM tab2
----
-1265
-2200
-3190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - col1 * + col2 col1 FROM tab0
----
123
2
3792

query I rowsort
SELECT - col0 - 27 AS col0 FROM tab2 AS cor0
----
-102
-73
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9926
SELECT col2 DIV - col1 - + ( + 30 ) * 36 AS col0 FROM tab2 AS cor0
----
-1080
-1080
-1080

skipif mysql # not compatible
query I rowsort label-9926
SELECT col2 / - col1 - + ( + 30 ) * 36 AS col0 FROM tab2 AS cor0
----
-1080
-1080
-1080

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( 97 ) BETWEEN + 23 AND ( 6 / ( + col1 * - 78 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 5 AS col1 FROM tab0 AS cor0 WHERE 9 * col2 > + col0
----
5
5
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * col1 NOT BETWEEN ( col0 ) AND ( NULL )
----

query I rowsort
SELECT + 37 * + ( - 66 ) FROM tab0
----
-2442
-2442
-2442

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9931
SELECT - - CAST( - ( 87 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-87
-87
-87

skipif mysql # not compatible
query I rowsort label-9931
SELECT - - CAST ( - ( 87 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-87
-87
-87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT ALL COUNT( * ) + - COUNT( DISTINCT + 74 ) AS col0 FROM tab1 AS cor0 WHERE ( col1 ) IS NOT NULL
----
2

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL COUNT ( * ) + - COUNT ( DISTINCT + 74 ) AS col0 FROM tab1 AS cor0 WHERE ( col1 ) IS NOT NULL
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9934
SELECT ALL ( - 39 ) * - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( + 24 ) + CAST( 48 AS SIGNED ) IN ( 84 )
----
0

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL ( - 39 ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( + 24 ) + CAST ( 48 AS INTEGER ) IN ( 84 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT ALL + COUNT( * ) * + MIN( col0 ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-9935
SELECT ALL + COUNT ( * ) * + MIN ( col0 ) FROM tab0 AS cor0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 col2 FROM tab1 AS cor0 WHERE NOT - 86 NOT IN ( col2 + col1 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT + COUNT( * ) * + ( + COUNT( * ) ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9937
SELECT + COUNT ( * ) * + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT ALL COUNT( * ) * COUNT( * ) col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9938
SELECT ALL COUNT ( * ) * COUNT ( * ) col1 FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT + col1 + col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9940
SELECT SUM( col2 ) * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9940
SELECT SUM ( col2 ) * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 IN ( + 0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 99 >= ( NULL )
----

query I rowsort
SELECT ALL col0 * col1 * ( col2 * col1 ) AS col2 FROM tab1
----
125375
13669292
959616

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 * - col0 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT 55 FROM tab2 WHERE NOT ( 65 ) IN ( col2 )
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-9946
SELECT + col0 DIV + + 88 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9946
SELECT + col0 / + + 88 AS col1 FROM tab1
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9947
SELECT ALL 47 DIV - col0 + + col1 FROM tab0 AS cor0
----
1
21
78

skipif mysql # not compatible
query I rowsort label-9947
SELECT ALL 47 / - col0 + + col1 FROM tab0 AS cor0
----
1
21
78

query I rowsort
SELECT DISTINCT - 6 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-6

query I rowsort
SELECT 58 * - - 87 * + 91 FROM tab2
----
459186
459186
459186

query I rowsort
SELECT DISTINCT 32 * - - 60 * + ( + col2 ) * col1 FROM tab0 AS cor0
----
190080
403200
7309440

query I rowsort
SELECT - ( - ( - col2 ) ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9952
SELECT - + col1 - + 8 DIV + - col1 + ( col0 ) AS col2 FROM tab1 AS cor0
----
37
44
81

skipif mysql # not compatible
query I rowsort label-9952
SELECT - + col1 - + 8 / + - col1 + ( col0 ) AS col2 FROM tab1 AS cor0
----
37
44
81

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( col0 * col1 ) IS NOT NULL
----

query I rowsort
SELECT - + 38 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + 90 + + 45 * col1 - col1 AS col2 FROM tab1
----
2158
310
706

query I rowsort
SELECT DISTINCT 36 * 78 + + 36 FROM tab0
----
2844

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9957
SELECT col0 * ( + CAST( NULL AS SIGNED ) ) * - - col1 + - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9957
SELECT col0 * ( + CAST ( NULL AS INTEGER ) ) * - - col1 + - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9958
SELECT ALL col2 DIV - 90 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9958
SELECT ALL col2 / - 90 FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL - 67 * - col1 + + + 70 AS col1 FROM tab2
----
3487
4559
5229

query I rowsort
SELECT ALL col1 * - 71 + + col2 AS col0 FROM tab2
----
-3598
-4699
-5427

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT DISTINCT - ( - - ( MAX( col2 ) ) ) + + ( 97 + + 93 ) * COUNT( * ) FROM tab1
----
474

skipif mysql # not compatible
query I rowsort label-9961
SELECT DISTINCT - ( - - ( MAX ( col2 ) ) ) + + ( 97 + + 93 ) * COUNT ( * ) FROM tab1
----
474

query I rowsort
SELECT ALL + col1 + + col1 * 94 FROM tab2
----
4845
6365
7315

query I rowsort
SELECT DISTINCT col0 + - + 42 FROM tab0
----
-27
45
55

query I rowsort
SELECT + col2 * - 86 FROM tab1 WHERE + + 3 + + ( col2 ) = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> + 95 - + + col1 * col0
----

query I rowsort
SELECT DISTINCT + col1 * - 59 FROM tab0 AS cor0 WHERE NOT ( + 89 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT COUNT( * ) * + 97 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col0 * - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9967
SELECT COUNT ( * ) * + 97 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col0 * - col1 )
----
0

query I rowsort
SELECT 16 * - - col1 AS col0 FROM tab0
----
1296
16
336

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9969
SELECT * FROM tab1 cor0 WHERE NOT NULL > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9969
SELECT * FROM tab1 cor0 WHERE NOT NULL > CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 60 * + - 65 FROM tab2 AS cor0
----
3900
3900
3900

onlyif mysql # DIV for integer division: 
query I rowsort label-9971
SELECT col1 DIV + + 31 + + 73 AS col1 FROM tab0 cor0
----
73
73
75

skipif mysql # not compatible
query I rowsort label-9971
SELECT col1 / + + 31 + + 73 AS col1 FROM tab0 cor0
----
73
73
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9972
SELECT + col1 * - + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9972
SELECT + col1 * - + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9973
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9973
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT 30 FROM tab0 AS cor0 WHERE NOT - 98 IS NULL
----
30
30
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9975
SELECT ALL col0 + + col1 + CAST( + col0 AS SIGNED ) FROM tab2
----
143
205
217

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL col0 + + col1 + CAST ( + col0 AS INTEGER ) FROM tab2
----
143
205
217

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 76 col1 FROM tab1 WHERE NOT - 79 * + col0 NOT BETWEEN + col2 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col2 BETWEEN - col0 AND NULL
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT ALL MAX( - - 44 ) AS col2 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL MAX ( - - 44 ) AS col2 FROM tab2
----
44

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( + col1 )
----

query I rowsort
SELECT ALL 5 + 58 * + 24 FROM tab1
----
1397
1397
1397

query III rowsort
SELECT * FROM tab1 WHERE + col2 IS NOT NULL AND NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( + - col2 ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9983
SELECT DISTINCT ( - col2 ) * + 23 + + col2 DIV 10 AS col0 FROM tab0 cor0
----
-1077
-2268
-229

skipif mysql # not compatible
query I rowsort label-9983
SELECT DISTINCT ( - col2 ) * + 23 + + col2 / 10 AS col0 FROM tab0 cor0
----
-1077
-2268
-229

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 92 * - col0 NOT BETWEEN - + 66 AND ( NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9985
SELECT - + col1 + - CAST( NULL AS SIGNED ), 96 col1 FROM tab0 AS cor0
----
NULL
96
NULL
96
NULL
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9985
SELECT - + col1 + - CAST ( NULL AS INTEGER ), 96 col1 FROM tab0 AS cor0
----
NULL
96
NULL
96
NULL
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( - col2 ) > NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9987
SELECT DISTINCT - col0 * - CAST( - col0 AS SIGNED ) - col2 AS col0 FROM tab1 AS cor0
----
-2697
-7284
-8349

skipif mysql # not compatible
query I rowsort label-9987
SELECT DISTINCT - col0 * - CAST ( - col0 AS INTEGER ) - col2 AS col0 FROM tab1 AS cor0
----
-2697
-7284
-8349

query I rowsort
SELECT 41 FROM tab2 AS cor0 WHERE NULL IS NULL
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT ALL - - 52 * + + MIN( + + col1 ) - - - SUM( - col0 ) * 16 AS col1 FROM tab0 AS cor0
----
3236

skipif mysql # not compatible
query I rowsort label-9989
SELECT ALL - - 52 * + + MIN ( + + col1 ) - - - SUM ( - col0 ) * 16 AS col1 FROM tab0 AS cor0
----
3236

query I rowsort
SELECT + + ( col0 ) * + col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT ALL MIN( ALL - 67 ) AS col2 FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-9991
SELECT ALL MIN ( ALL - 67 ) AS col2 FROM tab2 AS cor0
----
-67

query I rowsort
SELECT ALL - 99 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 33, col1 * + + ( - 93 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9993
SELECT DISTINCT - COUNT( * ) AS col2, 54 AS col2 FROM tab1
----
-3
54

skipif mysql # not compatible
query II rowsort label-9993
SELECT DISTINCT - COUNT ( * ) AS col2, 54 AS col2 FROM tab1
----
-3
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT + COUNT( * ) * 43 AS col2 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-9994
SELECT + COUNT ( * ) * 43 AS col2 FROM tab2
----
129

query I rowsort
SELECT + col1 * - 71 FROM tab1
----
-3337
-355
-994

query I rowsort
SELECT ALL - 12 - + - col1 AS col1 FROM tab2
----
39
55
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9997
SELECT ALL + 43 / - + ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL + 43 / - + ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, - col2 AS col1 FROM tab2 cor0
----
-46
-23
-64
-40
-75
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9999
SELECT ALL * FROM tab1 AS cor0 WHERE col2 NOT IN ( 97 * + - col2, + ( 74 ) * + CAST( NULL AS SIGNED ) + 16 )
----

skipif mysql # not compatible
query III rowsort label-9999
SELECT ALL * FROM tab1 AS cor0 WHERE col2 NOT IN ( 97 * + - col2, + ( 74 ) * + CAST ( NULL AS INTEGER ) + 16 )
----

