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 ALL * FROM tab2 AS cor0 WHERE col0 > - 66
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1
SELECT CAST ( - COUNT ( * ) AS INTEGER ) col2 FROM tab1 cor0
----
-3

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

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

query I rowsort
SELECT DISTINCT + 64 AS col1 FROM tab1 AS cor0 WHERE NOT 86 BETWEEN ( NULL ) AND NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7
SELECT ALL 82 * + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE + 53 - col1 <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL 82 * + - CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE + 53 - col1 <= + CAST ( NULL AS INTEGER )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-10
SELECT ( + 23 ) DIV + col1 - 56 AS col0 FROM tab1
----
-52
-55
-56

skipif mysql # not compatible
query I rowsort label-10
SELECT ( + 23 ) / + col1 - 56 AS col0 FROM tab1
----
-52
-55
-56

query I rowsort
SELECT + + col0 AS col2 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - 63 AND NOT NULL <= 92
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-13
SELECT ALL - 50 * CAST( - - 83 AS SIGNED ) * - col1 * + + 27, col2 * - 16 AS col1 FROM tab1
----
1568700
-1536
5266350
-1088
560250
-944

skipif mysql # not compatible
query II rowsort label-13
SELECT ALL - 50 * CAST ( - - 83 AS INTEGER ) * - col1 * + + 27, col2 * - 16 AS col1 FROM tab1
----
1568700
-1536
5266350
-1088
560250
-944

query I rowsort
SELECT DISTINCT 59 * 54 * + - col1 AS col1 FROM tab0 cor0
----
-258066
-3186
-66906

query II rowsort
SELECT + col2, 28 + - col0 FROM tab0
----
10
-59
47
13
99
-69

query I rowsort
SELECT + 25 + - 65 FROM tab0 WHERE NOT 78 < NULL
----

query II rowsort
SELECT DISTINCT - 91 * - col2 * - col2 AS col0, 19 FROM tab2 AS cor0
----
-145600
19
-306124
19
-48139
19

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

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

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

query I rowsort
SELECT DISTINCT + 98 * col0 AS col0 FROM tab1 AS cor0
----
4998
8330
8918

query II rowsort
SELECT col1, - 48 AS col2 FROM tab2
----
51
-48
67
-48
77
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT + MAX( 34 ) AS col1 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-22
SELECT + MAX ( 34 ) AS col1 FROM tab0
----
34

query I rowsort
SELECT col2 * - col0 AS col0 FROM tab0 WHERE NOT + col0 + col0 BETWEEN + 92 * - 45 AND NULL
----

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

query I rowsort
SELECT + - 54 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query II rowsort
SELECT 30 AS col1, col2 FROM tab2 AS cor0 WHERE ( - col2 NOT BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col0 / + col0 + + 90 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-27
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col0 / + col0 + + 90 IS NOT NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT ALL 9 + + MAX( - + col1 ) FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-29
SELECT ALL 9 + + MAX ( - + col1 ) FROM tab2 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT DISTINCT MAX( ALL - + 57 ) + + + 18 + - 38 FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-30
SELECT DISTINCT MAX ( ALL - + 57 ) + + + 18 + - 38 FROM tab1 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT DISTINCT 21 + COUNT( * ) AS col1 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-31
SELECT DISTINCT 21 + COUNT ( * ) AS col1 FROM tab0
----
24

query I rowsort
SELECT DISTINCT - 23 - - + 45 AS col2 FROM tab1
----
22

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

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT MIN( DISTINCT + - ( col2 ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-34
SELECT MIN ( DISTINCT + - ( col2 ) ) FROM tab0
----
-99

query I rowsort
SELECT DISTINCT ( + - col1 ) - ( + col2 ) FROM tab1
----
-110
-115
-64

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

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

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

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

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

query I rowsort
SELECT + 80 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 + col1 > - - col1
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-45
SELECT - MIN ( DISTINCT ( 64 ) ) FROM tab0 AS cor0
----
-64

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 * - - col0 * - + col0 * - 67 IS NULL
----

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

skipif mysql # not compatible
query III rowsort label-47
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NULL
----

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

query I rowsort
SELECT DISTINCT col0 * + 42 AS col1 FROM tab0
----
3654
4074
630

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT ALL 38 * + MAX( - col1 ) + - COUNT( * ) FROM tab2 AS cor0
----
-1941

skipif mysql # not compatible
query I rowsort label-51
SELECT ALL 38 * + MAX ( - col1 ) + - COUNT ( * ) FROM tab2 AS cor0
----
-1941

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 16 * col2 col2 FROM tab2 AS cor0
----
391
680
986

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT MAX( + 80 ) + - + MAX( 31 ) AS col1 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-53
SELECT MAX ( + 80 ) + - + MAX ( 31 ) AS col1 FROM tab0 AS cor0
----
49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND 83
----

query I rowsort
SELECT - 13 + - + 54 * + col0 FROM tab0
----
-4711
-5251
-823

query I rowsort
SELECT col1 + + col1 * 20 + - 6 AS col1 FROM tab2
----
1065
1401
1611

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

query II rowsort
SELECT DISTINCT - 12, ( col2 ) * 8 AS col1 FROM tab2 AS cor0
----
-12
184
-12
320
-12
464

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-60
SELECT ALL CAST( - AVG ( ALL col2 ) AS SIGNED ) + - 44 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-60
SELECT ALL CAST ( - AVG ( ALL col2 ) AS INTEGER ) + - 44 FROM tab2 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT ALL COUNT( * ) + - - 32 col0 FROM tab1
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-61
SELECT ALL COUNT ( * ) + - - 32 col0 FROM tab1
----
35

query I rowsort
SELECT DISTINCT - col2 - - - col0 FROM tab0
----
-196
-62
-97

query I rowsort
SELECT col2 * + + col0 + + + ( ( + 92 ) ) AS col2 FROM tab0
----
797
962
9695

query I rowsort
SELECT DISTINCT col0 - - col0 * - col2 AS col2 FROM tab2
----
-1012
-2496
-4275

query I rowsort
SELECT + col1 * - - 92 + col1 FROM tab2
----
4743
6231
7161

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT + MAX( ALL 42 ) * - 21 col2 FROM tab0 WHERE + col2 * col0 + col1 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-66
SELECT + MAX ( ALL 42 ) * - 21 col2 FROM tab0 WHERE + col2 * col0 + col1 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 - col2 + - + col1 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-68
SELECT ALL - 96 - col0 + col0 DIV + - ( - col1 ) FROM tab0 AS cor0
----
-111
-179
-96

skipif mysql # not compatible
query I rowsort label-68
SELECT ALL - 96 - col0 + col0 / + - ( - col1 ) FROM tab0 AS cor0
----
-111
-179
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-69
SELECT ( + col1 ) AS col2, 80 * col1 DIV - - 44 col1 FROM tab0 AS cor0
----
1
1
21
38
81
147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-69
SELECT ( + col1 ) AS col2, 80 * col1 / - - 44 col1 FROM tab0 AS cor0
----
1
1
21
38
81
147

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

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

query II rowsort
SELECT ALL - 72, + col0 FROM tab1 AS cor0
----
-72
51
-72
85
-72
91

query I rowsort
SELECT + 65 * + col0 FROM tab0 AS cor0
----
5655
6305
975

onlyif mysql # DIV for integer division: 
query I rowsort label-73
SELECT ALL col1 DIV + col0 AS col2 FROM tab0 AS cor0 WHERE ( - + 86 IS NOT NULL )
----
0
0
5

skipif mysql # not compatible
query I rowsort label-73
SELECT ALL col1 / + col0 AS col2 FROM tab0 AS cor0 WHERE ( - + 86 IS NOT NULL )
----
0
0
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-74
SELECT DISTINCT - + CAST( - ( - + col1 ) AS SIGNED ) col0, CAST( + 28 AS SIGNED ) FROM tab0 AS cor0
----
-1
28
-21
28
-81
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-74
SELECT DISTINCT - + CAST ( - ( - + col1 ) AS INTEGER ) col0, CAST ( + 28 AS INTEGER ) FROM tab0 AS cor0
----
-1
28
-21
28
-81
28

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

query I rowsort
SELECT ALL 78 FROM tab2 AS cor0 WHERE 90 * + ( - - col2 ) + col1 IS NOT NULL
----
78
78
78

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

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

query I rowsort
SELECT ALL + 73 * - col1 * + col0 AS col2 FROM tab1 AS cor0
----
-31025
-312221
-52122

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

query I rowsort
SELECT - col0 * + - col1 * + col0 - + + 59 * + col1 FROM tab1 cor0
----
35588
35830
386434

query I rowsort
SELECT - + col2 * + + 49 FROM tab0 AS cor0
----
-2303
-4851
-490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-82
SELECT ALL - 4 * - MAX( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-82
SELECT ALL - 4 * - MAX ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 + 4 AS col1 FROM tab0
----
103
14
51

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

query II rowsort
SELECT col0 + + - 9 AS col1, - 85 FROM tab0
----
6
-85
78
-85
88
-85

query III rowsort
SELECT ALL * FROM tab2 WHERE - 64 IS NULL
----

query II rowsort
SELECT ALL - col2 + + 48, col2 FROM tab2 AS cor0
----
-10
58
25
23
8
40

query I rowsort
SELECT ALL col1 + 94 FROM tab1
----
108
141
99

query I rowsort
SELECT ALL + + 31 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

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

query I rowsort
SELECT DISTINCT ( + 67 ) * - col1 AS col2 FROM tab0 AS cor0
----
-1407
-5427
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT + COUNT( * ) + MAX( + col2 ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-92
SELECT + COUNT ( * ) + MAX ( + col2 ) FROM tab1 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-93
SELECT - 11 DIV 99 + + col1 + col2 FROM tab1 AS cor0
----
110
115
64

skipif mysql # not compatible
query I rowsort label-93
SELECT - 11 / 99 + + col1 + col2 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT + col1 + 74 + - col2 FROM tab2 cor0
----
102
111
83

query I rowsort
SELECT - + col0 + + col1 + - col0 FROM tab0 AS cor0
----
-153
-193
51

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT + - MAX( - 35 ) + - COUNT( * ) FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-96
SELECT + - MAX ( - 35 ) + - COUNT ( * ) FROM tab1 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT DISTINCT 42 * COUNT( * ) FROM tab2 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-97
SELECT DISTINCT 42 * COUNT ( * ) FROM tab2 AS cor0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT - COUNT( * ) + + + 83 + 37 FROM tab2 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-98
SELECT - COUNT ( * ) + + + 83 + 37 FROM tab2 AS cor0
----
117

query I rowsort
SELECT - + col0 + - 17 AS col2 FROM tab1 AS cor0
----
-102
-108
-68

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

skipif mysql # not compatible
query I rowsort label-100
SELECT ALL 82 + 51 AS col0 FROM tab1 WHERE - - col1 NOT BETWEEN + CAST ( NULL AS INTEGER ) * - + col2 AND NULL
----

query I rowsort
SELECT ALL + 54 + col0 FROM tab2
----
100
118
129

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT DISTINCT + 61 + COUNT( col0 ) + - 26 FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-102
SELECT DISTINCT + 61 + COUNT ( col0 ) + - 26 FROM tab1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-103
SELECT ALL col0 DIV + - 26 - + col0 AS col2 FROM tab0
----
-100
-15
-90

skipif mysql # not compatible
query I rowsort label-103
SELECT ALL col0 / + - 26 - + col0 AS col2 FROM tab0
----
-100
-15
-90

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( + col1 ) - 47 <= ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-106
SELECT DISTINCT 82 DIV + + 4 col1 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-106
SELECT DISTINCT 82 / + + 4 col1 FROM tab0 AS cor0
----
20

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 74 < ( col1 / col0 * + 59 - + 0 )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-110
SELECT col0 DIV - + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-110
SELECT col0 / - + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
0
0

query I rowsort
SELECT DISTINCT - 6 * + 4 AS col1 FROM tab1 cor0
----
-24

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

onlyif mysql # DIV for integer division: 
query I rowsort label-113
SELECT DISTINCT + + 31 DIV + col2 + + col2 FROM tab0 AS cor0
----
13
47
99

skipif mysql # not compatible
query I rowsort label-113
SELECT DISTINCT + + 31 / + col2 + + col2 FROM tab0 AS cor0
----
13
47
99

query I rowsort
SELECT ALL ( 30 ) + - col1 FROM tab0 AS cor0
----
-51
29
9

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 / + + 28 IS NOT NULL
----

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-119
SELECT COUNT( - 19 ) DIV - - 14 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-119
SELECT COUNT ( - 19 ) / - - 14 AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT - MIN( DISTINCT 40 ) AS col2 FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-120
SELECT - MIN ( DISTINCT 40 ) AS col2 FROM tab2
----
-40

query II rowsort
SELECT ALL - col1, + col2 * 45 AS col2 FROM tab1
----
-14
4320
-47
3060
-5
2655

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT ALL COUNT( * ) * + - 79 AS col2 FROM tab0
----
-237

skipif mysql # not compatible
query I rowsort label-122
SELECT ALL COUNT ( * ) * + - 79 AS col2 FROM tab0
----
-237

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

query I rowsort
SELECT DISTINCT - + 42 * + col0 FROM tab2 AS cor0
----
-1932
-2688
-3150

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

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

query I rowsort
SELECT - 50 * 64 FROM tab1
----
-3200
-3200
-3200

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT + MIN( ALL - 39 ) * + 34 AS col1 FROM tab2
----
-1326

skipif mysql # not compatible
query I rowsort label-127
SELECT + MIN ( ALL - 39 ) * + 34 AS col1 FROM tab2
----
-1326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-128
SELECT ALL - CAST( - SUM( DISTINCT - 37 ) AS SIGNED ) DIV 35 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-128
SELECT ALL - CAST ( - SUM ( DISTINCT - 37 ) AS INTEGER ) / 35 FROM tab2
----
-1

query I rowsort
SELECT DISTINCT + 7 * + 39 AS col2 FROM tab2
----
273

query I rowsort
SELECT + 23 - col0 FROM tab0
----
-64
-74
8

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-134
SELECT DISTINCT + col1 col0 FROM tab2 WHERE NOT + ( CAST( NULL AS SIGNED ) ) * 86 = + col0 + 61 * 89
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-134
SELECT DISTINCT + col1 col0 FROM tab2 WHERE NOT + ( CAST ( NULL AS INTEGER ) ) * 86 = + col0 + 61 * 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT DISTINCT MAX( + col0 ) + 38 AS col0 FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-135
SELECT DISTINCT MAX ( + col0 ) + 38 AS col0 FROM tab1
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT ALL - 87 * COUNT( * ) FROM tab2
----
-261

skipif mysql # not compatible
query I rowsort label-136
SELECT ALL - 87 * COUNT ( * ) FROM tab2
----
-261

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

onlyif mysql # DIV for integer division: 
query I rowsort label-138
SELECT + col0 DIV 37 AS col2 FROM tab0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-138
SELECT + col0 / 37 AS col2 FROM tab0
----
0
2
2

query I rowsort
SELECT ALL 40 FROM tab1 WHERE NULL > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-140
SELECT col0 DIV - ( - col0 * col1 ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-140
SELECT col0 / - ( - col0 * col1 ) AS col0 FROM tab1
----
0
0
0

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

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

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

query I rowsort
SELECT 42 + col0 * + col1 FROM tab0
----
1257
139
1869

query I rowsort
SELECT - 52 + + col1 FROM tab2
----
-1
15
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-145
SELECT DISTINCT CAST( - 19 AS SIGNED ) + col0 FROM tab2
----
27
45
56

skipif mysql # not compatible
query I rowsort label-145
SELECT DISTINCT CAST ( - 19 AS INTEGER ) + col0 FROM tab2
----
27
45
56

query I rowsort
SELECT ALL + 53 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
53
53
53

query I rowsort
SELECT DISTINCT 84 AS col1 FROM tab1 WHERE NOT + 81 IS NOT NULL
----

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

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

query I rowsort
SELECT col1 * - 96 AS col0 FROM tab2 AS cor0
----
-4896
-6432
-7392

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

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

query I rowsort
SELECT col0 * + 77 FROM tab2 AS cor0
----
3542
4928
5775

query I rowsort
SELECT col2 * + 28 AS col1 FROM tab1 AS cor0
----
1652
1904
2688

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-154
SELECT ALL + 83 DIV - COUNT( * ) AS col1 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL + 83 / - COUNT ( * ) AS col1 FROM tab2
----
-27

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 + - 56 * - 63 NOT BETWEEN col2 AND - col0
----

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

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

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( - 30 / + col0 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-160
SELECT - CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

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

query I rowsort
SELECT + 11 * + col2 AS col2 FROM tab2 AS cor0
----
253
440
638

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT ( 47 * col2 ) NOT IN ( col2 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT ALL - COUNT( * ) + + + 31 - 44 FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-163
SELECT ALL - COUNT ( * ) + + + 31 - 44 FROM tab2
----
-16

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

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

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

skipif mysql # not compatible
query I rowsort label-165
SELECT DISTINCT - col0 * + CAST ( + CAST ( NULL AS INTEGER ) / 37 AS REAL ) FROM tab2 WHERE NOT NULL BETWEEN col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( + 46 ) NOT BETWEEN 24 * - col0 AND 81
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 5 IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT ALL 3 - - COUNT( * ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-170
SELECT ALL 3 - - COUNT ( * ) AS col2 FROM tab2
----
6

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-172
SELECT CAST( CAST( col0 AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 WHERE - 39 BETWEEN NULL AND ( col2 )
----

skipif mysql # not compatible
query I rowsort label-172
SELECT CAST ( CAST ( col0 AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 WHERE - 39 BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT ALL - col0 * - 12 FROM tab0 AS cor0
----
1044
1164
180

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT + 96 + - MIN( col0 ) FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-174
SELECT + 96 + - MIN ( col0 ) FROM tab1 AS cor0
----
45

query I rowsort
SELECT - col1 + + 80 AS col0 FROM tab2 AS cor0
----
13
29
3

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT + 1 + + 53 + + - MAX( ALL 73 ) FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-176
SELECT + 1 + + 53 + + - MAX ( ALL 73 ) FROM tab0 AS cor0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT DISTINCT MAX( 58 ) * COUNT( 43 ) FROM tab2 cor0
----
174

skipif mysql # not compatible
query I rowsort label-177
SELECT DISTINCT MAX ( 58 ) * COUNT ( 43 ) FROM tab2 cor0
----
174

query I rowsort
SELECT DISTINCT + 50 + - + col1 FROM tab0 AS cor0
----
-31
29
49

query I rowsort
SELECT ALL - 16 FROM tab1 AS cor0 WHERE NOT - 86 IS NULL
----
-16
-16
-16

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 26 BETWEEN + col0 AND ( 91 )
----
87
21
10
97
1
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT DISTINCT ( - - 2 ) * + - COUNT( * ) AS col0 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-184
SELECT DISTINCT ( - - 2 ) * + - COUNT ( * ) AS col0 FROM tab2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-185
SELECT ALL - 83 * + + 15, COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
-1245
NULL

skipif mysql # not compatible
query II rowsort label-185
SELECT ALL - 83 * + + 15, COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
-1245
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-186
SELECT ALL COUNT( * ) * 21 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-186
SELECT ALL COUNT ( * ) * 21 FROM tab1 AS cor0
----
63

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

skipif mysql # not compatible
query I rowsort label-187
SELECT 24 FROM tab1 cor0 WHERE NOT ( - - CAST ( - 83 AS INTEGER ) IS NULL )
----
24
24
24

query I rowsort
SELECT DISTINCT - + 59 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-59

query I rowsort
SELECT DISTINCT + 22 * + col1 AS col1 FROM tab1
----
1034
110
308

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

skipif mysql # not compatible
query I rowsort label-190
SELECT DISTINCT + 72 / COUNT ( * ) AS col0 FROM tab0
----
24

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IS NULL OR NOT 9 IS NOT NULL
----

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

query I rowsort
SELECT + col1 * - ( - 74 ) + + - col0 AS col2 FROM tab0 AS cor0
----
-23
1467
5979

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

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

query I rowsort
SELECT DISTINCT col0 + + + 46 AS col0 FROM tab0 AS cor0
----
133
143
61

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > - col2 + + 58 / - 30 - + + 60
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + 46 AND - col0 / + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 70 col1 FROM tab0
----
-11
49
69

query I rowsort
SELECT + - col1 FROM tab1 WHERE NULL > ( col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-201
SELECT 69 DIV 79 AS col2, col2 * col2 + - col0 FROM tab2
----
0
1536
0
3289
0
483

skipif mysql # not compatible
query II rowsort label-201
SELECT 69 / 79 AS col2, col2 * col2 + - col0 FROM tab2
----
0
1536
0
3289
0
483

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-202
SELECT MIN( - - col0 ) * - - COUNT( * ) DIV + ( - COUNT( * ) ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-202
SELECT MIN ( - - col0 ) * - - COUNT ( * ) / + ( - COUNT ( * ) ) AS col1 FROM tab2
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-203
SELECT DISTINCT col1 DIV - 3 + + + 56 + - ( + + col2 ) FROM tab2
----
-24
-9
16

skipif mysql # not compatible
query I rowsort label-203
SELECT DISTINCT col1 / - 3 + + + 56 + - ( + + col2 ) FROM tab2
----
-24
-9
16

query II rowsort
SELECT DISTINCT 18 AS col1, + 54 AS col2 FROM tab1
----
18
54

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT COUNT( * ) - - SUM( + col2 ) AS col1 FROM tab2 WHERE NULL BETWEEN 70 AND + 11 * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-205
SELECT COUNT ( * ) - - SUM ( + col2 ) AS col1 FROM tab2 WHERE NULL BETWEEN 70 AND + 11 * + col1
----
NULL

query I rowsort
SELECT + col0 * - 48 + - col2 + - 56 * + 80 AS col0 FROM tab1
----
-7024
-8619
-8916

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-208
SELECT DISTINCT - - COUNT( * ) DIV + - MAX( DISTINCT + col1 ) + + 84 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-208
SELECT DISTINCT - - COUNT ( * ) / + - MAX ( DISTINCT + col1 ) + + 84 FROM tab1 AS cor0
----
84

query I rowsort
SELECT - 6 + + + col0 FROM tab0 AS cor0
----
81
9
91

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT DISTINCT 45 - + - COUNT( * ) AS col1 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-210
SELECT DISTINCT 45 - + - COUNT ( * ) AS col1 FROM tab2
----
48

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 41 * - + 25 + - - col0 - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT ALL COUNT( * ) * + 32 FROM tab0 AS cor0 WHERE NULL > - ( 94 ) + - + col0
----
0

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL COUNT ( * ) * + 32 FROM tab0 AS cor0 WHERE NULL > - ( 94 ) + - + col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-213
SELECT + + 78 DIV + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-213
SELECT + + 78 / + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
1
1
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * - col1 * - 41, 85 col2 FROM tab0 AS cor0
----
-18081
85
-269001
85
-41
85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-215
SELECT ALL CAST( + + ( + 5 ) AS DECIMAL ) - + + col1 AS col1 FROM tab0 cor0 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-215
SELECT ALL CAST ( + + ( + 5 ) AS REAL ) - + + col1 AS col1 FROM tab0 cor0 WHERE NULL > NULL
----

query I rowsort
SELECT - + ( + col0 ) * + - 27 AS col0 FROM tab0 AS cor0
----
2349
2619
405

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-217
SELECT 47 col0, - COUNT ( * ) AS col1 FROM tab2
----
47
-3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-219
SELECT ALL COUNT( + + CAST( + - 29 AS SIGNED ) ) * + ( + 36 ) * + + 24 AS col2 FROM tab2
----
2592

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL COUNT ( + + CAST ( + - 29 AS INTEGER ) ) * + ( + 36 ) * + + 24 AS col2 FROM tab2
----
2592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - 26 ) col0 FROM tab2
----
-26
-26
-26

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-222
SELECT - CAST( ( col1 ) AS SIGNED ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-222
SELECT - CAST ( ( col1 ) AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 + - col0 col2 FROM tab2 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
-38
-56
-67

query I rowsort
SELECT - - ( col0 ) * - + 72 FROM tab2 AS cor0
----
-3312
-4608
-5400

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 40 col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT DISTINCT ( + 11 ) * - + SUM( 57 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-5643

skipif mysql # not compatible
query I rowsort label-229
SELECT DISTINCT ( + 11 ) * - + SUM ( 57 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-5643

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

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

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

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

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

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

query I rowsort
SELECT - 47 + 58 * + col1 * col0 * + + 22 FROM tab1 AS cor0
----
542253
5457405
911017

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT - 51 + - COUNT( ALL + 7 ) FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-235
SELECT - 51 + - COUNT ( ALL + 7 ) FROM tab0 AS cor0
----
-54

query II rowsort
SELECT - + col0 + - col0 AS col1, col0 FROM tab1 AS cor0
----
-102
51
-170
85
-182
91

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

query I rowsort
SELECT DISTINCT col0 + 18 AS col2 FROM tab2 AS cor0
----
64
82
93

query III rowsort
SELECT * FROM tab2 WHERE 71 * col0 / - + 9 IS NULL
----

query II rowsort
SELECT DISTINCT + col1, ( - col0 ) FROM tab1 WHERE - col1 * - col0 IS NOT NULL
----
14
-51
47
-91
5
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-241
SELECT ALL ( - 66 ) - + + col2 DIV + col2 AS col0 FROM tab0
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL ( - 66 ) - + + col2 / + col2 AS col0 FROM tab0
----
-67
-67
-67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-242
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 * col2 * + 53 / col0 ) IN ( + CAST( NULL AS SIGNED ), col1 )
----

skipif mysql # not compatible
query III rowsort label-242
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 * col2 * + 53 / col0 ) IN ( + CAST ( NULL AS INTEGER ), col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT + COUNT( DISTINCT - 69 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-243
SELECT + COUNT ( DISTINCT - 69 ) FROM tab0
----
1

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

query II rowsort
SELECT - ( ( 82 ) ) AS col2, ( 27 ) * - 1 FROM tab2
----
-82
-27
-82
-27
-82
-27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT - 11 * - COUNT( * ) * + - 70 FROM tab2 AS cor0
----
-2310

skipif mysql # not compatible
query I rowsort label-247
SELECT - 11 * - COUNT ( * ) * + - 70 FROM tab2 AS cor0
----
-2310

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-250
SELECT ALL - CAST( + + col0 AS SIGNED ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-250
SELECT ALL - CAST ( + + col0 AS INTEGER ) FROM tab1
----
-51
-85
-91

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

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL - + COUNT ( * ) * 0 FROM tab1 WHERE col0 IS NULL
----
0

query I rowsort
SELECT 10 * + - col1 * + - col2 FROM tab1
----
13440
2950
31960

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

skipif mysql # not compatible
query I rowsort label-253
SELECT ALL - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-258
SELECT DISTINCT - - 79 * CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-258
SELECT DISTINCT - - 79 * CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
237

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-260
SELECT 38 FROM tab0 WHERE NOT col2 * + col2 / + - CAST( NULL AS SIGNED ) * + 55 - - - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-260
SELECT 38 FROM tab0 WHERE NOT col2 * + col2 / + - CAST ( NULL AS INTEGER ) * + 55 - - - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 97 - + col1 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-262
SELECT - MAX( DISTINCT col1 ) DIV - - COUNT( * ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-262
SELECT - MAX ( DISTINCT col1 ) / - - COUNT ( * ) FROM tab1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT 88 * - MIN( ALL + 63 ) AS col2 FROM tab0
----
-5544

skipif mysql # not compatible
query I rowsort label-263
SELECT 88 * - MIN ( ALL + 63 ) AS col2 FROM tab0
----
-5544

query I rowsort
SELECT DISTINCT - - col1 * - col0 + + col2 + - - col0 + + + col1 - 48 * - col1 + + - col2 FROM tab2 AS cor0
----
-1091
-1667
199

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-266
SELECT CAST( NULL AS SIGNED ) + - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT 78 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-266
SELECT CAST ( NULL AS INTEGER ) + - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT 78 NOT BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT - col1 * - 40 + + + 4 AS col0 FROM tab2 AS cor0
----
2044
2684
3084

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

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

query I rowsort
SELECT DISTINCT col0 + + ( col2 ) FROM tab2 WHERE NOT - col2 IS NULL
----
104
133
69

query I rowsort
SELECT DISTINCT + + 16 + 85 FROM tab1 AS cor0
----
101

query I rowsort
SELECT - 58 * + col2 AS col0 FROM tab0 cor0
----
-2726
-5742
-580

query I rowsort
SELECT DISTINCT - - 25 AS col1 FROM tab1 cor0
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + col1 ) col1 FROM tab1 AS cor0 WHERE NOT NULL >= + col2
----

query I rowsort
SELECT DISTINCT - 51 * - col2 AS col1 FROM tab0 AS cor0
----
2397
5049
510

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT DISTINCT 26 + + SUM( ALL 90 ) FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-277
SELECT DISTINCT 26 + + SUM ( ALL 90 ) FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( col2 )
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - 62 + 32 IN ( + + col1 )
----

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

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

skipif mysql # not compatible
query I rowsort label-280
SELECT - SUM ( col1 ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - col2 AND - + col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-281
SELECT 69 * col1 - - - 19 DIV - - ( - col0 ) * - 65 FROM tab1
----
3243
345
966

skipif mysql # not compatible
query I rowsort label-281
SELECT 69 * col1 - - - 19 / - - ( - col0 ) * - 65 FROM tab1
----
3243
345
966

query I rowsort
SELECT 80 + col0 AS col2 FROM tab0
----
167
177
95

query I rowsort
SELECT - col2 * + - col1 + - 30 AS col2 FROM tab0
----
180
3777
69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= + - 79 * 41
----

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-290
SELECT - MIN( col2 ) DIV - - COUNT( * ) FROM tab2 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-290
SELECT - MIN ( col2 ) / - - COUNT ( * ) FROM tab2 cor0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-291
SELECT ALL col2 FROM tab0 cor0 WHERE NOT ( NULL ) IN ( + col2 * + CAST( NULL AS SIGNED ) + + 4, - 87, 84 * - + 18 )
----

skipif mysql # not compatible
query I rowsort label-291
SELECT ALL col2 FROM tab0 cor0 WHERE NOT ( NULL ) IN ( + col2 * + CAST ( NULL AS INTEGER ) + + 4, - 87, 84 * - + 18 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-292
SELECT + - ( 29 ) DIV + - 21 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-292
SELECT + - ( 29 ) / + - 21 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 80 * + col0 col1 FROM tab0 AS cor0
----
1200
6960
7760

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

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

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

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

skipif mysql # not compatible
query I rowsort label-296
SELECT ALL COUNT ( * ) + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-297
SELECT ALL 64 AS col2, + 89 - - COUNT( * ) FROM tab0
----
64
92

skipif mysql # not compatible
query II rowsort label-297
SELECT ALL 64 AS col2, + 89 - - COUNT ( * ) FROM tab0
----
64
92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 IN ( - + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT ALL 81 + SUM( + col1 ) AS col2 FROM tab0 AS cor0
----
184

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL 81 + SUM ( + col1 ) AS col2 FROM tab0 AS cor0
----
184

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-300
SELECT col2 AS col2, - col2 * + + CAST( NULL AS SIGNED ) * 32 FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-300
SELECT col2 AS col2, - col2 * + + CAST ( NULL AS INTEGER ) * 32 FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

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

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

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

query I rowsort
SELECT + - col2 + - 88 AS col2 FROM tab1 AS cor0
----
-147
-156
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT DISTINCT MAX( col2 ) + - 74 AS col2 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-304
SELECT DISTINCT MAX ( col2 ) + - 74 AS col2 FROM tab1 AS cor0
----
22

query I rowsort
SELECT - - 15 + + ( + ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
111
74
83

query I rowsort
SELECT - + col1 + col1 * + col1 * - col0 AS col1 FROM tab0 AS cor0
----
-38388
-98
-98496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab1 AS cor0 WHERE NOT NULL <= ( + + col0 ) + col1
----

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

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

query I rowsort
SELECT + 66 * - col2 * col0 + + - 56 FROM tab0 AS cor0
----
-46586
-57476
-633854

query II rowsort
SELECT - col2, - col2 * 54 * 59 * - - 66 AS col2 FROM tab1
----
-59
-12406284
-68
-14298768
-96
-20186496

query I rowsort
SELECT - 86 FROM tab2, tab2 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 = + + ( - col0 ) / - 15 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT ALL col2 - - - 65 AS col1 FROM tab2
----
-25
-42
-7

query I rowsort
SELECT 8 - - + 60 AS col2 FROM tab1 AS cor0
----
68
68
68

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

query I rowsort
SELECT DISTINCT - 1 * col0 * 90 + - ( col1 ) AS col0 FROM tab2 AS cor0
----
-4191
-5837
-6817

query I rowsort
SELECT + 61 * - - col0 * + col1 - - col2 FROM tab1 AS cor0
----
25984
260965
43650

onlyif mysql # DIV for integer division: 
query I rowsort label-320
SELECT ALL col0 DIV - - 97 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-320
SELECT ALL col0 / - - 97 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-321
SELECT ALL - 33 AS col2 FROM tab0 AS cor0 WHERE NOT col0 <> + CAST( NULL AS SIGNED ) * - - CAST( - + col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-321
SELECT ALL - 33 AS col2 FROM tab0 AS cor0 WHERE NOT col0 <> + CAST ( NULL AS INTEGER ) * - - CAST ( - + col0 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - - col0 + col1 + + col1 col2 FROM tab2 AS cor0
----
-2014
-3942
-5491

query II rowsort
SELECT - 69 * + + 1 AS col0, 3 * - 4 - - col1 FROM tab1
----
-69
-7
-69
2
-69
35

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

skipif mysql # not compatible
query II rowsort label-324
SELECT ( - COUNT ( * ) ) AS col2, + ( + COUNT ( ALL + + 48 ) ) FROM tab2
----
-3
3

query I rowsort
SELECT - 10 AS col2 FROM tab2 cor0 WHERE NOT col2 + - col2 IS NULL
----
-10
-10
-10

query I rowsort
SELECT DISTINCT + col2 * - - 30 FROM tab0 AS cor0
----
1410
2970
300

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-328
SELECT DISTINCT ( + CAST( NULL AS DECIMAL ) ) AS col0, col2 AS col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-328
SELECT DISTINCT ( + CAST ( NULL AS REAL ) ) AS col0, col2 AS col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - col1 * + col2 * + col1 + - - col2 + 68 / + - 89 * + ( + + 56 ) IS NULL )
----

query I rowsort
SELECT DISTINCT - - 9 * - col0 * - 5 + + col2 FROM tab1 AS cor0 WHERE NOT - 76 * - col1 > col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-331
SELECT ALL - + 22 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + + col1, CAST( + + 27 AS DECIMAL ) + + 69 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-331
SELECT ALL - + 22 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + + col1, CAST ( + + 27 AS REAL ) + + 69 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-332
SELECT col0 DIV 29 AS col0 FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-332
SELECT col0 / 29 AS col0 FROM tab1
----
1
2
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT ALL - SUM( 31 ) + + + 39 FROM tab0 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-334
SELECT ALL - SUM ( 31 ) + + + 39 FROM tab0 cor0
----
-54

query I rowsort
SELECT ALL + col0 * - 81 - + + 20 * + - ( + - 41 ) + col0 AS col2 FROM tab0 AS cor0
----
-2020
-7780
-8580

query I rowsort
SELECT ALL 43 + - + col0 AS col0 FROM tab2 AS cor0
----
-21
-3
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-337
SELECT + col0 * - 95 + - - ( - col1 ) DIV col0 - - col1 FROM tab2
----
-4320
-6004
-7058

skipif mysql # not compatible
query I rowsort label-337
SELECT + col0 * - 95 + - - ( - col1 ) / col0 - - col1 FROM tab2
----
-4320
-6004
-7058

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

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

query I rowsort
SELECT col1 * - + 16 * col0 AS col2 FROM tab2
----
-37536
-78848
-80400

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

query I rowsort
SELECT DISTINCT - ( + + col1 ) * + - 69 - + col0 + + col2 + ( + ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
3445
4539
5212

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

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

query I rowsort
SELECT + col0 - 30 AS col0 FROM tab0 AS cor0
----
-15
57
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - - col2 + + 82 col0 FROM tab0 AS cor0
----
144
179
278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-345
SELECT DISTINCT CAST( - + ( + AVG ( - col2 ) ) AS SIGNED ) - MAX( ALL - - 10 ) AS col1 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-345
SELECT DISTINCT CAST ( - + ( + AVG ( - col2 ) ) AS INTEGER ) - MAX ( ALL - - 10 ) AS col1 FROM tab2 AS cor0
----
30

query I rowsort
SELECT - 22 + - col1 FROM tab1 WHERE - 82 * + + col0 > 90
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT ALL ( + COUNT( * ) ) - - MAX( 24 ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-348
SELECT ALL ( + COUNT ( * ) ) - - MAX ( 24 ) FROM tab1
----
27

query II rowsort
SELECT + col1 + + + 81, col1 AS col2 FROM tab0
----
102
21
162
81
82
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col2 ) + - col1 col1 FROM tab2
----
-117
-125
-74

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 64 * - ( + 10 ), 33 col0 FROM tab2 AS cor0
----
640
33

query II rowsort
SELECT DISTINCT + ( col0 ), 78 * col0 FROM tab2 AS cor0
----
46
3588
64
4992
75
5850

query I rowsort
SELECT col2 * 79 + + col0 * - col2 * + - col0 FROM tab1 AS cor0
----
257280
430936
568480

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

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

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

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

query II rowsort
SELECT DISTINCT + - 80, - 76 AS col2 FROM tab0 AS cor0
----
-80
-76

query I rowsort
SELECT ALL + - 96 * 21 FROM tab2 AS cor0
----
-2016
-2016
-2016

query I rowsort
SELECT col2 + - - col0 * + 48 AS col0 FROM tab1
----
2544
4139
4436

query I rowsort
SELECT ALL + 60 AS col2 FROM tab2 WHERE + 34 * - + col0 BETWEEN NULL AND - - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-363
SELECT ALL - 84 DIV - + 54, COUNT( * ) AS col1 FROM tab1
----
1
3

skipif mysql # not compatible
query II rowsort label-363
SELECT ALL - 84 / - + 54, COUNT ( * ) AS col1 FROM tab1
----
1
3

onlyif mysql # aggregate syntax: 
query II rowsort label-364
SELECT + - MIN( DISTINCT 47 ), - COUNT( * ) * - COUNT( * ) + - COUNT( * ) * + COUNT( * ) col1 FROM tab2 AS cor0
----
-47
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-364
SELECT + - MIN ( DISTINCT 47 ), - COUNT ( * ) * - COUNT ( * ) + - COUNT ( * ) * + COUNT ( * ) col1 FROM tab2 AS cor0
----
-47
0

query I rowsort
SELECT DISTINCT + 60 + + + 77 FROM tab2 AS cor0
----
137

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - 60 > + col0 - col2
----

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

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

query I rowsort
SELECT + 10 * col1 + - col0 FROM tab2
----
464
595
706

query I rowsort
SELECT col1 * + 34 + col0 AS col1 FROM tab1
----
1689
255
527

query I rowsort
SELECT + col1 * col0 + - + col2 * + - 34 AS col2 FROM tab1 AS cor0
----
2431
3978
6589

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-374
SELECT * FROM tab1 AS cor0 WHERE CAST( + col1 AS SIGNED ) BETWEEN + - col1 AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-374
SELECT * FROM tab1 AS cor0 WHERE CAST ( + col1 AS INTEGER ) BETWEEN + - col1 AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT DISTINCT COUNT( DISTINCT col1 ) * - ( - + 88 ) FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-377
SELECT DISTINCT COUNT ( DISTINCT col1 ) * - ( - + 88 ) FROM tab0
----
264

onlyif mysql # aggregate syntax: 
query II rowsort label-378
SELECT - MAX( ALL + col2 ) AS col1, 15 * + + COUNT( DISTINCT - ( + 2 ) ) FROM tab0
----
-99
15

skipif mysql # not compatible
query II rowsort label-378
SELECT - MAX ( ALL + col2 ) AS col1, 15 * + + COUNT ( DISTINCT - ( + 2 ) ) FROM tab0
----
-99
15

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

skipif mysql # not compatible
query I rowsort label-379
SELECT - SUM ( + + col2 ) AS col2 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT - COUNT( ALL - 21 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-380
SELECT - COUNT ( ALL - 21 ) AS col0 FROM tab1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-381
SELECT + 61, CAST( - COUNT( ALL col0 ) AS SIGNED ) AS col1 FROM tab1
----
61
-3

skipif mysql # not compatible
query II rowsort label-381
SELECT + 61, CAST ( - COUNT ( ALL col0 ) AS INTEGER ) AS col1 FROM tab1
----
61
-3

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-384
SELECT DISTINCT - - 40 + MIN( ALL col0 ) * + MIN( 30 ), MIN( - col2 ) AS col2 FROM tab0 cor0 WHERE - col2 IS NOT NULL
----
490
-99

skipif mysql # not compatible
query II rowsort label-384
SELECT DISTINCT - - 40 + MIN ( ALL col0 ) * + MIN ( 30 ), MIN ( - col2 ) AS col2 FROM tab0 cor0 WHERE - col2 IS NOT NULL
----
490
-99

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 18 BETWEEN col1 + - 99 * - col1 AND + 39
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 43 * ( + - col2 ) + - col0 AS col0 FROM tab1 AS cor0
----
2452
2833
4077

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT DISTINCT COUNT( * ) * - + MAX( - col0 ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-387
SELECT DISTINCT COUNT ( * ) * - + MAX ( - col0 ) FROM tab0 AS cor0
----
45

query II rowsort
SELECT DISTINCT + - col0 + - col2 AS col2, col0 * + col2 * + - col2 AS col2 FROM tab0 AS cor0
----
-196
-950697
-62
-33135
-97
-8700

query I rowsort
SELECT + ( col1 ) FROM tab2 WHERE - col2 IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT col2 * - + col1 * - 91 AS col0 FROM tab2
----
106743
280280
353626

query II rowsort
SELECT col1, + col2 * - - col2 FROM tab2
----
51
529
67
3364
77
1600

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT ALL 71 * + 30 + - ( - COUNT( * ) ) FROM tab2
----
2133

skipif mysql # not compatible
query I rowsort label-392
SELECT ALL 71 * + 30 + - ( - COUNT ( * ) ) FROM tab2
----
2133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-393
SELECT DISTINCT - 43 * - - COUNT( * ) / MAX( - col2 ) + + COUNT( * ) FROM tab2 WHERE - col0 + col0 * - ( - + 10 ) IN ( CAST( NULL AS SIGNED ), col2, - ( col2 ) + - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-393
SELECT DISTINCT - 43 * - - COUNT ( * ) / MAX ( - col2 ) + + COUNT ( * ) FROM tab2 WHERE - col0 + col0 * - ( - + 10 ) IN ( CAST ( NULL AS INTEGER ), col2, - ( col2 ) + - col1 )
----
NULL

query I rowsort
SELECT - col0 * + - 47 AS col2 FROM tab2
----
2162
3008
3525

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

skipif mysql # not compatible
query I rowsort label-395
SELECT + col1 / ( col0 ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT DISTINCT COUNT( + col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( - col1 + + 33, + col0, - col0, - col2 * + - col2, + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-396
SELECT DISTINCT COUNT ( + col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( - col1 + + 33, + col0, - col0, - col2 * + - col2, + col0 )
----
0

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

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

query I rowsort
SELECT + col1 + 13 FROM tab0 AS cor0
----
14
34
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 13 + + - col1 - - col0 col2 FROM tab0
----
-53
109
79

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

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

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

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

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

query I rowsort
SELECT - col1 * - + col2 + + 84 AS col1 FROM tab1 AS cor0
----
1428
3280
379

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

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

skipif mysql # not compatible
query I rowsort label-406
SELECT ALL col2 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-409
SELECT 92, CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----

skipif mysql # not compatible
query II rowsort label-409
SELECT 92, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT + 71 * + - 55 * + ( - 48 ) AS col2 FROM tab0 cor0
----
187440
187440
187440

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-411
SELECT ALL CAST( NULL AS SIGNED ) AS col1, col0 + - - 95, + col2 * - col0 AS col0 FROM tab1 AS cor0
----
9 values hashing to d0ba69969635de1d2b6e66b19667a25d

skipif mysql # not compatible
query III rowsort label-411
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, col0 + - - 95, + col2 * - col0 AS col0 FROM tab1 AS cor0
----
9 values hashing to d0ba69969635de1d2b6e66b19667a25d

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-412
SELECT ALL col2, + ( CAST( - + col1 AS SIGNED ) ) AS col1 FROM tab1
----
59
-5
68
-47
96
-14

skipif mysql # not compatible
query II rowsort label-412
SELECT ALL col2, + ( CAST ( - + col1 AS INTEGER ) ) AS col1 FROM tab1
----
59
-5
68
-47
96
-14

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

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

query I rowsort
SELECT ALL + 15 + - - col1 AS col0 FROM tab0 cor0
----
16
36
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - + 33 col1 FROM tab0 AS cor0
----
-1551
-3267
-330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-416
SELECT - 13 + + COUNT( ALL - CAST( - - 45 AS SIGNED ) ) AS col0, SUM( ALL col2 ) FROM tab2 AS cor0
----
-10
121

skipif mysql # not compatible
query II rowsort label-416
SELECT - 13 + + COUNT ( ALL - CAST ( - - 45 AS INTEGER ) ) AS col0, SUM ( ALL col2 ) FROM tab2 AS cor0
----
-10
121

query I rowsort
SELECT - col1 + col2 * + col1 + - + col0 AS col2 FROM tab2 AS cor0
----
1076
2939
3744

onlyif mysql # DIV for integer division: 
query I rowsort label-418
SELECT ALL + 21 + 67 DIV - - col2 AS col1 FROM tab2 AS cor0
----
22
22
23

skipif mysql # not compatible
query I rowsort label-418
SELECT ALL + 21 + 67 / - - col2 AS col1 FROM tab2 AS cor0
----
22
22
23

query I rowsort
SELECT DISTINCT - col2 + - - ( - col0 ) FROM tab2 AS cor0
----
-104
-133
-69

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

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

query I rowsort
SELECT + 85 + + + col0 - + + col0 + + ( + col2 ) AS col0 FROM tab2
----
108
125
143

onlyif mysql # DIV for integer division: 
query I rowsort label-422
SELECT 54 * - col2 + + col1 DIV - col1 FROM tab0
----
-2539
-5347
-541

skipif mysql # not compatible
query I rowsort label-422
SELECT 54 * - col2 + + col1 / - col1 FROM tab0
----
-2539
-5347
-541

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

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

query I rowsort
SELECT - 93 * - col2 FROM tab2
----
2139
3720
5394

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT + 60 * - MAX( DISTINCT + col1 ) FROM tab2
----
-4620

skipif mysql # not compatible
query I rowsort label-427
SELECT + 60 * - MAX ( DISTINCT + col1 ) FROM tab2
----
-4620

query I rowsort
SELECT col2 * + 50 * - col2 AS col2 FROM tab0 AS cor0
----
-110450
-490050
-5000

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 <> + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + + ( - + 64 ) AS col2, + 91 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-64
91

query I rowsort
SELECT - col1 FROM tab2 WHERE - + 81 <> + + col0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-432
SELECT DISTINCT - 70 * - ( + col1 ) col2, - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3290
NULL
350
NULL
980
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-432
SELECT DISTINCT - 70 * - ( + col1 ) col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3290
NULL
350
NULL
980
NULL

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

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

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

query I rowsort
SELECT ALL + col2 * - - 70 FROM tab2 AS cor0
----
1610
2800
4060

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

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

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

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

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE NOT NULL IN ( col1 - - 62, - 32, 97 + + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 ) <> + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT DISTINCT ( - MAX( + + 73 ) ) col2 FROM tab0
----
-73

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

query I rowsort
SELECT DISTINCT col2 * 61 FROM tab0 WHERE NOT + 43 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-443
SELECT ALL MAX( + - col2 ) DIV + ( - 52 ) + - 70 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-443
SELECT ALL MAX ( + - col2 ) / + ( - 52 ) + - 70 FROM tab1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT MAX( - col0 ) col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-444
SELECT MAX ( - col0 ) col2 FROM tab2 AS cor0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + - col0 + + col0 + - - 75 col0 FROM tab2 AS cor0
----
-1995
-3957
-5475

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT + COUNT( * ) * + MIN( DISTINCT + + 35 ) AS col0 FROM tab2
----
105

skipif mysql # not compatible
query I rowsort label-448
SELECT + COUNT ( * ) * + MIN ( DISTINCT + + 35 ) AS col0 FROM tab2
----
105

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT IN ( 51 / + col2 / + 13, - col2 - col2, - - 43 + - + col0, + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-453
SELECT ALL - ( + + col2 ) + CAST( + - 97 AS SIGNED ) FROM tab0 AS cor0
----
-107
-144
-196

skipif mysql # not compatible
query I rowsort label-453
SELECT ALL - ( + + col2 ) + CAST ( + - 97 AS INTEGER ) FROM tab0 AS cor0
----
-107
-144
-196

query I rowsort
SELECT 54 AS col2 FROM tab2 WHERE col1 * col2 + - 69 IS NOT NULL
----
54
54
54

query II rowsort
SELECT + 21 - + - 21, + col2 AS col0 FROM tab1
----
42
59
42
68
42
96

query I rowsort
SELECT - col2 - - col1 + + 2 AS col0 FROM tab2
----
11
30
39

query I rowsort
SELECT 81 + - - col2 + + col1 + - col2 * + - col0 AS col1 FROM tab2
----
1213
2758
4556

query I rowsort
SELECT ALL + 47 + - + 74 * + + 38 * - - ( col1 ) FROM tab0
----
-227725
-2765
-59005

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT ALL - COUNT( * ) * 35 AS col1 FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL - COUNT ( * ) * 35 AS col1 FROM tab2
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT 60 + COUNT( * ) AS col2 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-460
SELECT 60 + COUNT ( * ) AS col2 FROM tab2
----
63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT - 44 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT - 44 IS NULL
----
-3

query I rowsort
SELECT 1 + - col1 AS col2 FROM tab2
----
-50
-66
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT DISTINCT + + COUNT( * ) + - 65 AS col1 FROM tab0 cor0
----
-62

skipif mysql # not compatible
query I rowsort label-464
SELECT DISTINCT + + COUNT ( * ) + - 65 AS col1 FROM tab0 cor0
----
-62

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN - + col2 AND - + 88
----

query II rowsort
SELECT - 33, 70 * - col1 AS col1 FROM tab0 AS cor0
----
-33
-1470
-33
-5670
-33
-70

query I rowsort
SELECT DISTINCT - 25 + col0 FROM tab0 cor0
----
-10
62
72

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

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

skipif mysql # not compatible
query I rowsort label-469
SELECT + MIN ( - 32 ) AS col1 FROM tab0
----
-32

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

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT DISTINCT + MIN( col0 ) * + MAX( - col2 ) AS col0 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-471
SELECT DISTINCT + MIN ( col0 ) * + MAX ( - col2 ) AS col0 FROM tab0
----
-150

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 - + 24 col1 FROM tab1 AS cor0
----
-4301
-449
-738

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

query I rowsort
SELECT DISTINCT - 45 * + col1 FROM tab1
----
-2115
-225
-630

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-478
SELECT ALL col2 DIV + + col1 AS col2 FROM tab0 cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-478
SELECT ALL col2 / + + col1 AS col2 FROM tab0 cor0
----
0
0
99

onlyif mysql # aggregate syntax: 
query II rowsort label-479
SELECT DISTINCT - ( - - MIN( ALL + col1 ) ) AS col0, + 22 + COUNT( - col1 ) FROM tab2 AS cor0
----
-51
25

skipif mysql # not compatible
query II rowsort label-479
SELECT DISTINCT - ( - - MIN ( ALL + col1 ) ) AS col0, + 22 + COUNT ( - col1 ) FROM tab2 AS cor0
----
-51
25

query I rowsort
SELECT ALL - 26 + + + col0 AS col0 FROM tab2 AS cor0
----
20
38
49

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT NULL > + 63
----

query I rowsort
SELECT - - 88 FROM tab0, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

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

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

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

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

query II rowsort
SELECT + + 25 + + col0, + 50 * + col1 AS col2 FROM tab1 AS cor0
----
110
250
116
2350
76
700

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

query I rowsort
SELECT ALL + col0 + + 7 AS col2 FROM tab2 AS cor0
----
53
71
82

query I rowsort
SELECT col1 * - col0 * + col0 + col2 + - 52 + 98 * 70 + - 67 FROM tab2 AS cor0
----
-101152
-308611
-370076

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-490
SELECT DISTINCT - + COUNT( * ) DIV + 61 AS col0 FROM tab1 AS cor0 WHERE col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-490
SELECT DISTINCT - + COUNT ( * ) / + 61 AS col0 FROM tab1 AS cor0 WHERE col0 < NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-491
SELECT ALL 54 * - 68 + - col0 DIV col0 FROM tab0 cor0
----
-3673
-3673
-3673

skipif mysql # not compatible
query I rowsort label-491
SELECT ALL 54 * - 68 + - col0 / col0 FROM tab0 cor0
----
-3673
-3673
-3673

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-492
SELECT DISTINCT 13 + + CAST( + col0 AS SIGNED ) + - col1 FROM tab0
----
-53
109
79

skipif mysql # not compatible
query I rowsort label-492
SELECT DISTINCT 13 + + CAST ( + col0 AS INTEGER ) + - col1 FROM tab0
----
-53
109
79

query I rowsort
SELECT DISTINCT ( col1 ) - - col2 * + + 40 AS col1 FROM tab2
----
1677
2387
971

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-494
SELECT ALL - CAST( NULL AS SIGNED ) + - col1 col1 FROM tab1 WHERE + 87 > NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-494
SELECT ALL - CAST ( NULL AS INTEGER ) + - col1 col1 FROM tab1 WHERE + 87 > NULL
----

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

query I rowsort
SELECT - 26 FROM tab2 WHERE NULL IS NULL
----
-26
-26
-26

query II rowsort
SELECT ALL + col2 AS col2, 1 FROM tab1
----
59
1
68
1
96
1

query III rowsort
SELECT * FROM tab0 WHERE - 69 * + + 84 / + - 87 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 + 46 <= + 51
----
97
1
99

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE + + col0 + - col1 NOT BETWEEN col1 AND 65 + - col2 * + col2
----
10
47
99

query I rowsort
SELECT - col1 FROM tab2 WHERE - + col2 BETWEEN - ( - ( - col1 ) ) + - - col1 - - ( - 80 ) + - col2 + - 46 AND NULL
----

query I rowsort
SELECT - 13 - 69 + + 27 AS col1 FROM tab1
----
-55
-55
-55

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

query I rowsort
SELECT + 97 * + col2 - + col1 FROM tab2 AS cor0
----
2180
3803
5559

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) = - 17
----

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

skipif mysql # not compatible
query II rowsort label-507
SELECT + col2, col2 AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + col1 IS NOT NULL
----
10
10
47
47
99
99

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-509
SELECT - + COUNT( + + 5 ), - 72 col2 FROM tab0 AS cor0
----
-3
-72

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN NULL AND col1
----
14
47
5

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

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

query I rowsort
SELECT DISTINCT + AVG ( 97 ) FROM tab1 AS cor0 WHERE col0 - - + 71 NOT BETWEEN NULL AND NULL
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT MAX( DISTINCT + 55 ) * 20 AS col2 FROM tab1
----
1100

skipif mysql # not compatible
query I rowsort label-515
SELECT MAX ( DISTINCT + 55 ) * 20 AS col2 FROM tab1
----
1100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-516
SELECT DISTINCT - col2 + + - col0 + col0 * + 50 - CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE - 88 >= + + 14
----

skipif mysql # not compatible
query I rowsort label-516
SELECT DISTINCT - col2 + + - col0 + col0 * + 50 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE - 88 >= + + 14
----

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

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

query II rowsort
SELECT ALL + col0 + col0 AS col1, 71 AS col0 FROM tab2 AS cor0
----
128
71
150
71
92
71

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL < + col1 )
----

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

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

skipif mysql # not compatible
query I rowsort label-523
SELECT DISTINCT - - 61 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT col1 + - + 8 - - col1 AS col0 FROM tab2 AS cor0
----
126
146
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-526
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-526
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL = ( NULL )
----

query I rowsort
SELECT + 26 - col2 FROM tab2 cor0
----
-14
-32
3

query II rowsort
SELECT col1 - + col2 AS col1, col0 + + col0 AS col2 FROM tab1
----
-21
182
-54
170
-82
102

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE col2 * + col2 * + 91 + + - col1 + - 47 - 19 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-529
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE col2 * + col2 * + 91 + + - col1 + - 47 - 19 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT + 78 + - - col0 FROM tab1
----
129
163
169

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 - - - col2 col2 FROM tab2
----
-63
-80
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 52 * - + ( col0 ) + col1 AS col1, col2 col0 FROM tab0
----
-4503
10
-5043
99
-699
47

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

query I rowsort
SELECT DISTINCT 95 - - ( + col1 ) * - + col1 + + col0 + col1 + + ( - + 79 ) FROM tab1
----
-115
-2055
81

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT ALL MAX( DISTINCT + - col1 ) col2 FROM tab0
----
-1

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

query I rowsort
SELECT DISTINCT ( + - col0 ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

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

onlyif mysql # DIV for integer division: 
query I rowsort label-538
SELECT + 23 DIV - 95 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-538
SELECT + 23 / - 95 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT ALL - 82 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-544
SELECT ALL - 82 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-545
SELECT col1 + + + CAST( - 97 AS SIGNED ) + - - col0 col2 FROM tab2
----
0
44
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-545
SELECT col1 + + + CAST ( - 97 AS INTEGER ) + - - col0 col2 FROM tab2
----
0
44
45

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT DISTINCT - COUNT( * ) * - - 81 FROM tab2
----
-243

skipif mysql # not compatible
query I rowsort label-546
SELECT DISTINCT - COUNT ( * ) * - - 81 FROM tab2
----
-243

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * - 46 <> - + 29 * - col1
----

query I rowsort
SELECT - ( - 27 ) AS col2 FROM tab1
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT MIN( DISTINCT - 69 ) FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-549
SELECT MIN ( DISTINCT - 69 ) FROM tab1
----
-69

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-550
SELECT - col1 / - - col0 col0 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL - AVG ( + + col2 ) FROM tab0 AS cor0 WHERE NOT 32 <> NULL
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT 45 + - + ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-555
SELECT 45 + - + ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
42

query I rowsort
SELECT ALL col0 + + + 73 FROM tab1 AS cor0
----
124
158
164

query I rowsort
SELECT - col1 + - - col2 * col0 FROM tab1 AS cor0
----
4882
5010
6141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-558
SELECT - - 97 DIV COUNT( * ) + - - 12 * - + CAST( 11 AS SIGNED ) + - 13 AS col1 FROM tab1 AS cor0
----
-113

skipif mysql # not compatible
query I rowsort label-558
SELECT - - 97 / COUNT ( * ) + - - 12 * - + CAST ( 11 AS INTEGER ) + - 13 AS col1 FROM tab1 AS cor0
----
-113

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-559
SELECT ALL col1 + + col0 AS col1, + col0 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
108
NULL
96
NULL
98
NULL

skipif mysql # not compatible
query II rowsort label-559
SELECT ALL col1 + + col0 AS col1, + col0 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
108
NULL
96
NULL
98
NULL

query I rowsort
SELECT DISTINCT + 40 * + + 10 - 18 AS col0 FROM tab2 AS cor0
----
382

onlyif mysql # DIV for integer division: 
query I rowsort label-561
SELECT + + col0 DIV - 10 FROM tab1 AS cor0
----
-5
-8
-9

skipif mysql # not compatible
query I rowsort label-561
SELECT + + col0 / - 10 FROM tab1 AS cor0
----
-5
-8
-9

onlyif mysql # DIV for integer division: 
query III rowsort label-562
SELECT DISTINCT - 79 + - col0 + - 44 AS col1, col0 DIV + col1 + col2 AS col2, + ( - 33 ) DIV 52 DIV + 76 + + col1 + col2 AS col2 FROM tab2
----
9 values hashing to a7839921009f442325b2696cb772dd0b

skipif mysql # not compatible
query III rowsort label-562
SELECT DISTINCT - 79 + - col0 + - 44 AS col1, col0 / + col1 + col2 AS col2, + ( - 33 ) / 52 / + 76 + + col1 + col2 AS col2 FROM tab2
----
9 values hashing to a7839921009f442325b2696cb772dd0b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-563
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-563
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
3

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

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

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

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

query II rowsort
SELECT + 44, - col0 - - - col0 + + 55 AS col1 FROM tab1
----
44
-115
44
-127
44
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-568
SELECT - CAST( - col1 AS SIGNED ) * col2 * - col1 FROM tab0
----
-308367
-4410
-99

skipif mysql # not compatible
query I rowsort label-568
SELECT - CAST ( - col1 AS INTEGER ) * col2 * - col1 FROM tab0
----
-308367
-4410
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT DISTINCT - MAX( + 24 ) AS col1 FROM tab1 WHERE NOT 79 >= 23
----
NULL

skipif mysql # not compatible
query I rowsort label-569
SELECT DISTINCT - MAX ( + 24 ) AS col1 FROM tab1 WHERE NOT 79 >= 23
----
NULL

query I rowsort
SELECT DISTINCT 75 * - 96 FROM tab1 AS cor0
----
-7200

query I rowsort
SELECT + + col2 * col1 + + - col1 - - col0 - - 41 * - col2 FROM tab2 AS cor0
----
1427
1516
225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 81 col1, 55 col0 FROM tab2 AS cor0
----
81
55

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 64 + - col0 <= NULL
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 45 <> ( + ( - 80 ) + col1 * col0 )
----

query I rowsort
SELECT 29 FROM tab2 WHERE NOT col1 = col2
----
29
29
29

query III rowsort
SELECT * FROM tab0 WHERE ( col2 * + 60 ) BETWEEN + col1 AND + col0 / + col0 - - col0 * - 55
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-581
SELECT DISTINCT 4 / - col0 + col1 AS col1 FROM tab1 WHERE 56 BETWEEN - col1 AND - CAST( + col0 AS SIGNED ) / col2
----

skipif mysql # not compatible
query I rowsort label-581
SELECT DISTINCT 4 / - col0 + col1 AS col1 FROM tab1 WHERE 56 BETWEEN - col1 AND - CAST ( + col0 AS INTEGER ) / col2
----

query I rowsort
SELECT ALL 61 + - 33 * - col1 FROM tab0
----
2734
754
94

query III rowsort
SELECT ALL * FROM tab2 WHERE 76 BETWEEN ( 67 + - 21 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT ALL MAX( - 33 ) FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-584
SELECT ALL MAX ( - 33 ) FROM tab2
----
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 * + ( 11 ) + + ( col0 + - 96 ) col1 FROM tab1
----
956
990
996

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

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

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

query I rowsort
SELECT 30 - - col0 FROM tab2
----
105
76
94

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN col2 * - col2 AND 38 + 90 * - col2
----

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( 54 )
----

query I rowsort
SELECT DISTINCT - 97 + col0 FROM tab1
----
-12
-46
-6

query I rowsort
SELECT 92 * + 56 FROM tab2 WHERE NULL IS NULL
----
5152
5152
5152

query I rowsort
SELECT 3 FROM tab0 WHERE NULL IS NULL
----
3
3
3

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

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

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

query I rowsort
SELECT DISTINCT - 35 AS col2 FROM tab0 WHERE NOT ( col1 ) <= + col1
----

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

query I rowsort
SELECT - col0 + 74 AS col1 FROM tab2
----
-1
10
28

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT DISTINCT SUM( DISTINCT col1 ) FROM tab1 WHERE NOT ( - 39 / + col1 - + 74 ) BETWEEN NULL AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-599
SELECT DISTINCT SUM ( DISTINCT col1 ) FROM tab1 WHERE NOT ( - 39 / + col1 - + 74 ) BETWEEN NULL AND + col2
----
NULL

query I rowsort
SELECT - ( + col2 ) * + col0 AS col1 FROM tab2
----
-1058
-2560
-4350

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

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT DISTINCT + COUNT( * ) * + 94 FROM tab2 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-602
SELECT DISTINCT + COUNT ( * ) * + 94 FROM tab2 AS cor0
----
282

query I rowsort
SELECT DISTINCT 96 + + col2 * + ( - 68 ) AS col2 FROM tab1 AS cor0
----
-3916
-4528
-6432

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-606
SELECT DISTINCT - COUNT( CAST( NULL AS SIGNED ) ) + SUM( col1 + - col0 ) FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-606
SELECT DISTINCT - COUNT ( CAST ( NULL AS INTEGER ) ) + SUM ( col1 + - col0 ) FROM tab0 AS cor0
----
-96

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

query I rowsort
SELECT ALL + col1 * col1 + + col0 / col0 FROM tab2 WHERE ( col1 + - 82 ) > + col1 * 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT + MIN( ALL - col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-609
SELECT + MIN ( ALL - col2 ) FROM tab2
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-610
SELECT DISTINCT - 54 DIV COUNT( 16 ) AS col0 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-610
SELECT DISTINCT - 54 / COUNT ( 16 ) AS col0 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT DISTINCT - 14 - 16 FROM tab2 cor0
----
-30

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 50 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > - col1
----

query I rowsort
SELECT ALL col1 * + 12 FROM tab2 AS cor0 WHERE col2 / 52 > ( + col2 )
----

query I rowsort
SELECT - - col0 - 62 FROM tab2 AS cor0
----
-16
13
2

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

skipif mysql # not compatible
query I rowsort label-616
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
NULL

query I rowsort
SELECT + - ( - 45 ) * 65 - col2 FROM tab1 AS cor0
----
2829
2857
2866

query I rowsort
SELECT 40 * + 48 + + 85 FROM tab2 AS cor0
----
2005
2005
2005

onlyif mysql # DIV for integer division: 
query I rowsort label-619
SELECT DISTINCT col0 DIV + col1 AS col0 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-619
SELECT DISTINCT col0 / + col1 AS col0 FROM tab1 AS cor0
----
1
17
3

query I rowsort
SELECT + col0 * col0 + - col1 * - 40 AS col0 FROM tab0 cor0
----
3465
8409
9449

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-621
SELECT * FROM tab0 WHERE NOT ( CAST( col1 AS SIGNED ) / - col1 + + col1 ) IN ( + 48 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-621
SELECT * FROM tab0 WHERE NOT ( CAST ( col1 AS INTEGER ) / - col1 + + col1 ) IN ( + 48 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-622
SELECT + col1 DIV + - 42 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-622
SELECT + col1 / + - 42 FROM tab2
----
-1
-1
-1

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

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

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

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

query I rowsort
SELECT col0 FROM tab2 WHERE NOT ( NULL ) <= + 38
----

query I rowsort
SELECT ALL col0 * col1 * - 63 AS col1 FROM tab0
----
-115101
-6111
-76545

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT - MIN( ALL 41 ) * 18 + COUNT( * ) * AVG ( ALL 77 ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 / 89 + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-630
SELECT - MIN ( ALL 41 ) * 18 + COUNT ( * ) * AVG ( ALL 77 ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 / 89 + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT - ( + + 64 ) * col2 AS col1 FROM tab2 AS cor0
----
-1472
-2560
-3712

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT - + SUM( - 13 ) AS col0 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-636
SELECT - + SUM ( - 13 ) AS col0 FROM tab1 AS cor0
----
39

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

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

query II rowsort
SELECT ALL 2, 37 * - - col1 AS col0 FROM tab2 AS cor0
----
2
1887
2
2479
2
2849

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

query I rowsort
SELECT col2 * + col0 + - 20 + + ( col0 - + col1 ) * + col1 AS col2 FROM tab0 AS cor0
----
-4661
2236
9679

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT + - ( - COUNT( * ) ) * - - COUNT( * ) + - 20 AS col0 FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-642
SELECT + - ( - COUNT ( * ) ) * - - COUNT ( * ) + - 20 AS col0 FROM tab2 AS cor0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-643
SELECT + 87 DIV 71 * - col2 + - 31 * 86 AS col2 FROM tab2 AS cor0
----
-2689
-2706
-2724

skipif mysql # not compatible
query I rowsort label-643
SELECT + 87 / 71 * - col2 + - 31 * 86 AS col2 FROM tab2 AS cor0
----
-2689
-2706
-2724

query I rowsort
SELECT + 62 + col0 AS col0 FROM tab0 AS cor0
----
149
159
77

query I rowsort
SELECT ALL - col2 + + col2 * - col1 FROM tab2
----
-1196
-3120
-3944

query I rowsort
SELECT DISTINCT + col1 * + 85 AS col0 FROM tab0
----
1785
6885
85

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN + + 45 AND + - 73 + - 31
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT + COUNT( 26 ) FROM tab2 WHERE ( - 23 * - 85 ) NOT BETWEEN ( + col0 ) AND ( + 26 )
----
3

skipif mysql # not compatible
query I rowsort label-651
SELECT + COUNT ( 26 ) FROM tab2 WHERE ( - 23 * - 85 ) NOT BETWEEN ( + col0 ) AND ( + 26 )
----
3

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

query I rowsort
SELECT col1 * + - col2 + - col1 AS col2 FROM tab0 AS cor0
----
-100
-231
-3888

query I rowsort
SELECT DISTINCT + 87 + - 39 FROM tab0 AS cor0
----
48

query I rowsort
SELECT 17 * col2 * + col2 FROM tab1 AS cor0
----
156672
59177
78608

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

onlyif mysql # DIV for integer division: 
query I rowsort label-657
SELECT + col2 DIV + + col0 - col0 FROM tab1 cor0
----
-50
-85
-91

skipif mysql # not compatible
query I rowsort label-657
SELECT + col2 / + + col0 - col0 FROM tab1 cor0
----
-50
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 + + 1 + - col1 col1 FROM tab1 AS cor0
----
-33
0
9

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT MAX( DISTINCT 49 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
49

skipif mysql # not compatible
query I rowsort label-659
SELECT MAX ( DISTINCT 49 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
49

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

onlyif mysql # aggregate syntax: 
query II rowsort label-661
SELECT ALL - 42 - + MIN( + col0 ), + MIN( + col2 ) col0 FROM tab2 AS cor0
----
-88
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-661
SELECT ALL - 42 - + MIN ( + col0 ), + MIN ( + col2 ) col0 FROM tab2 AS cor0
----
-88
23

query I rowsort
SELECT + 69 * + - col0 AS col2 FROM tab0 cor0
----
-1035
-6003
-6693

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 55 )
----

query I rowsort
SELECT ( - col2 ) * - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-665
SELECT - col2 AS col1, + ( 65 ) - - col0 DIV col1 + col1 AS col1 FROM tab0 AS cor0
----
-10
90
-47
146
-99
163

skipif mysql # not compatible
query II rowsort label-665
SELECT - col2 AS col1, + ( 65 ) - - col0 / col1 + col1 AS col1 FROM tab0 AS cor0
----
-10
90
-47
146
-99
163

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT ALL - COUNT( * ) * - 73 FROM tab1 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-666
SELECT ALL - COUNT ( * ) * - 73 FROM tab1 AS cor0
----
219

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

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

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

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE + + col2 <> + + col0
----
46
64
75

query I rowsort
SELECT DISTINCT + 8 * - + 40 FROM tab1
----
-320

onlyif mysql # aggregate syntax: 
query II rowsort label-671
SELECT 77 AS col1, MAX( + - col0 ) FROM tab1
----
77
-51

skipif mysql # not compatible
query II rowsort label-671
SELECT 77 AS col1, MAX ( + - col0 ) FROM tab1
----
77
-51

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

query I rowsort
SELECT ALL - - col1 + col1 * + 96 * 95 + col0 AS col0 FROM tab1 WHERE NOT + col2 + 47 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-674
SELECT ALL - - 38 DIV + col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-674
SELECT ALL - - 38 / + col2 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-675
SELECT ALL + 89 * col1 DIV + + 49 + + col2 * + col1 + + - 20 * - col2 AS col1 FROM tab0 AS cor0
----
2080
448
4894

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL + 89 * col1 / + + 49 + + col2 * + col1 + + - 20 * - col2 AS col1 FROM tab0 AS cor0
----
2080
448
4894

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT DISTINCT + MIN( ALL + 27 ) + + - 62 FROM tab2 cor0
----
-35

skipif mysql # not compatible
query I rowsort label-678
SELECT DISTINCT + MIN ( ALL + 27 ) + + - 62 FROM tab2 cor0
----
-35

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 <> - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 11 <= NULL
----

query I rowsort
SELECT DISTINCT 60 + - col1 FROM tab1 AS cor0
----
13
46
55

query I rowsort
SELECT DISTINCT + col1 * + + col0 * 11 FROM tab1 AS cor0 WHERE ( NULL ) IN ( col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> + 53
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT ALL COUNT( * ) + + - 46 col1 FROM tab0
----
-43

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-687
SELECT DISTINCT CAST( - col2 AS SIGNED ) DIV - + col1 AS col0 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-687
SELECT DISTINCT CAST ( - col2 AS INTEGER ) / - + col1 AS col0 FROM tab1
----
1
11
6

query I rowsort
SELECT col0 + 6 FROM tab0
----
103
21
93

query I rowsort
SELECT DISTINCT 19 - col1 AS col2 FROM tab1
----
-28
14
5

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

skipif mysql # not compatible
query I rowsort label-690
SELECT ALL CAST ( - 99 AS INTEGER ) FROM tab0
----
-99
-99
-99

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

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

query II rowsort
SELECT ALL + col0 AS col1, 96 * - - col0 - + - 50 FROM tab2 cor0
----
46
4466
64
6194
75
7250

query I rowsort
SELECT - - col1 * + col0 * col0 * 17 + - - 71 * + col1 * + + 19 + col1 + + col2 FROM tab1 AS cor0
----
620934
638034
6680037

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

skipif mysql # not compatible
query I rowsort label-694
SELECT + CAST ( + MAX ( + col2 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
58

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

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

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - col0 - - + 26 AND NULL
----

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

query I rowsort
SELECT ALL - col0 * 79 + + col0 FROM tab1 AS cor0 WHERE NOT ( 9 ) / col2 / - 59 * - - col0 - + col2 / + col2 IS NULL
----
-3978
-6630
-7098

onlyif mysql # DIV for integer division: 
query I rowsort label-699
SELECT col1 * + col2 DIV - - col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-699
SELECT col1 * + col2 / - - col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT + 77 * 20 FROM tab2 AS cor0
----
1540

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

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

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

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

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

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

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

query I rowsort
SELECT ALL col2 * ( + ( - + 0 ) ) FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 10 * + 24 AS col0 FROM tab0
----
240

onlyif mysql # DIV for integer division: 
query I rowsort label-707
SELECT ALL + col2 DIV - - 91 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL + col2 / - - 91 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE + col2 + + col0 * - col1 + + - ( - col1 ) >= ( NULL )
----

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

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

query I rowsort
SELECT - ( ( - col1 ) ) * - col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

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

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

query I rowsort
SELECT ALL + 6 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 28 col1, - col2 FROM tab0
----
-28
-10
-28
-47
-28
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 + + - col2 * - col0 + + col1 col2 FROM tab1 AS cor0
----
4939
5049
6264

query I rowsort
SELECT DISTINCT - + col2 * col0 + col0 + col2 AS col1 FROM tab1 AS cor0
----
-4749
-4871
-6029

query I rowsort
SELECT col1 + + + 74 FROM tab0 AS cor0
----
155
75
95

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE - col2 * + 7 + + 37 > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-718
SELECT - col1 + 69 + + col2 DIV col1, + col1 AS col2 FROM tab0 AS cor0
----
-12
81
167
1
48
21

skipif mysql # not compatible
query II rowsort label-718
SELECT - col1 + 69 + + col2 / col1, + col1 AS col2 FROM tab0 AS cor0
----
-12
81
167
1
48
21

onlyif mysql # DIV for integer division: 
query I rowsort label-719
SELECT DISTINCT - - 38 + ( + - col1 ) + + 28 + + col1 DIV + 39 FROM tab2 AS cor0
----
-10
0
16

skipif mysql # not compatible
query I rowsort label-719
SELECT DISTINCT - - 38 + ( + - col1 ) + + 28 + + col1 / + 39 FROM tab2 AS cor0
----
-10
0
16

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT + COUNT( * ) FROM tab1 WHERE - col2 NOT BETWEEN + 86 AND + col0
----
3

skipif mysql # not compatible
query I rowsort label-720
SELECT + COUNT ( * ) FROM tab1 WHERE - col2 NOT BETWEEN + 86 AND + col0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 22 <= NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-723
SELECT DISTINCT - CAST ( + - 37 AS INTEGER ) FROM tab1
----
37

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

query I rowsort
SELECT + col1 * 80 FROM tab0 WHERE ( NULL ) IS NULL
----
1680
6480
80

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-728
SELECT + - SUM( DISTINCT + 17 ) * MAX( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-728
SELECT + - SUM ( DISTINCT + 17 ) * MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-730
SELECT - ( col0 ) DIV col1 col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-730
SELECT - ( col0 ) / col1 col2 FROM tab2 AS cor0
----
-1
0
0

query II rowsort
SELECT DISTINCT - + 37 * + col1 * + 40 AS col2, col0 AS col0 FROM tab2 AS cor0
----
-113960
64
-75480
46
-99160
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 80 col1, 58 col1 FROM tab0 AS cor0
----
80
58
80
58
80
58

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

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

query I rowsort
SELECT DISTINCT ( + 59 ) FROM tab2 cor0
----
59

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

skipif mysql # not compatible
query II rowsort label-735
SELECT ALL + COUNT ( * ) AS col1, + COUNT ( - + 32 ) FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT ALL - ( + - col0 ) AS col2 FROM tab2
----
46
64
75

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

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

query II rowsort
SELECT DISTINCT + 65 * col2, 5 AS col2 FROM tab0
----
3055
5
6435
5
650
5

query I rowsort
SELECT ALL + 88 AS col1 FROM tab2 cor0
----
88
88
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 + col1 * - col1 col1 FROM tab0 AS cor0
----
-377
-6497
63

query I rowsort
SELECT - 7 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT - col0 * + 47 + + + 61 * + - 44 FROM tab2
----
-4846
-5692
-6209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 * + col1 + + - 43 col1 FROM tab0 cor0
----
-117
-1597
-6037

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-744
SELECT ALL CAST( NULL AS DECIMAL ) * - AVG ( DISTINCT - col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-744
SELECT ALL CAST ( NULL AS REAL ) * - AVG ( DISTINCT - col2 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 16 * + 45 + + + col0 FROM tab2 AS cor0
----
-645
-656
-674

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 * + - col1 col1 FROM tab1 AS cor0
----
168
564
60

query I rowsort
SELECT DISTINCT + col0 + - - col2 * + col1 FROM tab1 AS cor0
----
1395
3287
380

query I rowsort
SELECT ALL - 1 + + ( + col2 ) FROM tab0 AS cor0
----
46
9
98

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

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

query I rowsort
SELECT - col0 + - col2 * - col0 * - col2 FROM tab1
----
-295970
-420875
-470067

onlyif mysql # DIV for integer division: 
query I rowsort label-752
SELECT - col2 * + col2 DIV + col2 + - ( 3 ) col0 FROM tab0
----
-102
-13
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-752
SELECT - col2 * + col2 / + col2 + - ( 3 ) col0 FROM tab0
----
-102
-13
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-753
SELECT ALL col1 - + + 59 + col2 * col0 + - - col1 * + + CAST( + 41 AS SIGNED ) FROM tab1
----
5166
5425
8103

skipif mysql # not compatible
query I rowsort label-753
SELECT ALL col1 - + + 59 + col2 * col0 + - - col1 * + + CAST ( + 41 AS INTEGER ) FROM tab1
----
5166
5425
8103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-754
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-754
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT ALL + 30 * - + col2 AS col0 FROM tab2
----
-1200
-1740
-690

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-756
SELECT + + CAST( col1 AS SIGNED ) * - - col1 AS col0 FROM tab1 AS cor0
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-756
SELECT + + CAST ( col1 AS INTEGER ) * - - col1 AS col0 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT col2 * + 45 FROM tab1 AS cor0
----
2655
3060
4320

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

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

query I rowsort
SELECT - 46 * + 29 AS col0 FROM tab2 AS cor0
----
-1334
-1334
-1334

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

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + + col1 <= col2 * + col2
----

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE - col0 BETWEEN + col1 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT ALL + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 * col2 <> - col2 - + 26 + + + 81
----
0

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 * col2 <> - col2 - + 26 + + + 81
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN - col1 AND 66 / - + 48 * + col2 * + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * - - 20 IS NOT NULL
----

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

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

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

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

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

query I rowsort
SELECT + col2 * + 36 FROM tab2
----
1440
2088
828

onlyif mysql # DIV for integer division: 
query I rowsort label-770
SELECT + 64 DIV ( + - col1 ) AS col1 FROM tab1
----
-1
-12
-4

skipif mysql # not compatible
query I rowsort label-770
SELECT + 64 / ( + - col1 ) AS col1 FROM tab1
----
-1
-12
-4

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT ( NOT 36 BETWEEN + col1 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT MAX( - 5 ) AS col1 FROM tab2 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-772
SELECT MAX ( - 5 ) AS col1 FROM tab2 WHERE NOT NULL >= NULL
----
NULL

query II rowsort
SELECT DISTINCT col2 + - ( - + col0 ), col1 FROM tab2 AS cor0
----
104
77
133
67
69
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-774
SELECT ALL + 2 DIV MIN( - col0 ) + + 50 col2 FROM tab1 AS cor0
----
50

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-775
SELECT + - 49 / - col2 * + col2 - + CAST( NULL AS SIGNED ) + 68 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-775
SELECT + - 49 / - col2 * + col2 - + CAST ( NULL AS INTEGER ) + 68 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT ALL SUM( ALL + - 35 ) + + 4 AS col0 FROM tab1 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-776
SELECT ALL SUM ( ALL + - 35 ) + + 4 AS col0 FROM tab1 AS cor0
----
-101

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

query I rowsort
SELECT + - col2 + col2 * + col2 FROM tab1 AS cor0
----
3422
4556
9120

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

query II rowsort
SELECT ALL - col0 * + col0, - 7 AS col0 FROM tab0 AS cor0
----
-225
-7
-7569
-7
-9409
-7

query I rowsort
SELECT DISTINCT + col0 + ( + + col0 ) AS col2 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT ALL - ( + + col1 ) * + 50 + + - col1 + - + col2 + - 9 FROM tab2 AS cor0
----
-2633
-3484
-3976

query I rowsort
SELECT - 83 + 52 FROM tab0 AS cor0
----
-31
-31
-31

query II rowsort
SELECT - - 96 AS col1, col2 FROM tab1 AS cor0 WHERE col0 - col0 IS NULL
----

query I rowsort
SELECT ALL - 98 - - - 40 - - - col2 + + 10 * + - col1 + - ( + 10 ) + - col0 FROM tab0
----
-1020
-354
-455

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

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT ALL - SUM( 53 ) * + + 21 AS col1 FROM tab1
----
-3339

skipif mysql # not compatible
query I rowsort label-787
SELECT ALL - SUM ( 53 ) * + + 21 AS col1 FROM tab1
----
-3339

query I rowsort
SELECT col2 - + 46 AS col2 FROM tab1
----
13
22
50

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT ALL 20 - - COUNT( * ) AS col0 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-789
SELECT ALL 20 - - COUNT ( * ) AS col0 FROM tab0
----
23

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT col2 > NULL
----

query I rowsort
SELECT + col2 * - 90 * - - col2 AS col2 FROM tab2 AS cor0
----
-144000
-302760
-47610

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-792
SELECT ALL + SUM( ALL col0 ) DIV 4 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-792
SELECT ALL + SUM ( ALL col0 ) / 4 FROM tab2 AS cor0
----
46

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

query I rowsort
SELECT col1 * - 44 * + col0 FROM tab1 AS cor0
----
-18700
-188188
-31416

query II rowsort
SELECT DISTINCT col2 * 36, + col0 + - col1 AS col0 FROM tab1
----
2124
80
2448
44
3456
37

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT - MIN( DISTINCT - - 0 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-796
SELECT - MIN ( DISTINCT - - 0 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query II rowsort
SELECT ALL col1 AS col0, 58 AS col0 FROM tab2
----
51
58
67
58
77
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE - 71 + ( - col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-799
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE - 71 + ( - col1 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT MIN( - - 20 ) AS col0 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-800
SELECT MIN ( - - 20 ) AS col0 FROM tab1
----
20

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

query I rowsort
SELECT ALL 61 * - col0 FROM tab1 AS cor0
----
-3111
-5185
-5551

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-803
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * CAST( col1 AS SIGNED ) / col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-803
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * CAST ( col1 AS INTEGER ) / col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-804
SELECT MAX ( - 2 ) col1 FROM tab2 AS cor0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-805
SELECT DISTINCT + 79 DIV col2 FROM tab0 AS cor0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-805
SELECT DISTINCT + 79 / col2 FROM tab0 AS cor0
----
0
1
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-806
SELECT DISTINCT 74 DIV - MAX( ALL col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-806
SELECT DISTINCT 74 / - MAX ( ALL col1 ) FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL 95 AS col1, 90 FROM tab1 AS cor0
----
95
90
95
90
95
90

query II rowsort
SELECT ALL - 40 AS col1, - 61 FROM tab0 AS cor0
----
-40
-61
-40
-61
-40
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT DISTINCT COUNT( * ) + - - 87 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-809
SELECT DISTINCT COUNT ( * ) + - - 87 FROM tab1 AS cor0
----
90

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-811
SELECT - MAX( col2 ), + COUNT( * ) AS col0 FROM tab1
----
-96
3

skipif mysql # not compatible
query II rowsort label-811
SELECT - MAX ( col2 ), + COUNT ( * ) AS col0 FROM tab1
----
-96
3

query I rowsort
SELECT col0 * + 71 FROM tab1 WHERE NOT + col2 * 47 NOT BETWEEN 75 AND NULL
----

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

query I rowsort
SELECT - 79 * - 56 AS col0 FROM tab2
----
4424
4424
4424

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT MIN( DISTINCT + col1 ) * + - 84 AS col1 FROM tab2
----
-4284

skipif mysql # not compatible
query I rowsort label-817
SELECT MIN ( DISTINCT + col1 ) * + - 84 AS col1 FROM tab2
----
-4284

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-821
SELECT col2 DIV col1 * + ( + + col0 ) - - ( - col0 ) + col2 AS col1 FROM tab1 cor0
----
351
68
909

skipif mysql # not compatible
query I rowsort label-821
SELECT col2 / col1 * + ( + + col0 ) - - ( - col0 ) + col2 AS col1 FROM tab1 cor0
----
351
68
909

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT - + COUNT( * ) - + 39 AS col1 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-822
SELECT - + COUNT ( * ) - + 39 AS col1 FROM tab2 AS cor0
----
-42

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE + 54 * col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-826
SELECT DISTINCT col0 - CAST( NULL AS SIGNED ) / + + 45 col2 FROM tab0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-827
SELECT ( - col0 ) AS col0, col0 * - 59 * CAST( NULL AS SIGNED ) FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-827
SELECT ( - col0 ) AS col0, col0 * - 59 * CAST ( NULL AS INTEGER ) FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

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

query I rowsort
SELECT ALL + col1 * col2 * - col2 FROM tab2
----
-123200
-225388
-26979

query I rowsort
SELECT + 93 * - - 40 * col0 FROM tab0 AS cor0
----
323640
360840
55800

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-832
SELECT ( - - col1 ) * + 45 + + - col0 DIV + - col1 FROM tab1
----
2116
242
633

skipif mysql # not compatible
query I rowsort label-832
SELECT ( - - col1 ) * + 45 + + - col0 / + - col1 FROM tab1
----
2116
242
633

query I rowsort
SELECT ALL col2 FROM tab0 WHERE 19 IS NOT NULL
----
10
47
99

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

skipif mysql # not compatible
query I rowsort label-834
SELECT + COUNT ( * ) * 72 FROM tab0 WHERE NOT + col0 IS NULL
----
216

query II rowsort
SELECT DISTINCT - + col2 AS col2, col1 * + col0 + - + col0 + col2 FROM tab1 AS cor0
----
-59
399
-68
4254
-96
759

onlyif mysql # DIV for integer division: 
query I rowsort label-836
SELECT ALL - + col1 DIV - col1 + + 1 FROM tab2 cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-836
SELECT ALL - + col1 / - col1 + + 1 FROM tab2 cor0
----
2
2
2

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-840
SELECT + 18 DIV - 55 + - CAST( - AVG ( + + col2 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-840
SELECT + 18 / - 55 + - CAST ( - AVG ( + + col2 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
40

query I rowsort
SELECT - col0 + + 24 * - col2 FROM tab0 AS cor0
----
-1143
-2473
-327

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

onlyif mysql # DIV for integer division: 
query I rowsort label-843
SELECT ALL col1 DIV - col0 + - + col2 * 77 FROM tab1
----
-4543
-5236
-7392

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL col1 / - col0 + - + col2 * 77 FROM tab1
----
-4543
-5236
-7392

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-847
SELECT ALL SUM( + col2 ) DIV + MAX( ALL col1 ) col0 FROM tab1
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-847
SELECT ALL SUM ( + col2 ) / + MAX ( ALL col1 ) col0 FROM tab1
----
4

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-853
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-853
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) <> - ( + + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-855
SELECT DISTINCT - COUNT( * ) - COUNT( * ), COUNT( * ) AS col1 FROM tab1 AS cor0
----
-6
3

skipif mysql # not compatible
query II rowsort label-855
SELECT DISTINCT - COUNT ( * ) - COUNT ( * ), COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-6
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 * 63 + - col1 * col1 col1 FROM tab0 cor0
----
-5805
315
755

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

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

query I rowsort
SELECT DISTINCT 19 + + col1 FROM tab1 AS cor0
----
24
33
66

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

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

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

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

skipif mysql # not compatible
query I rowsort label-862
SELECT ALL - SUM ( ALL + + col2 ) AS col2 FROM tab2
----
-121

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

query I rowsort
SELECT ALL - col0 * 38 FROM tab1
----
-1938
-3230
-3458

query II rowsort
SELECT DISTINCT col0 AS col1, - col0 AS col1 FROM tab0
----
15
-15
87
-87
97
-97

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

skipif mysql # not compatible
query I rowsort label-866
SELECT ALL + col1 AS col1 FROM tab0 WHERE ( + CAST ( ( col1 ) AS INTEGER ) ) NOT BETWEEN NULL AND + 97
----

onlyif mysql # aggregate syntax: 
query II rowsort label-867
SELECT ALL MIN( ALL - ( + + 93 ) ), 9 col2 FROM tab2
----
-93
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-867
SELECT ALL MIN ( ALL - ( + + 93 ) ), 9 col2 FROM tab2
----
-93
9

query I rowsort
SELECT DISTINCT 0 * col2 AS col1 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col1 + col0 = + 41 * col2 + col2 + 16
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-871
SELECT ALL - 99 DIV + SUM( ALL - + col0 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL - 99 / + SUM ( ALL - + col0 ) AS col1 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( 63 ) / + 73 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT ALL - ( 76 ) * + + COUNT( * ) FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-874
SELECT ALL - ( 76 ) * + + COUNT ( * ) FROM tab2
----
-228

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 24 IN ( col0 + ( + - col0 ) / - - col1 * - col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-877
SELECT DISTINCT + col2 + - col2 AS col2, col0 DIV + 42 AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query II rowsort label-877
SELECT DISTINCT + col2 + - col2 AS col2, col0 / + 42 AS col1 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT ALL - + 49 + + col1 FROM tab0 AS cor0
----
-28
-48
32

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT 36 * COUNT( * ) FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-880
SELECT 36 * COUNT ( * ) FROM tab0
----
108

query I rowsort
SELECT col2 * 89 AS col2 FROM tab2
----
2047
3560
5162

onlyif mysql # DIV for integer division: 
query I rowsort label-882
SELECT DISTINCT 77 DIV 22 + + - col2 FROM tab1
----
-56
-65
-93

skipif mysql # not compatible
query I rowsort label-882
SELECT DISTINCT 77 / 22 + + - col2 FROM tab1
----
-56
-65
-93

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

query I rowsort
SELECT col1 + - 6 + + col1 AS col2 FROM tab2
----
128
148
96

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

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

query I rowsort
SELECT col1 + + + col0 AS col2 FROM tab0
----
108
96
98

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

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

skipif mysql # not compatible
query I rowsort label-889
SELECT COUNT ( 50 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT + col0 * + + ( - 46 ) - col0 FROM tab2
----
-2162
-3008
-3525

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT ALL + MAX( 45 ) - + COUNT( * ) FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-891
SELECT ALL + MAX ( 45 ) - + COUNT ( * ) FROM tab2 AS cor0
----
42

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

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

query I rowsort
SELECT 78 * ( col2 ) * + + col2 * - col1 FROM tab1 AS cor0
----
-10063872
-1357590
-16951584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * - col2 AS col0, 19 col1 FROM tab0 AS cor0
----
-705
19
-870
19
-9603
19

query II rowsort
SELECT ALL - col0 AS col1, + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-46
-1058
-64
-2560
-75
-4350

query I rowsort
SELECT DISTINCT + 52 * - - 88 FROM tab1 AS cor0 WHERE - col0 = + 90
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-900
SELECT col1 DIV + 60 AS col0, col0 FROM tab1
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-900
SELECT col1 / + 60 AS col0, col0 FROM tab1
----
0
51
0
85
0
91

query I rowsort
SELECT + 87 FROM tab1 WHERE NOT - 66 * + col2 + - col0 IS NOT NULL
----

query II rowsort
SELECT - - col1 * + - 66, + col1 AS col2 FROM tab0 cor0
----
-1386
21
-5346
81
-66
1

onlyif mysql # DIV for integer division: 
query II rowsort label-903
SELECT - ( + col2 ) DIV - - 20 col0, col0 * + 36 AS col2 FROM tab0
----
-2
540
-4
3492
0
3132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-903
SELECT - ( + col2 ) / - - 20 col0, col0 * + 36 AS col2 FROM tab0
----
-2
540
-4
3492
0
3132

onlyif mysql # DIV for integer division: 
query II rowsort label-904
SELECT DISTINCT col0, + col0 DIV col0 * - 69 * + 45 * + col2 FROM tab0
----
15
-145935
87
-31050
97
-307395

skipif mysql # not compatible
query II rowsort label-904
SELECT DISTINCT col0, + col0 / col0 * - 69 * + 45 * + col2 FROM tab0
----
15
-145935
87
-31050
97
-307395

query II rowsort
SELECT 57 + - col0 - + 6 AS col0, 22 * + col2 FROM tab0 AS cor0
----
-36
220
-46
2178
36
1034

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT - 8 + + + COUNT( * ) FROM tab1 AS cor0
----
-5

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

query I rowsort
SELECT DISTINCT - ( - + 42 ) * col1 AS col0 FROM tab2 cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT 38 + - col0 AS col0 FROM tab0 AS cor0
----
-49
-59
23

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

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

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

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

query II rowsort
SELECT + col2 * + col2, + col2 AS col2 FROM tab2 AS cor0
----
1600
40
3364
58
529
23

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

query I rowsort
SELECT DISTINCT - 54 * 15 FROM tab1
----
-810

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-915
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + CAST( + + col1 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-915
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + CAST ( + + col1 AS INTEGER ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT 83 * - COUNT( * ) FROM tab0 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-916
SELECT 83 * - COUNT ( * ) FROM tab0 AS cor0
----
-249

query I rowsort
SELECT DISTINCT + + 16 * col0 FROM tab0 AS cor0
----
1392
1552
240

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

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

query I rowsort
SELECT col0 * - + 77 AS col2 FROM tab2 AS cor0
----
-3542
-4928
-5775

query I rowsort
SELECT ALL - col1 * ( 48 ) FROM tab2 AS cor0
----
-2448
-3216
-3696

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

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

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

skipif mysql # not compatible
query I rowsort label-922
SELECT - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + MAX ( + ( ( CAST ( + col2 AS REAL ) ) ) ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-923
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 85 + + col1 * + - ( + col0 ) * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-923
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 85 + + col1 * + - ( + col0 ) * CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT - col2 * + - col0 + 96 * + col2 FROM tab0 AS cor0
----
1830
19107
5217

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

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

query II rowsort
SELECT DISTINCT + ( - + 95 ) AS col2, - col0 * + + col0 AS col1 FROM tab1
----
-95
-2601
-95
-7225
-95
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-927
SELECT ALL + col0 * CAST( - 37 AS SIGNED ) AS col0 FROM tab2
----
-1702
-2368
-2775

skipif mysql # not compatible
query I rowsort label-927
SELECT ALL + col0 * CAST ( - 37 AS INTEGER ) AS col0 FROM tab2
----
-1702
-2368
-2775

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - col2 col2 FROM tab0
----
1
-99
21
-10
81
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-930
SELECT col1, - CAST( NULL AS SIGNED ) + + - col2 + 52 * + col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-930
SELECT col1, - CAST ( NULL AS INTEGER ) + + - col2 + 52 * + col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

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

query II rowsort
SELECT - 78 AS col1, ( - 64 ) FROM tab1
----
-78
-64
-78
-64
-78
-64

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

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

query I rowsort
SELECT ALL + 50 * + col0 + - col2 AS col2 FROM tab2 cor0
----
2277
3160
3692

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + ( 71 ) * + + 76 + col1 + + + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-936
SELECT - col1 DIV - + col0 AS col2 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-936
SELECT - col1 / - + col0 AS col2 FROM tab0
----
0
0
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT 29 - - + SUM( ALL + col0 ) * MIN( ALL col2 ) AS col2 FROM tab0
----
2019

skipif mysql # not compatible
query I rowsort label-939
SELECT 29 - - + SUM ( ALL + col0 ) * MIN ( ALL col2 ) AS col2 FROM tab0
----
2019

query I rowsort
SELECT ALL col1 + 7 FROM tab2
----
58
74
84

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT DISTINCT ( + 14 ) + - COUNT( * ) + COUNT( * ) + - 58 col2 FROM tab1
----
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-941
SELECT DISTINCT ( + 14 ) + - COUNT ( * ) + COUNT ( * ) + - 58 col2 FROM tab1
----
-44

query I rowsort
SELECT DISTINCT - col0 + - - 45 + col0 AS col2 FROM tab0
----
45

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-945
SELECT ALL + COUNT( * ) DIV 5 - 40 * 10 + - 42 AS col0 FROM tab0
----
-442

skipif mysql # not compatible
query I rowsort label-945
SELECT ALL + COUNT ( * ) / 5 - 40 * 10 + - 42 AS col0 FROM tab0
----
-442

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT - COUNT( * ) * - + 91 * + COUNT( * ) + - + COUNT( * ) FROM tab2
----
816

skipif mysql # not compatible
query I rowsort label-946
SELECT - COUNT ( * ) * - + 91 * + COUNT ( * ) + - + COUNT ( * ) FROM tab2
----
816

query I rowsort
SELECT ALL - 63 FROM tab2 WHERE 74 IS NOT NULL
----
-63
-63
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-948
SELECT + col1 + - + CAST( NULL AS SIGNED ) + 72 AS col2, + col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-948
SELECT + col1 + - + CAST ( NULL AS INTEGER ) + 72 AS col2, + col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT + MAX( DISTINCT + col0 ) FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-949
SELECT + MAX ( DISTINCT + col0 ) FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT ALL + 98 * - MAX( ALL + 56 ) FROM tab1
----
-5488

skipif mysql # not compatible
query I rowsort label-950
SELECT ALL + 98 * - MAX ( ALL + 56 ) FROM tab1
----
-5488

query II rowsort
SELECT + col2 * 65 + - + col1 AS col0, col2 AS col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-952
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - 5, - col0 * + col2, - CAST( + + col1 AS DECIMAL ), col1 )
----

skipif mysql # not compatible
query III rowsort label-952
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - 5, - col0 * + col2, - CAST ( + + col1 AS REAL ), col1 )
----

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

query I rowsort
SELECT ALL - ( - ( - - col2 ) ) FROM tab0
----
10
47
99

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 * 27 FROM tab1 AS cor0
----
1377
2295
2457

query I rowsort
SELECT DISTINCT + 37 AS col0 FROM tab2 cor0
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-960
SELECT ALL + col2 DIV 78 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-960
SELECT ALL + col2 / 78 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT + COUNT( * ) * - 1 * 81 FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-961
SELECT + COUNT ( * ) * - 1 * 81 FROM tab0 AS cor0
----
-243

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT ( + COUNT( DISTINCT - - 78 ) ) * - - 80 col0 FROM tab0 AS cor0
----
80

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( + col1 ) NOT IN ( + - col0, + 26 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 * - ( - col2 ) + - ( + col1 ) >= col1 * - col2 + - col0 + - 82 * - 3
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( col1 ) + col0 AS col1 FROM tab2 WHERE NOT NULL <= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col0 ) * - 5 + col0 col2 FROM tab2
----
276
384
450

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( 12 ) * - ( + - 68 ) - + col2 * + + 34 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 NOT BETWEEN 64 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * 41 FROM tab2
----
1640
2378
943

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT DISTINCT COUNT( DISTINCT - - 79 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT COUNT ( DISTINCT - - 79 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-972
SELECT - col2 + col0 DIV - 82 FROM tab0 AS cor0
----
-100
-11
-47

skipif mysql # not compatible
query I rowsort label-972
SELECT - col2 + col0 / - 82 FROM tab0 AS cor0
----
-100
-11
-47

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-975
SELECT + col0 + - CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
144
147
159

skipif mysql # not compatible
query I rowsort label-975
SELECT + col0 + - CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
144
147
159

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

query I rowsort
SELECT col2 * - 43 + + - col1 AS col1 FROM tab0 AS cor0
----
-2102
-4258
-451

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

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

query I rowsort
SELECT DISTINCT + col1 - - - 82 FROM tab2 AS cor0
----
-15
-31
-5

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT - + MIN( ALL + col0 ) FROM tab2 WHERE NULL <> - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-982
SELECT - + MIN ( ALL + col0 ) FROM tab2 WHERE NULL <> - col0
----
NULL

query I rowsort
SELECT ALL col2 * + ( col0 ) AS col1 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT - 57 * - ( + col0 ) - - col1 AS col2 FROM tab1 AS cor0
----
2921
4850
5234

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

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

query I rowsort
SELECT DISTINCT + 27 * - col0 AS col0 FROM tab2
----
-1242
-1728
-2025

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( - col1, col1 * - + 62 )
----

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 43 <> + col0
----

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

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

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

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

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

query II rowsort
SELECT ALL + 37 * - col0 AS col1, + col0 AS col2 FROM tab0
----
-3219
87
-3589
97
-555
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-998
SELECT DISTINCT + 4 DIV - SUM( ALL - - 71 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-998
SELECT DISTINCT + 4 / - SUM ( ALL - - 71 ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-999
SELECT ALL CAST( - 72 AS SIGNED ) DIV - col0 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-999
SELECT ALL CAST ( - 72 AS INTEGER ) / - col0 AS col1 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1000
SELECT 30 DIV SUM( - + col1 ) col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1000
SELECT 30 / SUM ( - + col1 ) col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1001
SELECT ALL col2 * + + col1 DIV + col1 AS col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL col2 * + + col1 / + col1 AS col1 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1002
SELECT DISTINCT MIN( DISTINCT + + col0 ) AS col1, - MAX( DISTINCT - - col1 ) FROM tab1
----
51
-47

skipif mysql # not compatible
query II rowsort label-1002
SELECT DISTINCT MIN ( DISTINCT + + col0 ) AS col1, - MAX ( DISTINCT - - col1 ) FROM tab1
----
51
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-1003
SELECT ( - 44 ) DIV col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1003
SELECT ( - 44 ) / col2 FROM tab2
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1004
SELECT DISTINCT 14 DIV - ( - 87 ) * + - col2 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1004
SELECT DISTINCT 14 / - ( - 87 ) * + - col2 AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL ( + 6 ) + - 41 FROM tab1 AS cor0
----
-35
-35
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-1006
SELECT col1 + col2 DIV col1 AS col0 FROM tab1 AS cor0
----
16
20
48

skipif mysql # not compatible
query I rowsort label-1006
SELECT col1 + col2 / col1 AS col0 FROM tab1 AS cor0
----
16
20
48

onlyif mysql # DIV for integer division: 
query I rowsort label-1007
SELECT ALL - + col0 DIV - - 36 + 94 col1 FROM tab0 cor0
----
92
92
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1007
SELECT ALL - + col0 / - - 36 + 94 col1 FROM tab0 cor0
----
92
92
94

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

query I rowsort
SELECT + ( - - col0 ) * - + 74 AS col1 FROM tab2
----
-3404
-4736
-5550

query II rowsort
SELECT - col2 * + + col0 * - - col2 AS col1, - col1 * + 65 FROM tab0
----
-33135
-5265
-8700
-1365
-950697
-65

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

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

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

query I rowsort
SELECT DISTINCT - col1 * + col0 + col0 FROM tab2 AS cor0
----
-2300
-4864
-4950

query I rowsort
SELECT ALL - 72 + - - 84 FROM tab2 AS cor0
----
12
12
12

query I rowsort
SELECT + + col2 - + ( - col1 ) * - 79 FROM tab2 AS cor0
----
-4006
-5235
-6043

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( col0 ) + 3 + + + 9 NOT BETWEEN + col1 AND - 39 / + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( + col1 ) + - + 29 AS col0 FROM tab1 AS cor0
----
-15
-24
18

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 NOT IN ( - 12 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 52 + + col2 * - + col0 col2 FROM tab1
----
-5275
-5624
-8632

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1022
SELECT + AVG ( - col2 ) + + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

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

query III rowsort
SELECT * FROM tab0 WHERE + 61 * - col2 - + col2 BETWEEN + - col0 AND - col1
----

query I rowsort
SELECT DISTINCT - 77 + - col1 AS col2 FROM tab2
----
-128
-144
-154

query I rowsort
SELECT - col0 * + 23 + - + col0 AS col1 FROM tab1
----
-1224
-2040
-2184

query II rowsort
SELECT DISTINCT col1 AS col2, - 35 FROM tab0
----
1
-35
21
-35
81
-35

query I rowsort
SELECT DISTINCT - 36 AS col0 FROM tab1 WHERE NULL = NULL
----

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

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

query I rowsort
SELECT DISTINCT 59 + + + ( + - col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT 71 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1031
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + - col2 + + col0 + - + col2 / col0 * + col1 + col2 / + 56 * + col0 < - + 28 - + col0
----

skipif mysql # not compatible
query III rowsort label-1031
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + - col2 + + col0 + - + col2 / col0 * + col1 + col2 / + 56 * + col0 < - + 28 - + col0
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 51 * + 42 + ( + col2 ) IS NOT NULL
----

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

query I rowsort
SELECT ( col0 ) FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT ALL + + 58 * COUNT( * ) * - + 58 FROM tab0 AS cor0
----
-10092

skipif mysql # not compatible
query I rowsort label-1037
SELECT ALL + + 58 * COUNT ( * ) * - + 58 FROM tab0 AS cor0
----
-10092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1038
SELECT CAST( col2 AS SIGNED ) + - + col0 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-1038
SELECT CAST ( col2 AS INTEGER ) + - + col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT ALL col1 * col0 * col2 + - - col2 * col0 FROM tab0
----
19140
19206
57810

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1041
SELECT 67 AS col0 FROM tab2, tab2 AS cor0 WHERE NOT - + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1041
SELECT 67 AS col0 FROM tab2, tab2 AS cor0 WHERE NOT - + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + 75 * col1 FROM tab0
----
1575
6075
75

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

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL + MAX ( DISTINCT - col1 ) FROM tab1 cor0
----
-5

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

query II rowsort
SELECT 71, col2 + - - col2 AS col2 FROM tab1 AS cor0
----
71
118
71
136
71
192

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 - - 12 BETWEEN - col2 - - 84 AND 71
----
51
14
96
91
47
68

query I rowsort
SELECT ALL + 81 + 28 FROM tab0 WHERE ( NULL ) IS NULL
----
109
109
109

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

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

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

query I rowsort
SELECT + col1 - col2 * - 80 FROM tab2
----
1891
3277
4707

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1052
SELECT ALL + COUNT ( * ) + CAST ( NULL AS REAL ) col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 24 * - col2 AS col2 FROM tab0 WHERE NULL >= ( 73 + - 20 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT COUNT( ALL - col2 ) * - 4 AS col0 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-1054
SELECT COUNT ( ALL - col2 ) * - 4 AS col0 FROM tab2
----
-12

query I rowsort
SELECT 33 FROM tab1 WHERE NOT - col2 = NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT ( - MIN( 9 ) ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-1057
SELECT ( - MIN ( 9 ) ) AS col0 FROM tab1
----
-9

query I rowsort
SELECT DISTINCT 7 * + col0 AS col0 FROM tab2
----
322
448
525

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 56 IS NOT NULL
----

query I rowsort
SELECT ALL + 56 * + col2 FROM tab1 WHERE NOT col1 + + col0 <= ( NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT DISTINCT + COUNT( * ) * MAX( DISTINCT col2 ) AS col1 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-1062
SELECT DISTINCT + COUNT ( * ) * MAX ( DISTINCT col2 ) AS col1 FROM tab1
----
288

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 <> ( col1 * - col0 )
----
97
1
99

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1067
SELECT * FROM tab0 WHERE NOT 95 + + 75 BETWEEN - 82 AND - CAST( 70 AS DECIMAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1067
SELECT * FROM tab0 WHERE NOT 95 + + 75 BETWEEN - 82 AND - CAST ( 70 AS REAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT DISTINCT + col2 * 52 AS col0 FROM tab1 AS cor0
----
3068
3536
4992

query I rowsort
SELECT ALL + 70 * 62 FROM tab1 AS cor0
----
4340
4340
4340

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 + + 60 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT ALL + SUM( 31 ) AS col0 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-1072
SELECT ALL + SUM ( 31 ) AS col0 FROM tab1 AS cor0
----
93

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * + 19 = + 38 + ( col0 ) / col2
----

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

query I rowsort
SELECT + 93 * col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
4743
6231
7161

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

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

query I rowsort
SELECT ALL + 47 * - col2 FROM tab2 AS cor0
----
-1081
-1880
-2726

query I rowsort
SELECT 63 * - ( col1 ) FROM tab2
----
-3213
-4221
-4851

query I rowsort
SELECT 29 FROM tab1 WHERE ( NULL ) NOT IN ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1081
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( - CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1081
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( - CAST ( col0 AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 51 + + 44 BETWEEN ( - ( - col0 ) ) AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( col1 ) * col0 AS col2 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL col0 * + col1 * + ( + ( + col1 ) ) + ( - col1 ) FROM tab0
----
38346
96
98334

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1086
SELECT ALL + SUM( ALL ( + col2 ) ) * - 2 - CAST( - MIN( 20 ) AS SIGNED ) AS col1 FROM tab2 WHERE NOT - col1 NOT BETWEEN - 30 + ( - col1 ) AND + 13 * 28
----
-222

skipif mysql # not compatible
query I rowsort label-1086
SELECT ALL + SUM ( ALL ( + col2 ) ) * - 2 - CAST ( - MIN ( 20 ) AS INTEGER ) AS col1 FROM tab2 WHERE NOT - col1 NOT BETWEEN - 30 + ( - col1 ) AND + 13 * 28
----
-222

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1088
SELECT + SUM( + 6 ) DIV + 17 col1 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1088
SELECT + SUM ( + 6 ) / + 17 col1 FROM tab2
----
1

query I rowsort
SELECT 97 AS col0 FROM tab2 WHERE + col0 - col2 * + ( - 96 ) > ( + 92 )
----
97
97
97

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

skipif mysql # not compatible
query I rowsort label-1090
SELECT - COUNT ( * ) + - + 10 FROM tab0
----
-13

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

query I rowsort
SELECT DISTINCT - 52 * - + ( - col1 ) + col2 FROM tab1 cor0
----
-201
-2376
-632

query I rowsort
SELECT DISTINCT 56 + - col2 * - 18 FROM tab1 AS cor0
----
1118
1280
1784

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1095
SELECT DISTINCT 81 * - + 32 + CAST( NULL AS SIGNED ) + + AVG ( - col2 ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1095
SELECT DISTINCT 81 * - + 32 + CAST ( NULL AS INTEGER ) + + AVG ( - col2 ) col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 47 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT - 21 * - + col0 FROM tab0
----
1827
2037
315

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( NULL ) > NULL )
----

query I rowsort
SELECT + 82 * col0 FROM tab2 WHERE NULL <= + col2 + - 23
----

query I rowsort
SELECT DISTINCT + + 25 * - 4 FROM tab0 AS cor0
----
-100

query I rowsort
SELECT DISTINCT col0 * + col1 + col0 * 71 AS col2 FROM tab0 AS cor0 WHERE NOT col1 + col0 IS NULL
----
2280
6984
8004

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN ( + + 2 + col2 * col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT - + col0 * - - 81 + - ( col2 ) * + col0 AS col1 FROM tab0 cor0
----
-17460
-1920
-7917

query I rowsort
SELECT ALL 81 * - col2 FROM tab2 cor0
----
-1863
-3240
-4698

query I rowsort
SELECT 16 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT MAX( col2 ) + + 81 AS col2 FROM tab2 cor0
----
139

skipif mysql # not compatible
query I rowsort label-1106
SELECT MAX ( col2 ) + + 81 AS col2 FROM tab2 cor0
----
139

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

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

query II rowsort
SELECT + + 48 AS col2, 24 + 88 AS col1 FROM tab2 AS cor0
----
48
112
48
112
48
112

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT - - 45 + col0 + col2 <= ( - ( + 46 ) )
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 45 + 34 - 11 NOT BETWEEN NULL AND - ( col1 ) * - col2 + col0 * - 42
----
46
51
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1111
SELECT ALL - SUM( col1 ) * CAST( + 80 AS SIGNED ) + COUNT( * ) FROM tab1
----
-5277

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL - SUM ( col1 ) * CAST ( + 80 AS INTEGER ) + COUNT ( * ) FROM tab1
----
-5277

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

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

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

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

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

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

query I rowsort
SELECT col1 FROM tab0 WHERE NOT ( NULL ) BETWEEN col2 AND col2
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1118
SELECT col2 DIV col0 - - - 62 + + col2 DIV + 34 AS col1 FROM tab0 AS cor0
----
-58
-59
-62

skipif mysql # not compatible
query I rowsort label-1118
SELECT col2 / col0 - - - 62 + + col2 / + 34 AS col1 FROM tab0 AS cor0
----
-58
-59
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( + col2 ) col0 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1120
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( - 71 * + col2 - ( + CAST( NULL AS SIGNED ) ) * col2 )
----

skipif mysql # not compatible
query III rowsort label-1120
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( - 71 * + col2 - ( + CAST ( NULL AS INTEGER ) ) * col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1121
SELECT ALL - SUM( ALL - ( + 65 ) ) DIV 65 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1121
SELECT ALL - SUM ( ALL - ( + 65 ) ) / 65 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT + col0 + - col0 / + col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col1 / col0 - - col0 - - 43 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1123
SELECT ALL ( - ( - CAST( col2 AS SIGNED ) ) ) * 96 col1 FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) < ( - col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1123
SELECT ALL ( - ( - CAST ( col2 AS INTEGER ) ) ) * 96 col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) < ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col2 + 89 * - 97 col0 FROM tab0 AS cor0 WHERE + col2 = NULL
----

query I rowsort
SELECT - col2 + - col2 + - - col1 + + col1 * + col0 * col0 AS col1 FROM tab2 AS cor0
----
107921
315389
376826

query I rowsort
SELECT DISTINCT - col1 * - col1 AS col1 FROM tab2 cor0 WHERE NOT ( + col2 ) BETWEEN + col0 AND ( NULL )
----
2601
4489
5929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1127
SELECT ALL - COUNT( * ) DIV - 21 col1 FROM tab0 AS cor0 WHERE - 42 - - col1 IN ( + 17 + - col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1127
SELECT ALL - COUNT ( * ) / - 21 col1 FROM tab0 AS cor0 WHERE - 42 - - col1 IN ( + 17 + - col0 )
----
0

query I rowsort
SELECT + col2 + + + 50 FROM tab2
----
108
73
90

onlyif mysql # DIV for integer division: 
query I rowsort label-1129
SELECT ALL + 25 + + - col2 DIV - - col2 AS col2 FROM tab1
----
24
24
24

skipif mysql # not compatible
query I rowsort label-1129
SELECT ALL + 25 + + - col2 / - - col2 AS col2 FROM tab1
----
24
24
24

query I rowsort
SELECT + + 92 FROM tab2 WHERE 19 * + col1 <> - col2
----
92
92
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1131
SELECT CAST( NULL AS SIGNED ) col0, ( - + COUNT( * ) ) FROM tab0
----
NULL
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1131
SELECT CAST ( NULL AS INTEGER ) col0, ( - + COUNT ( * ) ) FROM tab0
----
NULL
-3

query I rowsort
SELECT DISTINCT - col1 * - - col0 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

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

query II rowsort
SELECT - - col1 AS col0, col2 + - 45 + 32 AS col1 FROM tab0 AS cor0
----
1
86
21
-3
81
34

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

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

query I rowsort
SELECT DISTINCT + col2 * - 0 - col2 + - col0 FROM tab0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT MAX( 71 ) + ( + 41 ) FROM tab2
----
112

skipif mysql # not compatible
query I rowsort label-1137
SELECT MAX ( 71 ) + ( + 41 ) FROM tab2
----
112

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 78 IS NOT NULL
----

query I rowsort
SELECT - col2 + - ( - col0 ) AS col1 FROM tab0
----
-2
-32
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1140
SELECT MAX( + col1 ) * - + COUNT( DISTINCT - ( + CAST( - + ( + + col0 ) AS SIGNED ) ) ) DIV - ( COUNT( * ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1140
SELECT MAX ( + col1 ) * - + COUNT ( DISTINCT - ( + CAST ( - + ( + + col0 ) AS INTEGER ) ) ) / - ( COUNT ( * ) ) FROM tab1 AS cor0
----
47

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

query I rowsort
SELECT + 40 * + col0 + + - col1 + ( ( - col0 ) ) FROM tab2 cor0
----
1743
2419
2858

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT col0 * 59 = + + col1 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1146
SELECT DISTINCT 50 DIV col2 + col0 FROM tab0 AS cor0
----
16
92
97

skipif mysql # not compatible
query I rowsort label-1146
SELECT DISTINCT 50 / col2 + col0 FROM tab0 AS cor0
----
16
92
97

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1148
SELECT ALL + 29 FROM tab1 AS cor0 WHERE NOT + ( + CAST( NULL AS SIGNED ) ) < col2
----

skipif mysql # not compatible
query I rowsort label-1148
SELECT ALL + 29 FROM tab1 AS cor0 WHERE NOT + ( + CAST ( NULL AS INTEGER ) ) < col2
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 / - 69 / + 24 + + col2 <= ( NULL )
----

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE + - col0 * + - 50 BETWEEN col1 * + col2 * - - 30 + + 11 / - col0 AND NULL
----

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

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

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE 99 <> NULL
----

query I rowsort
SELECT DISTINCT + col0 * 90 * - col2 AS col2 FROM tab2
----
-230400
-391500
-95220

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1156
SELECT MIN ( DISTINCT 69 ) AS col2 FROM tab1 AS cor0
----
69

query I rowsort
SELECT ALL - + col0 * + + col0 * - col1 * + - col1 + - col0 AS col0 FROM tab2 AS cor0
----
-24285248
-25250700
-5503762

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

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

query II rowsort
SELECT ALL col0 AS col0, 73 * + 9 FROM tab1 AS cor0
----
51
657
85
657
91
657

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

query I rowsort
SELECT DISTINCT 82 + col2 FROM tab0 AS cor0
----
129
181
92

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT NULL > - + 93
----

query I rowsort
SELECT ALL - + 52 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1164
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-1164
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL - col2 * + 11 AS col2, 76 * + col0 * col0 AS col0, + - col1 AS col2 FROM tab0
----
9 values hashing to dab30af0cacb9f05e8ff719120b69385

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1166
SELECT DISTINCT ( 94 ) DIV + - COUNT( * ) col1 FROM tab1
----
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1166
SELECT DISTINCT ( 94 ) / + - COUNT ( * ) col1 FROM tab1
----
-31

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1168
SELECT DISTINCT - CAST( 23 AS DECIMAL ) AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1168
SELECT DISTINCT - CAST ( 23 AS REAL ) AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1169
SELECT - col0 * + 56 + + - 17 * + col1 AS col1, 96 DIV + 43 AS col2 FROM tab0 cor0
----
-2217
2
-5229
2
-5449
2

skipif mysql # not compatible
query II rowsort label-1169
SELECT - col0 * + 56 + + - 17 * + col1 AS col1, 96 / + 43 AS col2 FROM tab0 cor0
----
-2217
2
-5229
2
-5449
2

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 64 * - - col1 * col1 + + col2 + - ( col1 ) col1 FROM tab0 cor0
----
-28235
-419938
34

query I rowsort
SELECT + 43 + + col2 AS col2 FROM tab0
----
142
53
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT + SUM( DISTINCT - col1 ) + + 44 AS col2 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-1174
SELECT + SUM ( DISTINCT - col1 ) + + 44 AS col2 FROM tab1
----
-22

query I rowsort
SELECT - col2 + - + 59 FROM tab0
----
-106
-158
-69

query II rowsort
SELECT ALL - col0 * - - col1 + - col2, + col2 + col1 AS col2 FROM tab1
----
-4345
115
-484
64
-810
110

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( col0 * ( 61 ) * - 75 ) AND NOT NULL IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1180
SELECT DISTINCT 47 col2, COUNT( * ) * 45 * + - 14 col1 FROM tab2 AS cor0
----
47
-1890

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1180
SELECT DISTINCT 47 col2, COUNT ( * ) * 45 * + - 14 col1 FROM tab2 AS cor0
----
47
-1890

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

query II rowsort
SELECT - - col2 + - col0 AS col0, + col2 * + 82 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-77
820
2
8118
32
3854

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 63 = 51
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT - + MIN( DISTINCT + 87 ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-1190
SELECT - + MIN ( DISTINCT + 87 ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-261

onlyif mysql # aggregate syntax: 
query II rowsort label-1191
SELECT MAX( ALL + - col1 ) AS col1, + 95 AS col2 FROM tab1
----
-5
95

skipif mysql # not compatible
query II rowsort label-1191
SELECT MAX ( ALL + - col1 ) AS col1, + 95 AS col2 FROM tab1
----
-5
95

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1193
SELECT ( + + COUNT( * ) ) AS col0, + 29 + + ( + MIN( - 75 ) ) * - MIN( ALL col2 ) * 15 AS col0 FROM tab2
----
3
25904

skipif mysql # not compatible
query II rowsort label-1193
SELECT ( + + COUNT ( * ) ) AS col0, + 29 + + ( + MIN ( - 75 ) ) * - MIN ( ALL col2 ) * 15 AS col0 FROM tab2
----
3
25904

query I rowsort
SELECT + 89 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT ALL + SUM( + - 41 ) FROM tab2
----
-123

skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL + SUM ( + - 41 ) FROM tab2
----
-123

query I rowsort
SELECT DISTINCT + col0 * + - col1 * 34 AS col1 FROM tab1
----
-14450
-145418
-24276

onlyif mysql # DIV for integer division: 
query I rowsort label-1197
SELECT ALL + col1 * 6 DIV + - col0 FROM tab0
----
-1
-32
0

skipif mysql # not compatible
query I rowsort label-1197
SELECT ALL + col1 * 6 / + - col0 FROM tab0
----
-1
-32
0

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

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

query I rowsort
SELECT DISTINCT 99 * - 63 FROM tab2
----
-6237

query I rowsort
SELECT DISTINCT - 73 * col0 AS col1 FROM tab1 cor0
----
-3723
-6205
-6643

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1201
SELECT + 88 * - ( CAST( NULL AS SIGNED ) ) / + - 51 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1201
SELECT + 88 * - ( CAST ( NULL AS INTEGER ) ) / + - 51 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1202
SELECT DISTINCT + 41 - - + col1 + - CAST( - col1 AS SIGNED ) + - 51 * col0 FROM tab0 cor0 WHERE NULL <> 45
----

skipif mysql # not compatible
query I rowsort label-1202
SELECT DISTINCT + 41 - - + col1 + - CAST ( - col1 AS INTEGER ) + - 51 * col0 FROM tab0 cor0 WHERE NULL <> 45
----

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

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

query I rowsort
SELECT - + 27 / - 25 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 4 + - + 62 FROM tab1 AS cor0
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-1206
SELECT ALL + MIN( - + 84 ) + 73 + - COUNT( * ) AS col0, - COUNT( * ) AS col2 FROM tab0 cor0
----
-14
-3

skipif mysql # not compatible
query II rowsort label-1206
SELECT ALL + MIN ( - + 84 ) + 73 + - COUNT ( * ) AS col0, - COUNT ( * ) AS col2 FROM tab0 cor0
----
-14
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT + COUNT( * ) + - - 59 FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-1207
SELECT + COUNT ( * ) + - - 59 FROM tab2 AS cor0
----
62

query II rowsort
SELECT ALL col1 + - col2 * - col1 + col2 AS col1, + col1 AS col1 FROM tab2 AS cor0
----
1247
51
3197
77
4011
67

query I rowsort
SELECT + + 70 + - 53 AS col1 FROM tab1 AS cor0
----
17
17
17

query I rowsort
SELECT - 23 + + 46 FROM tab0 AS cor0
----
23
23
23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT - - 31 * - COUNT( * ) FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-1212
SELECT - - 31 * - COUNT ( * ) FROM tab0 AS cor0
----
-93

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1214
SELECT ALL ( - col1 ) - + col0 DIV + + col0 AS col1 FROM tab1
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-1214
SELECT ALL ( - col1 ) - + col0 / + + col0 AS col1 FROM tab1
----
-15
-48
-6

query I rowsort
SELECT ALL col2 + + + 51 FROM tab0
----
150
61
98

query I rowsort
SELECT - 30 / - + 22 / - 30 / - col0 FROM tab1 WHERE NULL BETWEEN - + col1 AND ( NULL )
----

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

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

query I rowsort
SELECT - 13 * + col1 - col0 AS col0 FROM tab0
----
-1068
-110
-360

query I rowsort
SELECT ALL + 40 + - col2 AS col1 FROM tab1 AS cor0
----
-19
-28
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-1221
SELECT - 44 + 53 AS col2, ( - 27 ) + + MIN( DISTINCT col2 ) FROM tab0 AS cor0
----
9
-17

skipif mysql # not compatible
query II rowsort label-1221
SELECT - 44 + 53 AS col2, ( - 27 ) + + MIN ( DISTINCT col2 ) FROM tab0 AS cor0
----
9
-17

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

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

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( - 34 )
----

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

query I rowsort
SELECT - 7 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE 24 IS NOT NULL
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1226
SELECT DISTINCT col2, + col1 / - + CAST( NULL AS DECIMAL ) * col1 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-1226
SELECT DISTINCT col2, + col1 / - + CAST ( NULL AS REAL ) * col1 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT + col0 AS col0 FROM tab0 cor0 WHERE NOT col1 + - + 90 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL <= 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT DISTINCT + MIN( 32 ) * - SUM( - col2 ) FROM tab2 AS cor0 WHERE NOT 4 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1229
SELECT DISTINCT + MIN ( 32 ) * - SUM ( - col2 ) FROM tab2 AS cor0 WHERE NOT 4 IS NOT NULL
----
NULL

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

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

query I rowsort
SELECT ALL + - col2 * + - 92 FROM tab0 AS cor0
----
4324
9108
920

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

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

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

query I rowsort
SELECT 50 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT 95 * + 69 * + - COUNT( * ) FROM tab2
----
-19665

skipif mysql # not compatible
query I rowsort label-1235
SELECT 95 * + 69 * + - COUNT ( * ) FROM tab2
----
-19665

query I rowsort
SELECT ( + ( 55 ) ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 44 col2, - 83 * - col1 + - - col2 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

query II rowsort
SELECT + col1, col0 * - col0 * + col2 FROM tab0
----
1
-931491
21
-75690
81
-10575

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1240
SELECT - CAST( - + ( - col0 ) AS SIGNED ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1240
SELECT - CAST ( - + ( - col0 ) AS INTEGER ) FROM tab2
----
-46
-64
-75

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

query I rowsort
SELECT DISTINCT 27 + - col2 + - 8 + - col0 FROM tab0 AS cor0
----
-177
-43
-78

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - - 26 ) NOT IN ( - - col0 / + + 47, - col0 - - + col0 - - 70 )
----

query I rowsort
SELECT ALL - 88 * 29 + - 16 + + - col0 FROM tab2 cor0
----
-2614
-2632
-2643

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

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

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

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

query I rowsort
SELECT ALL col2 * - - 72 + + col0 AS col0 FROM tab2
----
1702
2944
4251

query I rowsort
SELECT col2 + - - 40 FROM tab2
----
63
80
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - + col0 col0 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT + 35 + + - 70 FROM tab1
----
-35
-35
-35

query III rowsort
SELECT * FROM tab2 WHERE 5 IS NULL
----

query II rowsort
SELECT col1 * - col0 * - col1 + + col1 AS col0, 70 AS col2 FROM tab1
----
10010
70
201066
70
2130
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT 1 + - 25 + COUNT( * ) AS col2 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-1254
SELECT 1 + - 25 + COUNT ( * ) AS col2 FROM tab1
----
-21

query I rowsort
SELECT 43 * + col2 + - + 17 FROM tab2
----
1703
2477
972

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

query I rowsort
SELECT + col1 FROM tab1 WHERE ( + col0 * + + col2 < - col1 )
----

query I rowsort
SELECT DISTINCT - 62 * col0 AS col0 FROM tab1 AS cor0
----
-3162
-5270
-5642

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1259
SELECT - - 19 - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + 51
----

skipif mysql # not compatible
query I rowsort label-1259
SELECT - - 19 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + 51
----

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

query I rowsort
SELECT DISTINCT + - 28 AS col1 FROM tab0 cor0
----
-28

query I rowsort
SELECT + - col1 * - + col0 + - 36 * + + col0 + 86 FROM tab0 AS cor0
----
-1219
-3309
761

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

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

query I rowsort
SELECT ALL ( - 33 ) AS col2 FROM tab0 AS cor0
----
-33
-33
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-1265
SELECT + 14 DIV - 16 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1265
SELECT + 14 / - 16 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

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

query I rowsort
SELECT - ( 45 ) AS col1 FROM tab0
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT DISTINCT + COUNT( DISTINCT 5 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1268
SELECT DISTINCT + COUNT ( DISTINCT 5 ) FROM tab0
----
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT + - ( COUNT( * ) ) + + COUNT( ALL + 82 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT ( + col1 <> - 44 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1271
SELECT + - ( COUNT ( * ) ) + + COUNT ( ALL + 82 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT ( + col1 <> - 44 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT ALL - + MAX( + col0 ) AS col1 FROM tab2 cor0 WHERE ( col1 * 44 * + - col0 IS NOT NULL )
----
-75

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL - + MAX ( + col0 ) AS col1 FROM tab2 cor0 WHERE ( col1 * 44 * + - col0 IS NOT NULL )
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1273
SELECT 1 + + + ( + - 41 ) DIV SUM( - 77 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1273
SELECT 1 + + + ( + - 41 ) / SUM ( - 77 ) FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1274
SELECT - CAST( - col0 AS SIGNED ) * col1 + - - col1 + + col0 FROM tab1 AS cor0
----
4415
515
779

skipif mysql # not compatible
query I rowsort label-1274
SELECT - CAST ( - col0 AS INTEGER ) * col1 + - - col1 + + col0 FROM tab1 AS cor0
----
4415
515
779

query I rowsort
SELECT 92 + 84 AS col2 FROM tab1
----
176
176
176

onlyif mysql # aggregate syntax: 
query II rowsort label-1276
SELECT ALL - + COUNT( * ) AS col1, 3 + - COUNT( * ) FROM tab0 WHERE NOT - col1 / + - 9 IS NOT NULL
----
0
3

skipif mysql # not compatible
query II rowsort label-1276
SELECT ALL - + COUNT ( * ) AS col1, 3 + - COUNT ( * ) FROM tab0 WHERE NOT - col1 / + - 9 IS NOT NULL
----
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * - col0 + + + ( + col0 ) col1 FROM tab2 WHERE + col2 + 52 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 83 * col1 col2 FROM tab2 AS cor0
----
-4233
-5561
-6391

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

query I rowsort
SELECT ALL - - col1 + + 93 FROM tab0 AS cor0
----
114
174
94

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

skipif mysql # not compatible
query I rowsort label-1281
SELECT DISTINCT MAX ( + col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1283
SELECT ALL COUNT( * ) DIV - SUM( - - 83 ) - MIN( ALL 77 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-77

skipif mysql # not compatible
query I rowsort label-1283
SELECT ALL COUNT ( * ) / - SUM ( - - 83 ) - MIN ( ALL 77 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-77

query I rowsort
SELECT ALL col0 * ( - col1 ) FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT 71 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT + + 99 + + ( - - col2 ) * + col0 * - col0 FROM tab2 AS cor0
----
-163741
-326151
-48569

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-1287
SELECT 75 + col2 AS col2, 19 DIV - - 55 AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
9 values hashing to f795a1e2d51e68c30ed475ca39b89ac7

skipif mysql # not compatible
query III rowsort label-1287
SELECT 75 + col2 AS col2, 19 / - - 55 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
9 values hashing to f795a1e2d51e68c30ed475ca39b89ac7

query II rowsort
SELECT - col0 + - col2 AS col2, + 53 AS col0 FROM tab1 AS cor0
----
-144
53
-147
53
-159
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1289
SELECT DISTINCT + - ( col1 ) * + + 7 * CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3087
45927
7

skipif mysql # not compatible
query I rowsort label-1289
SELECT DISTINCT + - ( col1 ) * + + 7 * CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3087
45927
7

query I rowsort
SELECT ALL col2 + 7 + - 56 FROM tab1 AS cor0
----
10
19
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT DISTINCT COUNT( * ) - - COUNT( ALL - col0 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-1292
SELECT DISTINCT COUNT ( * ) - - COUNT ( ALL - col0 ) FROM tab2
----
6

query I rowsort
SELECT ALL - col0 * ( + + 9 ) FROM tab2
----
-414
-576
-675

query I rowsort
SELECT ALL + col0 * - 51 - + col1 FROM tab2 WHERE NOT NULL NOT BETWEEN - col0 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1295
SELECT DISTINCT CAST( - - col1 AS SIGNED ) DIV - 43 col1 FROM tab2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1295
SELECT DISTINCT CAST ( - - col1 AS INTEGER ) / - 43 col1 FROM tab2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1296
SELECT + - CAST( NULL AS SIGNED ) * + COUNT( ALL + 26 ) AS col0 FROM tab2 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1297
SELECT - + ( + - col2 ) + - col0 FROM tab1 AS cor0 WHERE NOT CAST( col2 AS SIGNED ) / 38 + 16 - + 13 - CAST( + + col0 AS DECIMAL ) IS NULL
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-1297
SELECT - + ( + - col2 ) + - col0 FROM tab1 AS cor0 WHERE NOT CAST ( col2 AS INTEGER ) / 38 + 16 - + 13 - CAST ( + + col0 AS REAL ) IS NULL
----
-23
-26
45

query I rowsort
SELECT + 65 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 88 AND + 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT DISTINCT SUM( DISTINCT 71 ) FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-1299
SELECT DISTINCT SUM ( DISTINCT 71 ) FROM tab1
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1300
SELECT DISTINCT + COUNT( * ) DIV 63 * COUNT( * ) FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT DISTINCT + SUM( + 81 ) AS col2 FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-1301
SELECT DISTINCT + SUM ( + 81 ) AS col2 FROM tab2
----
243

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

skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) + SUM ( - ( col0 ) ) + - - SUM ( DISTINCT col2 ) FROM tab0 AS cor0
----
-42

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1303
SELECT + 20 AS col2, - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
20
NULL
20
NULL
20
NULL

skipif mysql # not compatible
query II rowsort label-1303
SELECT + 20 AS col2, - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
20
NULL
20
NULL
20
NULL

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

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

query I rowsort
SELECT ALL - 92 FROM tab2 AS cor0 WHERE 28 IS NOT NULL
----
-92
-92
-92

query I rowsort
SELECT - col2 * + 62 FROM tab1 AS cor0
----
-3658
-4216
-5952

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT 54 * + ( COUNT( * ) ) FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-1307
SELECT 54 * + ( COUNT ( * ) ) FROM tab0
----
162

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 / col2 IS NOT NULL
----

query I rowsort
SELECT 2 * + - col0 AS col2 FROM tab2
----
-128
-150
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-1310
SELECT - col0 + 32 + - - col2 DIV - col1 + - + col1 AS col2 FROM tab0
----
-165
-64
-76

skipif mysql # not compatible
query I rowsort label-1310
SELECT - col0 + 32 + - - col2 / - col1 + - + col1 AS col2 FROM tab0
----
-165
-64
-76

query I rowsort
SELECT + col2 + + ( + 95 ) AS col0 FROM tab1
----
154
163
191

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT - + COUNT( * ) + + + COUNT( * ) + - 46 col1 FROM tab2 cor0
----
-46

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

query II rowsort
SELECT - 46, - 37 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 353aaee36a12f3c1e3b8f0505b9b3b83

query II rowsort
SELECT ALL + col2 + ( + - col1 ) AS col2, - 90 + col2 * + col1 FROM tab1 cor0
----
21
3106
54
205
82
1254

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

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

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

query I rowsort
SELECT - 31 * - 17 - - 39 * - col2 + + + ( ( + - ( - - 59 ) ) ) * - col0 FROM tab0 AS cor0
----
-421
2389
5270

query I rowsort
SELECT DISTINCT 76 * + 94 FROM tab0
----
7144

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

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

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

query I rowsort
SELECT + + 30 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

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

query I rowsort
SELECT 25 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1324
SELECT ALL + + 21 DIV - SUM( + col2 ) * ( - 44 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1324
SELECT ALL + + 21 / - SUM ( + col2 ) * ( - 44 ) FROM tab1 cor0
----
0

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

skipif mysql # not compatible
query I rowsort label-1325
SELECT DISTINCT COUNT ( * ) + - - ( + SUM ( ALL + col2 ) ) FROM tab0 AS cor0
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-1326
SELECT - - col0 + 8 DIV + - col1 FROM tab0 cor0
----
15
87
89

skipif mysql # not compatible
query I rowsort label-1326
SELECT - - col0 + 8 / + - col1 FROM tab0 cor0
----
15
87
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT DISTINCT ( + SUM( ALL + 43 ) ) + 21 AS col1 FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-1327
SELECT DISTINCT ( + SUM ( ALL + 43 ) ) + 21 AS col1 FROM tab1 AS cor0
----
150

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1330
SELECT DISTINCT + col1 DIV 83 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1330
SELECT DISTINCT + col1 / 83 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 54, 24 * col2 col0 FROM tab0
----
54
1128
54
2376
54
240

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

skipif mysql # not compatible
query II rowsort label-1332
SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( * ) * + 97 AS col0 FROM tab1
----
3
291

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1334
SELECT DISTINCT + 99 DIV - 78 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1334
SELECT DISTINCT + 99 / - 78 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT DISTINCT + COUNT( DISTINCT + 28 ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1335
SELECT DISTINCT + COUNT ( DISTINCT + 28 ) AS col1 FROM tab2 AS cor0
----
1

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

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

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

query I rowsort
SELECT - + 5 FROM tab2 WHERE ( 61 ) BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> - 0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1340
SELECT col0 DIV - - col0 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1340
SELECT col0 / - - col0 FROM tab2 cor0
----
1
1
1

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

skipif mysql # not compatible
query I rowsort label-1341
SELECT - - COUNT ( * ) * - COUNT ( DISTINCT - - 17 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - - ( - 64 ) FROM tab0 AS cor0
----
-64
-64
-64

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT - COUNT( DISTINCT col0 ) * - 71 FROM tab2 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-1344
SELECT - COUNT ( DISTINCT col0 ) * - 71 FROM tab2 AS cor0
----
213

query I rowsort
SELECT DISTINCT 53 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1346
SELECT ( + - CAST( COUNT( * ) AS SIGNED ) ) col2, + ( - 6 ) AS col2 FROM tab0
----
-3
-6

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

query I rowsort
SELECT DISTINCT + col1 * - 61 AS col1 FROM tab0
----
-1281
-4941
-61

query I rowsort
SELECT DISTINCT ( ( 95 ) ) FROM tab2
----
95

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

query I rowsort
SELECT DISTINCT + - 62 * - col2 AS col0 FROM tab1 AS cor0
----
3658
4216
5952

query I rowsort
SELECT ALL - col0 + 83 FROM tab1 AS cor0
----
-2
-8
32

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

query II rowsort
SELECT ALL 91 AS col0, col2 + - + col0 AS col2 FROM tab1 AS cor0
----
91
-23
91
-26
91
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT DISTINCT COUNT( + col2 ) + - 92 AS col1 FROM tab0 cor0
----
-89

skipif mysql # not compatible
query I rowsort label-1354
SELECT DISTINCT COUNT ( + col2 ) + - 92 AS col1 FROM tab0 cor0
----
-89

query II rowsort
SELECT DISTINCT - col1 + - col0 AS col1, ( col0 ) * + + col1 - + - col0 AS col0 FROM tab0 AS cor0
----
-108
1914
-96
1230
-98
194

query I rowsort
SELECT DISTINCT + 24 + + - col2 FROM tab0 cor0
----
-23
-75
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT - 10 * - 4 * + + ( - COUNT( * ) ) FROM tab0
----
-120

skipif mysql # not compatible
query I rowsort label-1357
SELECT - 10 * - 4 * + + ( - COUNT ( * ) ) FROM tab0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT COUNT( * ) * - 54 FROM tab1
----
-162

skipif mysql # not compatible
query I rowsort label-1358
SELECT COUNT ( * ) * - 54 FROM tab1
----
-162

query II rowsort
SELECT + col2 + - 40, - col0 AS col0 FROM tab1
----
19
-85
28
-91
56
-51

query I rowsort
SELECT DISTINCT - 6 + ( col0 ) FROM tab1
----
45
79
85

query I rowsort
SELECT DISTINCT 12 FROM tab0 WHERE NOT NULL <= - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1362
SELECT CAST( NULL AS SIGNED ) + 58, + col0 col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1362
SELECT CAST ( NULL AS INTEGER ) + 58, + col0 col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT + 44 + + 21 * col0 AS col2 FROM tab1
----
1115
1829
1955

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL + - MAX ( + CAST ( - col1 AS INTEGER ) ) FROM tab2 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT DISTINCT + ( SUM( - + 71 ) ) - + ( + 67 ) FROM tab0 AS cor0
----
-280

skipif mysql # not compatible
query I rowsort label-1368
SELECT DISTINCT + ( SUM ( - + 71 ) ) - + ( + 67 ) FROM tab0 AS cor0
----
-280

onlyif mysql # DIV for integer division: 
query I rowsort label-1369
SELECT + - col2 * 85 DIV - col2 - + col0 FROM tab2 AS cor0
----
10
21
39

skipif mysql # not compatible
query I rowsort label-1369
SELECT + - col2 * 85 / - col2 - + col0 FROM tab2 AS cor0
----
10
21
39

query I rowsort
SELECT 92 + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) = col0
----

query I rowsort
SELECT + ( - 30 ) FROM tab0 cor0
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT DISTINCT - MAX( 96 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1372
SELECT DISTINCT - MAX ( 96 ) AS col0 FROM tab1 AS cor0
----
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-1373
SELECT DISTINCT 28 * + - col1 AS col0, col0 DIV + + 86 AS col2 FROM tab0
----
-2268
0
-28
1
-588
1

skipif mysql # not compatible
query II rowsort label-1373
SELECT DISTINCT 28 * + - col1 AS col0, col0 / + + 86 AS col2 FROM tab0
----
-2268
0
-28
1
-588
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT - 16 * - - COUNT( * ) AS col1 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-1374
SELECT - 16 * - - COUNT ( * ) AS col1 FROM tab1
----
-48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT DISTINCT - SUM( - 51 ) AS col2 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-1376
SELECT DISTINCT - SUM ( - 51 ) AS col2 FROM tab2
----
153

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IS NOT NULL AND 49 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NULL <> 51
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1380
SELECT DISTINCT 14 + + COUNT( - + 75 ) - COUNT( * ) DIV 99 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-1380
SELECT DISTINCT 14 + + COUNT ( - + 75 ) - COUNT ( * ) / 99 FROM tab2 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT ALL - + ( - COUNT( * ) ) * + 27 * - 5 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1215

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1381
SELECT ALL - + ( - COUNT ( * ) ) * + 27 * - 5 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1215

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 + + 78 AS col1 FROM tab1 AS cor0
----
31
64
73

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - - col1 AS col2, + 37 col2 FROM tab0
----
210
37
3807
37
99
37

query I rowsort
SELECT 56 * col2 AS col0 FROM tab0
----
2632
5544
560

query I rowsort
SELECT ALL 20 - - - 71 FROM tab0
----
-51
-51
-51

query I rowsort
SELECT ALL ( + + col1 ) * + col1 * 45 + - + 51 FROM tab1
----
1074
8769
99354

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT DISTINCT + COUNT( * ) + + COUNT( ALL + ( + + col1 ) ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1395
SELECT DISTINCT + COUNT ( * ) + + COUNT ( ALL + ( + + col1 ) ) AS col0 FROM tab1 AS cor0
----
6

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

query I rowsort
SELECT DISTINCT + 81 * + + col0 + - 48 AS col0 FROM tab0 AS cor0
----
1167
6999
7809

query I rowsort
SELECT - + ( - col2 ) - - col1 AS col2 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT DISTINCT - - 41 FROM tab2 AS cor0 WHERE NOT + col2 = + col2
----

query I rowsort
SELECT DISTINCT + 62 - 86 - - col2 + + + col0 * + col0 * - - col0 AS col1 FROM tab0
----
3398
658489
912748

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT SUM( col1 ) FROM tab0 AS cor0 WHERE NOT NULL <= 40
----
NULL

skipif mysql # not compatible
query I rowsort label-1401
SELECT SUM ( col1 ) FROM tab0 AS cor0 WHERE NOT NULL <= 40
----
NULL

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

query II rowsort
SELECT col0 * - 92 * + col2 * - - col1 - + col1 AS col0, + ( col1 ) AS col1 FROM tab0 WHERE NOT + 60 IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1404
SELECT ALL - COUNT ( * ) / + - COUNT ( * ) col1 FROM tab2
----
1

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1407
SELECT + 25 AS col2, - COUNT( * ) + - CAST( - 78 AS SIGNED ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
25
78

skipif mysql # not compatible
query II rowsort label-1407
SELECT + 25 AS col2, - COUNT ( * ) + - CAST ( - 78 AS INTEGER ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
25
78

query III rowsort
SELECT ALL * FROM tab2 WHERE + 64 NOT BETWEEN NULL AND NULL
----

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

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

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

query II rowsort
SELECT col0 AS col1, 4 FROM tab0 AS cor0
----
15
4
87
4
97
4

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

query I rowsort
SELECT ALL col1 + + col0 * - col1 AS col1 FROM tab1 AS cor0
----
-420
-4230
-700

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

query I rowsort
SELECT ALL col2 * col0 + - 33 AS col1 FROM tab2 AS cor0
----
1025
2527
4317

onlyif mysql # DIV for integer division: 
query I rowsort label-1416
SELECT ALL - - 82 * - - col1 + - col0 DIV col0 AS col1 FROM tab1 AS cor0
----
1147
3853
409

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL - - 82 * - - col1 + - col0 / col0 AS col1 FROM tab1 AS cor0
----
1147
3853
409

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

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

query I rowsort
SELECT DISTINCT + 88 + + - col1 AS col2 FROM tab1
----
41
74
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT DISTINCT SUM( 64 ) col2 FROM tab0
----
192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1419
SELECT DISTINCT SUM ( 64 ) col2 FROM tab0
----
192

query I rowsort
SELECT - 3 + + 80 AS col2 FROM tab2
----
77
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1421
SELECT ALL - CAST( col0 AS SIGNED ) + - col2, - 79 AS col1 FROM tab0
----
-196
-79
-62
-79
-97
-79

skipif mysql # not compatible
query II rowsort label-1421
SELECT ALL - CAST ( col0 AS INTEGER ) + - col2, - 79 AS col1 FROM tab0
----
-196
-79
-62
-79
-97
-79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT DISTINCT - 62 + - MIN( ALL + col0 ) FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-1423
SELECT DISTINCT - 62 + - MIN ( ALL + col0 ) FROM tab2
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT DISTINCT - MIN( + col1 ) * COUNT( * ) - 26 AS col1 FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-1424
SELECT DISTINCT - MIN ( + col1 ) * COUNT ( * ) - 26 AS col1 FROM tab1
----
-41

query I rowsort
SELECT ALL + + AVG ( DISTINCT + col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col1 + + - col0 BETWEEN 56 AND + - col2
----

query I rowsort
SELECT + col2 + - - col2 AS col1 FROM tab0
----
198
20
94

query I rowsort
SELECT ALL - col1 * 41 FROM tab0
----
-3321
-41
-861

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + 82 * + col2 - - col2 + + + 5 + - 40 * 49 NOT IN ( - + col0, + col0 )
----
1

skipif mysql # not compatible
query I rowsort label-1430
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + 82 * + col2 - - col2 + + + 5 + - 40 * 49 NOT IN ( - + col0, + col0 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1431
SELECT - AVG ( + + 51 ) AS col2 FROM tab2 AS cor0 WHERE ( NOT - + 84 <= - 24 / - col2 + + CAST( + - col1 AS SIGNED ) + 7 + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1431
SELECT - AVG ( + + 51 ) AS col2 FROM tab2 AS cor0 WHERE ( NOT - + 84 <= - 24 / - col2 + + CAST ( + - col1 AS INTEGER ) + 7 + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1432
SELECT - MAX( + + 81 ) * + - COUNT( ALL - + col1 ) col2 FROM tab2 AS cor0
----
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1432
SELECT - MAX ( + + 81 ) * + - COUNT ( ALL - + col1 ) col2 FROM tab2 AS cor0
----
243

query I rowsort
SELECT DISTINCT + col2 * + + col0 + col0 AS col1 FROM tab0 AS cor0
----
720
957
9700

query I rowsort
SELECT ALL 4 + - - 20 AS col0 FROM tab0 AS cor0
----
24
24
24

query I rowsort
SELECT ALL + - col0 - ( + ( col0 ) ) FROM tab2 AS cor0
----
-128
-150
-92

query I rowsort
SELECT DISTINCT col0 * 90 AS col1 FROM tab1 AS cor0
----
4590
7650
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT DISTINCT + 51 * COUNT( * ) col2 FROM tab1
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1437
SELECT DISTINCT + 51 * COUNT ( * ) col2 FROM tab1
----
153

query I rowsort
SELECT DISTINCT 91 * + - 15 FROM tab2
----
-1365

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

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT - 31 * + col2 NOT BETWEEN - 3 * 9 * + col0 - 39 + - col2 AND ( 56 )
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-1441
SELECT DISTINCT 67 DIV col0 * - col0 FROM tab0 AS cor0
----
-60
0

skipif mysql # not compatible
query I rowsort label-1441
SELECT DISTINCT 67 / col0 * - col0 FROM tab0 AS cor0
----
-60
0

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 - col2 NOT IN ( col1 + + + col0, 50 + + col2, + 99, - col1 + + - col1 )
----
97
1
99

query II rowsort
SELECT DISTINCT - - 20 AS col0, col0 FROM tab2 AS cor0
----
20
46
20
64
20
75

query II rowsort
SELECT + + col1 AS col1, 4 * - col2 FROM tab1 AS cor0
----
14
-384
47
-272
5
-236

query II rowsort
SELECT + col1 * + 61, + 34 AS col0 FROM tab2 cor0
----
3111
34
4087
34
4697
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT - - SUM( + 53 ) FROM tab1 cor0
----
159

skipif mysql # not compatible
query I rowsort label-1447
SELECT - - SUM ( + 53 ) FROM tab1 cor0
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-1448
SELECT - + col0 DIV + ( 93 ) * + 56 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1448
SELECT - + col0 / + ( 93 ) * + 56 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( - + col0 ) AS col1 FROM tab0
----
15
87
97

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

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

query II rowsort
SELECT col2 * - 8, col1 * - col0 + - 91 AS col2 FROM tab1
----
-472
-516
-544
-4368
-768
-805

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1453
SELECT ALL - ( + SUM( - + 67 ) ), 37 - - + ( 12 ) AS col1 FROM tab2
----
201
49

skipif mysql # not compatible
query II rowsort label-1453
SELECT ALL - ( + SUM ( - + 67 ) ), 37 - - + ( 12 ) AS col1 FROM tab2
----
201
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT ALL + + COUNT( * ) AS col1 FROM tab0 WHERE + - 73 BETWEEN col0 AND col0
----
0

skipif mysql # not compatible
query I rowsort label-1454
SELECT ALL + + COUNT ( * ) AS col1 FROM tab0 WHERE + - 73 BETWEEN col0 AND col0
----
0

query I rowsort
SELECT + + col2 - - col2 + + 39 - col0 * + - 74 AS col0 FROM tab2 WHERE NOT col1 < - - 59
----
4855
5705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1456
SELECT DISTINCT - MAX( DISTINCT col1 ) AS col1 FROM tab0 WHERE NOT ( + 89 * + col1 > - + CAST( NULL AS SIGNED ) * + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1456
SELECT DISTINCT - MAX ( DISTINCT col1 ) AS col1 FROM tab0 WHERE NOT ( + 89 * + col1 > - + CAST ( NULL AS INTEGER ) * + col2 )
----
NULL

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 WHERE ( NOT 88 < + 92 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1458
SELECT ALL - 70 DIV - ( - - col2 ) AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL - 70 / - ( - - col2 ) AS col2 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1459
SELECT CAST( - - ( + - col1 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-1459
SELECT CAST ( - - ( + - col1 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL - col1 + - col2 + + col2 * - + col0 AS col1 FROM tab2 AS cor0
----
-1132
-2677
-4475

query I rowsort
SELECT DISTINCT ( col0 ) + - 7 FROM tab1 AS cor0
----
44
78
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1462
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + 79 + + + 23 AS col2, COUNT( * ) AS col0 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1462
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + 79 + + + 23 AS col2, COUNT ( * ) AS col0 FROM tab0
----
NULL
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 60 col2 FROM tab2 AS cor0
----
-111
-127
-137

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT ALL - SUM( DISTINCT + col2 ) * - 63 AS col0 FROM tab2 AS cor0
----
7623

skipif mysql # not compatible
query I rowsort label-1465
SELECT ALL - SUM ( DISTINCT + col2 ) * - 63 AS col0 FROM tab2 AS cor0
----
7623

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT DISTINCT - + MIN( - col2 ) * COUNT( * ) FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-1466
SELECT DISTINCT - + MIN ( - col2 ) * COUNT ( * ) FROM tab1 AS cor0
----
288

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

skipif mysql # not compatible
query I rowsort label-1467
SELECT - MAX ( - + col0 ) FROM tab1 cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-1468
SELECT + col1 * + col2 * - 59 + col2 DIV + col2 FROM tab2 AS cor0
----
-181719
-229273
-69206

skipif mysql # not compatible
query I rowsort label-1468
SELECT + col1 * + col2 * - 59 + col2 / + col2 FROM tab2 AS cor0
----
-181719
-229273
-69206

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT DISTINCT - 89 - + COUNT( * ) FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-1471
SELECT DISTINCT - 89 - + COUNT ( * ) FROM tab1
----
-92

query III rowsort
SELECT * FROM tab1 WHERE NULL > + - 83 + - 45
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1473
SELECT DISTINCT col0 DIV + col2 + - + col2 FROM tab1
----
-58
-67
-96

skipif mysql # not compatible
query I rowsort label-1473
SELECT DISTINCT col0 / + col2 + - + col2 FROM tab1
----
-58
-67
-96

query I rowsort
SELECT DISTINCT - col0 - 27 FROM tab0
----
-114
-124
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT ( + COUNT( * ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1475
SELECT ( + COUNT ( * ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + + col1 <= col0 * + + col2 * + ( + - col0 ) AND NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT DISTINCT - MAX( - - 24 ) - + + COUNT( * ) + - + 65 FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-1477
SELECT DISTINCT - MAX ( - - 24 ) - + + COUNT ( * ) + - + 65 FROM tab0 AS cor0
----
-92

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

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL - - MIN ( - 30 ) FROM tab0 AS cor0
----
-30

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

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

query I rowsort
SELECT + 26 * - - 48 FROM tab0 AS cor0
----
1248
1248
1248

onlyif mysql # DIV for integer division: 
query I rowsort label-1481
SELECT DISTINCT 31 DIV - 82 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1481
SELECT DISTINCT 31 / - 82 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT col0, - col1 * + col1 AS col0, - col2 AS col1 FROM tab1 AS cor0
----
9 values hashing to 6a747578e1dbe55bd1f0fa6630c9c675

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

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

query I rowsort
SELECT DISTINCT col0 * - + col1 AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query II rowsort
SELECT - col2 * - ( col2 ) + - col2 * 16 AS col2, - col0 FROM tab0 AS cor0
----
-60
-87
1457
-15
8217
-97

query I rowsort
SELECT DISTINCT + 89 FROM tab1 cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT - MIN( + - 26 ) FROM tab1 cor0
----
26

skipif mysql # not compatible
query I rowsort label-1488
SELECT - MIN ( + - 26 ) FROM tab1 cor0
----
26

query I rowsort
SELECT DISTINCT - 34 * + col0 * - col0 AS col1 FROM tab0 AS cor0
----
257346
319906
7650

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1490
SELECT ALL * FROM tab1 WHERE NOT CAST( + ( 10 ) AS DECIMAL ) <= + + col0
----

skipif mysql # not compatible
query III rowsort label-1490
SELECT ALL * FROM tab1 WHERE NOT CAST ( + ( 10 ) AS REAL ) <= + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1491
SELECT ALL + CAST( 57 AS SIGNED ) FROM tab0 WHERE NOT NULL <> - col0
----

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL + CAST ( 57 AS INTEGER ) FROM tab0 WHERE NOT NULL <> - col0
----

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

skipif mysql # not compatible
query I rowsort label-1492
SELECT - COUNT ( * ) / - 82 FROM tab0
----
0

query II rowsort
SELECT DISTINCT col2 AS col2, col0 * + col0 AS col2 FROM tab2
----
23
2116
40
4096
58
5625

query I rowsort
SELECT col1 * - + 11 AS col0 FROM tab2
----
-561
-737
-847

query I rowsort
SELECT + ( + ( + + col1 ) ) FROM tab1
----
14
47
5

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1497
SELECT DISTINCT + col2 * + - col0 + - col1 + - CAST( col2 AS SIGNED ) + + col0 * - 79 FROM tab2 AS cor0
----
-10400
-4766
-7733

skipif mysql # not compatible
query I rowsort label-1497
SELECT DISTINCT + col2 * + - col0 + - col1 + - CAST ( col2 AS INTEGER ) + + col0 * - 79 FROM tab2 AS cor0
----
-10400
-4766
-7733

onlyif mysql # aggregate syntax: 
query II rowsort label-1498
SELECT DISTINCT COUNT( * ) AS col0, - 92 AS col0 FROM tab1 AS cor0
----
3
-92

skipif mysql # not compatible
query II rowsort label-1498
SELECT DISTINCT COUNT ( * ) AS col0, - 92 AS col0 FROM tab1 AS cor0
----
3
-92

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

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

query I rowsort
SELECT DISTINCT 19 * - col2 * + col1 AS col0 FROM tab1
----
-25536
-5605
-60724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 * - + col0 col0 FROM tab1
----
-3774
-6290
-6734

query III rowsort
SELECT * FROM tab2 WHERE + 33 / - col2 = NULL
----

query I rowsort
SELECT DISTINCT + col2 + - 43 AS col0 FROM tab1
----
16
25
53

query III rowsort
SELECT * FROM tab0 WHERE 90 <= NULL
----

query I rowsort
SELECT - col2 + + 28 FROM tab0
----
-19
-71
18

query I rowsort
SELECT col1 + - ( + + col1 ) FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT + 71 + - MAX( DISTINCT + col2 ) + + - 16 AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1507
SELECT + 71 + - MAX ( DISTINCT + col2 ) + + - 16 AS col2 FROM tab2
----
-3

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col0, - col1 * - - col2 col2 FROM tab1 AS cor0
----
14
-1344
47
-3196
5
-295

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

query I rowsort
SELECT ALL - col1 + 53 AS col1 FROM tab0
----
-28
32
52

query I rowsort
SELECT DISTINCT - col1 + + 72 * - col1 FROM tab1
----
-1022
-3431
-365

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 92 ) >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 >= ( col2 + - col2 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1519
SELECT * FROM tab2 WHERE - CAST( - 48 AS SIGNED ) NOT BETWEEN NULL AND + col1
----

skipif mysql # not compatible
query III rowsort label-1519
SELECT * FROM tab2 WHERE - CAST ( - 48 AS INTEGER ) NOT BETWEEN NULL AND + col1
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT COUNT( + 14 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1523
SELECT COUNT ( + 14 ) FROM tab0
----
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1525
SELECT ALL * FROM tab0 WHERE 7 + CAST( NULL AS SIGNED ) >= ( + col2 / 39 )
----

skipif mysql # not compatible
query III rowsort label-1525
SELECT ALL * FROM tab0 WHERE 7 + CAST ( NULL AS INTEGER ) >= ( + col2 / 39 )
----

query III rowsort
SELECT * FROM tab0 WHERE 88 NOT IN ( col2 * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT DISTINCT SUM( ALL 90 ) FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-1527
SELECT DISTINCT SUM ( ALL 90 ) FROM tab0
----
270

query III rowsort
SELECT * FROM tab1 WHERE 90 NOT IN ( ( ( 44 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1529
SELECT 27 * - COUNT( DISTINCT ( CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1529
SELECT 27 * - COUNT ( DISTINCT ( CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT 64 * COUNT( * ) AS col2 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-1530
SELECT 64 * COUNT ( * ) AS col2 FROM tab2
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT ALL MIN( 22 ) + - ( + 51 ) FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-1531
SELECT ALL MIN ( 22 ) + - ( + 51 ) FROM tab2
----
-29

query I rowsort
SELECT DISTINCT - col2 + 73 FROM tab2
----
15
33
50

query I rowsort
SELECT ( col1 ) * + 35 FROM tab2
----
1785
2345
2695

query I rowsort
SELECT ALL + col1 + + 64 AS col1 FROM tab0
----
145
65
85

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

query I rowsort
SELECT ALL 57 + col0 * 10 AS col1 FROM tab0
----
1027
207
927

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1537
SELECT ALL - AVG ( CAST( NULL AS DECIMAL ) ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE ( NULL ) >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1537
SELECT ALL - AVG ( CAST ( NULL AS REAL ) ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE ( NULL ) >= ( NULL )
----
NULL

query I rowsort
SELECT + col0 + 79 AS col0 FROM tab0
----
166
176
94

query I rowsort
SELECT + 47 + 46 AS col0 FROM tab2
----
93
93
93

query I rowsort
SELECT - 36 + + col1 * + col1 AS col1 FROM tab1
----
-11
160
2173

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

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

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

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

query I rowsort
SELECT DISTINCT 61 * + 24 + - col2 AS col1 FROM tab2 AS cor0
----
1406
1424
1441

query I rowsort
SELECT ALL - col0 * - col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL + 93 * 80 + 94 * - col0 AS col0 FROM tab2 AS cor0
----
1424
3116
390

query I rowsort
SELECT + 35 - + 81 AS col0 FROM tab0 AS cor0
----
-46
-46
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1547
SELECT DISTINCT - COUNT( CAST( - col2 AS SIGNED ) ) * 20 AS col0 FROM tab0 WHERE NULL IS NULL
----
-60

skipif mysql # not compatible
query I rowsort label-1547
SELECT DISTINCT - COUNT ( CAST ( - col2 AS INTEGER ) ) * 20 AS col0 FROM tab0 WHERE NULL IS NULL
----
-60

query I rowsort
SELECT ALL 92 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1549
SELECT ALL col1 * + col1 + - CAST( 7 + col0 * + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT ( 63 - + ( - 87 ) ) IS NULL
----
-543
248
994

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL col1 * + col1 + - CAST ( 7 + col0 * + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT ( 63 - + ( - 87 ) ) IS NULL
----
-543
248
994

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1554
SELECT + - 52 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
2
52

skipif mysql # not compatible
query I rowsort label-1554
SELECT + - 52 / - col1 AS col0 FROM tab0 AS cor0
----
0
2
52

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 76 / - ( - col0 ) >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1557
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL BETWEEN 34 / + col1 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1557
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL BETWEEN 34 / + col1 AND + CAST ( NULL AS INTEGER )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1559
SELECT DISTINCT - + ( - CAST( ( col1 ) AS SIGNED ) ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1559
SELECT DISTINCT - + ( - CAST ( ( col1 ) AS INTEGER ) ) FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 29 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT DISTINCT - COUNT( ALL + col0 ) + + ( 21 ) AS col0 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-1561
SELECT DISTINCT - COUNT ( ALL + col0 ) + + ( 21 ) AS col0 FROM tab2 AS cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1562
SELECT + + CAST( NULL AS SIGNED ) - 44 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-1562
SELECT + + CAST ( NULL AS INTEGER ) - 44 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1565
SELECT - 33 DIV - 14 AS col0 FROM tab0 WHERE col2 + - col2 DIV - col0 IS NOT NULL
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1565
SELECT - 33 / - 14 AS col0 FROM tab0 WHERE col2 + - col2 / - col0 IS NOT NULL
----
2
2
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT MIN( 3 ) * 85 FROM tab0 WHERE NOT NULL IS NOT NULL
----
255

skipif mysql # not compatible
query I rowsort label-1567
SELECT MIN ( 3 ) * 85 FROM tab0 WHERE NOT NULL IS NOT NULL
----
255

onlyif mysql # DIV for integer division: 
query I rowsort label-1568
SELECT ALL + col1 DIV - ( ( - col1 ) ) FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL + col1 / - ( ( - col1 ) ) FROM tab0
----
1
1
1

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

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

query I rowsort
SELECT col2 * 60 AS col2 FROM tab0
----
2820
5940
600

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

query I rowsort
SELECT 68 * - 47 * col2 FROM tab0
----
-150212
-316404
-31960

query I rowsort
SELECT - + col0 * - col1 - col1 * col1 AS col0 FROM tab0 AS cor0
----
-5346
1386
96

query I rowsort
SELECT + - 38 * - 45 FROM tab0 AS cor0
----
1710
1710
1710

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

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT ( col1 * col0 <= col0 )
----
10
47

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1581
SELECT DISTINCT + col0 AS col2 FROM tab1 AS cor0 WHERE + col0 * col0 * 46 + ( 35 + ( col0 + + 81 ) * CAST ( col2 + + col1 / + col0 AS INTEGER ) ) IS NOT NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col1 ) > + col1 * 54
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT + 13 * col0 * + col1 FROM tab0
----
1261
15795
23751

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

query I rowsort
SELECT + AVG ( DISTINCT col0 ) FROM tab2 WHERE + col2 IS NULL
----
NULL

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

query I rowsort
SELECT col0 / + col0 FROM tab0 WHERE - 79 * col0 * 76 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col2 * - - col0 col2 FROM tab0
----
-720
-957
-9700

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT - ( - MAX( DISTINCT + 4 ) ) AS col1 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-1590
SELECT - ( - MAX ( DISTINCT + 4 ) ) AS col1 FROM tab1
----
4

query II rowsort
SELECT + col1 * - 63, 27 AS col1 FROM tab1
----
-2961
27
-315
27
-882
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT SUM( ALL + col2 ) + + ( + - COUNT( ALL - col1 ) ) FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-1592
SELECT SUM ( ALL + col2 ) + + ( + - COUNT ( ALL - col1 ) ) FROM tab0
----
153

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

query I rowsort
SELECT DISTINCT col1 * 67 AS col0 FROM tab2 AS cor0
----
3417
4489
5159

query I rowsort
SELECT DISTINCT + - 28 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1596
SELECT ALL - 46 DIV MAX( ALL 50 ) - + 99 + + + 59 FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL - 46 / MAX ( ALL 50 ) - + 99 + + + 59 FROM tab0
----
-40

query I rowsort
SELECT + 45 - + + col2 AS col2 FROM tab2
----
-13
22
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1598
SELECT DISTINCT - CAST( - 16 AS SIGNED ) AS col0 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-1598
SELECT DISTINCT - CAST ( - 16 AS INTEGER ) AS col0 FROM tab1
----
16

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT + SUM( - 21 ) FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-1601
SELECT + SUM ( - 21 ) FROM tab1 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT DISTINCT + MAX( DISTINCT + - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1602
SELECT DISTINCT + MAX ( DISTINCT + - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= - col1
----
NULL

query I rowsort
SELECT - col0 * col0 + + 26 - - col0 FROM tab2 AS cor0
----
-2044
-4006
-5524

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 NOT IN ( + - 9, + col2 * - col1 )
----

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

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

query II rowsort
SELECT DISTINCT col0, - 53 FROM tab1
----
51
-53
85
-53
91
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT DISTINCT - MAX( ALL 72 ) * COUNT( * ) FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-1609
SELECT DISTINCT - MAX ( ALL 72 ) * COUNT ( * ) FROM tab0
----
-216

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

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + 7 * 65 AND - 29
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1613
SELECT ALL 98 / - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1613
SELECT ALL 98 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1615
SELECT ALL - + CAST( + 31 AS SIGNED ) AS col0 FROM tab1 WHERE NOT - ( - - col0 ) + + 26 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL - + CAST ( + 31 AS INTEGER ) AS col0 FROM tab1 WHERE NOT - ( - - col0 ) + + 26 IS NOT NULL
----

query I rowsort
SELECT ALL + + 82 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL >= - 25 * + + 69 )
----

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 AS cor0 WHERE - 34 * 7 > + col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT ALL 49 + - 23 * COUNT( * ) FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL 49 + - 23 * COUNT ( * ) FROM tab0 AS cor0
----
-20

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

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

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

query I rowsort
SELECT ALL 35 + col1 FROM tab1
----
40
49
82

query II rowsort
SELECT ALL 89 AS col1, - col1 AS col2 FROM tab0
----
89
-1
89
-21
89
-81

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1626
SELECT DISTINCT + CAST( - 68 AS SIGNED ) * - + 75 + + 49 + - + col1 FROM tab1
----
5102
5135
5144

skipif mysql # not compatible
query I rowsort label-1626
SELECT DISTINCT + CAST ( - 68 AS INTEGER ) * - + 75 + + 49 + - + col1 FROM tab1
----
5102
5135
5144

onlyif mysql # aggregate syntax: 
query II rowsort label-1627
SELECT DISTINCT + COUNT( * ), - 82 AS col1 FROM tab0
----
3
-82

skipif mysql # not compatible
query II rowsort label-1627
SELECT DISTINCT + COUNT ( * ), - 82 AS col1 FROM tab0
----
3
-82

query I rowsort
SELECT DISTINCT - col1 * - - 92 AS col0 FROM tab1
----
-1288
-4324
-460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1629
SELECT ALL + CAST( MIN( + 64 ) AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL + CAST ( MIN ( + 64 ) AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0
----
64

query I rowsort
SELECT DISTINCT + 78 - 89 AS col0 FROM tab0
----
-11

query I rowsort
SELECT ALL 94 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT + + col1 / - 92 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( col1 ) AND + 21
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1634
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * + col1 IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1634
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + col1 IS NULL
----
14
47
5

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1636
SELECT - col1 DIV - + col2 + col1 AS col2 FROM tab0 AS cor0
----
1
23
82

skipif mysql # not compatible
query I rowsort label-1636
SELECT - col1 / - + col2 + col1 AS col2 FROM tab0 AS cor0
----
1
23
82

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1639
SELECT ( CAST( - - col2 AS SIGNED ) ) DIV 8 FROM tab1
----
12
7
8

skipif mysql # not compatible
query I rowsort label-1639
SELECT ( CAST ( - - col2 AS INTEGER ) ) / 8 FROM tab1
----
12
7
8

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

query I rowsort
SELECT ALL - col1 * + - 1 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < NULL OR NOT NULL BETWEEN 81 AND - - 25
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 AS col0, col1 * + col2 col2 FROM tab2 AS cor0
----
23
1173
40
3080
58
3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1645
SELECT DISTINCT - - ( - - CAST( - SUM( ALL + col1 ) AS SIGNED ) ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1645
SELECT DISTINCT - - ( - - CAST ( - SUM ( ALL + col1 ) AS INTEGER ) ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 48 * + 48 IN ( + 93 )
----

query I rowsort
SELECT ALL - col0 + - 17 AS col2 FROM tab2
----
-63
-81
-92

query I rowsort
SELECT - 32 + + 17 AS col2 FROM tab2
----
-15
-15
-15

query I rowsort
SELECT + col1 * 2 * - col2 FROM tab1 WHERE NULL >= col1 * - + col1 / + ( - 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT ALL 47 * + - SUM( ALL 32 ) col1 FROM tab0
----
-4512

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1650
SELECT ALL 47 * + - SUM ( ALL 32 ) col1 FROM tab0
----
-4512

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + + col1 + - - col1 col0, 96 FROM tab2
----
125
96
192
96
194
96

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

query I rowsort
SELECT col2 * - col0 + + 2 + - - col2 AS col1 FROM tab0
----
-656
-858
-9502

query II rowsort
SELECT 67 + + col1 AS col2, - 6 * - + 13 FROM tab0
----
148
78
68
78
88
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1655
SELECT CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE - col2 = + 93
----

skipif mysql # not compatible
query I rowsort label-1655
SELECT CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE - col2 = + 93
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1656
SELECT ALL - col0 * - - CAST( NULL AS SIGNED ) + + - 49 + - ( + 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-1656
SELECT ALL - col0 * - - CAST ( NULL AS INTEGER ) + + - 49 + - ( + col1 ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1657
SELECT - + ( + - SUM( + col1 ) ) DIV + - COUNT( * ) FROM tab1 cor0
----
-22

skipif mysql # not compatible
query I rowsort label-1657
SELECT - + ( + - SUM ( + col1 ) ) / + - COUNT ( * ) FROM tab1 cor0
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-1658
SELECT COUNT( * ) AS col2, 98 * - + MIN( - 92 ) AS col1 FROM tab1
----
3
9016

skipif mysql # not compatible
query II rowsort label-1658
SELECT COUNT ( * ) AS col2, 98 * - + MIN ( - 92 ) AS col1 FROM tab1
----
3
9016

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

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1660
SELECT ALL - COUNT( * ), CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-1660
SELECT ALL - COUNT ( * ), CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT ALL + 24 * - COUNT( * ) col1 FROM tab0
----
-72

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

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

query II rowsort
SELECT + + col1, - ( + col1 ) FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

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

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

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

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

query I rowsort
SELECT - col0 * - - 54 FROM tab2 AS cor0
----
-2484
-3456
-4050

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

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

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

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

query I rowsort
SELECT 9 * + 71 AS col2 FROM tab2
----
639
639
639

query I rowsort
SELECT + col0 - - col0 + - 77 AS col2 FROM tab0 WHERE NOT + ( col0 ) >= + - col0 * 42
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1673
SELECT col2 DIV col2 * - 2 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1673
SELECT col2 / col2 * - 2 FROM tab1
----
-2
-2
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1674
SELECT DISTINCT + col0 * ( - - col2 ) * col1 + + col1 + + col0 + + 32 / + + 41 * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT + col0 * ( - - col2 ) * col1 + + col1 + + col0 + + 32 / + + 41 * + CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT col2 * - 40 AS col0 FROM tab2
----
-1600
-2320
-920

query I rowsort
SELECT - 3 * + col2 AS col0 FROM tab1
----
-177
-204
-288

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

query I rowsort
SELECT DISTINCT - col2 * - 49 * + col2 FROM tab1
----
170569
226576
451584

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1679
SELECT ALL * FROM tab1 WHERE + 94 / CAST( - ( + col0 ) AS DECIMAL ) <> ( + - 71 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1679
SELECT ALL * FROM tab1 WHERE + 94 / CAST ( - ( + col0 ) AS REAL ) <> ( + - 71 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query I rowsort
SELECT + - col1 * + 34 FROM tab1 AS cor0
----
-1598
-170
-476

query I rowsort
SELECT DISTINCT col2 * + + 84 AS col2 FROM tab0 AS cor0
----
3948
8316
840

query I rowsort
SELECT 22 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1686
SELECT DISTINCT 9 DIV - - col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-1686
SELECT DISTINCT 9 / - - col1 FROM tab1
----
0
1

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

query I rowsort
SELECT 17 * - 43 * 96 + col1 FROM tab1 cor0
----
-70129
-70162
-70171

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT - COUNT( - col1 ) + 26 AS col2 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1689
SELECT - COUNT ( - col1 ) + 26 AS col2 FROM tab0 AS cor0
----
23

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1692
SELECT DISTINCT + + ( - 39 ) DIV - COUNT( * ) + - + 64 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1692
SELECT DISTINCT + + ( - 39 ) / - COUNT ( * ) + - + 64 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT + col1 - + - col2 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1694
SELECT + 62 DIV - - 80 - + COUNT( + + 18 ) * - 68 + MAX( ALL - + col1 ) FROM tab0
----
203

skipif mysql # not compatible
query I rowsort label-1694
SELECT + 62 / - - 80 - + COUNT ( + + 18 ) * - 68 + MAX ( ALL - + col1 ) FROM tab0
----
203

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE ( NOT + ( 77 ) > + - col1 )
----

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

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

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

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

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

query II rowsort
SELECT + col0 * + + 3 AS col1, - col0 FROM tab2 AS cor0
----
138
-46
192
-64
225
-75

query I rowsort
SELECT ALL - + 2 AS col1 FROM tab0 AS cor0
----
-2
-2
-2

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= - 64 + + 57 / + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT - - COUNT( - 29 ) * + 65 FROM tab0 cor0
----
195

skipif mysql # not compatible
query I rowsort label-1703
SELECT - - COUNT ( - 29 ) * + 65 FROM tab0 cor0
----
195

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT ALL 62 * - + COUNT( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL 62 * - + COUNT ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
-186

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1707
SELECT DISTINCT 20 AS col1, 81 * COUNT( * ) col0 FROM tab1
----
20
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1707
SELECT DISTINCT 20 AS col1, 81 * COUNT ( * ) col0 FROM tab1
----
20
243

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1708
SELECT + ( - - 19 ) * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT + 55 + - - col2 - 21 FROM tab1 AS cor0
----
102
130
93

query I rowsort
SELECT DISTINCT - + 33 + + col1 FROM tab2 cor0
----
18
34
44

query I rowsort
SELECT 55 * - - col0 FROM tab0
----
4785
5335
825

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

query I rowsort
SELECT DISTINCT - ( 18 ) AS col0 FROM tab1
----
-18

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - 35 AND 44
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1716
SELECT - CAST( + col1 AS SIGNED ) + + + 10 AS col0 FROM tab0 AS cor0
----
-11
-71
9

skipif mysql # not compatible
query I rowsort label-1716
SELECT - CAST ( + col1 AS INTEGER ) + + + 10 AS col0 FROM tab0 AS cor0
----
-11
-71
9

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

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NULL NOT BETWEEN - 20 AND + + 70 - - - col1
----

query I rowsort
SELECT col1 + + + 68 FROM tab0
----
149
69
89

query I rowsort
SELECT - ( - col0 ) * + - 97 + + col0 AS col0 FROM tab2
----
-4416
-6144
-7200

query I rowsort
SELECT col1 * - - col2 * + col0 + - + 87 AS col0 FROM tab0
----
18183
57018
9516

query I rowsort
SELECT - - 12 FROM tab2 WHERE col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1723
SELECT DISTINCT - col1 * - - col2 - - + col1 DIV - col0 AS col2 FROM tab2
----
-1174
-3081
-3886

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT - col1 * - - col2 - - + col1 / - col0 AS col2 FROM tab2
----
-1174
-3081
-3886

query I rowsort
SELECT ALL - + 44 FROM tab0 cor0
----
-44
-44
-44

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

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

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

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

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

query II rowsort
SELECT + col1 AS col2, + 80 + + 60 AS col2 FROM tab1 AS cor0
----
14
140
47
140
5
140

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

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

query I rowsort
SELECT DISTINCT + + col1 * 67 FROM tab2 AS cor0
----
3417
4489
5159

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT COUNT( + + col1 ) * - - 15 * - - 31 AS col2 FROM tab0
----
1395

skipif mysql # not compatible
query I rowsort label-1735
SELECT COUNT ( + + col1 ) * - - 15 * - - 31 AS col2 FROM tab0
----
1395

onlyif mysql # aggregate syntax: 
query II rowsort label-1736
SELECT - 12 * - + COUNT( * ) AS col1, COUNT( + 3 ) AS col0 FROM tab2
----
36
3

skipif mysql # not compatible
query II rowsort label-1736
SELECT - 12 * - + COUNT ( * ) AS col1, COUNT ( + 3 ) AS col0 FROM tab2
----
36
3

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

skipif mysql # not compatible
query I rowsort label-1737
SELECT - col0 / + - col0 AS col0 FROM tab2
----
1
1
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1739
SELECT - SUM( ALL - 3 ) AS col2, 68 FROM tab1 AS cor0
----
9
68

skipif mysql # not compatible
query II rowsort label-1739
SELECT - SUM ( ALL - 3 ) AS col2, 68 FROM tab1 AS cor0
----
9
68

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

skipif mysql # not compatible
query I rowsort label-1740
SELECT + MIN ( 4 ) FROM tab2 AS cor0
----
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT 78 + + ( + COUNT( * ) ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-1742
SELECT 78 + + ( + COUNT ( * ) ) AS col0 FROM tab0
----
81

query I rowsort
SELECT + 62 + + - col2 FROM tab2 AS cor0
----
22
39
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT DISTINCT + 97 * SUM( + + 64 ) FROM tab0 AS cor0
----
18624

skipif mysql # not compatible
query I rowsort label-1744
SELECT DISTINCT + 97 * SUM ( + + 64 ) FROM tab0 AS cor0
----
18624

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT - MAX( DISTINCT - 90 ) col0 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1747
SELECT - MAX ( DISTINCT - 90 ) col0 FROM tab0 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-1748
SELECT - COUNT( * ), - 40 col0 FROM tab0 cor0 WHERE col0 * + + col1 / col0 + + col0 IS NULL
----
0
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1748
SELECT - COUNT ( * ), - 40 col0 FROM tab0 cor0 WHERE col0 * + + col1 / col0 + + col0 IS NULL
----
0
-40

query III rowsort
SELECT * FROM tab2 WHERE + col0 + + + col2 * + col2 * + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - 13 - - 59 - + 54 FROM tab1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT - MIN( DISTINCT + + col2 ) - + COUNT( * ) + - - SUM( + col2 ) FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-1751
SELECT - MIN ( DISTINCT + + col2 ) - + COUNT ( * ) + - - SUM ( + col2 ) FROM tab2
----
95

query III rowsort
SELECT * FROM tab2 WHERE - col1 >= + col2
----

query I rowsort
SELECT DISTINCT + 50 * - 81 + + + 94 + - 36 / 34 * - + col2 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( 72 ) FROM tab2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1755
SELECT CAST( + CAST( - + col0 AS SIGNED ) AS SIGNED ) AS col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1755
SELECT CAST ( + CAST ( - + col0 AS INTEGER ) AS INTEGER ) AS col2 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - col1 * + - col2 + - col0 AS col2 FROM tab1 AS cor0
----
1293
210
3105

onlyif mysql # DIV for integer division: 
query I rowsort label-1757
SELECT ALL col0 DIV 81 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL col0 / 81 FROM tab0 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1758
SELECT DISTINCT col0 col0, + CAST( NULL AS SIGNED ) AS col0 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-1758
SELECT DISTINCT col0 col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + 66 / - ( - 89 ) / 89 <= + + 10 + + 54 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT - COUNT( DISTINCT + 21 ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1760
SELECT - COUNT ( DISTINCT + 21 ) AS col2 FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 37 col2 FROM tab2 AS cor0
----
37

query I rowsort
SELECT ( + 42 ) AS col0 FROM tab1 AS cor0
----
42
42
42

query II rowsort
SELECT DISTINCT - + 18 * - 16 + - 1, col2 AS col1 FROM tab0 AS cor0
----
287
10
287
47
287
99

query I rowsort
SELECT ALL - - col1 * col2 + + - 82 + + col2 AS col0 FROM tab2 cor0
----
1114
3038
3862

query II rowsort
SELECT ALL col0 AS col1, col0 AS col1 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT ALL - SUM( ALL + - 58 ) FROM tab1
----
174

skipif mysql # not compatible
query I rowsort label-1766
SELECT ALL - SUM ( ALL + - 58 ) FROM tab1
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT DISTINCT COUNT( * ) + + - ( + + COUNT( * ) ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1767
SELECT DISTINCT COUNT ( * ) + + - ( + + COUNT ( * ) ) col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 49 col1, col0 + 75 AS col0 FROM tab1
----
49
126
49
160
49
166

onlyif mysql # aggregate syntax: 
query II rowsort label-1769
SELECT DISTINCT + COUNT( * ) col0, MAX( 89 ) - - 24 AS col1 FROM tab0
----
3
113

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1769
SELECT DISTINCT + COUNT ( * ) col0, MAX ( 89 ) - - 24 AS col1 FROM tab0
----
3
113

onlyif mysql # aggregate syntax: 
query II rowsort label-1770
SELECT DISTINCT + 76 AS col1, COUNT( * ) FROM tab2
----
76
3

skipif mysql # not compatible
query II rowsort label-1770
SELECT DISTINCT + 76 AS col1, COUNT ( * ) FROM tab2
----
76
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1771
SELECT ALL col0, + col0 * - CAST( NULL AS SIGNED ) FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-1771
SELECT ALL col0, + col0 * - CAST ( NULL AS INTEGER ) FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT ALL COUNT( * ) * + 78 * - - 15 AS col0 FROM tab1
----
3510

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL COUNT ( * ) * + 78 * - - 15 AS col0 FROM tab1
----
3510

query II rowsort
SELECT ALL col0, 5 FROM tab2
----
46
5
64
5
75
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1774
SELECT DISTINCT 47 * + + col1 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1774
SELECT DISTINCT 47 * + + col1 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1775
SELECT DISTINCT - col1 * - 78 + + CAST( NULL AS SIGNED ) / col1 + + col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1775
SELECT DISTINCT - col1 * - 78 + + CAST ( NULL AS INTEGER ) / col1 + + col1 AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL - col1 AS col2, col0 + + - 95 FROM tab2 AS cor0
----
-51
-49
-67
-20
-77
-31

query I rowsort
SELECT DISTINCT - ( + col1 ) + - 86 FROM tab2 AS cor0
----
-137
-153
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT DISTINCT 82 + + - 62 + MIN( ALL - 12 ) FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-1778
SELECT DISTINCT 82 + + - 62 + MIN ( ALL - 12 ) FROM tab0 AS cor0
----
8

query III rowsort
SELECT * FROM tab0 WHERE + 75 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - 51 col2 FROM tab2
----
0
16
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT ALL - 86 * - SUM( ALL 14 ) AS col1 FROM tab0
----
3612

skipif mysql # not compatible
query I rowsort label-1781
SELECT ALL - 86 * - SUM ( ALL 14 ) AS col1 FROM tab0
----
3612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1782
SELECT DISTINCT - + ( - CAST( NULL AS SIGNED ) ) * + - 11 + + - 80 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1782
SELECT DISTINCT - + ( - CAST ( NULL AS INTEGER ) ) * + - 11 + + - 80 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE 40 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1784
SELECT + 99 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1784
SELECT + 99 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col0, col2 AS col2 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT ALL 86 * + col1 AS col2 FROM tab2
----
4386
5762
6622

onlyif mysql # DIV for integer division: 
query I rowsort label-1787
SELECT 41 DIV - col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1787
SELECT 41 / - col2 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT ALL + 25 * - - COUNT( * ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL + 25 * - - COUNT ( * ) AS col0 FROM tab2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1789
SELECT ALL + 76 DIV col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL + 76 / col0 FROM tab1
----
0
0
1

query II rowsort
SELECT DISTINCT + col0, + col2 AS col2 FROM tab1 WHERE NULL IS NULL
----
51
96
85
59
91
68

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 59 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 * - 44 * - col1 FROM tab1
----
-1100
-8624
-97196

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <> + 43
----

query I rowsort
SELECT DISTINCT + col1 * + + col2 * 69 + col1 FROM tab2 AS cor0
----
212597
268201
80988

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT ALL + MAX( - - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-1795
SELECT ALL + MAX ( - - col0 ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT + col0 * + 15 AS col0 FROM tab1 cor0
----
1275
1365
765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1797
SELECT DISTINCT + - CAST( - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1797
SELECT DISTINCT + - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT 72 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT COUNT( * ) * - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-1799
SELECT COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

query II rowsort
SELECT DISTINCT ( - ( - col1 ) ) * + 5 AS col2, ( + col1 ) * - col0 FROM tab2
----
255
-2346
335
-5025
385
-4928

onlyif mysql # DIV for integer division: 
query I rowsort label-1801
SELECT DISTINCT + + col1 DIV col1 + + 96 AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1801
SELECT DISTINCT + + col1 / col1 + + 96 AS col0 FROM tab0 AS cor0
----
97

query I rowsort
SELECT col2 * - col1 + + - col1 FROM tab1 AS cor0
----
-1358
-300
-3243

query I rowsort
SELECT ALL - + 10 FROM tab0 cor0
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT ALL + + SUM( - col1 ) * + - 84 AS col2 FROM tab1 AS cor0
----
5544

skipif mysql # not compatible
query I rowsort label-1804
SELECT ALL + + SUM ( - col1 ) * + - 84 AS col2 FROM tab1 AS cor0
----
5544

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT ALL - COUNT( * ) * + 39 + - ( + COUNT( * ) ) FROM tab1 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL - COUNT ( * ) * + 39 + - ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-120

query I rowsort
SELECT + col1 * - + 67 + + - col2 FROM tab1 AS cor0
----
-1034
-3217
-394

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT ALL - 4 + - ( + MIN( + 55 ) ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL - 4 + - ( + MIN ( + 55 ) ) AS col2 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT - - COUNT( * ) * + MIN( - - col2 ) + + COUNT( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-1808
SELECT - - COUNT ( * ) * + MIN ( - - col2 ) + + COUNT ( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
180

query III rowsort
SELECT * FROM tab1 WHERE - 10 >= col0 * 82
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1810
SELECT - col2 AS col2, + CAST( NULL AS DECIMAL ) + + col1 - + - 74 - col2 * - - col1 * + + col1 AS col1 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-1810
SELECT - col2 AS col2, + CAST ( NULL AS REAL ) + + col1 - + - 74 - col2 * - - col1 * + + col1 AS col1 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT SUM( DISTINCT 56 ) * - 75 AS col0 FROM tab1
----
-4200

skipif mysql # not compatible
query I rowsort label-1811
SELECT SUM ( DISTINCT 56 ) * - 75 AS col0 FROM tab1
----
-4200

query I rowsort
SELECT DISTINCT col0 * + 24 AS col2 FROM tab1
----
1224
2040
2184

onlyif mysql # DIV for integer division: 
query I rowsort label-1813
SELECT DISTINCT - col0 DIV + - col1 AS col1 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-1813
SELECT DISTINCT - col0 / + - col1 AS col1 FROM tab0
----
0
4
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT ALL - SUM( ALL 33 ) AS col2 FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-1814
SELECT ALL - SUM ( ALL 33 ) AS col2 FROM tab2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT SUM( DISTINCT 28 ) * - COUNT( ALL - + 60 ) - - - 30 FROM tab0 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-1815
SELECT SUM ( DISTINCT 28 ) * - COUNT ( ALL - + 60 ) - - - 30 FROM tab0 AS cor0
----
-114

query I rowsort
SELECT ALL + + col1 + + 89 + + 69 FROM tab1 AS cor0
----
163
172
205

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < 78 / + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT DISTINCT + + COUNT( * ) + - 60 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-1818
SELECT DISTINCT + + COUNT ( * ) + - 60 FROM tab1 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT 39 + + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
48

skipif mysql # not compatible
query I rowsort label-1819
SELECT 39 + + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1820
SELECT COUNT( * ) col2 FROM tab1 AS cor0 WHERE CAST( - 48 AS DECIMAL ) IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1820
SELECT COUNT ( * ) col2 FROM tab1 AS cor0 WHERE CAST ( - 48 AS REAL ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT DISTINCT - MAX( - 58 ) AS col0 FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-1821
SELECT DISTINCT - MAX ( - 58 ) AS col0 FROM tab2 cor0
----
58

query I rowsort
SELECT 77 * + + col2 + col0 AS col0 FROM tab0 AS cor0
----
3634
7720
857

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 74 col0 FROM tab2 AS cor0
----
74

query II rowsort
SELECT + col1 * + col0 AS col0, col0 AS col0 FROM tab0 AS cor0
----
1215
15
1827
87
97
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1825
SELECT - 7 DIV + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1825
SELECT - 7 / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT COUNT( DISTINCT - col1 ) + 20 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
20

skipif mysql # not compatible
query I rowsort label-1826
SELECT COUNT ( DISTINCT - col1 ) + 20 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-1827
SELECT + - col1 DIV + + col0 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1827
SELECT + - col1 / + + col0 FROM tab2 cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT 68 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT - + col2 * - col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 > + col0 / - + ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT ALL + MAX( - col1 ) col2 FROM tab2 cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1830
SELECT ALL + MAX ( - col1 ) col2 FROM tab2 cor0
----
-51

query II rowsort
SELECT + col1 * - + ( - - col0 ) AS col1, + col2 AS col1 FROM tab0
----
-1215
47
-1827
10
-97
99

query I rowsort
SELECT 70 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # DIV for integer division: 
query I rowsort label-1833
SELECT 48 DIV + col2 AS col1 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1833
SELECT 48 / + col2 AS col1 FROM tab2
----
0
1
2

query I rowsort
SELECT - 57 * + col1 + col1 + - - col2 * 52 FROM tab1 AS cor0 WHERE NOT - col0 * col2 - col2 + - col0 + - col0 + + col0 * - 9 * - + ( + 2 ) + - 90 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT - - SUM( + 35 ) FROM tab0 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-1835
SELECT - - SUM ( + 35 ) FROM tab0 AS cor0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT ALL - 5 + + - MIN( DISTINCT col1 ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL - 5 + + - MIN ( DISTINCT col1 ) FROM tab0 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1837
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-1837
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1838
SELECT ALL - - AVG ( - col2 ) + - CAST( NULL AS SIGNED ) - - 51 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL - - AVG ( - col2 ) + - CAST ( NULL AS INTEGER ) - - 51 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT DISTINCT + ( 28 ) + + 26 + + - COUNT( * ) AS col2 FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-1839
SELECT DISTINCT + ( 28 ) + + 26 + + - COUNT ( * ) AS col2 FROM tab2 cor0
----
51

query I rowsort
SELECT ALL - - col2 + - - col1 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT DISTINCT - - 88 + col1 FROM tab2 AS cor0
----
139
155
165

query II rowsort
SELECT DISTINCT 47 + - + 79, + col1 AS col0 FROM tab1
----
-32
14
-32
47
-32
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1843
SELECT - 0 + - - col0 + col1 + - col0 + ( col0 ) * 97 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1843
SELECT - 0 + - - col0 + col1 + - col0 + ( col0 ) * 97 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1844
SELECT ALL 88 DIV + col0 AS col2 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-1844
SELECT ALL 88 / + col0 AS col2 FROM tab0
----
0
1
5

query I rowsort
SELECT 96 * - col0 + col0 * - 79 FROM tab2
----
-11200
-13125
-8050

query I rowsort
SELECT + col1 + col2 AS col1 FROM tab1 WHERE + col1 + - 75 IS NULL
----

query I rowsort
SELECT - col0 + - 16 * + + col0 + + col2 * 72 FROM tab1
----
2803
3349
6045

query I rowsort
SELECT DISTINCT + - col2 + - col0 + - + 3 AS col0 FROM tab2 AS cor0
----
-107
-136
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT ALL + 96 + - COUNT( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL + 96 + - COUNT ( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
93

query I rowsort
SELECT ALL col1 + + - 3 FROM tab1 cor0
----
11
2
44

query I rowsort
SELECT ALL + - col1 * - 67 FROM tab1 AS cor0
----
3149
335
938

onlyif mysql # DIV for integer division: 
query I rowsort label-1852
SELECT col1 - + 76 + col2 - + + 36 DIV col1 DIV col1 FROM tab2
----
-2
41
49

skipif mysql # not compatible
query I rowsort label-1852
SELECT col1 - + 76 + col2 - + + 36 / col1 / col1 FROM tab2
----
-2
41
49

onlyif mysql # DIV for integer division: 
query II rowsort label-1853
SELECT DISTINCT + - col0 AS col1, + 13 DIV - - 23 col2 FROM tab1 cor0
----
-51
0
-85
0
-91
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1853
SELECT DISTINCT + - col0 AS col1, + 13 / - - 23 col2 FROM tab1 cor0
----
-51
0
-85
0
-91
0

query I rowsort
SELECT DISTINCT col1 * + 74 AS col0 FROM tab0
----
1554
5994
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT - MAX( DISTINCT + 97 ) AS col1 FROM tab1
----
-97

skipif mysql # not compatible
query I rowsort label-1855
SELECT - MAX ( DISTINCT + 97 ) AS col1 FROM tab1
----
-97

query I rowsort
SELECT ALL ( 21 ) AS col2 FROM tab2
----
21
21
21

onlyif mysql # aggregate syntax: 
query II rowsort label-1857
SELECT - SUM( DISTINCT - + col2 ) AS col2, COUNT( * ) + COUNT( * ) + - COUNT( * ) AS col1 FROM tab1
----
223
3

skipif mysql # not compatible
query II rowsort label-1857
SELECT - SUM ( DISTINCT - + col2 ) AS col2, COUNT ( * ) + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1
----
223
3

query I rowsort
SELECT 23 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
23
23

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + ( - 84 ) ) > col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1860
SELECT - COUNT( * ) DIV + 79 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1860
SELECT - COUNT ( * ) / + 79 FROM tab2
----
0

query I rowsort
SELECT ALL - ( - - 0 ) AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1862
SELECT + - col0 * + col2 * ( col2 ) + + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1862
SELECT + - col0 * + col2 * ( col2 ) + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + + col1, 89 FROM tab2 AS cor0
----
51
89
67
89
77
89

query I rowsort
SELECT DISTINCT + 59 * + col1 AS col2 FROM tab1 AS cor0
----
2773
295
826

query I rowsort
SELECT + ( - col0 ) * - + col1 AS col2 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT ALL - MIN( - 40 ) FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL - MIN ( - 40 ) FROM tab2
----
40

query I rowsort
SELECT + col1 + + - ( + col0 ) + + - 12 * + 14 + - + col0 FROM tab1 AS cor0
----
-256
-303
-333

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 BETWEEN - 15 AND - 84
----

query I rowsort
SELECT DISTINCT ( 62 ) + + col1 FROM tab1 cor0
----
109
67
76

onlyif mysql # DIV for integer division: 
query II rowsort label-1870
SELECT col2 + + 90 DIV - col1 AS col1, - 54 AS col2 FROM tab2 AS cor0
----
22
-54
39
-54
57
-54

skipif mysql # not compatible
query II rowsort label-1870
SELECT col2 + + 90 / - col1 AS col1, - 54 AS col2 FROM tab2 AS cor0
----
22
-54
39
-54
57
-54

query I rowsort
SELECT DISTINCT + 8 * - ( + col2 ) AS col2 FROM tab2 cor0
----
-184
-320
-464

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( ( + col0 + + + col2 * col0 ) NOT BETWEEN col2 AND + + 16 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * - col2 * + - 5 AS col2 FROM tab1 AS cor0
----
-17405
-23120
-46080

query I rowsort
SELECT DISTINCT 60 + - col2 FROM tab0 AS cor0
----
-39
13
50

query I rowsort
SELECT DISTINCT 62 * + col1 + + - col1 FROM tab2 AS cor0
----
3111
4087
4697

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 / - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 * col1 col2 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 57 * col0 BETWEEN - - 16 AND + + 37
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1879
SELECT + MAX( + CAST( + col1 AS SIGNED ) ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-1879
SELECT + MAX ( + CAST ( + col1 AS INTEGER ) ) FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-1880
SELECT 62, + 68 * ( - COUNT( * ) ) col2 FROM tab2
----
62
-204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1880
SELECT 62, + 68 * ( - COUNT ( * ) ) col2 FROM tab2
----
62
-204

onlyif mysql # DIV for integer division: 
query I rowsort label-1881
SELECT + 77 DIV - + 77 FROM tab1 WHERE + - col2 IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1881
SELECT + 77 / - + 77 FROM tab1 WHERE + - col2 IS NOT NULL
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - ( - - 91 ) FROM tab0
----
-91

query I rowsort
SELECT ALL + ( + - col0 ) AS col2 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT - 16 - 71 FROM tab0 AS cor0
----
-87
-87
-87

query I rowsort
SELECT - - 74 - 47 AS col1 FROM tab2 cor0
----
27
27
27

query I rowsort
SELECT + 1 + + col1 FROM tab1 AS cor0
----
15
48
6

query I rowsort
SELECT - col2 + - + col1 AS col2 FROM tab1 cor0
----
-110
-115
-64

query I rowsort
SELECT DISTINCT col1 - - ( - col2 ) FROM tab0
----
-98
11
34

query I rowsort
SELECT DISTINCT col0 + - + 57 * + + col2 AS col0 FROM tab2
----
-1265
-2216
-3231

query I rowsort
SELECT DISTINCT - ( + col0 ) * - 86 AS col0 FROM tab2
----
3956
5504
6450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1891
SELECT - + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1891
SELECT - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT + + 49 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-1892
SELECT + + 49 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
147

query I rowsort
SELECT + 47 * 36 FROM tab2 AS cor0
----
1692
1692
1692

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 * + col1 col0 FROM tab0 AS cor0
----
-1176
-4536
-56

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 * - 95 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 48 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT DISTINCT MIN( ALL + 86 ) AS col0 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT MIN ( ALL + 86 ) AS col0 FROM tab2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT - ( + + COUNT( * ) ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1898
SELECT - ( + + COUNT ( * ) ) col1 FROM tab2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1899
SELECT SUM( - - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1899
SELECT SUM ( - - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query II rowsort
SELECT col2, 62 FROM tab2
----
23
62
40
62
58
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT ALL + - SUM( + 56 ) AS col2 FROM tab0 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL + - SUM ( + 56 ) AS col2 FROM tab0 AS cor0
----
-168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - - col2 col0 FROM tab0 cor0 WHERE NOT 23 IS NOT NULL
----

query I rowsort
SELECT 81 * - 97 FROM tab2
----
-7857
-7857
-7857

query I rowsort
SELECT col1 * col1 * - 48 * - - col0 AS col1 FROM tab2
----
-16160400
-18213888
-5743008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, 53 + col1 AS col1 FROM tab0
----
15
134
87
74
97
54

query I rowsort
SELECT 75 AS col0 FROM tab0 WHERE NULL = + col2 * + col1 + col1
----

query I rowsort
SELECT ALL - 90 + col1 AS col0 FROM tab0 AS cor0
----
-69
-89
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT DISTINCT 67 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-1908
SELECT DISTINCT 67 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT ALL 34 + + + COUNT( * ) FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-1909
SELECT ALL 34 + + + COUNT ( * ) FROM tab0 AS cor0
----
37

query II rowsort
SELECT col1 AS col1, col2 AS col1 FROM tab0 cor0
----
1
99
21
10
81
47

query I rowsort
SELECT ( + - 67 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-67
-67
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 21 - - col1 col1 FROM tab1 AS cor0
----
26
35
68

query I rowsort
SELECT ALL + col1 * 23 AS col0 FROM tab0 AS cor0
----
1863
23
483

query I rowsort
SELECT - col1 + + col2 - - ( 38 ) * - + ( 29 ) * col2 + - col1 FROM tab1 AS cor0
----
-105724
-64969
-74962

query I rowsort
SELECT ALL - 78 + 79 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT SUM( - + 75 ) AS col2 FROM tab2, tab2 AS cor0
----
-675

skipif mysql # not compatible
query I rowsort label-1916
SELECT SUM ( - + 75 ) AS col2 FROM tab2, tab2 AS cor0
----
-675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1917
SELECT DISTINCT ( - COUNT( - CAST( NULL AS SIGNED ) ) ) - + COUNT( * ) + + 39 AS col0 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT ( - COUNT ( - CAST ( NULL AS INTEGER ) ) ) - + COUNT ( * ) + + 39 AS col0 FROM tab0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT 75 + + + COUNT( * ) FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-1918
SELECT 75 + + + COUNT ( * ) FROM tab1
----
78

query I rowsort
SELECT ALL + 86 - ( col1 ) + col2 FROM tab2
----
49
58
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1920
SELECT ALL + MIN( DISTINCT - + CAST( NULL AS DECIMAL ) ) * COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1920
SELECT ALL + MIN ( DISTINCT - + CAST ( NULL AS REAL ) ) * COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col2 * + col0 - col0 AS col1 FROM tab1
----
4845
4930
6097

onlyif mysql # DIV for integer division: 
query I rowsort label-1922
SELECT + 76 DIV + + col1 + 43 + + col2 DIV 60 FROM tab1
----
45
49
58

skipif mysql # not compatible
query I rowsort label-1922
SELECT + 76 / + + col1 + 43 + + col2 / 60 FROM tab1
----
45
49
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1923
SELECT DISTINCT col1 DIV + 52, 41 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
0
NULL
1
NULL

skipif mysql # not compatible
query II rowsort label-1923
SELECT DISTINCT col1 / + 52, 41 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
0
NULL
1
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 62 BETWEEN 38 / col1 AND + ( + col2 ) + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT + MIN( DISTINCT - + col2 ) FROM tab2 AS cor0 WHERE NOT + col1 * - - ( col1 ) * - 8 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1926
SELECT + MIN ( DISTINCT - + col2 ) FROM tab2 AS cor0 WHERE NOT + col1 * - - ( col1 ) * - 8 IS NOT NULL
----
NULL

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT 89 + ( col1 ) IS NULL
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2, + col0 col2 FROM tab0 AS cor0
----
10
87
47
15
99
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - - col1 col1 FROM tab0 AS cor0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col1 FROM tab1 AS cor0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT - - 19 * + - 83 * + MAX( - 71 ) AS col2 FROM tab1 AS cor0
----
111967

skipif mysql # not compatible
query I rowsort label-1931
SELECT - - 19 * + - 83 * + MAX ( - 71 ) AS col2 FROM tab1 AS cor0
----
111967

query II rowsort
SELECT - 27, col1 FROM tab1 AS cor0
----
-27
14
-27
47
-27
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT + + COUNT( * ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1933
SELECT + + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
9

query II rowsort
SELECT + 66 * - 55 AS col0, col0 FROM tab1
----
-3630
51
-3630
85
-3630
91

query I rowsort
SELECT DISTINCT + ( - + ( col1 ) ) FROM tab2
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-1936
SELECT 15 DIV - 61 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1936
SELECT 15 / - 61 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + - 10 = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + - - 45 NOT BETWEEN NULL AND 97 * - col1 + + - col2 - - 28
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 69 FROM tab1 AS cor0 WHERE 50 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) = - 16
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1941
SELECT ALL + COUNT( * ), + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-1941
SELECT ALL + COUNT ( * ), + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 * - - col1 col1 FROM tab0 AS cor0
----
11
231
891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1943
SELECT - - ( - - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1943
SELECT - - ( - - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 10 + - col1 AS col0 FROM tab2 AS cor0
----
-61
-77
-87

query I rowsort
SELECT DISTINCT 97 + + - col1 AS col1 FROM tab2 AS cor0
----
20
30
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT + SUM( - col0 ) * - + COUNT( ALL - 66 ) * + 23 + + - 0 AS col2 FROM tab1 AS cor0
----
15663

skipif mysql # not compatible
query I rowsort label-1946
SELECT + SUM ( - col0 ) * - + COUNT ( ALL - 66 ) * + 23 + + - 0 AS col2 FROM tab1 AS cor0
----
15663

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT MAX( DISTINCT + + ( - + col1 ) ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1947
SELECT MAX ( DISTINCT + + ( - + col1 ) ) AS col0 FROM tab0
----
-1

query I rowsort
SELECT ALL - 85 - 18 + + col0 * col1 * - col2 AS col1 FROM tab2
----
-197223
-291553
-54061

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1949
SELECT + CAST( + ( - 50 ) AS SIGNED ) * - CAST( 39 AS SIGNED ) FROM tab0 AS cor0
----
1950
1950
1950

skipif mysql # not compatible
query I rowsort label-1949
SELECT + CAST ( + ( - 50 ) AS INTEGER ) * - CAST ( 39 AS INTEGER ) FROM tab0 AS cor0
----
1950
1950
1950

query I rowsort
SELECT + ( - 27 ) FROM tab0 AS cor0
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT ALL - 42 * - + COUNT( * ) FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL - 42 * - + COUNT ( * ) FROM tab0
----
126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( 91 ) AS col2, - col0 * ( - col0 ) col1 FROM tab1
----
91
2601
91
7225
91
8281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1953
SELECT ALL + - MAX( DISTINCT - - col0 ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL + - MAX ( DISTINCT - - col0 ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1954
SELECT DISTINCT + 56 DIV + - ( 83 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT + 56 / + - ( 83 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - col1 * - + 4 FROM tab1 cor0
----
188
20
56

query I rowsort
SELECT DISTINCT - col0 + - ( + 17 ) + + 59 AS col1 FROM tab2 AS cor0
----
-22
-33
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT + - 36 * + + COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-1957
SELECT + - 36 * + + COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
-105

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 54 ) < + ( - col2 )
----
75
67
58

query II rowsort
SELECT - col2, - col1 AS col1 FROM tab0
----
-10
-21
-47
-81
-99
-1

query I rowsort
SELECT DISTINCT - - col0 AS col1 FROM tab1 WHERE NULL NOT IN ( col1, 74 * - + col1, + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE NOT + col1 - col1 NOT BETWEEN col0 - + col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE NOT + col1 - col1 NOT BETWEEN col0 - + col0 AND NULL
----
0

query I rowsort
SELECT ALL - 20 FROM tab2 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - 52 * col1 AS col2 FROM tab2
----
-2652
-3484
-4004

onlyif mysql # DIV for integer division: 
query I rowsort label-1964
SELECT ALL + 19 DIV + - 43 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL + 19 / + - 43 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT ( NOT NULL > NULL )
----

query I rowsort
SELECT ALL 82 * + 67 FROM tab2 WHERE NOT + 74 * 16 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 25 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 55 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 NOT IN ( col1 / - col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1970
SELECT 21 DIV SUM( DISTINCT 44 ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1970
SELECT 21 / SUM ( DISTINCT 44 ) col2 FROM tab0
----
0

query I rowsort
SELECT col1 FROM tab0 WHERE NOT ( - col1 ) + col1 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1972
SELECT + COUNT( * ) DIV COUNT( * ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1972
SELECT + COUNT ( * ) / COUNT ( * ) AS col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT - COUNT( * ) * 50 AS col1 FROM tab2
----
-150

skipif mysql # not compatible
query I rowsort label-1973
SELECT - COUNT ( * ) * 50 AS col1 FROM tab2
----
-150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col2 * 34 col0 FROM tab2
----
1400
2030
805

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1975
SELECT * FROM tab1 WHERE NOT 27 + CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-1975
SELECT * FROM tab1 WHERE NOT 27 + CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT + COUNT( * ) * MAX( DISTINCT col0 ) AS col2 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-1976
SELECT + COUNT ( * ) * MAX ( DISTINCT col0 ) AS col2 FROM tab2
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT 50 * ( COUNT( ALL 64 ) ) FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-1977
SELECT 50 * ( COUNT ( ALL 64 ) ) FROM tab0
----
150

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) <> 13 / col0
----

query I rowsort
SELECT 56 * - col2 FROM tab2
----
-1288
-2240
-3248

query I rowsort
SELECT 62 - ( + col2 ) FROM tab0
----
-37
15
52

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= - col0 + + 18
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1982
SELECT ALL - col2 DIV ( col0 ) FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1982
SELECT ALL - col2 / ( col0 ) FROM tab1
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN 10 AND ( NULL )
----

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT 53 - col1 BETWEEN col2 + + col1 AND col0
----
15
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN ( col2 + col2 ) AND + col2
----

query I rowsort
SELECT + 27 * ( col0 * 44 ) FROM tab2 WHERE NOT col0 BETWEEN + 59 AND col2
----
54648
76032
89100

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 50 / 27 IS NOT NULL
----

query I rowsort
SELECT ALL AVG ( 42 ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT AVG ( DISTINCT + 96 ) FROM tab0 AS cor0 WHERE NOT col0 * 74 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1990
SELECT + 67 DIV 66 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1990
SELECT + 67 / 66 AS col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1991
SELECT DISTINCT 35 * + SUM( 78 * CAST( col0 AS SIGNED ) ) AS col0 FROM tab0
----
543270

skipif mysql # not compatible
query I rowsort label-1991
SELECT DISTINCT 35 * + SUM ( 78 * CAST ( col0 AS INTEGER ) ) AS col0 FROM tab0
----
543270

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1993
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1993
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 67 col0 FROM tab2 cor0
----
-67

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> col2 + col2 * 50
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1996
SELECT COUNT( * ) DIV - ( + COUNT( 47 ) * + 22 ) + COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1996
SELECT COUNT ( * ) / - ( + COUNT ( 47 ) * + 22 ) + COUNT ( * ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - 57 + - col1 AS col2 FROM tab0 AS cor0
----
-138
-58
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT ALL + 49 + MAX( DISTINCT 69 ) col2 FROM tab0 AS cor0
----
118

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1998
SELECT ALL + 49 + MAX ( DISTINCT 69 ) col2 FROM tab0 AS cor0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT - + ( - COUNT( * ) ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1999
SELECT - + ( - COUNT ( * ) ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2000
SELECT DISTINCT + COUNT( * ) DIV + - 1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2000
SELECT DISTINCT + COUNT ( * ) / + - 1 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2001
SELECT ALL CAST( col0 AS SIGNED ) * col0 col0 FROM tab1
----
2601
7225
8281

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2001
SELECT ALL CAST ( col0 AS INTEGER ) * col0 col0 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT ALL - 35 * + + col1 * - col0 FROM tab1
----
14875
149695
24990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + - 73 * + col0 col2 FROM tab2
----
-3404
-4736
-5550

query I rowsort
SELECT ( - col0 ) * - 1 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2005
SELECT * FROM tab2 WHERE + 35 NOT BETWEEN 92 AND + CAST( NULL AS DECIMAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2005
SELECT * FROM tab2 WHERE + 35 NOT BETWEEN 92 AND + CAST ( NULL AS REAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 > ( - 10 )
----

query I rowsort
SELECT - - 74 * - ( 80 ) AS col1 FROM tab2 AS cor0
----
-5920
-5920
-5920

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT SUM( DISTINCT + 20 ) AS col2 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-2008
SELECT SUM ( DISTINCT + 20 ) AS col2 FROM tab0 AS cor0
----
20

query I rowsort
SELECT + - 20 + + ( - col1 ) * col1 FROM tab0 AS cor0
----
-21
-461
-6581

query I rowsort
SELECT col0 + + col1 * - 15 FROM tab1 AS cor0
----
-159
-614
10

query I rowsort
SELECT - - 50 + col2 AS col2 FROM tab0 cor0
----
149
60
97

query I rowsort
SELECT + - col1 + 42 FROM tab0 AS cor0
----
-39
21
41

query I rowsort
SELECT 15 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT + MAX( ALL - col1 ) + + COUNT( * ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-2014
SELECT + MAX ( ALL - col1 ) + + COUNT ( * ) FROM tab1
----
-2

query I rowsort
SELECT + col1 + col1 * col1 FROM tab2 WHERE NULL IS NULL
----
2652
4556
6006

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 50 col2 FROM tab0
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-2017
SELECT - 21 col1, + COUNT( * ) FROM tab0 AS cor0
----
-21
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2017
SELECT - 21 col1, + COUNT ( * ) FROM tab0 AS cor0
----
-21
3

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 cor0 WHERE ( NULL ) <= ( NULL ) OR NOT ( + col0 ) IS NULL
----
46
64
75

query I rowsort
SELECT - ( - + col1 ) * 83 FROM tab2 AS cor0
----
4233
5561
6391

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * 73 * + 28 col1 FROM tab0 AS cor0
----
165564
2044
42924

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2021
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 83 * CAST( col0 AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2021
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 83 * CAST ( col0 AS INTEGER ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 87 * - col2 col0 FROM tab2 cor0 WHERE NOT NULL BETWEEN col0 AND NULL
----

query I rowsort
SELECT - 56 * + col2 * col0 AS col1 FROM tab2 AS cor0
----
-143360
-243600
-59248

query I rowsort
SELECT - 6 * col0 - - 51 + + 92 * + col0 FROM tab1 AS cor0
----
4437
7361
7877

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 + col2 col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
140
149
177

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2026
SELECT * FROM tab0 AS cor0 WHERE - col2 + - + col1 + col0 IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2026
SELECT * FROM tab0 AS cor0 WHERE - col2 + - + col1 + col0 IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL col1 * 68 FROM tab1 cor0
----
3196
340
952

query I rowsort
SELECT + 43 * + 41 FROM tab1 WHERE NOT + col1 NOT IN ( - + ( - col1 ) )
----
1763
1763
1763

query I rowsort
SELECT DISTINCT + 99 * + + col2 * col1 - col1 AS col2 FROM tab2 WHERE ( NULL ) IS NULL
----
116076
304843
384647

query I rowsort
SELECT + + 37 + - - 66 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT ALL COUNT( * ) * ( 72 ) FROM tab0 WHERE ( col1 ) IN ( col2 * col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2031
SELECT ALL COUNT ( * ) * ( 72 ) FROM tab0 WHERE ( col1 ) IN ( col2 * col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT - COUNT( * ) FROM tab0 WHERE NOT col0 * + 40 + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2032
SELECT - COUNT ( * ) FROM tab0 WHERE NOT col0 * + 40 + col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2033
SELECT ALL COUNT( * ) DIV + 17 FROM tab1 WHERE ( - col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL COUNT ( * ) / + 17 FROM tab1 WHERE ( - col0 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT ALL COUNT( DISTINCT - 15 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2034
SELECT ALL COUNT ( DISTINCT - 15 ) FROM tab0
----
1

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 WHERE + col1 IN ( + col1 )
----
1
21
81

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT + - 63 IS NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 / - col1 >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT + - COUNT( + col1 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2038
SELECT + - COUNT ( + col1 ) col0 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 30 ) col2 FROM tab1 AS cor0
----
30
30
30

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE col1 NOT IN ( - ( + col2 ) * col1 )
----
10
47
99

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 AS cor0 WHERE - col1 <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 = ( NULL )
----

query I rowsort
SELECT ALL 52 - + col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( - 43, + col0 / - ( - - col0 ) + 16 )
----

query I rowsort
SELECT ALL col1 + - col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 90 + - - col1 AS col2 FROM tab0 AS cor0
----
111
171
91

query II rowsort
SELECT DISTINCT + - col0 AS col1, + col1 AS col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query I rowsort
SELECT + col0 - 66 AS col1 FROM tab0 AS cor0 WHERE NOT col2 * - col1 / - col0 <> + col0 * + col1
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL > + col0
----

query I rowsort
SELECT DISTINCT + - col0 + - 0 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query II rowsort
SELECT ( - + ( - - 47 ) ), col1 AS col2 FROM tab2 AS cor0
----
-47
51
-47
67
-47
77

query I rowsort
SELECT DISTINCT + col1 + - 10 + + col2 - - + ( 2 ) FROM tab1 cor0
----
102
107
56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2052
SELECT ALL + CAST( NULL AS DECIMAL ) + + 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-2052
SELECT ALL + CAST ( NULL AS REAL ) + + col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT - 84 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2054
SELECT col1 DIV + CAST( - ( - col1 ) AS SIGNED ) + col2 AS col1 FROM tab1
----
60
69
97

skipif mysql # not compatible
query I rowsort label-2054
SELECT col1 / + CAST ( - ( - col1 ) AS INTEGER ) + col2 AS col1 FROM tab1
----
60
69
97

query III rowsort
SELECT * FROM tab2 WHERE 2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT - COUNT( * ) col1 FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2056
SELECT - COUNT ( * ) col1 FROM tab1 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT COUNT( * ) + + 23 + - 51 + - COUNT( * ) AS col2 FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-2057
SELECT COUNT ( * ) + + 23 + - 51 + - COUNT ( * ) AS col2 FROM tab0
----
-28

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( - col0 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2059
SELECT CAST( NULL AS SIGNED ) + col0 * ( col2 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + + col0 - + + 75 ) AND ( + ( + col2 ) )
----

skipif mysql # not compatible
query I rowsort label-2059
SELECT CAST ( NULL AS INTEGER ) + col0 * ( col2 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + + col0 - + + 75 ) AND ( + ( + col2 ) )
----

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE ( NULL ) BETWEEN NULL AND ( + col0 )
----

query I rowsort
SELECT DISTINCT 40 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
40

query III rowsort
SELECT * FROM tab0 WHERE - 73 + + - col1 + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2063
SELECT + col2 - - CAST( - col0 AS SIGNED ) + + 35 FROM tab2
----
11
12
18

skipif mysql # not compatible
query I rowsort label-2063
SELECT + col2 - - CAST ( - col0 AS INTEGER ) + + 35 FROM tab2
----
11
12
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2064
SELECT CAST( 32 AS SIGNED ) - + COUNT( * ) * + - COUNT( * ) AS col2 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-2064
SELECT CAST ( 32 AS INTEGER ) - + COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab1
----
41

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + - 53 + 94 ) AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2066
SELECT - col2 * 37 AS col0 FROM tab2 cor0 WHERE NOT NULL NOT IN ( 37 + + - col0 * + - col1, - CAST( - - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2066
SELECT - col2 * 37 AS col0 FROM tab2 cor0 WHERE NOT NULL NOT IN ( 37 + + - col0 * + - col1, - CAST ( - - col2 AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT ( ( NULL ) IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 84 * - col0 * + - col1 FROM tab1 AS cor0
----
35700
359268
59976

query I rowsort
SELECT - ( - + 66 ) AS col2 FROM tab1 AS cor0
----
66
66
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2070
SELECT COUNT( * ) DIV - 52 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2070
SELECT COUNT ( * ) / - 52 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT - 89 * COUNT( * ) AS col0 FROM tab1
----
-267

skipif mysql # not compatible
query I rowsort label-2071
SELECT - 89 * COUNT ( * ) AS col0 FROM tab1
----
-267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2072
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, - COUNT( * ) * - MAX( ALL + col2 ) + - + SUM( ALL - col2 ) FROM tab0
----
NULL
453

skipif mysql # not compatible
query II rowsort label-2072
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) * - MAX ( ALL + col2 ) + - + SUM ( ALL - col2 ) FROM tab0
----
NULL
453

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT COUNT( * ) FROM tab2 WHERE NOT - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2073
SELECT COUNT ( * ) FROM tab2 WHERE NOT - col1 IS NULL
----
3

query I rowsort
SELECT + ( - + 76 ) AS col2 FROM tab0
----
-76
-76
-76

query II rowsort
SELECT DISTINCT 39 AS col2, + 67 + 87 AS col0 FROM tab0
----
39
154

query II rowsort
SELECT ALL col2, + col2 * col0 * col2 FROM tab1
----
59
295885
68
420784
96
470016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2077
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) FROM tab1 WHERE 49 <= - col2 OR ( - col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2077
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 WHERE 49 <= - col2 OR ( - col0 ) IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < ( + + 76 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2079
SELECT * FROM tab2 WHERE NOT NULL > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2079
SELECT * FROM tab2 WHERE NOT NULL > CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2080
SELECT ALL + ( - CAST( NULL AS DECIMAL ) ) * - - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL + ( - CAST ( NULL AS REAL ) ) * - - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 39 * - + 7 AS col2 FROM tab0 AS cor0
----
-273
-273
-273

query I rowsort
SELECT + - 94 AS col2 FROM tab2 AS cor0 WHERE NOT col2 + + 32 + - col1 IS NULL
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT - COUNT( * ) * - 51 + + 28 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
487

skipif mysql # not compatible
query I rowsort label-2083
SELECT - COUNT ( * ) * - 51 + + 28 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
487

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT COUNT( * ) + - MAX( col1 ) AS col2 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-2084
SELECT COUNT ( * ) + - MAX ( col1 ) AS col2 FROM tab1 AS cor0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2085
SELECT + - col1 FROM tab2 AS cor0 WHERE - 17 NOT BETWEEN + col0 AND - + CAST( - col1 AS SIGNED )
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2085
SELECT + - col1 FROM tab2 AS cor0 WHERE - 17 NOT BETWEEN + col0 AND - + CAST ( - col1 AS INTEGER )
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-2086
SELECT + col2 * 97 + - - col1 DIV - + col2, - col2 * - col0 * + col0 - + + 38 AS col1 FROM tab2 AS cor0
----
2229
48630
3879
163802
5625
326212

skipif mysql # not compatible
query II rowsort label-2086
SELECT + col2 * 97 + - - col1 / - + col2, - col2 * - col0 * + col0 - + + 38 AS col1 FROM tab2 AS cor0
----
2229
48630
3879
163802
5625
326212

onlyif mysql # DIV for integer division: 
query I rowsort label-2087
SELECT - col1 + + - col0 + + - 70 DIV - col2 AS col0 FROM tab1 AS cor0
----
-137
-65
-89

skipif mysql # not compatible
query I rowsort label-2087
SELECT - col1 + + - col0 + + - 70 / - col2 AS col0 FROM tab1 AS cor0
----
-137
-65
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT - SUM( ALL + 83 ) col1 FROM tab1 AS cor0
----
-249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2088
SELECT - SUM ( ALL + 83 ) col1 FROM tab1 AS cor0
----
-249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 31 col2 FROM tab1 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT + MAX( ALL + 98 ) AS col1 FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-2090
SELECT + MAX ( ALL + 98 ) AS col1 FROM tab2
----
98

query II rowsort
SELECT + col0 AS col1, - 45 AS col0 FROM tab0
----
15
-45
87
-45
97
-45

query I rowsort
SELECT DISTINCT col0 + + - 81 FROM tab2 WHERE NOT NULL >= col2
----

query I rowsort
SELECT DISTINCT col0 * - 56 AS col2 FROM tab1
----
-2856
-4760
-5096

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT DISTINCT - + COUNT( * ) col1 FROM tab1 WHERE NOT - - col2 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2094
SELECT DISTINCT - + COUNT ( * ) col1 FROM tab1 WHERE NOT - - col2 IS NULL
----
-3

query I rowsort
SELECT DISTINCT col2 + col0 + - col2 * + col1 AS col1 FROM tab1 AS cor0
----
-1197
-151
-3037

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT DISTINCT - COUNT( * ) + - 25 AS col2 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-2096
SELECT DISTINCT - COUNT ( * ) + - 25 AS col2 FROM tab0 AS cor0
----
-28

query I rowsort
SELECT + ( 42 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT DISTINCT col2 - - - col1 FROM tab0
----
-11
-34
98

query I rowsort
SELECT ALL - col2 + 84 FROM tab1
----
-12
16
25

query I rowsort
SELECT ALL ( - - ( + 69 ) ) * 36 AS col1 FROM tab2
----
2484
2484
2484

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col2 + + - col2 + - col2 IS NULL
----

query I rowsort
SELECT col2 * 16 AS col0 FROM tab1
----
1088
1536
944

onlyif mysql # aggregate syntax: 
query II rowsort label-2103
SELECT ALL - COUNT( * ) - - COUNT( * ) AS col1, 84 FROM tab2
----
0
84

skipif mysql # not compatible
query II rowsort label-2103
SELECT ALL - COUNT ( * ) - - COUNT ( * ) AS col1, 84 FROM tab2
----
0
84

query I rowsort
SELECT - 90 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( - col0 * col2, col2 * + - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * 58 col0, col0 AS col2 FROM tab1 cor0
----
-3422
85
-3944
91
-5568
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT - MAX( - + col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2107
SELECT - MAX ( - + col0 ) AS col2 FROM tab1 AS cor0
----
51

query I rowsort
SELECT + - col1 * 32 FROM tab2 AS cor0
----
-1632
-2144
-2464

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT DISTINCT - SUM( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2109
SELECT DISTINCT - SUM ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-185

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN 58 AND 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT DISTINCT COUNT( ALL + + 15 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2111
SELECT DISTINCT COUNT ( ALL + + 15 ) AS col0 FROM tab2
----
3

query II rowsort
SELECT + col0 * - col2, 64 AS col2 FROM tab2
----
-1058
64
-2560
64
-4350
64

query I rowsort
SELECT ALL + 80 * col2 AS col2 FROM tab1
----
4720
5440
7680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2114
SELECT ALL - col0 * CAST( + + col1 AS SIGNED ) FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL - col0 * CAST ( + + col1 AS INTEGER ) FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT ALL - - ( + - col0 ) FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 23 + + 5 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1 * - 13 * + ( - 43 ) + 79 AS col2, + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 + + - 30 * + 74 col0 FROM tab0 AS cor0
----
-2162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2119
SELECT ALL + col1 * + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2119
SELECT ALL + col1 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT col1, 22 AS col0 FROM tab1
----
14
22
47
22
5
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT - MAX( ALL - - col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2121
SELECT - MAX ( ALL - - col1 ) AS col0 FROM tab2 AS cor0
----
-77

query II rowsort
SELECT - 42, 58 AS col0 FROM tab0 AS cor0
----
-42
58
-42
58
-42
58

query I rowsort
SELECT + col0 / col0 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND NULL
----

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT DISTINCT - SUM( + col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2125
SELECT DISTINCT - SUM ( + col0 ) AS col2 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT DISTINCT + COUNT( * ) + 50 AS col0 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-2126
SELECT DISTINCT + COUNT ( * ) + 50 AS col0 FROM tab1 AS cor0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2127
SELECT * FROM tab0 AS cor0 WHERE ( + ( - col1 ) + + ( - - col0 ) >= ( - CAST( - col1 AS SIGNED ) + - + col1 ) )
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-2127
SELECT * FROM tab0 AS cor0 WHERE ( + ( - col1 ) + + ( - - col0 ) >= ( - CAST ( - col1 AS INTEGER ) + - + col1 ) )
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT + COUNT( * ) + + + 72 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-2128
SELECT + COUNT ( * ) + + + 72 FROM tab0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2129
SELECT ALL + col2 + ( - CAST( + + col1 AS SIGNED ) ) AS col1 FROM tab1
----
21
54
82

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL + col2 + ( - CAST ( + + col1 AS INTEGER ) ) AS col1 FROM tab1
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2130
SELECT * FROM tab2 WHERE + col2 <> + - CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2130
SELECT * FROM tab2 WHERE + col2 <> + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2131
SELECT ALL CAST( NULL AS SIGNED ) * - 93 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL CAST ( NULL AS INTEGER ) * - 93 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NULL >= col0 * + col2 * + col0
----
0

skipif mysql # not compatible
query I rowsort label-2132
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NULL >= col0 * + col2 * + col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2133
SELECT DISTINCT - 24 DIV + + col2 - - + col2 AS col0 FROM tab0
----
47
8
99

skipif mysql # not compatible
query I rowsort label-2133
SELECT DISTINCT - 24 / + + col2 - - + col2 AS col0 FROM tab0
----
47
8
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2134
SELECT + CAST( + + col0 AS SIGNED ) + + - col2 AS col1 FROM tab1
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-2134
SELECT + CAST ( + + col0 AS INTEGER ) + + - col2 AS col1 FROM tab1
----
-45
23
26

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE NOT + + col2 BETWEEN + 64 AND NULL
----
-59

query I rowsort
SELECT DISTINCT col1 * 51 * - - col2 * + col1 FROM tab1 AS cor0
----
75225
7660812
959616

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( 40 ) AND col1 * - + 66
----

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT col1 * + 65 + - 0 - - + col1 + + col2 IS NOT NULL
----

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( - 79 ) >= NULL
----

query II rowsort
SELECT - - 76 AS col1, + 92 AS col2 FROM tab2 AS cor0
----
76
92
76
92
76
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 3 col0 FROM tab2 AS cor0
----
153
201
231

query I rowsort
SELECT 96 FROM tab2 AS cor0 WHERE NOT + col0 / ( - col2 ) * + - 71 IS NOT NULL
----

query I rowsort
SELECT - 2 + + 12 - + + col2 + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT + 23 >= NULL
----

query II rowsort
SELECT DISTINCT + - col1, + col2 + + 34 * - ( - - 98 ) AS col0 FROM tab2 AS cor0
----
-51
-3309
-67
-3274
-77
-3292

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - + col2 col1 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT col1 * + col1 * 4 FROM tab2
----
10404
17956
23716

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT ALL SUM( DISTINCT 47 ) col0 FROM tab1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2147
SELECT ALL SUM ( DISTINCT 47 ) col0 FROM tab1
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 * - col0 col2 FROM tab2
----
-2024
-2816
-3300

query II rowsort
SELECT ALL 1 * + col1 * - - ( - + col0 ) AS col1, col2 FROM tab2
----
-2346
23
-4928
40
-5025
58

query I rowsort
SELECT ALL - 19 + - + col0 + 85 * - + col1 * + - col2 + - + col0 AS col1 FROM tab1 AS cor0
----
114119
24886
271459

query I rowsort
SELECT ALL - - col2 / + 33 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN - - col0 + - - 99 AND col0 * + 5
----

query I rowsort
SELECT DISTINCT 17 AS col0 FROM tab1 cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT COUNT( * ) + - + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2153
SELECT COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 41 col0 FROM tab2 AS cor0
----
-41
-41
-41

query I rowsort
SELECT - - 94 + - col2 FROM tab0 AS cor0 WHERE ( - col0 ) = NULL
----

query I rowsort
SELECT - 15 AS col1 FROM tab2 AS cor0 WHERE ( - + ( - - col1 ) ) < + - col1
----

query II rowsort
SELECT + ( - col1 ) AS col1, col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2158
SELECT ALL ( - + CAST( ( + COUNT( * ) ) AS SIGNED ) ) DIV COUNT( * ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL ( - + CAST ( ( + COUNT ( * ) ) AS INTEGER ) ) / COUNT ( * ) AS col0 FROM tab2
----
-1

query I rowsort
SELECT ALL + ( - 85 ) - - col2 AS col1 FROM tab2
----
-27
-45
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT DISTINCT SUM( DISTINCT + 10 ) FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2160
SELECT DISTINCT SUM ( DISTINCT + 10 ) FROM tab1 AS cor0
----
10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 14 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
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-2162
SELECT DISTINCT + - ( + + COUNT ( * ) ) col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2163
SELECT - ( - + 19 ), + COUNT( * ) * - + 49 AS col2 FROM tab2 AS cor0
----
19
-147

skipif mysql # not compatible
query II rowsort label-2163
SELECT - ( - + 19 ), + COUNT ( * ) * - + 49 AS col2 FROM tab2 AS cor0
----
19
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT DISTINCT + COUNT( * ) * + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT + COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT + MIN( - col0 ) AS col0 FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2165
SELECT + MIN ( - col0 ) AS col0 FROM tab0 cor0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2166
SELECT DISTINCT - col1 * ( 34 ) DIV - + 90 + + - 69 DIV - col1 FROM tab1 AS cor0
----
14
18
9

skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT - col1 * ( 34 ) / - + 90 + + - 69 / - col1 FROM tab1 AS cor0
----
14
18
9

query II rowsort
SELECT DISTINCT + 93 * col2, col1 AS col2 FROM tab0 AS cor0
----
4371
81
9207
1
930
21

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT NULL IS NULL ) )
----

query I rowsort
SELECT col0 * + + 34 FROM tab2
----
1564
2176
2550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2170
SELECT ALL - - MIN( ALL + + ( + - col1 ) ) FROM tab0 WHERE NOT - col0 NOT IN ( + CAST( + - col2 AS SIGNED ), - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2170
SELECT ALL - - MIN ( ALL + + ( + - col1 ) ) FROM tab0 WHERE NOT - col0 NOT IN ( + CAST ( + - col2 AS INTEGER ), - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT DISTINCT - COUNT( DISTINCT + col1 ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT - COUNT ( DISTINCT + col1 ) FROM tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT + col1 * + 14 AS col1 FROM tab0
----
1134
14
294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2173
SELECT DISTINCT - CAST( + MIN( + 31 ) AS SIGNED ) FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-2173
SELECT DISTINCT - CAST ( + MIN ( + 31 ) AS INTEGER ) FROM tab2
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2174
SELECT col0 / col1 * CAST( NULL AS SIGNED ) + - + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2174
SELECT col0 / col1 * CAST ( NULL AS INTEGER ) + - + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - 94 + 34 + ( - col0 ) + - ( + col0 ) FROM tab0 AS cor0
----
-66
1834
7618

onlyif mysql # DIV for integer division: 
query I rowsort label-2176
SELECT + 18 + col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-2176
SELECT + 18 + col1 / - col1 AS col2 FROM tab2 AS cor0
----
17
17
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2177
SELECT DISTINCT - + 68 + + + col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
-68
-69
-71

skipif mysql # not compatible
query I rowsort label-2177
SELECT DISTINCT - + 68 + + + col2 / - col0 AS col1 FROM tab0 AS cor0
----
-68
-69
-71

query II rowsort
SELECT ALL + 90 AS col1, 79 + - - col0 AS col0 FROM tab1
----
90
130
90
164
90
170

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 < - 33
----

query I rowsort
SELECT ALL - ( 61 ) FROM tab2 AS cor0 WHERE - col0 BETWEEN - - col1 AND + col2
----

query I rowsort
SELECT ALL + col2 + + 98 FROM tab0 AS cor0
----
108
145
197

query I rowsort
SELECT col2 + - - col1 AS col1 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 / - + 90 - + col1 IS NULL
----

query I rowsort
SELECT + col1 + - - 48 FROM tab2 AS cor0
----
115
125
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT - COUNT( * ) + - COUNT( DISTINCT col2 ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2185
SELECT - COUNT ( * ) + - COUNT ( DISTINCT col2 ) FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT + COUNT( * ) * + 82 + - - SUM( ALL col2 ) AS col1 FROM tab1
----
469

skipif mysql # not compatible
query I rowsort label-2186
SELECT + COUNT ( * ) * + 82 + - - SUM ( ALL col2 ) AS col1 FROM tab1
----
469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col0 ) - + 13 - + col1 * col2 * + 77 + + 48 * + + 65 col1 FROM tab0
----
-13150
-290047
-4613

query I rowsort
SELECT ALL col0 * + 58 + - col2 FROM tab0
----
5036
5527
823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 58 col0 FROM tab2
----
-58
-58
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2190
SELECT - MAX( ALL CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2190
SELECT - MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2191
SELECT DISTINCT - 43 * - col0 + - - 33 * - col0 + + - col2 DIV - 99 FROM tab2 AS cor0
----
460
640
750

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT - 43 * - col0 + - - 33 * - col0 + + - col2 / - 99 FROM tab2 AS cor0
----
460
640
750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2192
SELECT col2 / ( - - col2 ) AS col2 FROM tab0 cor0 WHERE NOT NULL <> - CAST( + + col2 AS SIGNED ) + - col0
----

skipif mysql # not compatible
query I rowsort label-2192
SELECT col2 / ( - - col2 ) AS col2 FROM tab0 cor0 WHERE NOT NULL <> - CAST ( + + col2 AS INTEGER ) + - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2193
SELECT + COUNT( * ) AS col1, + MIN( - 69 ) FROM tab0
----
3
-69

skipif mysql # not compatible
query II rowsort label-2193
SELECT + COUNT ( * ) AS col1, + MIN ( - 69 ) FROM tab0
----
3
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2194
SELECT - 89 AS col1, - 35 * - 48 - + col1 * - CAST( + 48 AS SIGNED ) AS col1 FROM tab0
----
-89
1728
-89
2688
-89
5568

skipif mysql # not compatible
query II rowsort label-2194
SELECT - 89 AS col1, - 35 * - 48 - + col1 * - CAST ( + 48 AS INTEGER ) AS col1 FROM tab0
----
-89
1728
-89
2688
-89
5568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2195
SELECT + CAST( SUM( ALL - - 79 ) AS SIGNED ), 47 col1 FROM tab0
----
237
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2195
SELECT + CAST ( SUM ( ALL - - 79 ) AS INTEGER ), 47 col1 FROM tab0
----
237
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * col1 * col2 < - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2197
SELECT ALL + CAST( + 14 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL + CAST ( + 14 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
14
14
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2198
SELECT ALL - MAX( - 19 ) * + 98 + - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL - MAX ( - 19 ) * + 98 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2199
SELECT DISTINCT - 89 col0, + 96 * CAST( + - col0 AS SIGNED ) + - ( 4 ) + 8 col2 FROM tab0 AS cor0
----
-89
-1436
-89
-8348
-89
-9308

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2199
SELECT DISTINCT - 89 col0, + 96 * CAST ( + - col0 AS INTEGER ) + - ( 4 ) + 8 col2 FROM tab0 AS cor0
----
-89
-1436
-89
-8348
-89
-9308

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT - 35 * + MAX( DISTINCT - col2 ) AS col2 FROM tab2
----
805

skipif mysql # not compatible
query I rowsort label-2200
SELECT - 35 * + MAX ( DISTINCT - col2 ) AS col2 FROM tab2
----
805

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT + COUNT( * ) * - + 56 FROM tab2
----
-168

skipif mysql # not compatible
query I rowsort label-2201
SELECT + COUNT ( * ) * - + 56 FROM tab2
----
-168

query I rowsort
SELECT DISTINCT + col1 * + + 55 AS col1 FROM tab2 AS cor0 WHERE col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT SUM( ALL 85 ) AS col1 FROM tab1 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-2203
SELECT SUM ( ALL 85 ) AS col1 FROM tab1 AS cor0
----
255

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > + col1 * - 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT DISTINCT + COUNT( ALL + 2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2205
SELECT DISTINCT + COUNT ( ALL + 2 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT ALL + 70 + COUNT( * ) + + + 50 * + SUM( DISTINCT - 53 ) FROM tab2 AS cor0
----
-2577

skipif mysql # not compatible
query I rowsort label-2206
SELECT ALL + 70 + COUNT ( * ) + + + 50 * + SUM ( DISTINCT - 53 ) FROM tab2 AS cor0
----
-2577

onlyif mysql # DIV for integer division: 
query I rowsort label-2207
SELECT + + col0 DIV - - 90 + - ( ( - + 4 ) ) + ( - - 66 ) FROM tab0 cor0
----
70
70
71

skipif mysql # not compatible
query I rowsort label-2207
SELECT + + col0 / - - 90 + - ( ( - + 4 ) ) + ( - - 66 ) FROM tab0 cor0
----
70
70
71

query I rowsort
SELECT DISTINCT 37 * + ( - + col2 ) + - 42 FROM tab0 AS cor0
----
-1781
-3705
-412

query I rowsort
SELECT ( + 60 ) FROM tab0 AS cor0
----
60
60
60

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT + 18 * - + col0 AS col2 FROM tab1 AS cor0
----
-1530
-1638
-918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2212
SELECT ALL col1 + + ( + CAST( + col0 AS SIGNED ) ) + - 12 FROM tab0 AS cor0
----
84
86
96

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL col1 + + ( + CAST ( + col0 AS INTEGER ) ) + - 12 FROM tab0 AS cor0
----
84
86
96

query I rowsort
SELECT DISTINCT + col0 - 83 FROM tab2 AS cor0
----
-19
-37
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-2214
SELECT DISTINCT col0 * - 74 - ( col0 ) DIV 62 AS col1 FROM tab2
----
-3404
-4737
-5551

skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT col0 * - 74 - ( col0 ) / 62 AS col1 FROM tab2
----
-3404
-4737
-5551

query I rowsort
SELECT - ( + col0 ) * + 31 - + 60 + col0 - + 30 AS col1 FROM tab1
----
-1620
-2640
-2820

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 + - + col0 + + - col1 col1 FROM tab2
----
-15
-59
-60

query II rowsort
SELECT DISTINCT + 44 - - + ( - col0 ) + + col0 AS col0, + col1 * 23 FROM tab0
----
44
1863
44
23
44
483

query II rowsort
SELECT DISTINCT - 97, + 49 AS col1 FROM tab0
----
-97
49

onlyif mysql # aggregate syntax: 
query II rowsort label-2219
SELECT - COUNT( * ) AS col0, + COUNT( ALL + 21 ) FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-2219
SELECT - COUNT ( * ) AS col0, + COUNT ( ALL + 21 ) FROM tab1
----
-3
3

query I rowsort
SELECT ALL - 75 * - + col0 AS col2 FROM tab2
----
3450
4800
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT DISTINCT SUM( ALL 80 ) AS col1 FROM tab2
----
240

skipif mysql # not compatible
query I rowsort label-2221
SELECT DISTINCT SUM ( ALL 80 ) AS col1 FROM tab2
----
240

query I rowsort
SELECT DISTINCT + col1 * col0 * - - col2 FROM tab1
----
25075
290836
68544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - - 74 col1 FROM tab1 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2224
SELECT - 71 AS col2, 92 DIV - CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-71
-1
-71
-1
-71
0

skipif mysql # not compatible
query II rowsort label-2224
SELECT - 71 AS col2, 92 / - CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-71
-1
-71
-1
-71
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2225
SELECT + MIN( + 70 ) DIV + COUNT( + + 21 ) FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2225
SELECT + MIN ( + 70 ) / + COUNT ( + + 21 ) FROM tab0 AS cor0
----
23

query II rowsort
SELECT col0, 90 FROM tab2 AS cor0
----
46
90
64
90
75
90

query I rowsort
SELECT + + col1 * - - 33 AS col2 FROM tab2 AS cor0
----
1683
2211
2541

onlyif mysql # DIV for integer division: 
query I rowsort label-2228
SELECT ALL + - 63 DIV 65 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL + - 63 / 65 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT * FROM tab1 WHERE NOT - 24 <> - 59
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 95 < - + col0 - - 46 * - 54 * - col1 - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2231
SELECT DISTINCT - col1 + - - col0 DIV - - 20 + - col0 + + col0 + + col1 AS col1 FROM tab1 AS cor0
----
2
4

skipif mysql # not compatible
query I rowsort label-2231
SELECT DISTINCT - col1 + - - col0 / - - 20 + - col0 + + col0 + + col1 AS col1 FROM tab1 AS cor0
----
2
4

query I rowsort
SELECT DISTINCT ( + col0 ) + + - ( - col1 ) FROM tab0 AS cor0
----
108
96
98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 + col2 / + 21 * + 54 * - - col2 / - col2 + + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 <> + 87
----

query I rowsort
SELECT + + 24 AS col0 FROM tab1 AS cor0 WHERE NOT - 49 * - col2 * + col0 / col2 IS NULL
----
24
24
24

onlyif mysql # aggregate syntax: 
query II rowsort label-2236
SELECT ALL - SUM( + col0 ), + 41 AS col0 FROM tab1 AS cor0
----
-227
41

skipif mysql # not compatible
query II rowsort label-2236
SELECT ALL - SUM ( + col0 ), + 41 AS col0 FROM tab1 AS cor0
----
-227
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2237
SELECT col0 DIV + + col0 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2237
SELECT col0 / + + col0 AS col2 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2238
SELECT - col0 + + 71 DIV - - col0 AS col0, - 0 * col2 DIV - 26 * CAST( + - CAST( + col2 AS SIGNED ) AS SIGNED ) * + 33 FROM tab2
----
-45
0
-63
0
-75
0

skipif mysql # not compatible
query II rowsort label-2238
SELECT - col0 + + 71 / - - col0 AS col0, - 0 * col2 / - 26 * CAST ( + - CAST ( + col2 AS INTEGER ) AS INTEGER ) * + 33 FROM tab2
----
-45
0
-63
0
-75
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 53 * + - col0 - - col2 < NULL AND - col2 + - col0 / col0 * + + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2240
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 + + CAST( - col1 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2240
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 + + CAST ( - col1 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT - 0 + COUNT( * ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2241
SELECT - 0 + COUNT ( * ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT DISTINCT COUNT( ALL + - 26 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2242
SELECT DISTINCT COUNT ( ALL + - 26 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + col0 + - col2 * col0 FROM tab0
----
-690
-783
-9506

query I rowsort
SELECT - col0 + - + ( 51 ) FROM tab0
----
-138
-148
-66

query II rowsort
SELECT ALL - col1 AS col0, - 92 FROM tab1
----
-14
-92
-47
-92
-5
-92

query I rowsort
SELECT + 98 AS col0 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
98
98
98

query I rowsort
SELECT DISTINCT - 68 * - - col2 * col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-47940
-59160
-653004

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT ALL COUNT( * ) * - 57 AS col1 FROM tab2 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL COUNT ( * ) * - 57 AS col1 FROM tab2 AS cor0
----
-171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 + - 43 col2 FROM tab2 AS cor0 WHERE col1 IN ( col0, col0, - + col0 + + col2 - 48 )
----

query I rowsort
SELECT DISTINCT - 38 * + 53 AS col0 FROM tab2
----
-2014

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2251
SELECT - - 10 + - COUNT( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
10

skipif mysql # not compatible
query I rowsort label-2251
SELECT - - 10 + - COUNT ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
10

query I rowsort
SELECT - - col0 * - - col1 + + - col2 FROM tab1 AS cor0
----
366
4209
618

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2253
SELECT ALL - col0 * + - col1 * col0 + col0 - col1 + - col2 + 60 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2253
SELECT ALL - col0 * + - col1 * col0 + col0 - col1 + - col2 + 60 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2254
SELECT - CAST( + CAST( col2 AS DECIMAL ) AS SIGNED ) AS col0 FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2254
SELECT - CAST ( + CAST ( col2 AS REAL ) AS INTEGER ) AS col0 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2255
SELECT - 70, + CAST( - 48 AS SIGNED ) AS col2 FROM tab1
----
-70
-48
-70
-48
-70
-48

skipif mysql # not compatible
query II rowsort label-2255
SELECT - 70, + CAST ( - 48 AS INTEGER ) AS col2 FROM tab1
----
-70
-48
-70
-48
-70
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-2256
SELECT - col0 DIV + + 77 col1 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2256
SELECT - col0 / + + 77 col1 FROM tab0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT 68 * + ( + COUNT( * ) ) FROM tab1
----
204

skipif mysql # not compatible
query I rowsort label-2257
SELECT 68 * + ( + COUNT ( * ) ) FROM tab1
----
204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2258
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2258
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2259
SELECT + - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2259
SELECT + - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2260
SELECT - col0 DIV - 28 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-2260
SELECT - col0 / - 28 FROM tab2
----
1
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT ALL + SUM( ALL col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL + SUM ( ALL col0 ) FROM tab2
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2262
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2262
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab1
----
NULL

query II rowsort
SELECT + + col0 AS col0, col1 AS col0 FROM tab1 cor0
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT - - COUNT( * ) * - MAX( - 6 ) + - COUNT( * ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2264
SELECT - - COUNT ( * ) * - MAX ( - 6 ) + - COUNT ( * ) FROM tab0 AS cor0
----
15

query II rowsort
SELECT + col1 * col0 AS col2, col1 AS col1 FROM tab0
----
1215
81
1827
21
97
1

query I rowsort
SELECT DISTINCT 89 FROM tab1 WHERE NOT col2 * - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT - COUNT( * ) * - + MIN( DISTINCT - 51 ) FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-2267
SELECT - COUNT ( * ) * - + MIN ( DISTINCT - 51 ) FROM tab0
----
-153

query II rowsort
SELECT DISTINCT - ( + + 85 ) AS col0, + 57 FROM tab0
----
-85
57

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2270
SELECT ALL * FROM tab2 WHERE NOT + - 69 * - - col2 BETWEEN + + col1 * + col1 + CAST( NULL AS SIGNED ) + - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2270
SELECT ALL * FROM tab2 WHERE NOT + - 69 * - - col2 BETWEEN + + col1 * + col1 + CAST ( NULL AS INTEGER ) + - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2271
SELECT ALL - 75 + col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL - 75 + col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col2 + - 24 + + col2 AS col1 FROM tab0 AS cor0
----
-24

query I rowsort
SELECT ALL col2 + + + 0 - + - 55 FROM tab1 AS cor0
----
114
123
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2274
SELECT - 82 * - + 95 * + CAST( NULL AS SIGNED ) + - ( + col2 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2274
SELECT - 82 * - + 95 * + CAST ( NULL AS INTEGER ) + - ( + col2 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT ALL + MAX( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL + MAX ( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2276
SELECT + 25 AS col2, + AVG ( ALL - col1 ) - - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
25
NULL

skipif mysql # not compatible
query II rowsort label-2276
SELECT + 25 AS col2, + AVG ( ALL - col1 ) - - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
25
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2277
SELECT + CAST( NULL AS DECIMAL ) * - + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2277
SELECT + CAST ( NULL AS REAL ) * - + COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2278
SELECT ALL + + COUNT( * ), - MAX( + col2 ) AS col2 FROM tab0 AS cor0
----
3
-99

skipif mysql # not compatible
query II rowsort label-2278
SELECT ALL + + COUNT ( * ), - MAX ( + col2 ) AS col2 FROM tab0 AS cor0
----
3
-99

query I rowsort
SELECT - - col1 * - - 68 AS col0 FROM tab1 cor0
----
3196
340
952

query II rowsort
SELECT - col2 AS col1, - ( - col0 ) * + + col0 FROM tab0 AS cor0
----
-10
7569
-47
225
-99
9409

query I rowsort
SELECT ALL + col0 * + - col1 * + 36 AS col1 FROM tab1 AS cor0
----
-15300
-153972
-25704

query I rowsort
SELECT 14 AS col1 FROM tab2 WHERE NOT + col0 NOT BETWEEN ( - - col1 * - col1 / - - col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT ALL 73 * COUNT( DISTINCT col2 ) FROM tab0
----
219

skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL 73 * COUNT ( DISTINCT col2 ) FROM tab0
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT DISTINCT MIN( DISTINCT - - col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2284
SELECT DISTINCT MIN ( DISTINCT - - col0 ) FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT + ( MAX( DISTINCT + col0 ) ) col0 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2285
SELECT + ( MAX ( DISTINCT + col0 ) ) col0 FROM tab1
----
91

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 51 - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT - MAX( DISTINCT - col0 ) * 58 AS col2 FROM tab1 AS cor0
----
2958

skipif mysql # not compatible
query I rowsort label-2287
SELECT - MAX ( DISTINCT - col0 ) * 58 AS col2 FROM tab1 AS cor0
----
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT DISTINCT - + ( + - SUM( - - 47 ) ) FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-2288
SELECT DISTINCT - + ( + - SUM ( - - 47 ) ) FROM tab1 AS cor0
----
141

query I rowsort
SELECT ALL ( - - 66 ) + - col2 + - col1 * col0 * + col2 FROM tab2 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-197094
-291442
-53915

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 10 <= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT ALL 7 * - COUNT( * ) AS col0 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL 7 * - COUNT ( * ) AS col0 FROM tab0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2292
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 27 + ( + + col0 ) * - 40 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 27 + ( + + col0 ) * - 40 AS col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col1, col1 col2 FROM tab1 AS cor0 WHERE + 27 IS NULL
----

query I rowsort
SELECT + + 12 * + + col1 AS col2 FROM tab0 AS cor0 WHERE - col1 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2295
SELECT - - MIN( + CAST( + col0 AS SIGNED ) ) + + COUNT( * ) FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-2295
SELECT - - MIN ( + CAST ( + col0 AS INTEGER ) ) + + COUNT ( * ) FROM tab2 AS cor0
----
49

query I rowsort
SELECT DISTINCT + col2 * - col0 * + + 7 * col0 + + + col0 FROM tab1
----
-1747821
-2983840
-3941665

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT 93 + + COUNT( * ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2297
SELECT 93 + + COUNT ( * ) FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2298
SELECT * FROM tab2 WHERE ( NULL <= CAST( NULL AS SIGNED ) + 28 )
----

skipif mysql # not compatible
query III rowsort label-2298
SELECT * FROM tab2 WHERE ( NULL <= CAST ( NULL AS INTEGER ) + 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT DISTINCT MAX( DISTINCT + 4 ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-2299
SELECT DISTINCT MAX ( DISTINCT + 4 ) FROM tab2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2300
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + - CAST( NULL AS SIGNED ) * + 17 )
----

skipif mysql # not compatible
query III rowsort label-2300
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + - CAST ( NULL AS INTEGER ) * + 17 )
----

query I rowsort
SELECT col1 + + - col2 - - ( col2 ) * + col2 + - col1 FROM tab2
----
1560
3306
506

onlyif mysql # DIV for integer division: 
query I rowsort label-2302
SELECT - col2 DIV + - col0 + + col2 FROM tab1
----
59
68
97

skipif mysql # not compatible
query I rowsort label-2302
SELECT - col2 / + - col0 + + col2 FROM tab1
----
59
68
97

query I rowsort
SELECT - 72 * - col2 * - - col1 + + - col1 FROM tab2
----
221683
279725
84405

query II rowsort
SELECT + col2 AS col1, + 5 FROM tab1 AS cor0
----
59
5
68
5
96
5

query I rowsort
SELECT ALL + col0 + - - col2 + + col2 * + 90 AS col2 FROM tab1 AS cor0
----
5454
6279
8787

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2306
SELECT CAST( COUNT( - col2 ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2306
SELECT CAST ( COUNT ( - col2 ) AS INTEGER ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT - 8 * + COUNT( * ) + + + ( + + 84 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
12

skipif mysql # not compatible
query I rowsort label-2307
SELECT - 8 * + COUNT ( * ) + + + ( + + 84 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
12

query I rowsort
SELECT - col0 - - + col2 FROM tab1
----
-23
-26
45

onlyif mysql # DIV for integer division: 
query II rowsort label-2309
SELECT col2 - + 30 DIV + col0, col2 + - col2 * ( 83 ) AS col0 FROM tab2
----
23
-1886
40
-3280
58
-4756

skipif mysql # not compatible
query II rowsort label-2309
SELECT col2 - + 30 / + col0, col2 + - col2 * ( 83 ) AS col0 FROM tab2
----
23
-1886
40
-3280
58
-4756

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT NULL > col0
----

query I rowsort
SELECT + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL > col1 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2312
SELECT DISTINCT - - 47 FROM tab1 WHERE CAST( NULL AS SIGNED ) + - ( - + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2312
SELECT DISTINCT - - 47 FROM tab1 WHERE CAST ( NULL AS INTEGER ) + - ( - + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2313
SELECT col2 / CAST( NULL AS SIGNED ) * - ( - col2 ) * + 30 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2313
SELECT col2 / CAST ( NULL AS INTEGER ) * - ( - col2 ) * + 30 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT + 61, col0 FROM tab1
----
61
51
61
85
61
91

query II rowsort
SELECT ALL + col1 AS col2, col1 AS col2 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2316
SELECT * FROM tab1 WHERE NOT - + col0 + CAST( 53 AS SIGNED ) * + + 34 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2316
SELECT * FROM tab1 WHERE NOT - + col0 + CAST ( 53 AS INTEGER ) * + + 34 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2317
SELECT - col0 * + - CAST( NULL AS SIGNED ) * + col0 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-2317
SELECT - col0 * + - CAST ( NULL AS INTEGER ) * + col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2318
SELECT - col0 + - 65 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2318
SELECT - col0 + - 65 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT ALL COUNT( * ) * - 83 AS col2 FROM tab0
----
-249

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL COUNT ( * ) * - 83 AS col2 FROM tab0
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT - COUNT( * ) + - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2320
SELECT - COUNT ( * ) + - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( NOT 13 * ( col2 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 19 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
19
19
19

query I rowsort
SELECT ALL + col0 * + + 97 - 42 AS col2 FROM tab2 cor0
----
4420
6166
7233

query I rowsort
SELECT ALL + 31 + col0 AS col1 FROM tab1 AS cor0
----
116
122
82

query I rowsort
SELECT + - 60 AS col1 FROM tab2 cor0
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT SUM( DISTINCT - col1 ) AS col0 FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2326
SELECT SUM ( DISTINCT - col1 ) AS col0 FROM tab2 cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT COUNT( DISTINCT ( + + col2 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2327
SELECT COUNT ( DISTINCT ( + + col2 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT DISTINCT COUNT( * ) + MAX( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-2328
SELECT DISTINCT COUNT ( * ) + MAX ( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT + + COUNT( * ) FROM tab2 WHERE - col0 + + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2329
SELECT + + COUNT ( * ) FROM tab2 WHERE - col0 + + col0 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2330
SELECT 31 * col0 DIV + col1 AS col0, 99 AS col2 FROM tab0
----
128
99
3007
99
5
99

skipif mysql # not compatible
query II rowsort label-2330
SELECT 31 * col0 / + col1 AS col0, 99 AS col2 FROM tab0
----
128
99
3007
99
5
99

query II rowsort
SELECT DISTINCT - 80 AS col0, - 96 * + ( - + col0 ) + - 80 AS col0 FROM tab2
----
-80
4336
-80
6064
-80
7120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 8 AS col2, + 64 * + 98 col2 FROM tab1
----
8
6272

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2333
SELECT ALL AVG ( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT - col0 * 83 * + 48 + col2 + + 91 * + col0 - + col2 FROM tab0 AS cor0
----
-338691
-377621
-58395

query I rowsort
SELECT DISTINCT + + col2 + - col1 FROM tab0 AS cor0 WHERE ( NOT - col2 < + col1 )
----

query I rowsort
SELECT - 32 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT COUNT( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2337
SELECT COUNT ( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 28 col0 FROM tab2 AS cor0 WHERE NULL <> 22
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, + 51 col0 FROM tab1 AS cor0
----
14
51
47
51
5
51

query II rowsort
SELECT - 98, - col2 - col2 AS col2 FROM tab1 AS cor0
----
-98
-118
-98
-136
-98
-192

query II rowsort
SELECT - 33 AS col0, ( + col2 ) FROM tab2 AS cor0
----
-33
23
-33
40
-33
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2342
SELECT + col1 * + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2342
SELECT + col1 * + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - + 44 col0 FROM tab2 AS cor0
----
-1012
-1760
-2552

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( - + col2, col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2345
SELECT DISTINCT + - 8, - COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
-8
0

skipif mysql # not compatible
query II rowsort label-2345
SELECT DISTINCT + - 8, - COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
-8
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2346
SELECT ALL MAX( + + col0 ) + 74 + 68 * + - CAST( NULL AS SIGNED ) * + + ( + SUM( DISTINCT - - 98 ) ) FROM tab0 WHERE NOT - - col2 * + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL MAX ( + + col0 ) + 74 + 68 * + - CAST ( NULL AS INTEGER ) * + + ( + SUM ( DISTINCT - - 98 ) ) FROM tab0 WHERE NOT - - col2 * + col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT ALL 80 + - COUNT( * ) col0 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2347
SELECT ALL 80 + - COUNT ( * ) col0 FROM tab2
----
77

query I rowsort
SELECT + + 98 + + col0 FROM tab1 AS cor0
----
149
183
189

query I rowsort
SELECT + + 43 + - col0 AS col1 FROM tab0 AS cor0
----
-44
-54
28

query II rowsort
SELECT ALL ( - - col0 ) AS col2, col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 69 / + ( + 2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2352
SELECT DISTINCT + CAST( + - 84 AS SIGNED ) * + + 51 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-4284

skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT + CAST ( + - 84 AS INTEGER ) * + + 51 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-4284

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT + 32 * - + COUNT( * ) AS col0 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-2353
SELECT + 32 * - + COUNT ( * ) AS col0 FROM tab2
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2354
SELECT CAST( NULL AS SIGNED ) / col1 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2354
SELECT CAST ( NULL AS INTEGER ) / col1 col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 39 - - 86 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 * + 23 - - col0 + - col2 * - + col0 BETWEEN NULL AND col0 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT DISTINCT - COUNT( * ) * - 81 col2 FROM tab1
----
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2357
SELECT DISTINCT - COUNT ( * ) * - 81 col2 FROM tab1
----
243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, col0 AS col2 FROM tab1
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT MAX( - - 77 ) AS col0 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-2359
SELECT MAX ( - - 77 ) AS col0 FROM tab0
----
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT + col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ( col2 ) + + + 16 AS col2, - 29 + 53 FROM tab2 AS cor0
----
39
24
56
24
74
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 + - 16 col0, + col0 / - ( - col2 ) FROM tab2 AS cor0 WHERE NOT ( NOT col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT DISTINCT + 37 * MIN( DISTINCT - - col1 ) - 45 + + COUNT( * ) FROM tab1 cor0
----
143

skipif mysql # not compatible
query I rowsort label-2363
SELECT DISTINCT + 37 * MIN ( DISTINCT - - col1 ) - 45 + + COUNT ( * ) FROM tab1 cor0
----
143

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) < + + 21 * + 9
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 98 BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT 1 - - col1 FROM tab0 AS cor0
----
2
22
82

query I rowsort
SELECT ALL - ( - 24 ) AS col1 FROM tab2
----
24
24
24

query I rowsort
SELECT DISTINCT col0 * - + 5 FROM tab2
----
-230
-320
-375

query II rowsort
SELECT 70 + + - col1, ( - - col2 ) AS col0 FROM tab1
----
23
68
56
96
65
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT SUM( - ( - + col2 ) ) + + - 55 AS col0 FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-2370
SELECT SUM ( - ( - + col2 ) ) + + - 55 AS col0 FROM tab0
----
101

query II rowsort
SELECT ALL - ( + col1 ) AS col1, + 6 AS col2 FROM tab0
----
-1
6
-21
6
-81
6

query II rowsort
SELECT - col0 * col2 AS col2, + col2 - - col2 FROM tab0
----
-705
94
-870
20
-9603
198

query I rowsort
SELECT DISTINCT - 37 * col0 * - col1 AS col2 FROM tab2
----
182336
185925
86802

query I rowsort
SELECT + col2 FROM tab1 WHERE NULL <= + col2
----

query I rowsort
SELECT col0 * 8 * + + col1 FROM tab2
----
18768
39424
40200

query I rowsort
SELECT DISTINCT + col2 * 36 AS col0 FROM tab2
----
1440
2088
828

query I rowsort
SELECT DISTINCT + 89 * 84 AS col0 FROM tab1 AS cor0
----
7476

query I rowsort
SELECT DISTINCT 47 AS col0 FROM tab1 AS cor0
----
47

query I rowsort
SELECT DISTINCT - 54 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT DISTINCT COUNT( * ) * 90 FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-2380
SELECT DISTINCT COUNT ( * ) * 90 FROM tab2
----
270

query I rowsort
SELECT ALL - - col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2382
SELECT ALL 19 * 57 * + ( + COUNT( DISTINCT - CAST( + 12 AS SIGNED ) ) ) FROM tab1
----
1083

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL 19 * 57 * + ( + COUNT ( DISTINCT - CAST ( + 12 AS INTEGER ) ) ) FROM tab1
----
1083

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 71 BETWEEN - ( - 34 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= + col1 * 3 * - col2 + + - col0
----

query II rowsort
SELECT DISTINCT - + col2 * - 69 + + 11 AS col2, + 86 * - col2 FROM tab0 cor0
----
3254
-4042
6842
-8514
701
-860

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT DISTINCT COUNT( - - 87 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT COUNT ( - - 87 ) AS col2 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + col2 ) col0 FROM tab0 cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-2388
SELECT ALL - 74 AS col2, - COUNT( * ) FROM tab0 AS cor0
----
-74
-3

skipif mysql # not compatible
query II rowsort label-2388
SELECT ALL - 74 AS col2, - COUNT ( * ) FROM tab0 AS cor0
----
-74
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT DISTINCT - MIN( + - 23 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2389
SELECT DISTINCT - MIN ( + - 23 ) AS col2 FROM tab2 AS cor0
----
23

query I rowsort
SELECT - ( col2 ) * - col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT DISTINCT - 49 * COUNT( * ) col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2391
SELECT DISTINCT - 49 * COUNT ( * ) col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

query II rowsort
SELECT - col2, 30 AS col1 FROM tab1
----
-59
30
-68
30
-96
30

query I rowsort
SELECT DISTINCT + 43 * - col2 FROM tab0
----
-2021
-4257
-430

query I rowsort
SELECT DISTINCT + + col1 FROM tab2 WHERE NOT - 83 + - + col2 - col1 + - col0 + + col1 IS NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2395
SELECT + col2 DIV 22 * - 2 FROM tab0 cor0
----
-4
-8
0

skipif mysql # not compatible
query I rowsort label-2395
SELECT + col2 / 22 * - 2 FROM tab0 cor0
----
-4
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT + - COUNT( * ) * - 47 col1 FROM tab2 AS cor0
----
141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2396
SELECT + - COUNT ( * ) * - 47 col1 FROM tab2 AS cor0
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2397
SELECT 49 DIV + + ( COUNT( * ) ) + - COUNT( * ) * + + 6 col0 FROM tab1 AS cor0 WHERE ( col0 ) IS NOT NULL
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2397
SELECT 49 / + + ( COUNT ( * ) ) + - COUNT ( * ) * + + 6 col0 FROM tab1 AS cor0 WHERE ( col0 ) IS NOT NULL
----
-2

query I rowsort
SELECT DISTINCT + + ( + ( - + col1 ) ) + + 31 AS col1 FROM tab2 AS cor0
----
-20
-36
-46

query II rowsort
SELECT ALL 23 + col0 AS col2, + 20 FROM tab2
----
69
20
87
20
98
20

query I rowsort
SELECT - col0 + + - col2 AS col0 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT + 89 + + col2 + - col1 AS col2 FROM tab1
----
110
143
171

query I rowsort
SELECT col2 * + col0 * col2 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + - col2 + - 87 FROM tab0 AS cor0
----
-134
-186
-97

query II rowsort
SELECT col1, col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
97
21
87
81
15

query I rowsort
SELECT ALL col2 + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2406
SELECT - - CAST( - - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2406
SELECT - - CAST ( - - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 68 col1 FROM tab0 cor0
----
68
68
68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2408
SELECT DISTINCT + col1 - + + ( - col1 ) * + 83 AS col0, col0 DIV - + 25 + + CAST( 41 AS SIGNED ) AS col0 FROM tab0
----
1764
38
6804
41
84
38

skipif mysql # not compatible
query II rowsort label-2408
SELECT DISTINCT + col1 - + + ( - col1 ) * + 83 AS col0, col0 / - + 25 + + CAST ( 41 AS INTEGER ) AS col0 FROM tab0
----
1764
38
6804
41
84
38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2409
SELECT * FROM tab1 WHERE col1 BETWEEN ( - 10 ) AND ( CAST( - 50 AS SIGNED ) ) + - col2
----

skipif mysql # not compatible
query III rowsort label-2409
SELECT * FROM tab1 WHERE col1 BETWEEN ( - 10 ) AND ( CAST ( - 50 AS INTEGER ) ) + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT ALL SUM( + + 49 ) FROM tab2, tab2 AS cor0
----
441

skipif mysql # not compatible
query I rowsort label-2410
SELECT ALL SUM ( + + 49 ) FROM tab2, tab2 AS cor0
----
441

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT DISTINCT COUNT( * ) - COUNT( * ) + - + 96 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) + - + 96 FROM tab2
----
-96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 / - 12 IS NULL
----

query I rowsort
SELECT - ( 71 ) * col2 FROM tab0
----
-3337
-7029
-710

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < ( col1 )
----

query I rowsort
SELECT DISTINCT + 56 * + ( col2 ) - col0 AS col1 FROM tab1
----
3219
3717
5325

query I rowsort
SELECT - 13 + + col2 * col1 FROM tab0
----
197
3794
86

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * - col2 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NULL NOT BETWEEN + col2 AND + 86 * 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT DISTINCT - ( 5 ) * + COUNT( col1 ) + - COUNT( * ) AS col2 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-2420
SELECT DISTINCT - ( 5 ) * + COUNT ( col1 ) + - COUNT ( * ) AS col2 FROM tab1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT DISTINCT 27 + COUNT( * ) * + 80 AS col0 FROM tab2 WHERE ( NULL ) IS NULL
----
267

skipif mysql # not compatible
query I rowsort label-2421
SELECT DISTINCT 27 + COUNT ( * ) * + 80 AS col0 FROM tab2 WHERE ( NULL ) IS NULL
----
267

query III rowsort
SELECT * FROM tab0 WHERE col0 NOT BETWEEN 25 AND NULL
----
15
81
47

query III rowsort
SELECT * FROM tab2 WHERE col2 * col1 IN ( + col0 )
----

query I rowsort
SELECT ALL - 4 + 74 AS col0 FROM tab2
----
70
70
70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2425
SELECT * FROM tab2 WHERE + 63 NOT BETWEEN ( - col2 ) AND CAST( - 81 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2425
SELECT * FROM tab2 WHERE + 63 NOT BETWEEN ( - col2 ) AND CAST ( - 81 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + AVG ( + 75 ) AS col2 FROM tab1 WHERE NOT col2 < NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2427
SELECT ALL * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * - CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2427
SELECT ALL * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * - CAST ( col0 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT + COUNT( * ) - 59 AS col2 FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-2428
SELECT + COUNT ( * ) - 59 AS col2 FROM tab0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2429
SELECT ALL + CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL + CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2430
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT ( 82 * + 75 ) >= + 53
----

skipif mysql # not compatible
query I rowsort label-2430
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT ( 82 * + 75 ) >= + 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT + 85 + - COUNT( * ) FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-2431
SELECT + 85 + - COUNT ( * ) FROM tab2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT DISTINCT - MIN( col0 ) col2 FROM tab2
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2432
SELECT DISTINCT - MIN ( col0 ) col2 FROM tab2
----
-46

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE + 14 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT MAX( + col2 ) * - 72 FROM tab1
----
-6912

skipif mysql # not compatible
query I rowsort label-2434
SELECT MAX ( + col2 ) * - 72 FROM tab1
----
-6912

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT DISTINCT + ( - ( + COUNT( * ) ) ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2435
SELECT DISTINCT + ( - ( + COUNT ( * ) ) ) FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - col0 + - col2 * col0 AS col1 FROM tab0
----
-720
-957
-9700

query I rowsort
SELECT - col2 * + 52 FROM tab2
----
-1196
-2080
-3016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2438
SELECT MIN( DISTINCT 69 ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2438
SELECT MIN ( DISTINCT 69 ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2439
SELECT DISTINCT col1 DIV + 58 AS col1 FROM tab0 WHERE 81 + col0 > ( + col1 )
----
0
1

skipif mysql # not compatible
query I rowsort label-2439
SELECT DISTINCT col1 / + 58 AS col1 FROM tab0 WHERE 81 + col0 > ( + col1 )
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT MIN( DISTINCT - 19 ) AS col1 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-2440
SELECT MIN ( DISTINCT - 19 ) AS col1 FROM tab0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2441
SELECT col2 - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2441
SELECT col2 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 83 * col1 + - 53 FROM tab2 AS cor0
----
4180
5508
6338

query I rowsort
SELECT col1 * 52 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
2444
260
728

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2444
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( + 83 AS SIGNED ) * 29 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-2444
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( + 83 AS INTEGER ) * 29 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab1 AS cor0 WHERE NOT col2 + - 26 IN ( 40 + col0 )
----
51
85
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT DISTINCT + + 2 + MIN( DISTINCT 83 ) AS col1 FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-2447
SELECT DISTINCT + + 2 + MIN ( DISTINCT 83 ) AS col1 FROM tab0 AS cor0
----
85

query I rowsort
SELECT - + 46 + col2 AS col2 FROM tab1 AS cor0
----
13
22
50

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 + 65 * + col2 BETWEEN ( NULL ) AND ( 99 + + col2 )
----

query I rowsort
SELECT DISTINCT + col1 + 65 * + col0 AS col0 FROM tab2 AS cor0
----
3041
4237
4942

query I rowsort
SELECT - col0 + + 6 + col1 AS col0 FROM tab0
----
-60
-90
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2452
SELECT DISTINCT + col2 - - 22 DIV + 31 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2452
SELECT DISTINCT + col2 - - 22 / + 31 FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE + col1 + + col1 >= col0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + 10 col1 FROM tab1
----
41
75
81

query I rowsort
SELECT ALL - 49 + col0 + + 95 * - col0 FROM tab1
----
-4843
-8039
-8603

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col1 ) IN ( + col1 * + 60 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2457
SELECT * FROM tab0 WHERE NOT - 40 / col0 >= + CAST( 21 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2457
SELECT * FROM tab0 WHERE NOT - 40 / col0 >= + CAST ( 21 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * 6 AS col0 FROM tab1
----
-306
-510
-546

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND - col0 + col2 OR col1 / col1 NOT BETWEEN 81 AND ( NULL )
----
59
68
96

query I rowsort
SELECT + col1 * - 68 FROM tab1
----
-3196
-340
-952

query III rowsort
SELECT * FROM tab1 WHERE NOT + 96 * 45 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( + ( + 81 ) * - col1 ) AND col2 * col1 - col0 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT ALL COUNT( * ) * ( + 75 ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-2463
SELECT ALL COUNT ( * ) * ( + 75 ) FROM tab2
----
225

query III rowsort
SELECT * FROM tab2 WHERE NOT 78 IN ( - ( ( - col2 ) ) * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 - col1 >= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( col0 + col0 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT ALL - MIN( DISTINCT - + 29 ) * 77 AS col1 FROM tab2
----
2233

skipif mysql # not compatible
query I rowsort label-2467
SELECT ALL - MIN ( DISTINCT - + 29 ) * 77 AS col1 FROM tab2
----
2233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2468
SELECT + SUM( ALL + col2 ) FROM tab1 WHERE NOT + CAST( + col1 AS SIGNED ) IS NULL
----
223

skipif mysql # not compatible
query I rowsort label-2468
SELECT + SUM ( ALL + col2 ) FROM tab1 WHERE NOT + CAST ( + col1 AS INTEGER ) IS NULL
----
223

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2470
SELECT * FROM tab2 WHERE NOT ( NOT CAST( NULL AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-2470
SELECT * FROM tab2 WHERE NOT ( NOT CAST ( NULL AS INTEGER ) IS NOT NULL )
----

query I rowsort
SELECT 94 * - 48 FROM tab1
----
-4512
-4512
-4512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2472
SELECT DISTINCT + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2472
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query II rowsort
SELECT DISTINCT + - col0 AS col1, ( - 77 ) FROM tab2 cor0
----
-46
-77
-64
-77
-75
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2474
SELECT col0 + - + CAST( - - col0 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2474
SELECT col0 + - + CAST ( - - col0 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT - + 87 * - col0 FROM tab2 AS cor0
----
4002
5568
6525

query I rowsort
SELECT ALL 33 + + + 45 FROM tab2 AS cor0
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 36 ) col2 FROM tab1
----
-36
-36
-36

query I rowsort
SELECT - 30 * + 57 AS col0 FROM tab0
----
-1710
-1710
-1710

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2480
SELECT ALL - MIN( - + 90 ) DIV + + 22 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL - MIN ( - + 90 ) / + + 22 FROM tab0
----
4

query I rowsort
SELECT DISTINCT 26 AS col1 FROM tab2 WHERE NOT NULL >= + col1
----

query I rowsort
SELECT ( + + 21 ) FROM tab1
----
21
21
21

query I rowsort
SELECT ALL ( AVG ( ( col2 ) ) ) FROM tab2 WHERE NOT ( + - 23 ) NOT IN ( + col1 + - 3 )
----
NULL

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 WHERE NOT + 46 * + 1 * - 42 BETWEEN ( - col1 ) AND NULL
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( 52 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2486
SELECT + col0 + - + CAST( + - 59 AS SIGNED ) * + 43 AS col1 FROM tab2 AS cor0
----
2583
2601
2612

skipif mysql # not compatible
query I rowsort label-2486
SELECT + col0 + - + CAST ( + - 59 AS INTEGER ) * + 43 AS col1 FROM tab2 AS cor0
----
2583
2601
2612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2487
SELECT CAST( NULL AS SIGNED ) - - col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + 16 * - 40 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2487
SELECT CAST ( NULL AS INTEGER ) - - col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + 16 * - 40 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2488
SELECT - 69 DIV + 36 - + ( - + 17 ) + MIN( col2 + col1 ) FROM tab1 cor0
----
80

skipif mysql # not compatible
query I rowsort label-2488
SELECT - 69 / + 36 - + ( - + 17 ) + MIN ( col2 + col1 ) FROM tab1 cor0
----
80

query II rowsort
SELECT DISTINCT col0 + + 21 AS col2, + col1 * col1 * 94 FROM tab0 AS cor0
----
108
41454
118
94
36
616734

query I rowsort
SELECT - ( - 96 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2491
SELECT ALL ( - 37 ) * + + COUNT( * ) - + COUNT( * ) - + COUNT( * ) DIV COUNT( * ) FROM tab1
----
-115

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL ( - 37 ) * + + COUNT ( * ) - + COUNT ( * ) - + COUNT ( * ) / COUNT ( * ) FROM tab1
----
-115

query I rowsort
SELECT DISTINCT - ( + + 48 ) FROM tab1 cor0
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-2493
SELECT - + 22 DIV - 77 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2493
SELECT - + 22 / - 77 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + - col1 * + 15 AS col1 FROM tab1 AS cor0
----
-210
-705
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2495
SELECT - - 13 - - - CAST( - col2 AS SIGNED ) + 0 AS col1 FROM tab2 AS cor0
----
36
53
71

skipif mysql # not compatible
query I rowsort label-2495
SELECT - - 13 - - - CAST ( - col2 AS INTEGER ) + 0 AS col1 FROM tab2 AS cor0
----
36
53
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2496
SELECT - COUNT( * ) * 25 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * col2 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2496
SELECT - COUNT ( * ) * 25 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * col2 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT MIN( ALL col0 ) FROM tab1 cor0 WHERE NOT NULL NOT IN ( - col2 * 20 + - col1 + 54 + 0 / 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2497
SELECT MIN ( ALL col0 ) FROM tab1 cor0 WHERE NOT NULL NOT IN ( - col2 * 20 + - col1 + 54 + 0 / 50 )
----
NULL

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT 91 * - + col0 + col2 + - 0 - - col1 IS NULL
----
51
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2499
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - - col2 * + col1 + ( 11 ) FROM tab1 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2499
SELECT DISTINCT - CAST ( NULL AS REAL ) - - col2 * + col1 + ( 11 ) FROM tab1 WHERE NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) > ( + 19 ) / col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2501
SELECT + COUNT( * ), 27 col1 FROM tab1
----
3
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2501
SELECT + COUNT ( * ), 27 col1 FROM tab1
----
3
27

onlyif mysql # aggregate syntax: 
query II rowsort label-2502
SELECT - COUNT( * ), 21 AS col0 FROM tab2
----
-3
21

skipif mysql # not compatible
query II rowsort label-2502
SELECT - COUNT ( * ), 21 AS col0 FROM tab2
----
-3
21

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( + - col2 ) NOT IN ( col1 + + + 6 + - 96 * + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - + 80 AS col1, + col2 - - + col2 FROM tab1 AS cor0
----
-80
118
-80
136
-80
192

onlyif mysql # aggregate syntax: 
query II rowsort label-2505
SELECT ALL - 43, COUNT( * ) AS col2 FROM tab2 AS cor0
----
-43
3

skipif mysql # not compatible
query II rowsort label-2505
SELECT ALL - 43, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-43
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col2 AS col1, col2 * + + col1 FROM tab0 cor0
----
-10
210
-47
3807
-99
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2508
SELECT ALL 36 * + + CAST( NULL AS DECIMAL ) * COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2508
SELECT ALL 36 * + + CAST ( NULL AS REAL ) * COUNT ( * ) FROM tab1
----
NULL

query II rowsort
SELECT ALL 75 * + - col1 AS col2, col2 AS col1 FROM tab2
----
-3825
23
-5025
58
-5775
40

query III rowsort
SELECT ALL * FROM tab2 WHERE 62 IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2511
SELECT col0 + - CAST( + + 13 AS SIGNED ) * - 51 FROM tab1 WHERE NOT - + 41 * + col2 IS NULL
----
714
748
754

skipif mysql # not compatible
query I rowsort label-2511
SELECT col0 + - CAST ( + + 13 AS INTEGER ) * - 51 FROM tab1 WHERE NOT - + 41 * + col2 IS NULL
----
714
748
754

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT - COUNT( ALL + + 63 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2512
SELECT - COUNT ( ALL + + 63 ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 60 NOT BETWEEN NULL AND - col2 + - 75
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 17 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT DISTINCT - 70 * COUNT( * ) * 20 + - 70 * - 95 FROM tab1 AS cor0
----
2450

skipif mysql # not compatible
query I rowsort label-2515
SELECT DISTINCT - 70 * COUNT ( * ) * 20 + - 70 * - 95 FROM tab1 AS cor0
----
2450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2516
SELECT DISTINCT 50 + + ( + - CAST( + + COUNT( * ) AS SIGNED ) ) FROM tab2 cor0
----
47

skipif mysql # not compatible
query I rowsort label-2516
SELECT DISTINCT 50 + + ( + - CAST ( + + COUNT ( * ) AS INTEGER ) ) FROM tab2 cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT - + COUNT( + 22 ) * COUNT( * ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2517
SELECT - + COUNT ( + 22 ) * COUNT ( * ) FROM tab1 cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT + COUNT( * ) + MIN( ALL + col2 ) col0 FROM tab1
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2519
SELECT + COUNT ( * ) + MIN ( ALL + col2 ) col0 FROM tab1
----
62

query II rowsort
SELECT DISTINCT - 77 AS col1, - col2 * 96 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-77
-5664
-77
-6528
-77
-9216

query II rowsort
SELECT DISTINCT - 76 AS col1, + col2 FROM tab1
----
-76
59
-76
68
-76
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT + SUM( - 5 ) * - MIN( col1 ) + 67 + 90 FROM tab1 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2522
SELECT + SUM ( - 5 ) * - MIN ( col1 ) + 67 + 90 FROM tab1 WHERE - col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2523
SELECT ALL CAST( NULL AS SIGNED ) / - 95 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL CAST ( NULL AS INTEGER ) / - 95 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2524
SELECT COUNT( * ) * - 73 * COUNT( * ) + + CAST( NULL AS DECIMAL ) + + + ( - 55 ) * SUM( - - 74 ) * COUNT( col0 * col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2524
SELECT COUNT ( * ) * - 73 * COUNT ( * ) + + CAST ( NULL AS REAL ) + + + ( - 55 ) * SUM ( - - 74 ) * COUNT ( col0 * col2 ) FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT col2, + col1 * + col1 FROM tab0
----
10
441
47
6561
99
1

query I rowsort
SELECT DISTINCT ( + 61 ) * 10 AS col1 FROM tab2
----
610

onlyif mysql # aggregate syntax: 
query II rowsort label-2527
SELECT MIN( ALL - - col2 ) + - - COUNT( * ), + 19 AS col1 FROM tab1
----
62
19

skipif mysql # not compatible
query II rowsort label-2527
SELECT MIN ( ALL - - col2 ) + - - COUNT ( * ), + 19 AS col1 FROM tab1
----
62
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2528
SELECT SUM( ALL + col0 ) DIV - 96 + - 90 FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-2528
SELECT SUM ( ALL + col0 ) / - 96 + - 90 FROM tab1
----
-92

query I rowsort
SELECT 32 + + col0 + + col1 AS col0 FROM tab1
----
122
170
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT DISTINCT + 34 * - 78 + - COUNT( * ) col0 FROM tab2 AS cor0
----
-2655

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2530
SELECT DISTINCT + 34 * - 78 + - COUNT ( * ) col0 FROM tab2 AS cor0
----
-2655

query I rowsort
SELECT DISTINCT - + col1 * - - col1 + - 37 FROM tab0 AS cor0
----
-38
-478
-6598

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN 83 AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2533
SELECT DISTINCT + + col1 DIV - - col0 + - + col0 DIV - - 64 AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2533
SELECT DISTINCT + + col1 / - - col0 + - + col0 / - - 64 AS col0 FROM tab1 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT ( - 62 ) + COUNT( * ) col0 FROM tab0 WHERE + 56 IS NULL
----
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2534
SELECT ( - 62 ) + COUNT ( * ) col0 FROM tab0 WHERE + 56 IS NULL
----
-62

query II rowsort
SELECT + col0, - ( + - col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col0 * + col2 < ( col2 )
----
46
46
64
64
75
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 41 BETWEEN NULL AND + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - col2 * - + col2 FROM tab0 cor0
----
100
2209
9801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2538
SELECT + SUM( DISTINCT col2 ) DIV + ( + 25 ) - + MAX( + col1 ) AS col1 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-2538
SELECT + SUM ( DISTINCT col2 ) / + ( + 25 ) - + MAX ( + col1 ) AS col1 FROM tab1 AS cor0
----
-39

query I rowsort
SELECT ALL col1 * - - ( + col0 ) FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT - 97 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-2540
SELECT - 97 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT + + ( MAX( - - col2 ) ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2541
SELECT + + ( MAX ( - - col2 ) ) AS col1 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT COUNT( * ) * + + ( - - 16 ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-2542
SELECT COUNT ( * ) * + + ( - - 16 ) FROM tab2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT + SUM( + 86 ) FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-2543
SELECT + SUM ( + 86 ) FROM tab1
----
258

query II rowsort
SELECT + col2, col0 AS col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT ALL + MIN( ALL - col1 ) * - COUNT( * ) FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-2545
SELECT ALL + MIN ( ALL - col1 ) * - COUNT ( * ) FROM tab2
----
231

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= 35 * + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2547
SELECT ALL + col1 AS col0, CAST( NULL AS SIGNED ) * - 47 * + CAST( 82 AS SIGNED ) FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-2547
SELECT ALL + col1 AS col0, CAST ( NULL AS INTEGER ) * - 47 * + CAST ( 82 AS INTEGER ) FROM tab1
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 1 AND - col0
----

query I rowsort
SELECT ALL - 6 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT + + col1 AS col1, + col2 AS col0 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT ALL - col2 + - 58 * - col1 + + ( - 80 ) AS col1 FROM tab1
----
151
2578
636

query I rowsort
SELECT ( 94 ) + col1 - + - col1 AS col0 FROM tab1 cor0
----
104
122
188

query II rowsort
SELECT 75 AS col0, 56 FROM tab0 AS cor0
----
75
56
75
56
75
56

query I rowsort
SELECT ALL - 77 - col1 AS col2 FROM tab0 AS cor0 WHERE NULL IN ( - 82 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2555
SELECT DISTINCT 21 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT 21 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + - col2 AS col0, 80 + + col0 AS col1 FROM tab1 AS cor0
----
-59
165
-68
171
-96
131

query II rowsort
SELECT - col1, col1 * - col0 AS col2 FROM tab0 AS cor0
----
-1
-97
-21
-1827
-81
-1215

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2558
SELECT 42 * - col2 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE + col1 - + 36 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2558
SELECT 42 * - col2 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE + col1 - + 36 IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 30 + 55 > + 82
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 6 col2, + col1 * - - col2 + col2 * + 12 AS col1 FROM tab0 AS cor0
----
-6
1287
-6
330
-6
4371

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2561
SELECT + - CAST( NULL AS DECIMAL ), col0 DIV col2 AS col0 FROM tab1 AS cor0
----
NULL
0
NULL
1
NULL
1

skipif mysql # not compatible
query II rowsort label-2561
SELECT + - CAST ( NULL AS REAL ), col0 / col2 AS col0 FROM tab1 AS cor0
----
NULL
0
NULL
1
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2562
SELECT DISTINCT - col1 DIV + col2 + + 71 FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-2562
SELECT DISTINCT - col1 / + col2 + + 71 FROM tab1
----
71

query I rowsort
SELECT 96 * + + col0 AS col2 FROM tab0
----
1440
8352
9312

query II rowsort
SELECT ALL - 79 + col1, + col2 + + col0 * - - col1 AS col1 FROM tab0
----
-58
1837
-78
196
2
1262

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * 50 col2, col2 * 91 FROM tab0
----
2350
4277
4950
9009
500
910

query I rowsort
SELECT 69 * col1 * - - col0 + - - col0 FROM tab0 AS cor0
----
126150
6790
83850

query II rowsort
SELECT ALL col0 * - ( - col0 ) * col1 AS col0, 64 AS col1 FROM tab1
----
36125
64
36414
64
389207
64

onlyif mysql # DIV for integer division: 
query II rowsort label-2568
SELECT col2 AS col1, - 89 DIV + col0 AS col0 FROM tab1
----
59
-1
68
0
96
-1

skipif mysql # not compatible
query II rowsort label-2568
SELECT col2 AS col1, - 89 / + col0 AS col0 FROM tab1
----
59
-1
68
0
96
-1

query I rowsort
SELECT + - 97 * + 2 AS col0 FROM tab2 AS cor0
----
-194
-194
-194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2570
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - col2 + col0 + + + 21 * + - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2570
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - col2 + col0 + + + 21 * + - col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 68 * + col1 * + + col2 FROM tab0 AS cor0
----
-14280
-258876
-6732

onlyif mysql # DIV for integer division: 
query II rowsort label-2572
SELECT ALL - col2 DIV - col2 + + + col2, 75 col0 FROM tab2 AS cor0
----
24
75
41
75
59
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2572
SELECT ALL - col2 / - col2 + + + col2, 75 col0 FROM tab2 AS cor0
----
24
75
41
75
59
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2573
SELECT 50 DIV + COUNT( * ) FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-2573
SELECT 50 / + COUNT ( * ) FROM tab0 AS cor0
----
16

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col0 / - + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2575
SELECT + col1 DIV 91 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2575
SELECT + col1 / 91 FROM tab0 cor0
----
0
0
0

query II rowsort
SELECT + col0 + - 94 AS col1, ( col1 ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-19
67
-30
77
-48
51

onlyif mysql # aggregate syntax: 
query II rowsort label-2577
SELECT DISTINCT + ( - 44 ) col1, COUNT( * ) FROM tab1
----
-44
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2577
SELECT DISTINCT + ( - 44 ) col1, COUNT ( * ) FROM tab1
----
-44
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 + col0 <> 84 + 20 + + + col1 * + - 69 - - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT ALL + MAX( + 10 ) AS col2 FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL + MAX ( + 10 ) AS col2 FROM tab2 AS cor0
----
10

query I rowsort
SELECT + col0 + + - ( - + col2 ) AS col0 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2581
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * COUNT( DISTINCT col2 ) AS col2, SUM( DISTINCT + 57 ) col1 FROM tab1 cor0
----
NULL
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2581
SELECT DISTINCT + CAST ( NULL AS REAL ) * COUNT ( DISTINCT col2 ) AS col2, SUM ( DISTINCT + 57 ) col1 FROM tab1 cor0
----
NULL
57

query II rowsort
SELECT ALL + col1 AS col0, col2 FROM tab2 AS cor0 WHERE - 14 = NULL
----

query I rowsort
SELECT ALL 60 - + ( + 86 ) + 80 FROM tab2 AS cor0
----
54
54
54

query I rowsort
SELECT DISTINCT + col1 / + - col0 AS col2 FROM tab2 WHERE NOT 5 IS NOT NULL
----

query I rowsort
SELECT - ( 59 ) + + - col0 FROM tab0
----
-146
-156
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT 34 * + 4 * + ( COUNT( + - 60 ) ) FROM tab1
----
408

skipif mysql # not compatible
query I rowsort label-2586
SELECT 34 * + 4 * + ( COUNT ( + - 60 ) ) FROM tab1
----
408

query I rowsort
SELECT DISTINCT - col1 * + - 62 * - col2 AS col2 FROM tab1
----
-18290
-198152
-83328

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT DISTINCT COUNT( * ) - + 26 col1 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2588
SELECT DISTINCT COUNT ( * ) - + 26 col1 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT DISTINCT 13 - + MAX( + col1 ) AS col0 FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-2589
SELECT DISTINCT 13 - + MAX ( + col1 ) AS col0 FROM tab2
----
-64

query I rowsort
SELECT + 93 * + + 57 AS col2 FROM tab2 cor0 WHERE + 78 BETWEEN NULL AND + 96
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= + 62
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 85 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 + col2 * col2 AS col2 FROM tab1 cor0
----
3566
4715
9267

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT MAX( DISTINCT + 97 ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2594
SELECT MAX ( DISTINCT + 97 ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2595
SELECT DISTINCT + ( + - 98 ) * + col2 + + - col0 + + col2 * + CAST( NULL AS SIGNED ) * - 41 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2595
SELECT DISTINCT + ( + - 98 ) * + col2 + + - col0 + + col2 * + CAST ( NULL AS INTEGER ) * - 41 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2596
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN + - 15 * - CAST( NULL AS SIGNED ) + col2 AND - 65
----

skipif mysql # not compatible
query I rowsort label-2596
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN + - 15 * - CAST ( NULL AS INTEGER ) + col2 AND - 65
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( col1 / col2 * - + col2 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2598
SELECT - CAST( + + col0 AS SIGNED ) DIV + col2 col2 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2598
SELECT - CAST ( + + col0 AS INTEGER ) / + col2 col2 FROM tab0 AS cor0
----
-8
0
0

query I rowsort
SELECT col2 * + 23 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 * col2 col1 FROM tab0
----
4089
8613
870

query I rowsort
SELECT DISTINCT + col1 * - + col0 AS col0 FROM tab2
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL <> + 13 - - - col0 * + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT COUNT( - - 2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2603
SELECT COUNT ( - - 2 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT - COUNT( * ) + + 10 AS col2 FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
7

skipif mysql # not compatible
query I rowsort label-2604
SELECT - COUNT ( * ) + + 10 AS col2 FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
7

query I rowsort
SELECT DISTINCT - + 92 + - col1 FROM tab1 AS cor0
----
-106
-139
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT + + MAX( - - 11 ) * - 8 FROM tab0 AS cor0 WHERE NOT 94 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2606
SELECT + + MAX ( - - 11 ) * - 8 FROM tab0 AS cor0 WHERE NOT 94 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2607
SELECT DISTINCT + 77 * + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT DISTINCT + 77 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 27 + - 18 AS col0 FROM tab0 AS cor0
----
-45
-45
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2609
SELECT + MIN( ( - 73 ) ) DIV - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2609
SELECT + MIN ( ( - 73 ) ) / - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2610
SELECT ALL 11 DIV + SUM( DISTINCT + 84 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL 11 / + SUM ( DISTINCT + 84 ) AS col0 FROM tab1
----
0

query I rowsort
SELECT col2 * + + col1 * - + col2 AS col1 FROM tab0 cor0
----
-178929
-2100
-9801

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2612
SELECT ALL - col1 DIV + col1 + + + 90 + + col1 + + - col2 * - - ( CAST( + 70 AS SIGNED ) ) AS col1 FROM tab2 cor0
----
-1470
-2634
-3904

skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL - col1 / + col1 + + + 90 + + col1 + + - col2 * - - ( CAST ( + 70 AS INTEGER ) ) AS col1 FROM tab2 cor0
----
-1470
-2634
-3904

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT + + MIN( ALL col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2613
SELECT + + MIN ( ALL col0 ) FROM tab0 AS cor0
----
15

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 83 * - - 92 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2615
SELECT - CAST( col2 AS SIGNED ) DIV col1 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-2615
SELECT - CAST ( col2 AS INTEGER ) / col1 FROM tab0 AS cor0
----
-99
0
0

query I rowsort
SELECT DISTINCT + col1 + + + col2 AS col1 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT ALL COUNT( * ) + - 39 * + 29 FROM tab0 AS cor0
----
-1128

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL COUNT ( * ) + - 39 * + 29 FROM tab0 AS cor0
----
-1128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2618
SELECT ALL + + 63 + - col2 * col1 + CAST( NULL AS SIGNED ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2618
SELECT ALL + + 63 + - col2 * col1 + CAST ( NULL AS INTEGER ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 67 * col0 - + col1 AS col2 FROM tab2 AS cor0
----
3031
4211
4958

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT + COUNT( 90 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2620
SELECT + COUNT ( 90 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 WHERE + - 8 + col1 / + + 17 NOT BETWEEN - 38 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN 75 + - + 71 + - col0 AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2623
SELECT + CAST( NULL AS SIGNED ) + col1 * - - ( - 19 ) FROM tab1 WHERE + col0 + + col2 NOT BETWEEN NULL AND 29
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2623
SELECT + CAST ( NULL AS INTEGER ) + col1 * - - ( - 19 ) FROM tab1 WHERE + col0 + + col2 NOT BETWEEN NULL AND 29
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 7 - - col2 + + + ( + ( - 32 ) ) - - - col0 * + - ( + - col0 ) * col1 FROM tab0
----
-158978
-18217
-9349

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL <= NULL AND + col2 IS NULL
----

query I rowsort
SELECT + col0 * + 50 FROM tab0 cor0 WHERE 6 IS NOT NULL
----
4350
4850
750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2627
SELECT + col0 * ( - col2 ) + - 9 * - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-1867
-3747
-599

skipif mysql # not compatible
query I rowsort label-2627
SELECT + col0 * ( - col2 ) + - 9 * - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-1867
-3747
-599

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE + col0 BETWEEN col2 AND + + 72
----

query I rowsort
SELECT - 86 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT + - col2 FROM tab0 WHERE NOT NULL BETWEEN ( + ( - - col0 ) * 60 * ( + col0 ) ) AND + ( + ( + col2 ) ) * - ( - col2 ) + - 27
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( NOT + col1 + col1 NOT BETWEEN NULL AND NULL ) )
----

query I rowsort
SELECT 5 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT + col0 * + + col2 * - 56 AS col2 FROM tab0 AS cor0
----
-39480
-48720
-537768

query II rowsort
SELECT + col0 AS col0, + col0 AS col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT - + 55 * - + col2 AS col1 FROM tab0 AS cor0
----
2585
5445
550

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT NULL = ( col2 )
----

query II rowsort
SELECT DISTINCT col1 AS col0, - col2 + - - col2 FROM tab0 AS cor0
----
1
0
21
0
81
0

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT - ( + 65 ) * col1 * - col2 AS col2 FROM tab0
----
13650
247455
6435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2640
SELECT ALL + + 80 AS col2 FROM tab1 WHERE NOT + - col0 >= + - CAST( 20 AS SIGNED )
----
80
80
80

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL + + 80 AS col2 FROM tab1 WHERE NOT + - col0 >= + - CAST ( 20 AS INTEGER )
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT DISTINCT + COUNT( ( - col1 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2641
SELECT DISTINCT + COUNT ( ( - col1 ) ) AS col2 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 + + - 46 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2643
SELECT ALL 35 DIV + 76 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL 35 / + 76 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2644
SELECT COUNT( * ) + + - 78 DIV + COUNT( * ) FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-2644
SELECT COUNT ( * ) + + - 78 / + COUNT ( * ) FROM tab0
----
-23

query I rowsort
SELECT col2 + col2 + 1 AS col0 FROM tab0
----
199
21
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT ALL - - ( + + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2646
SELECT ALL - - ( + + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT - + COUNT( * ) FROM tab2 AS cor0 WHERE NULL < col1
----
0

skipif mysql # not compatible
query I rowsort label-2647
SELECT - + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL < col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2648
SELECT MIN( - CAST( - col1 AS SIGNED ) ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2648
SELECT MIN ( - CAST ( - col1 AS INTEGER ) ) AS col2 FROM tab2
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2649
SELECT ( - - 15 ) - SUM( - CAST( NULL AS SIGNED ) ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2649
SELECT ( - - 15 ) - SUM ( - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 45 + + + col2 AS col0 FROM tab0 AS cor0
----
144
55
92

query II rowsort
SELECT - col1 + + col0 * col1 + + 91, col0 FROM tab0 AS cor0
----
1225
15
187
97
1897
87

query II rowsort
SELECT ALL - - 92 + - - ( 32 ) * + - col2 AS col0, + col1 FROM tab1 cor0
----
-1796
5
-2084
47
-2980
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2653
SELECT + + ( - col2 ) + + ( - - 5 ) DIV - + col0 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2653
SELECT + + ( - col2 ) + + ( - - 5 ) / - + col0 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 8 IS NULL )
----

query I rowsort
SELECT DISTINCT - 68 - 62 + + + 73 AS col0 FROM tab2
----
-57

query I rowsort
SELECT ALL - col2 - col1 AS col0 FROM tab2
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT ALL COUNT( * ) - - + 4 AS col1 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL COUNT ( * ) - - + 4 AS col1 FROM tab1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2658
SELECT ( + CAST( NULL AS SIGNED ) ) AS col1, col2 * + - col0 FROM tab1
----
NULL
-4896
NULL
-5015
NULL
-6188

skipif mysql # not compatible
query II rowsort label-2658
SELECT ( + CAST ( NULL AS INTEGER ) ) AS col1, col2 * + - col0 FROM tab1
----
NULL
-4896
NULL
-5015
NULL
-6188

query I rowsort
SELECT ALL + col1 * - col1 AS col1 FROM tab1 WHERE col0 IS NOT NULL
----
-196
-2209
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2660
SELECT DISTINCT + CAST( + + 9 AS SIGNED ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2660
SELECT DISTINCT + CAST ( + + 9 AS INTEGER ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT + col2 * - 31 FROM tab0 cor0
----
-1457
-3069
-310

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT ALL + 77 * - - COUNT( * ) FROM tab2 cor0
----
231

skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL + 77 * - - COUNT ( * ) FROM tab2 cor0
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT - MIN( DISTINCT + ( ( + 19 ) ) ) FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-2663
SELECT - MIN ( DISTINCT + ( ( + 19 ) ) ) FROM tab1 AS cor0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT 70 * + + COUNT( * ) AS col2 FROM tab0 WHERE NOT - 85 * + 18 * 59 - col1 IS NULL
----
210

skipif mysql # not compatible
query I rowsort label-2664
SELECT 70 * + + COUNT ( * ) AS col2 FROM tab0 WHERE NOT - 85 * + 18 * 59 - col1 IS NULL
----
210

query II rowsort
SELECT DISTINCT - 0 AS col2, + col0 * - 98 + - 80 FROM tab0
----
0
-1550
0
-8606
0
-9586

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT - SUM( DISTINCT + - col2 ) col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2666
SELECT - SUM ( DISTINCT + - col2 ) col1 FROM tab2 AS cor0
----
121

query I rowsort
SELECT ( col2 ) * - 43 - col2 AS col2 FROM tab0 AS cor0
----
-2068
-4356
-440

query I rowsort
SELECT col0 + + col0 FROM tab1 WHERE NOT + col2 / + + col2 IS NULL
----
102
170
182

query I rowsort
SELECT col2 * - + col0 * - col2 AS col0 FROM tab0
----
33135
8700
950697

query I rowsort
SELECT ALL - 40 + 16 FROM tab0
----
-24
-24
-24

query I rowsort
SELECT 48 * + 40 FROM tab2
----
1920
1920
1920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2672
SELECT DISTINCT CAST( 67 AS SIGNED ) * + + 94 FROM tab2
----
6298

skipif mysql # not compatible
query I rowsort label-2672
SELECT DISTINCT CAST ( 67 AS INTEGER ) * + + 94 FROM tab2
----
6298

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT DISTINCT - MIN( DISTINCT - 25 ) AS col2 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-2673
SELECT DISTINCT - MIN ( DISTINCT - 25 ) AS col2 FROM tab1
----
25

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 BETWEEN col2 AND - 34 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col2 AS col1, col2 * - col2 + - 93 FROM tab1 cor0
----
59
-3574
68
-4717
96
-9309

query I rowsort
SELECT ALL + col1 * 7 FROM tab1 AS cor0
----
329
35
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2677
SELECT DISTINCT + + 49 + + + col1 DIV - + col1 FROM tab2 cor0
----
48

skipif mysql # not compatible
query I rowsort label-2677
SELECT DISTINCT + + 49 + + + col1 / - + col1 FROM tab2 cor0
----
48

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE + + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2679
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE + + col1 IS NOT NULL
----
-3

query I rowsort
SELECT + 48 AS col0 FROM tab0 WHERE NULL IS NULL
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 col1, col0 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 20 col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2683
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 IN ( - - 76, - 21 + + col2 * col2 + col0 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2683
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 IN ( - - 76, - 21 + + col2 * col2 + col0 + + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - + col2 * + 94 FROM tab2 AS cor0
----
-2162
-3760
-5452

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT ALL - 28 * ( - COUNT( * ) ) col0 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2685
SELECT ALL - 28 * ( - COUNT ( * ) ) col0 FROM tab2 AS cor0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2686
SELECT + col2 DIV - col1 + - - col1 + - col0 - - col1 FROM tab2 AS cor0
----
56
59
90

skipif mysql # not compatible
query I rowsort label-2686
SELECT + col2 / - col1 + - - col1 + - col0 - - col1 FROM tab2 AS cor0
----
56
59
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2687
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) * + + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) * + + col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT DISTINCT 19 + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-2688
SELECT DISTINCT 19 + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
22

query I rowsort
SELECT - - col0 + + 83 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
134
168
174

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE col2 + + - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 - 58 FROM tab0 cor0
----
-43
29
39

query I rowsort
SELECT col1 - 14 - - ( - col1 ) FROM tab2 AS cor0
----
-14
-14
-14

query I rowsort
SELECT DISTINCT 5 - - 99 AS col1 FROM tab1
----
104

query I rowsort
SELECT DISTINCT - - col0 * + col2 FROM tab0 WHERE col0 IS NOT NULL
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-2695
SELECT DISTINCT - 95 DIV col0 FROM tab1 WHERE NOT - 73 * - col2 < - col1
----
-1

skipif mysql # not compatible
query I rowsort label-2695
SELECT DISTINCT - 95 / col0 FROM tab1 WHERE NOT - 73 * - col2 < - col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2696
SELECT + + MIN( - - CAST( CAST( - 87 AS SIGNED ) AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-2696
SELECT + + MIN ( - - CAST ( CAST ( - 87 AS INTEGER ) AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-87

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col2 >= + col0 - - col1 + - col1 * + 39
----

query II rowsort
SELECT ALL + col1 AS col2, - col2 AS col2 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 <= - ( - 91 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 25 <= - 33 OR + col0 BETWEEN NULL AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 90 AS col2 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT ALL + + 9 AS col1 FROM tab1 AS cor0
----
9
9
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2703
SELECT CAST( - + col2 AS SIGNED ), - col1 AS col2 FROM tab1 AS cor0
----
-59
-5
-68
-47
-96
-14

skipif mysql # not compatible
query II rowsort label-2703
SELECT CAST ( - + col2 AS INTEGER ), - col1 AS col2 FROM tab1 AS cor0
----
-59
-5
-68
-47
-96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - 41 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2704
SELECT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - 41 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT DISTINCT - MAX( DISTINCT + 81 ) AS col0 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT - MAX ( DISTINCT + 81 ) AS col0 FROM tab1 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT ALL - - MAX( ALL col2 ) + + - COUNT( - + col0 ) FROM tab2 cor0
----
55

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL - - MAX ( ALL col2 ) + + - COUNT ( - + col0 ) FROM tab2 cor0
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-2707
SELECT DISTINCT - col1, col1 DIV 97 AS col0 FROM tab1
----
-14
0
-47
0
-5
0

skipif mysql # not compatible
query II rowsort label-2707
SELECT DISTINCT - col1, col1 / 97 AS col0 FROM tab1
----
-14
0
-47
0
-5
0

query I rowsort
SELECT + 85 AS col1 FROM tab2 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 col1 FROM tab0
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT 18 + - 57 + - 80 * + COUNT( * ) AS col1 FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-2710
SELECT 18 + - 57 + - 80 * + COUNT ( * ) AS col1 FROM tab0
----
-279

query I rowsort
SELECT - 96 + + col2 + + col2 - - + 91 * + 98 + col1 AS col2 FROM tab2
----
8919
8979
9005

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT ALL SUM( ALL - + col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL SUM ( ALL - + col0 ) FROM tab1
----
-227

query I rowsort
SELECT - 23 + - 51 * col2 + + 64 FROM tab0
----
-2356
-469
-5008

query II rowsort
SELECT DISTINCT - col2 AS col2, col2 AS col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT DISTINCT - col1 + - - ( - col2 ) * - 18 + - + ( - - col1 ) FROM tab2 AS cor0
----
312
566
910

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT ALL COUNT( * ) + 40 AS col1 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL COUNT ( * ) + 40 AS col1 FROM tab0 AS cor0
----
43

query I rowsort
SELECT ALL + 96 - + col2 + - 99 + + - col2 * + + 20 FROM tab1
----
-1242
-1431
-2019

onlyif mysql # aggregate syntax: 
query II rowsort label-2718
SELECT - SUM( 18 ) AS col1, - SUM( ALL + col2 ) AS col2 FROM tab1
----
-54
-223

skipif mysql # not compatible
query II rowsort label-2718
SELECT - SUM ( 18 ) AS col1, - SUM ( ALL + col2 ) AS col2 FROM tab1
----
-54
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT + SUM( col2 ) - + 72 FROM tab1
----
151

skipif mysql # not compatible
query I rowsort label-2719
SELECT + SUM ( col2 ) - + 72 FROM tab1
----
151

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT BETWEEN 15 AND + + col2 + + - col2 + ( + + col2 )
----

query I rowsort
SELECT + col1 - + + ( 92 ) - + - ( col1 ) FROM tab2
----
10
42
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT - MAX( - - ( 1 ) ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-1

skipif mysql # not compatible
query I rowsort label-2722
SELECT - MAX ( - - ( 1 ) ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-1

query I rowsort
SELECT - 0 + + 9 FROM tab2 AS cor0
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT ALL + - COUNT( * ) * + + COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL + - COUNT ( * ) * + + COUNT ( * ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL col2 + ( - + col2 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2727
SELECT ALL ( - col2 ) DIV col2 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2727
SELECT ALL ( - col2 ) / col2 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT + col0 + - 73 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2729
SELECT - MIN( - - 34 ), ( + 18 ) AS col0 FROM tab2
----
-34
18

skipif mysql # not compatible
query II rowsort label-2729
SELECT - MIN ( - - 34 ), ( + 18 ) AS col0 FROM tab2
----
-34
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2730
SELECT col1 FROM tab2 WHERE NOT 54 + + CAST( + col1 AS SIGNED ) >= - + col1
----

skipif mysql # not compatible
query I rowsort label-2730
SELECT col1 FROM tab2 WHERE NOT 54 + + CAST ( + col1 AS INTEGER ) >= - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT MIN( ( + col0 ) ) col1 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2731
SELECT MIN ( ( + col0 ) ) col1 FROM tab2
----
46

query I rowsort
SELECT + col0 * col1 FROM tab0 WHERE NOT NULL <> - + col1 * + col1 + col1
----

query I rowsort
SELECT DISTINCT - col2 * col1 * + - col2 AS col1 FROM tab0
----
178929
2100
9801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2734
SELECT ALL ( COUNT( * ) ) DIV + MAX( ALL + 44 ) * 10 DIV COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL ( COUNT ( * ) ) / + MAX ( ALL + 44 ) * 10 / COUNT ( * ) AS col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + + col1 * + 9 * + col1 col0 FROM tab1 AS cor0
----
-1125
-24696
-934407

query I rowsort
SELECT + 93 * - col2 * col1 + - 96 FROM tab1 AS cor0 WHERE NOT 58 - - 60 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT - - COUNT( + col0 ) * ( + 78 ) FROM tab1 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-2737
SELECT - - COUNT ( + col0 ) * ( + 78 ) FROM tab1 AS cor0
----
234

query I rowsort
SELECT 87 AS col1 FROM tab0 AS cor0 WHERE NOT 93 IS NULL
----
87
87
87

query I rowsort
SELECT + 5 * + - 25 + 45 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + 87 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2740
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + 87 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2741
SELECT DISTINCT CAST( NULL AS SIGNED ), - col2 AS col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-2741
SELECT DISTINCT CAST ( NULL AS INTEGER ), - col2 AS col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
NULL
-23
NULL
-40
NULL
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 0 AS col2, - col0 col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT DISTINCT - SUM( col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2743
SELECT DISTINCT - SUM ( col1 ) AS col0 FROM tab2 AS cor0
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2744
SELECT * FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) + - - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2744
SELECT * FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) + - - col0 IS NOT NULL
----

query I rowsort
SELECT 46 * - 56 FROM tab1 AS cor0
----
-2576
-2576
-2576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + + col1 + - ( 76 ) + + 11 col1 FROM tab0 AS cor0
----
1150
1762
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT 27 * + + COUNT( * ) FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2747
SELECT 27 * + + COUNT ( * ) FROM tab2 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT - MAX( DISTINCT + 87 ) AS col2 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-2748
SELECT - MAX ( DISTINCT + 87 ) AS col2 FROM tab2
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2749
SELECT ALL + CAST( - col2 AS SIGNED ) col2 FROM tab0 WHERE NOT ( + col1 ) IS NULL
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2749
SELECT ALL + CAST ( - col2 AS INTEGER ) col2 FROM tab0 WHERE NOT ( + col1 ) IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT 96 - - - SUM( col2 ) FROM tab2 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-2750
SELECT 96 - - - SUM ( col2 ) FROM tab2 cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT DISTINCT + SUM( + 17 ) col0 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2751
SELECT DISTINCT + SUM ( + 17 ) col0 FROM tab0 AS cor0
----
51

query I rowsort
SELECT - ( + 35 ) + 56 FROM tab2 cor0
----
21
21
21

query I rowsort
SELECT DISTINCT + + col1 - + col0 * - - col1 + + ( - col0 ) * - col1 + + + col2 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT SUM( ALL + ( - col1 ) ) * + 29 FROM tab0 AS cor0
----
-2987

skipif mysql # not compatible
query I rowsort label-2754
SELECT SUM ( ALL + ( - col1 ) ) * + 29 FROM tab0 AS cor0
----
-2987

query II rowsort
SELECT ALL col1 AS col1, - col1 AS col0 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

query I rowsort
SELECT DISTINCT - - 49 AS col2 FROM tab0 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT ALL + + MAX( ALL 74 ) FROM tab0 AS cor0 WHERE NOT NULL <= 65
----
NULL

skipif mysql # not compatible
query I rowsort label-2757
SELECT ALL + + MAX ( ALL 74 ) FROM tab0 AS cor0 WHERE NOT NULL <= 65
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2759
SELECT + - col1 * + + CAST( NULL AS SIGNED ) / + - col0 + - + ( - + 81 ), 40 * col1 AS col2 FROM tab2 AS cor0
----
NULL
2040
NULL
2680
NULL
3080

skipif mysql # not compatible
query II rowsort label-2759
SELECT + - col1 * + + CAST ( NULL AS INTEGER ) / + - col0 + - + ( - + 81 ), 40 * col1 AS col2 FROM tab2 AS cor0
----
NULL
2040
NULL
2680
NULL
3080

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 34 * - col2 <= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT DISTINCT COUNT( - col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT COUNT ( - col1 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT + ( + - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2762
SELECT + ( + - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT + + SUM( - - 28 ) AS col1 FROM tab1 cor0
----
84

skipif mysql # not compatible
query I rowsort label-2763
SELECT + + SUM ( - - 28 ) AS col1 FROM tab1 cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT ALL + COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2765
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE + col2 + col0 IN ( + col2 + - 32 * - col1, - col1 )
----

skipif mysql # not compatible
query I rowsort label-2765
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE + col2 + col0 IN ( + col2 + - 32 * - col1, - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + + - col0 col2, col0 FROM tab0 AS cor0
----
0
15
0
87
0
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT - COUNT( * ) * + - COUNT( * ) + ( + - 59 ) AS col0 FROM tab1 AS cor0 WHERE + col0 IS NULL
----
-59

skipif mysql # not compatible
query I rowsort label-2767
SELECT - COUNT ( * ) * + - COUNT ( * ) + ( + - 59 ) AS col0 FROM tab1 AS cor0 WHERE + col0 IS NULL
----
-59

query II rowsort
SELECT DISTINCT - + 31 AS col1, col2 AS col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-31
23
-31
40
-31
58

query I rowsort
SELECT DISTINCT + 61 + + - col0 AS col1 FROM tab2 AS cor0
----
-14
-3
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 74 col2 FROM tab1 AS cor0
----
121
79
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT 76 + SUM( DISTINCT col2 ) + - COUNT( * ) * - COUNT( * ) FROM tab2
----
206

skipif mysql # not compatible
query I rowsort label-2771
SELECT 76 + SUM ( DISTINCT col2 ) + - COUNT ( * ) * - COUNT ( * ) FROM tab2
----
206

onlyif mysql # DIV for integer division: 
query I rowsort label-2772
SELECT DISTINCT + col1 DIV - - 97 - - 51 - 0 DIV - + col1 AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2772
SELECT DISTINCT + col1 / - - 97 - - 51 - 0 / - + col1 AS col0 FROM tab2
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2773
SELECT + COUNT( * ) + + CAST( COUNT( * ) AS SIGNED ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-2773
SELECT + COUNT ( * ) + + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT - 31 + - COUNT( * ) AS col1 FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-2774
SELECT - 31 + - COUNT ( * ) AS col1 FROM tab2
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2775
SELECT DISTINCT - CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT col0 * + + 12 AS col0 FROM tab0
----
1044
1164
180

onlyif mysql # DIV for integer division: 
query I rowsort label-2777
SELECT + - 70 * col1 DIV - - 73 FROM tab2 AS cor0
----
-48
-64
-73

skipif mysql # not compatible
query I rowsort label-2777
SELECT + - 70 * col1 / - - 73 FROM tab2 AS cor0
----
-48
-64
-73

query I rowsort
SELECT - 99 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT col2 * 23 AS col1, 92 FROM tab1 AS cor0
----
1357
92
1564
92
2208
92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + ( + 89 ) BETWEEN - + col1 + - 7 AND - col2 + - 87 - 46
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2781
SELECT + + col1 DIV - 63 - + col1 * + - 77 * + 84 FROM tab0 AS cor0
----
135828
523907
6468

skipif mysql # not compatible
query I rowsort label-2781
SELECT + + col1 / - 63 - + col1 * + - 77 * + 84 FROM tab0 AS cor0
----
135828
523907
6468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 col0, col2 col2 FROM tab1 WHERE NOT - 19 + 37 * col1 / - col2 * 40 = + 20 + - + col0
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT 8 * MIN( ALL - + 43 ) col0 FROM tab1
----
-344

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2783
SELECT 8 * MIN ( ALL - + 43 ) col0 FROM tab1
----
-344

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT DISTINCT + 63 * - + ( - COUNT( * ) ) FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-2784
SELECT DISTINCT + 63 * - + ( - COUNT ( * ) ) FROM tab1
----
189

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2785
SELECT DISTINCT 22 * + CAST( + col2 AS SIGNED ), col2 FROM tab1
----
1298
59
1496
68
2112
96

skipif mysql # not compatible
query II rowsort label-2785
SELECT DISTINCT 22 * + CAST ( + col2 AS INTEGER ), col2 FROM tab1
----
1298
59
1496
68
2112
96

query II rowsort
SELECT DISTINCT - col1, col0 - 92 AS col0 FROM tab2
----
-51
-46
-67
-17
-77
-28

query I rowsort
SELECT DISTINCT - 72 + - + col0 AS col1 FROM tab0 cor0
----
-159
-169
-87

query I rowsort
SELECT ALL col1 * + col1 + + 69 FROM tab2 AS cor0
----
2670
4558
5998

query I rowsort
SELECT DISTINCT + 82 FROM tab0 WHERE - col2 IS NOT NULL
----
82

query I rowsort
SELECT 92 + - col0 AS col0 FROM tab0
----
-5
5
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2791
SELECT col1 + + - CAST( NULL AS SIGNED ) + - 40 * - 75 / col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2791
SELECT col1 + + - CAST ( NULL AS INTEGER ) + - 40 * - 75 / col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2792
SELECT + col2 AS col2, + 67 DIV - - col0 FROM tab1 AS cor0
----
59
0
68
0
96
1

skipif mysql # not compatible
query II rowsort label-2792
SELECT + col2 AS col2, + 67 / - - col0 FROM tab1 AS cor0
----
59
0
68
0
96
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2793
SELECT ALL - CAST( NULL AS SIGNED ) * col0 + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 95 + + - 24 AS col0 FROM tab2 AS cor0
----
-119
-119
-119

query I rowsort
SELECT - col1 * + 71 AS col0 FROM tab2 AS cor0
----
-3621
-4757
-5467

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT + + COUNT( * ) * - 62 FROM tab1 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-2796
SELECT + + COUNT ( * ) * - 62 FROM tab1 AS cor0
----
-186

query I rowsort
SELECT DISTINCT - 30 - - col1 + + - ( + - col1 ) AS col0 FROM tab1 AS cor0
----
-2
-20
64

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= - col2 + + 89
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2799
SELECT col1 * CAST( NULL AS SIGNED ) + + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2799
SELECT col1 * CAST ( NULL AS INTEGER ) + + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT + + 94 + - COUNT( * ) FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2800
SELECT + + 94 + - COUNT ( * ) FROM tab0 AS cor0
----
91

query I rowsort
SELECT - + 40 + - - 39 + col1 FROM tab0 AS cor0
----
0
20
80

query I rowsort
SELECT DISTINCT + - col0 + - col1 * + 90 AS col0 FROM tab1 AS cor0
----
-1311
-4321
-535

query II rowsort
SELECT ALL + 81 AS col0, + 17 AS col2 FROM tab2
----
81
17
81
17
81
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2804
SELECT DISTINCT - CAST( 0 AS SIGNED ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2804
SELECT DISTINCT - CAST ( 0 AS INTEGER ) AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL + - 42 * - 5 AS col2 FROM tab1 cor0
----
210
210
210

query I rowsort
SELECT + col0 * - - col1 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT col1 <> col2 - + col1
----

query II rowsort
SELECT ALL + col0 + 36 * - + col0, + col0 * 2 AS col2 FROM tab0 AS cor0 WHERE NULL IN ( col0 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT + 14 * + COUNT( * ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-2809
SELECT + 14 * + COUNT ( * ) FROM tab0 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-2810
SELECT - 42, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-42
3

skipif mysql # not compatible
query II rowsort label-2810
SELECT - 42, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-42
3

query II rowsort
SELECT ALL + 44, + 5 AS col2 FROM tab2 AS cor0
----
44
5
44
5
44
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT ALL MAX( ALL + col0 ) AS col0 FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL MAX ( ALL + col0 ) AS col0 FROM tab1 cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT ( + MIN( 28 ) ) FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-2813
SELECT ( + MIN ( 28 ) ) FROM tab2
----
28

query II rowsort
SELECT DISTINCT col2 * ( ( col0 ) ), col2 AS col0 FROM tab0
----
705
47
870
10
9603
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - - ( + col1 ) * 92 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2816
SELECT CAST( - 50 AS DECIMAL ) / + col2 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2816
SELECT CAST ( - 50 AS REAL ) / + col2 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + - col2 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2818
SELECT + CAST( - + MIN( ALL - - CAST( NULL AS SIGNED ) ) AS SIGNED ) + + MAX( DISTINCT + 48 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2818
SELECT + CAST ( - + MIN ( ALL - - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + MAX ( DISTINCT + 48 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2819
SELECT - + 66 + col0 AS col1, - CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-15
51
19
85
25
91

skipif mysql # not compatible
query II rowsort label-2819
SELECT - + 66 + col0 AS col1, - CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-15
51
19
85
25
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 78 + 5 IS NULL
----

query I rowsort
SELECT - 49 * + + col2 AS col1 FROM tab0 AS cor0
----
-2303
-4851
-490

query I rowsort
SELECT ALL - + 33 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query I rowsort
SELECT ALL 15 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2824
SELECT DISTINCT + 31 AS col2, COUNT( + CAST( col2 AS SIGNED ) ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 <= NULL
----
31
0

skipif mysql # not compatible
query II rowsort label-2824
SELECT DISTINCT + 31 AS col2, COUNT ( + CAST ( col2 AS INTEGER ) ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 <= NULL
----
31
0

query I rowsort
SELECT - 19 + + 68 FROM tab1 AS cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT ALL 86 * - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-2826
SELECT ALL 86 * - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
258

query I rowsort
SELECT ALL col1 + - 35 AS col0 FROM tab1 cor0
----
-21
-30
12

query I rowsort
SELECT - col2 - 31 + + + ( col2 ) AS col1 FROM tab1 cor0 WHERE ( NULL ) NOT IN ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2829
SELECT + col0 DIV + + 37 + - - col2 - - - col0 * - ( - 1 ) FROM tab2
----
-15
-22
-23

skipif mysql # not compatible
query I rowsort label-2829
SELECT + col0 / + + 37 + - - col2 - - - col0 * - ( - 1 ) FROM tab2
----
-15
-22
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2830
SELECT ALL COUNT( * ) * + ( - SUM( ALL + 0 ) ) - + 59 * ( - - COUNT( DISTINCT - CAST( + 52 AS SIGNED ) ) ) FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL COUNT ( * ) * + ( - SUM ( ALL + 0 ) ) - + 59 * ( - - COUNT ( DISTINCT - CAST ( + 52 AS INTEGER ) ) ) FROM tab2
----
-59

query I rowsort
SELECT DISTINCT - col1 + 55 AS col0 FROM tab2
----
-12
-22
4

query III rowsort
SELECT * FROM tab1 WHERE + + 53 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT ALL - COUNT( * ) - - 23 + 49 AS col2 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL - COUNT ( * ) - - 23 + 49 AS col2 FROM tab1
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2834
SELECT col0 * - CAST( - 93 AS SIGNED ) AS col2 FROM tab0
----
1395
8091
9021

skipif mysql # not compatible
query I rowsort label-2834
SELECT col0 * - CAST ( - 93 AS INTEGER ) AS col2 FROM tab0
----
1395
8091
9021

onlyif mysql # DIV for integer division: 
query II rowsort label-2835
SELECT - 15, col1 DIV col2 DIV ( + col2 ) AS col2 FROM tab1
----
-15
0
-15
0
-15
0

skipif mysql # not compatible
query II rowsort label-2835
SELECT - 15, col1 / col2 / ( + col2 ) AS col2 FROM tab1
----
-15
0
-15
0
-15
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT + 42 * COUNT( * ) col2 FROM tab0
----
126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2836
SELECT + 42 * COUNT ( * ) col2 FROM tab0
----
126

query I rowsort
SELECT DISTINCT col0 * 65 AS col1 FROM tab2
----
2990
4160
4875

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT COUNT( * ) * - - MAX( + col0 ) AS col1 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-2838
SELECT COUNT ( * ) * - - MAX ( + col0 ) AS col1 FROM tab1
----
273

query I rowsort
SELECT DISTINCT col2 - - col0 * - + 50 AS col2 FROM tab2
----
-2277
-3160
-3692

query I rowsort
SELECT + 51 * + 12 FROM tab1 AS cor0
----
612
612
612

query I rowsort
SELECT ALL + 4 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - col1 * + 65
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2842
SELECT ALL - col2 DIV + - 20 FROM tab1 AS cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-2842
SELECT ALL - col2 / + - 20 FROM tab1 AS cor0
----
2
3
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2843
SELECT DISTINCT 23 DIV - - 8 AS col0 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-2843
SELECT DISTINCT 23 / - - 8 AS col0 FROM tab0
----
2

query II rowsort
SELECT + ( - 54 ), 25 + + col2 AS col0 FROM tab0
----
-54
124
-54
35
-54
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT - COUNT( * ) + + SUM( ALL + 1 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2845
SELECT - COUNT ( * ) + + SUM ( ALL + 1 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT DISTINCT + 29 * + COUNT( * ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-2846
SELECT DISTINCT + 29 * + COUNT ( * ) FROM tab0
----
87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 15 BETWEEN NULL AND - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT DISTINCT + MIN( DISTINCT - 4 ) FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-2848
SELECT DISTINCT + MIN ( DISTINCT - 4 ) FROM tab0 AS cor0
----
-4

query I rowsort
SELECT - + 4 * - col1 * - - 91 * 57 - 35 AS col0 FROM tab1 AS cor0
----
103705
290437
975121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col0 FROM tab2 AS cor0 WHERE NOT - col0 / - col2 * col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( 46 ) FROM tab1
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2852
SELECT + - col2 * + - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT - col0 BETWEEN NULL AND + col1 * + - 76 - 42
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2852
SELECT + - col2 * + - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT - col0 BETWEEN NULL AND + col1 * + - 76 - 42
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( 92 ) FROM tab0 AS cor0 WHERE + 62 BETWEEN col2 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT MAX( DISTINCT - 92 ) FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-2854
SELECT MAX ( DISTINCT - 92 ) FROM tab2 AS cor0
----
-92

query I rowsort
SELECT DISTINCT + col1 + - col2 * + col1 + col0 FROM tab2 cor0
----
-1076
-2939
-3744

query I rowsort
SELECT col2 * + 58 - col1 FROM tab2
----
1283
2243
3297

query I rowsort
SELECT - 10 * col2 FROM tab1
----
-590
-680
-960

onlyif mysql # DIV for integer division: 
query I rowsort label-2858
SELECT ALL 47 DIV col1 FROM tab1 WHERE - col2 + - 46 <> - col2
----
1
3
9

skipif mysql # not compatible
query I rowsort label-2858
SELECT ALL 47 / col1 FROM tab1 WHERE - col2 + - 46 <> - col2
----
1
3
9

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE ( col0 ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT + 0 * - col2 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + 59 * 4 AS col0 FROM tab1
----
236
236
236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2862
SELECT + ( CAST( NULL AS SIGNED ) ) - col0 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2862
SELECT + ( CAST ( NULL AS INTEGER ) ) - col0 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT DISTINCT MAX( 47 ) * - COUNT( * ) + + ( + COUNT( * ) ) AS col1 FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-2863
SELECT DISTINCT MAX ( 47 ) * - COUNT ( * ) + + ( + COUNT ( * ) ) AS col1 FROM tab2
----
-138

query I rowsort
SELECT DISTINCT + col0 * 66 AS col2 FROM tab2
----
3036
4224
4950

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND 46 + col0
----

query I rowsort
SELECT DISTINCT + ( + 21 ) * - 48 + + col0 FROM tab0
----
-911
-921
-993

query I rowsort
SELECT ALL 94 - + col2 FROM tab0
----
-5
47
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2868
SELECT - SUM( col0 ) + CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2868
SELECT - SUM ( col0 ) + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

query I rowsort
SELECT - col0 + - 53 FROM tab2
----
-117
-128
-99

query I rowsort
SELECT DISTINCT - col2 + - 30 FROM tab2 WHERE + col0 IS NOT NULL
----
-53
-70
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2871
SELECT ALL - CAST( NULL AS SIGNED ) + + col2 / col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL - CAST ( NULL AS INTEGER ) + + col2 / col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2872
SELECT ALL 18 DIV 2 FROM tab2
----
9
9
9

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL 18 / 2 FROM tab2
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT - 62 * - COUNT( * ) FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-2873
SELECT - 62 * - COUNT ( * ) FROM tab0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT ALL - ( 67 ) * + COUNT( * ) FROM tab1 WHERE ( 19 ) NOT IN ( col0 / 73 )
----
-201

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL - ( 67 ) * + COUNT ( * ) FROM tab1 WHERE ( 19 ) NOT IN ( col0 / 73 )
----
-201

query I rowsort
SELECT - 49 * col2 FROM tab1 WHERE NOT col0 + - col1 * col0 IS NULL
----
-2891
-3332
-4704

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2876
SELECT * FROM tab1 AS cor0 WHERE NOT 8 + col2 NOT IN ( - CAST( NULL AS SIGNED ) + 67 )
----

skipif mysql # not compatible
query III rowsort label-2876
SELECT * FROM tab1 AS cor0 WHERE NOT 8 + col2 NOT IN ( - CAST ( NULL AS INTEGER ) + 67 )
----

query I rowsort
SELECT DISTINCT + 40 * + ( 67 ) FROM tab2 AS cor0
----
2680

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT COUNT( * ) * + 99 AS col1 FROM tab2 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-2878
SELECT COUNT ( * ) * + 99 AS col1 FROM tab2 AS cor0
----
297

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - ( 94 ) ) + - 92 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 0 * - 94 FROM tab0 cor0 WHERE NOT ( - 5 ) <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + 65
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NULL BETWEEN + ( - col0 ) + col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT COUNT( + col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 NOT IN ( col0 * col2 - col1 * + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2883
SELECT COUNT ( + col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 NOT IN ( col0 * col2 - col1 * + col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2884
SELECT DISTINCT - ( + CAST( + col2 AS SIGNED ) ) DIV 91 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2884
SELECT DISTINCT - ( + CAST ( + col2 AS INTEGER ) ) / 91 FROM tab0 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT - COUNT( 88 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2885
SELECT - COUNT ( 88 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + 42 FROM tab2 AS cor0 WHERE NOT col2 - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2888
SELECT ALL * FROM tab1 WHERE NOT col0 = CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2888
SELECT ALL * FROM tab1 WHERE NOT col0 = CAST ( NULL AS REAL )
----

query I rowsort
SELECT col2 + - 5 FROM tab1
----
54
63
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 + - 15 col2 FROM tab0
----
44
44
44

query I rowsort
SELECT col2 + + + 25 FROM tab2
----
48
65
83

query I rowsort
SELECT ALL ( 86 ) FROM tab2 WHERE col0 BETWEEN ( 56 + - col1 ) AND ( col1 )
----
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT ALL COUNT( * ) col0 FROM tab2 WHERE NOT ( 86 ) BETWEEN ( col1 - 56 * - ( 21 * 97 - col2 * col0 ) ) AND ( 76 * + col1 + + ( + col0 + + 82 ) )
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2893
SELECT ALL COUNT ( * ) col0 FROM tab2 WHERE NOT ( 86 ) BETWEEN ( col1 - 56 * - ( 21 * 97 - col2 * col0 ) ) AND ( 76 * + col1 + + ( + col0 + + 82 ) )
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 + + + col0 * 19 col0 FROM tab1 cor0
----
1626
1740
980

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - col1 > - col2 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 + 53 * + col2 FROM tab1 cor0
----
3212
3695
5139

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT - COUNT( DISTINCT - 37 ) AS col1 FROM tab1, tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2897
SELECT - COUNT ( DISTINCT - 37 ) AS col1 FROM tab1, tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT ALL + 80 * + + 34 + - + COUNT( DISTINCT col2 ) + 8 * COUNT( * ) FROM tab1
----
2741

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL + 80 * + + 34 + - + COUNT ( DISTINCT col2 ) + 8 * COUNT ( * ) FROM tab1
----
2741

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2899
SELECT - CAST( NULL AS DECIMAL ) FROM tab0 WHERE NULL <= ( + 5 ) + 95
----

skipif mysql # not compatible
query I rowsort label-2899
SELECT - CAST ( NULL AS REAL ) FROM tab0 WHERE NULL <= ( + 5 ) + 95
----

query I rowsort
SELECT - ( - ( + col2 ) ) AS col1 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT + COUNT( * ) * + - 96 AS col1 FROM tab0
----
-288

skipif mysql # not compatible
query I rowsort label-2901
SELECT + COUNT ( * ) * + - 96 AS col1 FROM tab0
----
-288

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) <> 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT MIN( col1 ) * - COUNT( + 45 - + 88 ) AS col0 FROM tab2 WHERE ( NULL ) <> + col2 - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2903
SELECT MIN ( col1 ) * - COUNT ( + 45 - + 88 ) AS col0 FROM tab2 WHERE ( NULL ) <> + col2 - col0
----
NULL

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT 24 IS NOT NULL
----

query I rowsort
SELECT ALL - 85 FROM tab0 WHERE NOT NULL NOT BETWEEN + 89 * col0 AND col1 / col0
----

query I rowsort
SELECT DISTINCT 98 AS col2 FROM tab2 AS cor0 WHERE NOT ( col0 + - 80 + ( col1 ) ) NOT BETWEEN - col2 AND ( + col1 * 55 )
----
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 IN ( + - col1 + - col2 )
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( - 86 ) IS NULL OR - 88 * - col1 + 89 <> col1 * - col2
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 BETWEEN ( NULL ) AND 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT DISTINCT - MAX( DISTINCT col1 ) * + + 15 + + SUM( ALL col0 ) col0 FROM tab0 cor0
----
-1016

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2910
SELECT DISTINCT - MAX ( DISTINCT col1 ) * + + 15 + + SUM ( ALL col0 ) col0 FROM tab0 cor0
----
-1016

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT col1 + - ( col0 ) + - ( 14 ) IS NOT NULL
----

query I rowsort
SELECT + - col2 + + col0 AS col1 FROM tab1 AS cor0 WHERE 66 IS NOT NULL
----
-45
23
26

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 >= col0 * 2
----

query I rowsort
SELECT ALL ( ( + + col1 ) ) + + col0 * - col2 FROM tab0 AS cor0
----
-624
-849
-9602

query I rowsort
SELECT DISTINCT + + ( col0 ) + - - col2 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2916
SELECT ALL * FROM tab2 WHERE NOT ( ( + CAST( NULL AS SIGNED ) ) ) < col2 + 84
----

skipif mysql # not compatible
query III rowsort label-2916
SELECT ALL * FROM tab2 WHERE NOT ( ( + CAST ( NULL AS INTEGER ) ) ) < col2 + 84
----

query I rowsort
SELECT ALL - ( - - 26 ) + + col1 FROM tab2
----
25
41
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT - 31 * - COUNT( * ) AS col1 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-2918
SELECT - 31 * - COUNT ( * ) AS col1 FROM tab2
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2919
SELECT + COUNT( * ) DIV + 31 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2919
SELECT + COUNT ( * ) / + 31 AS col0 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + ( - col1 ) AND NULL
----

query I rowsort
SELECT ( + + 30 ) AS col0 FROM tab0
----
30
30
30

query I rowsort
SELECT ALL + ( - col2 ) * + 96 * + - col2 * - col0 - + 14 FROM tab0
----
-3180974
-835214
-91266926

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT DISTINCT + COUNT( * ) * - 77 * - - ( - COUNT( * ) ) FROM tab2
----
693

skipif mysql # not compatible
query I rowsort label-2923
SELECT DISTINCT + COUNT ( * ) * - 77 * - - ( - COUNT ( * ) ) FROM tab2
----
693

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT - 30 * - COUNT( * ) FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-2924
SELECT - 30 * - COUNT ( * ) FROM tab1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT + SUM( DISTINCT col1 ) FROM tab1 WHERE NOT - + ( - col1 ) * 16 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2925
SELECT + SUM ( DISTINCT col1 ) FROM tab1 WHERE NOT - + ( - col1 ) * 16 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN col0 AND ( - col2 * - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN - 4 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 col2 FROM tab2 AS cor0 WHERE NOT ( + ( col1 ) BETWEEN NULL AND NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 + - 37 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT + - ( - 66 ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT DISTINCT - COUNT( * ) * + 75 AS col1 FROM tab1
----
-225

skipif mysql # not compatible
query I rowsort label-2932
SELECT DISTINCT - COUNT ( * ) * + 75 AS col1 FROM tab1
----
-225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2933
SELECT DISTINCT - - col2 * - - 87 - + CAST( NULL AS SIGNED ) * 19 * + - 54 - - 23 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2933
SELECT DISTINCT - - col2 * - - 87 - + CAST ( NULL AS INTEGER ) * 19 * + - 54 - - 23 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2934
SELECT + CAST( NULL AS SIGNED ) col2, COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2934
SELECT + CAST ( NULL AS INTEGER ) col2, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2935
SELECT - + col0 * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2935
SELECT - + col0 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col0 + + 84 ) >= ( col2 )
----

query I rowsort
SELECT col1 * - col0 * 26 FROM tab1
----
-11050
-111202
-18564

onlyif mysql # DIV for integer division: 
query I rowsort label-2938
SELECT + 0 DIV + 76 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2938
SELECT + 0 / + 76 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2939
SELECT DISTINCT 88 DIV + + col1 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2939
SELECT DISTINCT 88 / + + col1 AS col2 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT DISTINCT - - SUM( - 36 ) FROM tab2 WHERE NOT - col1 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2940
SELECT DISTINCT - - SUM ( - 36 ) FROM tab2 WHERE NOT - col1 < NULL
----
NULL

query I rowsort
SELECT 21 * - col1 * col1 FROM tab2
----
-124509
-54621
-94269

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 66 col1, - col2 col1 FROM tab1
----
66
-59
66
-68
66
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT ALL - MAX( 96 ) AS col1 FROM tab2, tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL - MAX ( 96 ) AS col1 FROM tab2, tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT + col0 + - - 69 AS col2 FROM tab0 AS cor0
----
156
166
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2945
SELECT - CAST( NULL AS SIGNED ) + COUNT( * ) * - 27 / + + 88 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2945
SELECT - CAST ( NULL AS INTEGER ) + COUNT ( * ) * - 27 / + + 88 AS col0 FROM tab1 cor0
----
NULL

query II rowsort
SELECT + col0 + + col0 AS col2, col0 * - col2 AS col0 FROM tab2 AS cor0
----
128
-2560
150
-4350
92
-1058

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 / - - 66 * col2 + col2 BETWEEN - 77 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2948
SELECT col1 DIV + 5 FROM tab0 AS cor0
----
0
16
4

skipif mysql # not compatible
query I rowsort label-2948
SELECT col1 / + 5 FROM tab0 AS cor0
----
0
16
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2949
SELECT + 38 DIV + COUNT( * ) - 71 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2949
SELECT + 38 / + COUNT ( * ) - 71 FROM tab0 AS cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 74 AS col0, col1 col1 FROM tab2 AS cor0 WHERE NOT col1 >= NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) IN ( - col1 - - + col0 )
----

query I rowsort
SELECT DISTINCT - 26 FROM tab0 WHERE NOT - - col1 - + 68 IS NULL
----
-26

query I rowsort
SELECT ALL 28 * + ( + 18 ) AS col2 FROM tab2
----
504
504
504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 * - 20 col1 FROM tab0 WHERE NOT col2 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 62 NOT IN ( + + col2 / - col2, + ( - - ( - ( col1 ) ) ) + ( col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT ALL + SUM( ALL - col2 ) col1 FROM tab1
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2956
SELECT ALL + SUM ( ALL - col2 ) col1 FROM tab1
----
-223

query II rowsort
SELECT + 85, col2 FROM tab0
----
85
10
85
47
85
99

query II rowsort
SELECT ALL col1 AS col0, 0 FROM tab2
----
51
0
67
0
77
0

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col1 = NULL
----

query II rowsort
SELECT ALL - - col2 AS col2, + 61 FROM tab0 AS cor0
----
10
61
47
61
99
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2961
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + 80 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2961
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + 80 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2962
SELECT - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) - 26 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-26

skipif mysql # not compatible
query I rowsort label-2962
SELECT - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) - 26 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-26

query I rowsort
SELECT DISTINCT 30 * + + 51 FROM tab0, tab2 AS cor0
----
1530

query I rowsort
SELECT DISTINCT ( - 41 ) + + 97 FROM tab2 AS cor0
----
56

query I rowsort
SELECT DISTINCT - - ( + + col0 ) + col1 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT - SUM( ALL 36 ) FROM tab0 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-2966
SELECT - SUM ( ALL 36 ) FROM tab0 AS cor0
----
-108

query I rowsort
SELECT DISTINCT - col2 + ( + 2 ) AS col2 FROM tab0 AS cor0
----
-45
-8
-97

query I rowsort
SELECT ALL 11 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT ALL MAX( + 50 ) + + 90 FROM tab1 AS cor0
----
140

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL MAX ( + 50 ) + + 90 FROM tab1 AS cor0
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-2970
SELECT ALL - - col0 DIV - 76 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL - - col0 / - 76 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 * ( + - 76 ) + - 13 AS col2 FROM tab2
----
-1761
-3053
-4421

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT ALL MAX( - 2 ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-2972
SELECT ALL MAX ( - 2 ) FROM tab0
----
-2

query I rowsort
SELECT DISTINCT 45 AS col1 FROM tab0 WHERE NOT ( - + col2 ) = NULL
----

query I rowsort
SELECT DISTINCT ( + + 48 ) AS col2 FROM tab2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT ALL + + MAX( DISTINCT col2 ) + - COUNT( ALL col1 ) AS col2 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL + + MAX ( DISTINCT col2 ) + - COUNT ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT ALL + ( - ( + + COUNT( * ) ) ) * 75 AS col2 FROM tab0 cor0
----
-225

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL + ( - ( + + COUNT ( * ) ) ) * 75 AS col2 FROM tab0 cor0
----
-225

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( ( NULL ) NOT BETWEEN ( - 33 * - col2 / 31 ) AND + col1 * 83 + 85 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2978
SELECT ALL - 8, COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col2 BETWEEN ( NULL ) AND NULL
----
-8
0

skipif mysql # not compatible
query II rowsort label-2978
SELECT ALL - 8, COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col2 BETWEEN ( NULL ) AND NULL
----
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT DISTINCT - SUM( ALL col2 ) + - + 78 + - + 4 AS col2 FROM tab0 AS cor0
----
-238

skipif mysql # not compatible
query I rowsort label-2979
SELECT DISTINCT - SUM ( ALL col2 ) + - + 78 + - + 4 AS col2 FROM tab0 AS cor0
----
-238

query I rowsort
SELECT - 18 - 48 FROM tab1
----
-66
-66
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2981
SELECT - ( - 60 ) * CAST( + 82 AS SIGNED ) + - col0 AS col0 FROM tab1
----
4829
4835
4869

skipif mysql # not compatible
query I rowsort label-2981
SELECT - ( - 60 ) * CAST ( + 82 AS INTEGER ) + - col0 AS col0 FROM tab1
----
4829
4835
4869

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - 67 * - col0 + + + 59, + col1 col0 FROM tab2
----
171579
77
291509
67
70945
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT ALL - MAX( DISTINCT + col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-2983
SELECT ALL - MAX ( DISTINCT + col2 ) AS col0 FROM tab0
----
-99

query I rowsort
SELECT col1 + - 15 AS col2 FROM tab0
----
-14
6
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, 84 * 84 * - col1 * + + 79 col0 FROM tab2 AS cor0
----
51
-28428624
67
-37347408
77
-42921648

query I rowsort
SELECT ALL + ( - + 72 ) * - col0 * 6 AS col0 FROM tab1 AS cor0
----
22032
36720
39312

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT - MAX( col0 ) * + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-2987
SELECT - MAX ( col0 ) * + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
291

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * col0 BETWEEN ( - col2 ) AND NULL
----

query I rowsort
SELECT - ( + 96 ) FROM tab2 AS cor0 WHERE NOT + 63 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT - SUM( ALL + 51 ) FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-2990
SELECT - SUM ( ALL + 51 ) FROM tab2
----
-153

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN ( + 70 ) AND NULL
----

query I rowsort
SELECT DISTINCT - col0 * - col2 + col0 - + col2 * - col1 + - col0 AS col0 FROM tab0 AS cor0
----
1080
4512
9702

query I rowsort
SELECT - - 90 * + + col0 + - - col0 + - - col1 AS col1 FROM tab0 AS cor0
----
1446
7938
8828

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 21 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2995
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

skipif mysql # not compatible
query IIIIII rowsort label-2995
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT ALL + + 65 FROM tab1 AS cor0 WHERE + col1 + + col2 + + - col1 * + col1 IS NOT NULL
----
65
65
65

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + 91 AND + col2 - - + 10
----

query I rowsort
SELECT + AVG ( DISTINCT + 83 ) AS col0 FROM tab0 cor0 WHERE - col0 / 38 >= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2999
SELECT ALL - CAST( - + col2 AS SIGNED ) + - + col0 DIV - 55 AS col0 FROM tab0 AS cor0
----
100
11
47

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL - CAST ( - + col2 AS INTEGER ) + - + col0 / - 55 AS col0 FROM tab0 AS cor0
----
100
11
47

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3000
SELECT DISTINCT - - 41 * + CAST( NULL AS DECIMAL ) + + - col1 + + + 78 AS col1, + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-3000
SELECT DISTINCT - - 41 * + CAST ( NULL AS REAL ) + + - col1 + + + 78 AS col1, + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT DISTINCT COUNT( * ) - + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL < + 74
----
0

skipif mysql # not compatible
query I rowsort label-3001
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL < + 74
----
0

query II rowsort
SELECT 95 AS col1, - col0 + + 0 + + col0 * + - col0 FROM tab0 AS cor0
----
95
-240
95
-7656
95
-9506

query I rowsort
SELECT ALL - col1 + + 2 + - col0 + - col0 AS col1 FROM tab1 AS cor0
----
-114
-173
-227

query II rowsort
SELECT + - 85 AS col0, + col1 * + + col2 AS col2 FROM tab1 cor0
----
-85
1344
-85
295
-85
3196

query I rowsort
SELECT DISTINCT + + col1 + + + col0 + + - col2 FROM tab0 AS cor0
----
-1
49
98

query I rowsort
SELECT DISTINCT 61 * + 88 * col2 + + - col0 FROM tab0
----
252281
531335
53593

query I rowsort
SELECT ALL col2 * - 21 FROM tab1 WHERE NOT + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT ALL 29 + + + COUNT( * ) FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL 29 + + + COUNT ( * ) FROM tab2
----
32

query I rowsort
SELECT DISTINCT 69 AS col2 FROM tab0 WHERE NOT - - col1 - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT - - COUNT( * ) + - + 70 - - - COUNT( * ) FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-3010
SELECT - - COUNT ( * ) + - + 70 - - - COUNT ( * ) FROM tab0 AS cor0
----
-70

query I rowsort
SELECT - + col1 + ( - col0 ) AS col0 FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT 5 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3013
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT + COUNT( ALL + + col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3014
SELECT + COUNT ( ALL + + col2 ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3015
SELECT 29 AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 - + CAST( NULL AS SIGNED ) ) BETWEEN ( - 77 * - 67 + - 81 ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3015
SELECT 29 AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 - + CAST ( NULL AS INTEGER ) ) BETWEEN ( - 77 * - 67 + - 81 ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3016
SELECT DISTINCT - - col2 DIV col0 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3016
SELECT DISTINCT - - col2 / col0 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT ALL COUNT( * ) * + 77 AS col1 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL COUNT ( * ) * + 77 AS col1 FROM tab2 AS cor0
----
231

query I rowsort
SELECT + 84 * - 51 AS col0 FROM tab2 AS cor0
----
-4284
-4284
-4284

query I rowsort
SELECT 81 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3020
SELECT - MIN( + 22 ) AS col2 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3020
SELECT - MIN ( + 22 ) AS col2 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT - COUNT( * ) * - 14 AS col1 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-3021
SELECT - COUNT ( * ) * - 14 AS col1 FROM tab2 AS cor0
----
42

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( + col2 ) * 32 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3023
SELECT DISTINCT - COUNT( * ) DIV 12, 8 AS col0 FROM tab1 WHERE + 89 - + col1 = NULL
----
0
8

skipif mysql # not compatible
query II rowsort label-3023
SELECT DISTINCT - COUNT ( * ) / 12, 8 AS col0 FROM tab1 WHERE + 89 - + col1 = NULL
----
0
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT ALL SUM( DISTINCT + col0 ) * + - 20 AS col1 FROM tab1
----
-4540

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL SUM ( DISTINCT + col0 ) * + - 20 AS col1 FROM tab1
----
-4540

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT DISTINCT - MAX( + + 33 ) AS col1 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-3025
SELECT DISTINCT - MAX ( + + 33 ) AS col1 FROM tab1
----
-33

query II rowsort
SELECT col1 AS col2, col0 * + 24 AS col0 FROM tab0
----
1
2328
21
2088
81
360

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT DISTINCT - COUNT( + + 86 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT - COUNT ( + + 86 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3028
SELECT DISTINCT + CAST( + MAX( DISTINCT + 21 ) AS SIGNED ) AS col2 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT + CAST ( + MAX ( DISTINCT + 21 ) AS INTEGER ) AS col2 FROM tab0
----
21

query II rowsort
SELECT 48, + col0 AS col2 FROM tab0
----
48
15
48
87
48
97

query I rowsort
SELECT + ( - + col2 ) + - col0 * + col1 + + 85 AS col1 FROM tab1 AS cor0
----
-399
-4260
-725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3031
SELECT ALL 30 + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-21
-37
-47

skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL 30 + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-21
-37
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT ALL - ( + COUNT( * ) ) + MAX( + col1 ) AS col0 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL - ( + COUNT ( * ) ) + MAX ( + col1 ) AS col0 FROM tab0
----
78

query II rowsort
SELECT ALL + col1 - + ( - - col2 ) * + col2 AS col2, - col1 FROM tab2 AS cor0 WHERE NOT 76 + - col1 IS NULL
----
-1523
-77
-3297
-67
-478
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + col0 col0 FROM tab1 cor0 WHERE 90 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3035
SELECT DISTINCT + 84 * col0 + - 85 AS col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN - - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT + 84 * col0 + - 85 AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN - - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT + 71 + - + COUNT( - - 62 ) FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-3036
SELECT + 71 + - + COUNT ( - - 62 ) FROM tab1 AS cor0
----
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3037
SELECT ALL - + col1 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3037
SELECT ALL - + col1 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT DISTINCT + COUNT( * ) + - + 13 AS col0 FROM tab1 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3038
SELECT DISTINCT + COUNT ( * ) + - + 13 AS col0 FROM tab1 cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT ALL - 95 * - + 83 + - - ( - COUNT( * ) ) + - + 50 + + 92 AS col0 FROM tab2 AS cor0
----
7924

skipif mysql # not compatible
query I rowsort label-3039
SELECT ALL - 95 * - + 83 + - - ( - COUNT ( * ) ) + - + 50 + + 92 AS col0 FROM tab2 AS cor0
----
7924

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 <= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 + col0 + - col2 AS col1 FROM tab2 cor0
----
69
88
92

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + - col2 AND + col1
----

query I rowsort
SELECT + 7 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT 41 + - 64 FROM tab2
----
-23
-23
-23

query I rowsort
SELECT ALL - 14 / + ( + col1 ) FROM tab2 WHERE NOT + col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT ALL + 20 * COUNT( * ) col2 FROM tab2
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3046
SELECT ALL + 20 * COUNT ( * ) col2 FROM tab2
----
60

query II rowsort
SELECT ALL - col2 AS col2, + col1 * - col0 FROM tab2 WHERE + col2 IS NOT NULL
----
-23
-2346
-40
-4928
-58
-5025

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 4 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2 * - - 73 - 81 AS col2, col0 * 16 FROM tab2
----
1598
736
2839
1024
4153
1200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 * + col2 col1 FROM tab0
----
2068
4356
440

onlyif mysql # DIV for integer division: 
query I rowsort label-3051
SELECT 90 DIV + - col1 FROM tab0
----
-1
-4
-90

skipif mysql # not compatible
query I rowsort label-3051
SELECT 90 / + - col1 FROM tab0
----
-1
-4
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT DISTINCT + SUM( ALL + - col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT + SUM ( ALL + - col0 ) AS col1 FROM tab1
----
-227

query I rowsort
SELECT ALL col0 * 47 AS col2 FROM tab1 AS cor0
----
2397
3995
4277

query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT col2 * - col1 + col2 IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3055
SELECT DISTINCT - + col0 DIV + - 67 FROM tab0 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3055
SELECT DISTINCT - + col0 / + - 67 FROM tab0 cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3056
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3056
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 80 * + - 80 FROM tab0 AS cor0
----
6400

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT + MIN( DISTINCT + 39 ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-3058
SELECT + MIN ( DISTINCT + 39 ) FROM tab2
----
39

query I rowsort
SELECT col0 * + 75 FROM tab1
----
3825
6375
6825

query I rowsort
SELECT DISTINCT - 25 * + 35 * + col0 * - col1 FROM tab2
----
2052750
4312000
4396875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3061
SELECT DISTINCT 29 DIV + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3061
SELECT DISTINCT 29 / + COUNT ( * ) FROM tab1
----
9

query I rowsort
SELECT ALL + col2 * - 94 AS col0 FROM tab2
----
-2162
-3760
-5452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3063
SELECT DISTINCT CAST( + 34 AS SIGNED ) FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-3063
SELECT DISTINCT CAST ( + 34 AS INTEGER ) FROM tab1
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3064
SELECT ALL CAST( - - col2 AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL CAST ( - - col2 AS INTEGER ) FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3065
SELECT col2 * + col1 FROM tab1 WHERE NOT - - ( + + CAST( NULL AS SIGNED ) ) BETWEEN NULL AND - + col1
----

skipif mysql # not compatible
query I rowsort label-3065
SELECT col2 * + col1 FROM tab1 WHERE NOT - - ( + + CAST ( NULL AS INTEGER ) ) BETWEEN NULL AND - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3066
SELECT DISTINCT + col1 AS col1 FROM tab1 AS cor0 WHERE - CAST( col2 AS SIGNED ) * - 41 IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3066
SELECT DISTINCT + col1 AS col1 FROM tab1 AS cor0 WHERE - CAST ( col2 AS INTEGER ) * - 41 IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT - col0 + col2 * col2 * + col2 FROM tab1 AS cor0
----
205294
314341
884685

query I rowsort
SELECT + ( - + col0 ) + - - col2 AS col2 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT DISTINCT + MAX( DISTINCT + - col0 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT + MAX ( DISTINCT + - col0 ) AS col0 FROM tab1
----
-51

query I rowsort
SELECT + - 30 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query II rowsort
SELECT + - col1, + col2 * - - 41 AS col1 FROM tab1 AS cor0
----
-14
3936
-47
2788
-5
2419

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT - 66 * + MIN( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT - 66 * + MIN ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - + col2 + - col0 AS col0 FROM tab2 cor0
----
-104
-133
-69

query I rowsort
SELECT - + 79 AS col1 FROM tab2 WHERE NULL BETWEEN ( + ( + - col2 ) + - col0 / + - col0 ) AND 96
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3075
SELECT col2 + - + col1 + + ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3075
SELECT col2 + - + col1 + + ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 col2 FROM tab2 WHERE col2 NOT BETWEEN - 90 * + col0 AND - col2
----
7
7
7

query I rowsort
SELECT + 90 * - 43 + 82 * + col0 * - + col0 FROM tab2 AS cor0
----
-177382
-339742
-465120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3078
SELECT ALL - MIN( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL - MIN ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, + col0 col0 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3080
SELECT DISTINCT + col2, CAST( NULL AS SIGNED ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-3080
SELECT DISTINCT + col2, CAST ( NULL AS INTEGER ) FROM tab2
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3082
SELECT CAST( NULL AS SIGNED ) + 56 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3082
SELECT CAST ( NULL AS INTEGER ) + 56 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) NOT IN ( - + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3084
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + + 80 = NULL
----

skipif mysql # not compatible
query I rowsort label-3084
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + + 80 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT + MAX( + 94 ) AS col0 FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-3085
SELECT + MAX ( + 94 ) AS col0 FROM tab1 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-3086
SELECT + 89 col1, - COUNT( * ) * + COUNT( * ) col2 FROM tab2 cor0
----
89
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3086
SELECT + 89 col1, - COUNT ( * ) * + COUNT ( * ) col2 FROM tab2 cor0
----
89
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3087
SELECT - col1, 57 + - - ( - + CAST( NULL AS SIGNED ) ) - + + col0 AS col2 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-3087
SELECT - col1, 57 + - - ( - + CAST ( NULL AS INTEGER ) ) - + + col0 AS col2 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3088
SELECT DISTINCT col0 * - 0, + col2 * col0 DIV + 64 AS col1 FROM tab1
----
0
76
0
78
0
96

skipif mysql # not compatible
query II rowsort label-3088
SELECT DISTINCT col0 * - 0, + col2 * col0 / + 64 AS col1 FROM tab1
----
0
76
0
78
0
96

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT + - col1 * - 94 * - col0 * 16 + + 44 >= - col0 + - - 54 * - + col2
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3090
SELECT DISTINCT + 26 DIV COUNT( * ) AS col1 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-3090
SELECT DISTINCT + 26 / COUNT ( * ) AS col1 FROM tab0
----
8

query I rowsort
SELECT - ( - col1 ) * - col0 + col2 AS col1 FROM tab2
----
-2323
-4888
-4967

query II rowsort
SELECT ALL - col1 * + col2, col1 AS col0 FROM tab2
----
-1173
51
-3080
77
-3886
67

query I rowsort
SELECT 60 + - 97 FROM tab0
----
-37
-37
-37

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( NULL ) NOT IN ( + col0 * + + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT DISTINCT SUM( ALL - - 32 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT SUM ( ALL - - 32 ) AS col1 FROM tab1
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 col2 FROM tab1 AS cor0
----
29
29
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3097
SELECT DISTINCT COUNT( * ) + - + AVG ( DISTINCT + col0 ) * + CAST( NULL AS SIGNED ) + 57 + - 50 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3097
SELECT DISTINCT COUNT ( * ) + - + AVG ( DISTINCT + col0 ) * + CAST ( NULL AS INTEGER ) + 57 + - 50 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col0 - + + 40 AS col1 FROM tab2
----
-104
-115
-86

query I rowsort
SELECT DISTINCT + 61 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= ( - col1 + - col1 / + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3100
SELECT - 11 + + + COUNT( * ) DIV + SUM( ALL - 9 ) col1 FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3100
SELECT - 11 + + + COUNT ( * ) / + SUM ( ALL - 9 ) col1 FROM tab2 AS cor0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3101
SELECT - - CAST( + 8 AS SIGNED ) * - 92 + + col2 FROM tab1 AS cor0
----
-640
-668
-677

skipif mysql # not compatible
query I rowsort label-3101
SELECT - - CAST ( + 8 AS INTEGER ) * - 92 + + col2 FROM tab1 AS cor0
----
-640
-668
-677

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 28 * - col0 > NULL
----

query II rowsort
SELECT DISTINCT col2 + - + col2 + + col2 * + 94 AS col1, - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
2162
-46
3760
-64
5452
-75

query I rowsort
SELECT col1 + - - col0 AS col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT 97 + + - 2 AS col1 FROM tab1 cor0
----
95

query I rowsort
SELECT ALL 2 + 42 FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT DISTINCT - 26 - - col2 AS col1 FROM tab0
----
-16
21
73

query I rowsort
SELECT DISTINCT + - col2 AS col0 FROM tab2 WHERE NULL IS NULL
----
-23
-40
-58

query II rowsort
SELECT col0 AS col1, col0 * col2 AS col2 FROM tab2
----
46
1058
64
2560
75
4350

query II rowsort
SELECT - 65, - col2 AS col0 FROM tab1
----
-65
-59
-65
-68
-65
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, + col1 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3112
SELECT DISTINCT + + 83 * + col2 + + - col0 + + - CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3112
SELECT DISTINCT + + 83 * + col2 + + - col0 + + - CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3113
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + col1 ) NOT IN ( - 28, + 8, + col0 / + 2 + col2 + - 56 + + CAST( NULL AS SIGNED ) * + 4 * + 61 * CAST( NULL AS SIGNED ) * ( - 41 ), - col0 + + + 46 + + + 81, + - col1, + 60 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3113
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + col1 ) NOT IN ( - 28, + 8, + col0 / + 2 + col2 + - 56 + + CAST ( NULL AS INTEGER ) * + 4 * + 61 * CAST ( NULL AS INTEGER ) * ( - 41 ), - col0 + + + 46 + + + 81, + - col1, + 60 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 48 * + 90 FROM tab0 AS cor0
----
4320
4320
4320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3115
SELECT ALL - CAST( + 42 AS SIGNED ) FROM tab0
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-3115
SELECT ALL - CAST ( + 42 AS INTEGER ) FROM tab0
----
-42
-42
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 88 * + + 57 col1, 10 AS col0 FROM tab1, tab2 AS cor0
----
-5016
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3117
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= CAST( NULL AS SIGNED ) * col1
----

skipif mysql # not compatible
query III rowsort label-3117
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= CAST ( NULL AS INTEGER ) * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT + COUNT( - 46 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3118
SELECT + COUNT ( - 46 ) col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + - col0 + + + col1 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3120
SELECT - col0 * + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - col0 * - col2 * 21 - + CAST( col2 AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3120
SELECT - col0 * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - col0 * - col2 * 21 - + CAST ( col2 AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 59 + - 4 AS col2 FROM tab0 AS cor0
----
55
55
55

query I rowsort
SELECT DISTINCT - 35 + - + col1 FROM tab0 cor0
----
-116
-36
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT - - 20 + - COUNT( col2 ) FROM tab1 AS cor0 WHERE col2 + col1 / + ( - 76 ) * + col1 BETWEEN - col0 AND NULL
----
20

skipif mysql # not compatible
query I rowsort label-3123
SELECT - - 20 + - COUNT ( col2 ) FROM tab1 AS cor0 WHERE col2 + col1 / + ( - 76 ) * + col1 BETWEEN - col0 AND NULL
----
20

query I rowsort
SELECT - col2 + - 58 AS col1 FROM tab2 cor0
----
-116
-81
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3125
SELECT ALL + + 78 + + CAST( NULL AS SIGNED ) - + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL + + 78 + + CAST ( NULL AS INTEGER ) - + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3126
SELECT ALL - 93 - col2 + - col2 DIV + col1 FROM tab2
----
-116
-133
-151

skipif mysql # not compatible
query I rowsort label-3126
SELECT ALL - 93 - col2 + - col2 / + col1 FROM tab2
----
-116
-133
-151

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3127
SELECT CAST( + 16 AS SIGNED ) DIV - 94 + - col2 AS col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-3127
SELECT CAST ( + 16 AS INTEGER ) / - 94 + - col2 AS col1 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3128
SELECT + MAX( ALL 89 ) AS col2, 26 AS col2 FROM tab0 AS cor0
----
89
26

skipif mysql # not compatible
query II rowsort label-3128
SELECT + MAX ( ALL 89 ) AS col2, 26 AS col2 FROM tab0 AS cor0
----
89
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT MAX( - + ( 28 ) ) FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-3129
SELECT MAX ( - + ( 28 ) ) FROM tab1 AS cor0
----
-28

query I rowsort
SELECT - - col1 - + - ( - col1 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT - 89 - + MAX( - 85 ) FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3131
SELECT - 89 - + MAX ( - 85 ) FROM tab1 AS cor0
----
-4

query I rowsort
SELECT + col2 - - - col0 + + + col0 FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT ALL + - ( + 24 ) + + MAX( + 30 ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL + - ( + 24 ) + + MAX ( + 30 ) AS col1 FROM tab2 AS cor0
----
6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 26 + 31 IS NULL
----

query I rowsort
SELECT ALL - ( - + 76 ) FROM tab0
----
76
76
76

onlyif mysql # DIV for integer division: 
query I rowsort label-3136
SELECT - - 37 DIV + col0 AS col2 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3136
SELECT - - 37 / + col0 AS col2 FROM tab0 AS cor0
----
0
0
2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 82 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 / 74 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT DISTINCT COUNT( * ) + - COUNT( * ) * + + 57 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-504

skipif mysql # not compatible
query I rowsort label-3139
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) * + + 57 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-504

query II rowsort
SELECT - 41 AS col0, 86 * col0 FROM tab1
----
-41
4386
-41
7310
-41
7826

onlyif mysql # DIV for integer division: 
query I rowsort label-3141
SELECT + + 32 DIV - - 20 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3141
SELECT + + 32 / - - 20 AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3142
SELECT + COUNT( * ), COUNT( DISTINCT + 85 ) AS col1 FROM tab1 cor0
----
3
1

skipif mysql # not compatible
query II rowsort label-3142
SELECT + COUNT ( * ), COUNT ( DISTINCT + 85 ) AS col1 FROM tab1 cor0
----
3
1

query II rowsort
SELECT col2 AS col2, col0 AS col2 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT DISTINCT MIN( + - col0 ) / + + ( - - ( + - 10 ) ) FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3144
SELECT DISTINCT MIN ( + - col0 ) / + + ( - - ( + - 10 ) ) FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3145
SELECT ALL ( - + col1 ) + - col1 DIV - - col2 AS col1 FROM tab0 cor0
----
-1
-23
-82

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL ( - + col1 ) + - col1 / - - col2 AS col1 FROM tab0 cor0
----
-1
-23
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3146
SELECT + MIN( DISTINCT CAST( 38 AS SIGNED ) ) col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3146
SELECT + MIN ( DISTINCT CAST ( 38 AS INTEGER ) ) col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
38

query I rowsort
SELECT + col0 FROM tab1 WHERE + ( - ( + col1 ) ) <> col0 * col0 * + - col0
----
51
85
91

query I rowsort
SELECT - col0 + + 31 * 23 - - - col0 AS col2 FROM tab2
----
563
585
621

query II rowsort
SELECT DISTINCT + ( col0 ), - col0 FROM tab1
----
51
-51
85
-85
91
-91

query II rowsort
SELECT ALL col0 * - col2, 42 AS col0 FROM tab0
----
-705
42
-870
42
-9603
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 76 col1 FROM tab0
----
76

query I rowsort
SELECT ALL - 54 * + ( - 82 ) AS col0 FROM tab0
----
4428
4428
4428

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 49 <= + col1
----
15
81
47

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE + 56 IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3155
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) * + 95, col2 AS col0 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-3155
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) * + 95, col2 AS col0 FROM tab0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT - 83 - + COUNT( 85 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-92

skipif mysql # not compatible
query I rowsort label-3156
SELECT - 83 - + COUNT ( 85 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-92

query I rowsort
SELECT ALL col0 - + - col1 FROM tab0
----
108
96
98

query I rowsort
SELECT - 36 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + - 28 col1 FROM tab0 AS cor0
----
-2436
-2716
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT 25 + - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-3160
SELECT 25 + - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
28

query I rowsort
SELECT ALL - - ( - col1 ) * + + 63 FROM tab0 AS cor0
----
-1323
-5103
-63

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT - 74 IS NULL
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-3163
SELECT ALL col2 DIV 16 + col1 * + ( - - col1 ) FROM tab2 cor0
----
2602
4492
5931

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL col2 / 16 + col1 * + ( - - col1 ) FROM tab2 cor0
----
2602
4492
5931

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3164
SELECT DISTINCT + COUNT( * ) DIV + 54 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT + COUNT ( * ) / + 54 FROM tab1 AS cor0
----
0

query II rowsort
SELECT DISTINCT + - col2, - col2 * 26 AS col1 FROM tab1 AS cor0
----
-59
-1534
-68
-1768
-96
-2496

onlyif mysql # DIV for integer division: 
query I rowsort label-3166
SELECT 56 DIV 23 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-3166
SELECT 56 / 23 FROM tab0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT SUM( + - ( - col1 ) ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-3167
SELECT SUM ( + - ( - col1 ) ) AS col1 FROM tab2
----
195

query I rowsort
SELECT - 92 * - + ( - + col0 ) AS col1 FROM tab1
----
-4692
-7820
-8372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3169
SELECT ALL + CAST( NULL AS SIGNED ) * - - 70 / 51 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL + CAST ( NULL AS INTEGER ) * - - 70 / 51 AS col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2 AS col2, col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3171
SELECT DISTINCT 78 DIV - col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT 78 / - col0 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT ALL + MAX( ALL 48 ) AS col2 FROM tab0 cor0
----
48

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL + MAX ( ALL 48 ) AS col2 FROM tab0 cor0
----
48

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 71 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 IS NULL AND NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 53 * 28 - col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3176
SELECT ALL - - col2 DIV + CAST( + 91 AS SIGNED ) + - - col1 + - + col1 * + + col1 FROM tab1 AS cor0
----
-181
-20
-2162

skipif mysql # not compatible
query I rowsort label-3176
SELECT ALL - - col2 / + CAST ( + 91 AS INTEGER ) + - - col1 + - + col1 * + + col1 FROM tab1 AS cor0
----
-181
-20
-2162

query I rowsort
SELECT + 94 FROM tab2 AS cor0 WHERE NULL IS NULL
----
94
94
94

query I rowsort
SELECT + 39 * 49 FROM tab0 AS cor0
----
1911
1911
1911

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT + 47 + - 8 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT ( ( NULL IS NOT NULL ) )
----
14
47
5

query I rowsort
SELECT DISTINCT + 53 * - + col2 * 71 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 AND ( - - 75 )
----

query I rowsort
SELECT ALL - - ( + 97 ) + + - 23 FROM tab1 AS cor0
----
74
74
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3183
SELECT DISTINCT - CAST( + 95 AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-95

skipif mysql # not compatible
query I rowsort label-3183
SELECT DISTINCT - CAST ( + 95 AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-95

query II rowsort
SELECT DISTINCT + 19 - col0, col2 FROM tab1
----
-32
96
-66
59
-72
68

query III rowsort
SELECT * FROM tab2 WHERE + 42 BETWEEN - + col1 * - 43 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3186
SELECT ALL + col1 DIV col0 - col1 AS col1 FROM tab0
----
-1
-21
-76

skipif mysql # not compatible
query I rowsort label-3186
SELECT ALL + col1 / col0 - col1 AS col1 FROM tab0
----
-1
-21
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3187
SELECT + - 96 * SUM( - - col0 ) DIV + COUNT( * ) - 68 FROM tab1 cor0
----
-7332

skipif mysql # not compatible
query I rowsort label-3187
SELECT + - 96 * SUM ( - - col0 ) / + COUNT ( * ) - 68 FROM tab1 cor0
----
-7332

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 51 col0 FROM tab0 AS cor0
----
-51
-51
-51

query I rowsort
SELECT - + col1 * + - col2 * - col2 FROM tab2 AS cor0
----
-123200
-225388
-26979

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( + - col1 ) AS col0, - 35 col1 FROM tab2 AS cor0
----
-51
-35
-67
-35
-77
-35

query II rowsort
SELECT + - 73 * + 67, col2 FROM tab2 AS cor0
----
-4891
23
-4891
40
-4891
58

query I rowsort
SELECT DISTINCT 17 * 3 * - ( + col2 ) AS col0 FROM tab0
----
-2397
-5049
-510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3193
SELECT DISTINCT COUNT( * ) DIV - 56 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3193
SELECT DISTINCT COUNT ( * ) / - 56 AS col2 FROM tab1
----
0

query I rowsort
SELECT ( ( - + 70 ) ) FROM tab0
----
-70
-70
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3195
SELECT ALL * FROM tab1 WHERE + col2 / 10 - + ( - col1 ) - - + CAST( NULL AS DECIMAL ) + + 15 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3195
SELECT ALL * FROM tab1 WHERE + col2 / 10 - + ( - col1 ) - - + CAST ( NULL AS REAL ) + + 15 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3196
SELECT * FROM tab1 WHERE NOT + col1 + col1 NOT BETWEEN + col2 AND CAST( + - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3196
SELECT * FROM tab1 WHERE NOT + col1 + col1 NOT BETWEEN + col2 AND CAST ( + - col1 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3197
SELECT ALL col0 * + 38 / ( col2 ) * CAST( NULL AS SIGNED ) - - 54 * + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL col0 * + 38 / ( col2 ) * CAST ( NULL AS INTEGER ) - - 54 * + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 35 + + + col1 - - col1 + - + col0 * + 48 AS col2 FROM tab0 WHERE NULL IS NULL
----
-4169
-4689
-593

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT - MAX( + 64 ) FROM tab0 WHERE + col1 * + col1 IS NOT NULL
----
-64

skipif mysql # not compatible
query I rowsort label-3199
SELECT - MAX ( + 64 ) FROM tab0 WHERE + col1 * + col1 IS NOT NULL
----
-64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3200
SELECT + 31 DIV - + CAST( - - col0 AS SIGNED ) FROM tab0 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3200
SELECT + 31 / - + CAST ( - - col0 AS INTEGER ) FROM tab0 cor0
----
-2
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT 82 * - COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3201
SELECT 82 * - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3202
SELECT + + CAST( - col2 AS SIGNED ) + - ( + 51 ) FROM tab0 AS cor0
----
-150
-61
-98

skipif mysql # not compatible
query I rowsort label-3202
SELECT + + CAST ( - col2 AS INTEGER ) + - ( + 51 ) FROM tab0 AS cor0
----
-150
-61
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT DISTINCT COUNT( * ) + - + ( 76 ) + - - 36 col0 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3203
SELECT DISTINCT COUNT ( * ) + - + ( 76 ) + - - 36 col0 FROM tab2 AS cor0
----
-37

query I rowsort
SELECT 54 * + - col2 * + - 17 + 85 AS col2 FROM tab1 AS cor0
----
54247
62509
88213

query I rowsort
SELECT ( + - col1 ) FROM tab2 cor0 WHERE ( + 13 + + col2 / - col1 * - col0 ) = NULL
----

query I rowsort
SELECT DISTINCT col1 + - 28 AS col1 FROM tab2 AS cor0
----
23
39
49

query I rowsort
SELECT - col1 AS col2 FROM tab0 cor0 WHERE NULL < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + col2 AND NULL
----

query I rowsort
SELECT col0 + + 37 FROM tab1
----
122
128
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT SUM( - col1 ) + + 23 AS col1 FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-3210
SELECT SUM ( - col1 ) + + 23 AS col1 FROM tab1
----
-43

query I rowsort
SELECT - 94 + + 85 AS col0 FROM tab1
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT + + COUNT( * ) FROM tab1 WHERE 83 = + - col1
----
0

skipif mysql # not compatible
query I rowsort label-3212
SELECT + + COUNT ( * ) FROM tab1 WHERE 83 = + - col1
----
0

query I rowsort
SELECT col2 * + 35 FROM tab0
----
1645
3465
350

onlyif mysql # aggregate syntax: 
query II rowsort label-3214
SELECT + + COUNT( * ) AS col0, - ( - 9 ) * AVG ( ALL - col2 ) * 24 + + 63 FROM tab0 WHERE NULL IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3214
SELECT + + COUNT ( * ) AS col0, - ( - 9 ) * AVG ( ALL - col2 ) * 24 + + 63 FROM tab0 WHERE NULL IS NOT NULL
----
0
NULL

query I rowsort
SELECT DISTINCT 64 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT + + SUM( ALL col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3216
SELECT + + SUM ( ALL col2 ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT + col0 - + col2 * col0 AS col2 FROM tab0
----
-690
-783
-9506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3218
SELECT 46 AS col0, CAST( NULL AS SIGNED ) + - COUNT( * ) col0 FROM tab1
----
46
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3218
SELECT 46 AS col0, CAST ( NULL AS INTEGER ) + - COUNT ( * ) col0 FROM tab1
----
46
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col2 >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 92 + + - col0 / 8 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( col0 ) < col2 + col1 * - col1
----
15
81
47
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col0 * + + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT ALL - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 BETWEEN NULL AND col1
----
1

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 BETWEEN NULL AND col1
----
1

query I rowsort
SELECT + - AVG ( - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL < - col2 + + col1
----
NULL

query I rowsort
SELECT ALL col0 * - + col0 AS col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT - 0 * 38 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT col2 - + col0 BETWEEN NULL AND col0
----

query I rowsort
SELECT + col0 + + 38 + - - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT + 66 * - ( col1 ) AS col2 FROM tab2 AS cor0
----
-3366
-4422
-5082

query I rowsort
SELECT DISTINCT 63 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * 41 * - + ( + + col1 ) AS col1 FROM tab1
----
-1025
-8036
-90569

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT + COUNT( DISTINCT - - 3 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3233
SELECT + COUNT ( DISTINCT - - 3 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT DISTINCT + 53 * - COUNT( * ) * + COUNT( * ) AS col2 FROM tab0
----
-477

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT + 53 * - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0
----
-477

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT ALL 12 * + COUNT( * ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-3235
SELECT ALL 12 * + COUNT ( * ) FROM tab0
----
36

query I rowsort
SELECT DISTINCT col0 * - + 16 AS col1 FROM tab2
----
-1024
-1200
-736

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 = - 25
----

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT col2 / + col1 BETWEEN NULL AND - col0 * - col0
----

query II rowsort
SELECT ALL - - col1 + - - col2, + col0 FROM tab1 AS cor0
----
110
51
115
91
64
85

query I rowsort
SELECT - col1 + + + col1 + + 67 + + ( + 91 ) * - 42 FROM tab0
----
-3755
-3755
-3755

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT DISTINCT - 79 + - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-88

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT - 79 + - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT ALL COUNT( * ) + 10 AS col1 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL COUNT ( * ) + 10 AS col1 FROM tab2
----
13

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NULL IS NOT NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

query I rowsort
SELECT DISTINCT - col2 + + - ( - ( + - col1 ) ) AS col0 FROM tab1 cor0
----
-110
-115
-64

query I rowsort
SELECT - - ( + 10 ) AS col1 FROM tab0 AS cor0
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT ALL + - MAX( DISTINCT - col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL + - MAX ( DISTINCT - col2 ) FROM tab1 AS cor0
----
59

query II rowsort
SELECT ALL col1 + col1 + col0 AS col1, + col1 AS col1 FROM tab0 AS cor0
----
129
21
177
81
99
1

query II rowsort
SELECT + + col1, col1 AS col1 FROM tab0 cor0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3249
SELECT DISTINCT - col0 + + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3249
SELECT DISTINCT - col0 + + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT + + MIN( DISTINCT - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3250
SELECT + + MIN ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT ALL 95 + COUNT( ALL col1 ) AS col0 FROM tab1 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-3251
SELECT ALL 95 + COUNT ( ALL col1 ) AS col0 FROM tab1 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT DISTINCT + 93 + COUNT( * ) FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3252
SELECT DISTINCT + 93 + COUNT ( * ) FROM tab2 AS cor0
----
96

query I rowsort
SELECT ALL - 91 * ( + col2 ) - + col1 - - - col2 AS col0 FROM tab1 AS cor0
----
-5433
-6303
-8846

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( + - col0 ) IS NULL
----

query II rowsort
SELECT DISTINCT + - col0, col0 AS col2 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT DISTINCT + ( - 77 ) FROM tab2
----
-77

query I rowsort
SELECT DISTINCT col0 - + 77 FROM tab1
----
-26
14
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3258
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----
0

query I rowsort
SELECT DISTINCT - 40 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - ( 71 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 85 IS NULL
----

query I rowsort
SELECT DISTINCT - - ( + - col0 ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT - MAX( ALL + - col2 ) * - ( + ( ( + ( + SUM( - col2 ) ) ) ) ) AS col0 FROM tab0 AS cor0
----
1560

skipif mysql # not compatible
query I rowsort label-3263
SELECT - MAX ( ALL + - col2 ) * - ( + ( ( + ( + SUM ( - col2 ) ) ) ) ) AS col0 FROM tab0 AS cor0
----
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT - - SUM( DISTINCT col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + ( col0 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3264
SELECT - - SUM ( DISTINCT col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + ( col0 ) AND NULL
----
NULL

query I rowsort
SELECT ( + ( + 97 ) ) * - col0 - - ( - 72 ) AS col2 FROM tab1 AS cor0
----
-5019
-8317
-8899

query II rowsort
SELECT ALL - + col2 AS col2, + 56 FROM tab2 AS cor0
----
-23
56
-40
56
-58
56

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 83 AND NULL
----

query II rowsort
SELECT DISTINCT col0 AS col2, col2 * col1 * + + col0 AS col2 FROM tab0
----
15
57105
87
18270
97
9603

query I rowsort
SELECT + ( col1 ) * - - 91 + ( 21 ) + + 71 AS col0 FROM tab1
----
1366
4369
547

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT ALL - COUNT( * ) + + 47 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL - COUNT ( * ) + + 47 FROM tab1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT SUM( ALL - 35 ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 + + col0 * + col0 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3271
SELECT SUM ( ALL - 35 ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 + + col0 * + col0 <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT + 51 + COUNT( * ) FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3272
SELECT + 51 + COUNT ( * ) FROM tab0 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT + MAX( DISTINCT + col2 ) AS col1 FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-3273
SELECT + MAX ( DISTINCT + col2 ) AS col1 FROM tab2 cor0
----
58

query I rowsort
SELECT ALL 28 + - col0 FROM tab0 AS cor0
----
-59
-69
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab1 AS cor0 WHERE - 40 > 92 / + + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3276
SELECT ALL - + COUNT( DISTINCT col2 ) AS col0, COUNT( * ) DIV + - COUNT( * ) AS col0 FROM tab1 cor0
----
-3
-1

skipif mysql # not compatible
query II rowsort label-3276
SELECT ALL - + COUNT ( DISTINCT col2 ) AS col0, COUNT ( * ) / + - COUNT ( * ) AS col0 FROM tab1 cor0
----
-3
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 25 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT 17 + + - 90 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-3278
SELECT 17 + + - 90 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-70

query I rowsort
SELECT DISTINCT col2 * col0 + 14 FROM tab2 AS cor0
----
1072
2574
4364

query I rowsort
SELECT - col1 + + - col2 * - - col1 FROM tab1 AS cor0
----
-1358
-300
-3243

query I rowsort
SELECT DISTINCT + col2 + + col1 * + + col0 * + col0 FROM tab1 AS cor0
----
36184
36510
389275

query II rowsort
SELECT col0 + - + col1 AS col2, col2 AS col1 FROM tab2 AS cor0
----
-13
40
-5
23
8
58

query I rowsort
SELECT ALL col1 * col1 + - 57 AS col0 FROM tab1 AS cor0
----
-32
139
2152

query I rowsort
SELECT ALL + col2 + - col0 + + col1 FROM tab0 cor0
----
-56
113
3

query I rowsort
SELECT DISTINCT + + col2 + - + col0 FROM tab0 AS cor0
----
-77
2
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 34 * + - 12 + + ( + + ( - 12 ) ) col2 FROM tab1 cor0
----
-420

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 >= + 86
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE + ( - col0 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3288
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE + ( - col0 ) IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT - col1 + - - 68 - - 47 * - 25 AS col0 FROM tab0 AS cor0
----
-1108
-1128
-1188

query I rowsort
SELECT DISTINCT + 71 - col0 FROM tab2 cor0
----
-4
25
7

query I rowsort
SELECT ALL + 59 - col2 FROM tab1
----
-37
-9
0

query II rowsort
SELECT + col2 AS col2, col2 FROM tab0
----
10
10
47
47
99
99

query II rowsort
SELECT + 82 * + col1 * 38, ( + + ( + ( + col2 ) ) ) + + col2 AS col2 FROM tab2
----
158916
46
208772
116
239932
80

onlyif mysql # aggregate syntax: 
query II rowsort label-3294
SELECT - COUNT( * ) AS col2, - COUNT( * ) + - ( + 56 ) AS col2 FROM tab1 AS cor0
----
-3
-59

skipif mysql # not compatible
query II rowsort label-3294
SELECT - COUNT ( * ) AS col2, - COUNT ( * ) + - ( + 56 ) AS col2 FROM tab1 AS cor0
----
-3
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3295
SELECT ALL 29 * ( - - MAX( DISTINCT - + CAST( - 21 AS SIGNED ) ) ) FROM tab0 AS cor0
----
609

skipif mysql # not compatible
query I rowsort label-3295
SELECT ALL 29 * ( - - MAX ( DISTINCT - + CAST ( - 21 AS INTEGER ) ) ) FROM tab0 AS cor0
----
609

query I rowsort
SELECT - ( 27 ) - col0 AS col1 FROM tab0
----
-114
-124
-42

query I rowsort
SELECT DISTINCT col1 + col0 * + 10 FROM tab2 WHERE NOT NULL NOT BETWEEN ( 83 ) AND - ( col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 * + col2 + - 18 IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 9 FROM tab0 WHERE ( col0 ) <= ( - col2 + + 52 * ( col2 ) )
----
9
9
9

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND 87
----

query I rowsort
SELECT DISTINCT 92 * - col0 + - col1 AS col1 FROM tab1
----
-4706
-7825
-8419

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE ( col0 ) BETWEEN ( NULL ) AND ( col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 44 / col0 BETWEEN col0 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 20 FROM tab2 WHERE NULL IS NULL
----
20
20
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 + col0 col1 FROM tab1
----
101
61
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT ALL SUM( ALL - col0 ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL SUM ( ALL - col0 ) AS col2 FROM tab2
----
-185

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 22 BETWEEN + 47 AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 + col2 * col0 AS col0 FROM tab2 WHERE NOT ( + 85 - col0 ) BETWEEN NULL AND + col2 + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3309
SELECT ALL * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) NOT BETWEEN col0 - 17 AND col1
----

skipif mysql # not compatible
query III rowsort label-3309
SELECT ALL * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) NOT BETWEEN col0 - 17 AND col1
----

query I rowsort
SELECT DISTINCT - 5 + col2 * + 54 AS col0 FROM tab2
----
1237
2155
3127

query I rowsort
SELECT - 34 FROM tab1 WHERE NOT - col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 90 BETWEEN NULL AND 56 * - col0 - col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT ALL MAX( ALL + col0 ) AS col1 FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-3313
SELECT ALL MAX ( ALL + col0 ) AS col1 FROM tab0 cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT DISTINCT ( - MAX( DISTINCT - 93 ) ) * - COUNT( * ) + 26 AS col0 FROM tab2 cor0
----
-253

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT ( - MAX ( DISTINCT - 93 ) ) * - COUNT ( * ) + 26 AS col0 FROM tab2 cor0
----
-253

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 IN ( 20 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3316
SELECT DISTINCT CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3316
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3317
SELECT + CAST( NULL AS SIGNED ) * col0 + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3317
SELECT + CAST ( NULL AS INTEGER ) * col0 + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * 23 + ( - col1 + + col2 ) * + 68 FROM tab2
----
-1044
-846
1113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3319
SELECT ALL 53 * - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL 53 * - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT ALL ( - col2 ) FROM tab0 WHERE NOT + col2 NOT IN ( 71 )
----

query I rowsort
SELECT ALL 98 FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT DISTINCT + COUNT( - col0 ) * - ( COUNT( * ) ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT + COUNT ( - col0 ) * - ( COUNT ( * ) ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT 1 AS col2 FROM tab2 AS cor0 WHERE - col0 * col2 IN ( col2 * - ( - 64 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3324
SELECT + - col2 DIV 55 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3324
SELECT + - col2 / 55 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3325
SELECT 41 DIV + col2 AS col2 FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-3325
SELECT 41 / + col2 AS col2 FROM tab0 AS cor0
----
0
0
4

query I rowsort
SELECT DISTINCT 62 * + 48 + 97 AS col0 FROM tab2 AS cor0
----
3073

query I rowsort
SELECT DISTINCT - 3 - + 94 AS col0 FROM tab1 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3328
SELECT ALL + 53 + CAST( - 16 AS SIGNED ) FROM tab1 AS cor0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL + 53 + CAST ( - 16 AS INTEGER ) FROM tab1 AS cor0
----
37
37
37

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE 25 * col1 + + col1 IN ( col1 / + col2 )
----

query I rowsort
SELECT + - 73 - col1 * ( col1 * 93 ) AS col0 FROM tab2 AS cor0
----
-241966
-417550
-551470

query I rowsort
SELECT - col2 * - 83 - - col1 * col1 FROM tab1 cor0
----
4922
7853
8164

onlyif mysql # DIV for integer division: 
query I rowsort label-3332
SELECT + ( - col2 ) DIV + 77 - 15 FROM tab0 AS cor0
----
-15
-15
-16

skipif mysql # not compatible
query I rowsort label-3332
SELECT + ( - col2 ) / + 77 - 15 FROM tab0 AS cor0
----
-15
-15
-16

query I rowsort
SELECT DISTINCT col1 - + 34 FROM tab0
----
-13
-33
47

query I rowsort
SELECT col2 - - ( col0 ) AS col1 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT DISTINCT COUNT( * ) * + MIN( + 61 ) AS col0 FROM tab2 WHERE ( NULL ) BETWEEN ( - col1 - col1 ) AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3335
SELECT DISTINCT COUNT ( * ) * + MIN ( + 61 ) AS col0 FROM tab2 WHERE ( NULL ) BETWEEN ( - col1 - col1 ) AND ( NULL )
----
NULL

query I rowsort
SELECT ALL + col1 * - col2 * col2 + + col1 FROM tab0
----
-178848
-2079
-9800

query III rowsort
SELECT * FROM tab2 WHERE - 71 + - col1 <= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE - ( col1 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT DISTINCT COUNT( * ) - + 11 + COUNT( * ) * 18 AS col0 FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-3339
SELECT DISTINCT COUNT ( * ) - + 11 + COUNT ( * ) * 18 AS col0 FROM tab1
----
46

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE + ( + col0 ) + 24 = - col0 + + 57 OR NULL NOT IN ( 5 + + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3341
SELECT DISTINCT col2 DIV + 92 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-3341
SELECT DISTINCT col2 / + 92 FROM tab0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 10 col1 FROM tab2
----
510
670
770

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 57 ) > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT DISTINCT + - MIN( DISTINCT - - col0 ) * 20 AS col2 FROM tab2 AS cor0
----
-920

skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT + - MIN ( DISTINCT - - col0 ) * 20 AS col2 FROM tab2 AS cor0
----
-920

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3345
SELECT ALL + 52 * - - col1 - + CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3345
SELECT ALL + 52 * - - col1 - + CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT ALL COUNT( DISTINCT col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT + col2 - col1 IN ( ( + 27 ) )
----
3

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL COUNT ( DISTINCT col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT + col2 - col1 IN ( ( + 27 ) )
----
3

query I rowsort
SELECT ALL + 83 * + + 65 + + col0 FROM tab1 AS cor0
----
5446
5480
5486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3348
SELECT - CAST( NULL AS SIGNED ) * + 75 * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3348
SELECT - CAST ( NULL AS INTEGER ) * + 75 * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3349
SELECT DISTINCT - col1 DIV - + 32 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-3349
SELECT DISTINCT - col1 / - + 32 FROM tab0 AS cor0
----
0
2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < + + ( 49 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT - 41 BETWEEN NULL AND ( NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 95 IN ( - ( - col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) col0 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN ( col2 ) AND NULL
----

query I rowsort
SELECT + col0 * + ( 16 ) FROM tab1 AS cor0
----
1360
1456
816

onlyif mysql # DIV for integer division: 
query II rowsort label-3356
SELECT DISTINCT + col2 AS col1, 33 DIV + 42 FROM tab0 cor0
----
10
0
47
0
99
0

skipif mysql # not compatible
query II rowsort label-3356
SELECT DISTINCT + col2 AS col1, 33 / + 42 FROM tab0 cor0
----
10
0
47
0
99
0

query I rowsort
SELECT - 26 * + 39 * col2 + col0 FROM tab2 AS cor0
----
-23276
-40496
-58737

query I rowsort
SELECT DISTINCT - - 28 + + + 17 AS col1 FROM tab1 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT + ( + COUNT( * ) ) * - COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3359
SELECT + ( + COUNT ( * ) ) * - COUNT ( * ) FROM tab2 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 NOT IN ( - + col0 )
----

query I rowsort
SELECT + col1 + + - col1 + col2 * - + col0 * - col2 FROM tab2
----
102400
24334
252300

query I rowsort
SELECT ALL 13 * col1 AS col1 FROM tab0 WHERE NOT ( + - 92 ) NOT IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + - col2 AS col2, + col2 col1 FROM tab2
----
-116
58
-46
23
-80
40

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN + col2 AND - ( + col1 ) + - col0
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( - 10 ) IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT DISTINCT - SUM( DISTINCT col1 ) FROM tab1 AS cor0 WHERE NOT ( col2 + 51 + - col1 * - col1 ) IS NULL
----
-66

skipif mysql # not compatible
query I rowsort label-3366
SELECT DISTINCT - SUM ( DISTINCT col1 ) FROM tab1 AS cor0 WHERE NOT ( col2 + 51 + - col1 * - col1 ) IS NULL
----
-66

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 3 * + 32 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * col2 AS col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
705
870
9603

query I rowsort
SELECT ALL + col0 - ( 86 ) * - col0 AS col0 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT ALL + COUNT( + col0 ) + COUNT( * ) col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3370
SELECT ALL + COUNT ( + col0 ) + COUNT ( * ) col1 FROM tab2 AS cor0
----
6

query II rowsort
SELECT col0 AS col2, 47 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
15
47
87
47
97
47

query I rowsort
SELECT col2 * - col1 FROM tab0 cor0 WHERE NOT NULL < NULL
----

query II rowsort
SELECT DISTINCT - 76, col0 FROM tab1 cor0
----
-76
51
-76
85
-76
91

query I rowsort
SELECT ALL + 16 * - 99 FROM tab2
----
-1584
-1584
-1584

onlyif mysql # aggregate syntax: 
query II rowsort label-3375
SELECT + COUNT( * ), ( 32 ) AS col0 FROM tab2
----
3
32

skipif mysql # not compatible
query II rowsort label-3375
SELECT + COUNT ( * ), ( 32 ) AS col0 FROM tab2
----
3
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 * - col2 col0 FROM tab2
----
-2254
-3920
-5684

onlyif mysql # DIV for integer division: 
query I rowsort label-3377
SELECT DISTINCT col0 * col2 DIV col1 FROM tab1
----
1003
131
349

skipif mysql # not compatible
query I rowsort label-3377
SELECT DISTINCT col0 * col2 / col1 FROM tab1
----
1003
131
349

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 WHERE NOT - 63 * + 28 * col1 * col1 - 83 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT DISTINCT + MIN( DISTINCT + - 47 ) FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT + MIN ( DISTINCT + - 47 ) FROM tab0
----
-47

query II rowsort
SELECT ALL col1 AS col2, 54 FROM tab1 cor0
----
14
54
47
54
5
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( 7 - - - col2 + - col0 ) <= col2
----
0

skipif mysql # not compatible
query I rowsort label-3381
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( 7 - - - col2 + - col0 ) <= col2
----
0

query II rowsort
SELECT + 95, col0 FROM tab0 AS cor0
----
95
15
95
87
95
97

query II rowsort
SELECT ( + 80 ) AS col1, - col1 FROM tab1
----
80
-14
80
-47
80
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 11 + + - col1 + - 99 col1 FROM tab1
----
-115
-124
-157

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + 99 * + col2 * + + 69 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT DISTINCT + MIN( DISTINCT + ( 71 ) ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT + MIN ( DISTINCT + ( 71 ) ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3387
SELECT ALL CAST( - col1 AS SIGNED ) + - 21 FROM tab2 AS cor0
----
-72
-88
-98

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL CAST ( - col1 AS INTEGER ) + - 21 FROM tab2 AS cor0
----
-72
-88
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-3388
SELECT + + COUNT( * ) * 67 AS col0, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
201
-3

skipif mysql # not compatible
query II rowsort label-3388
SELECT + + COUNT ( * ) * 67 AS col0, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
201
-3

query I rowsort
SELECT - 92 * + col0 * + col1 * - 55 AS col0 FROM tab1 AS cor0
----
2150500
21641620
3612840

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 53 + - ( + col0 ) * col0 FROM tab1 AS cor0
----
-2654
-7278
-8334

query I rowsort
SELECT DISTINCT + col2 + + 28 - 17 * - col1 AS col2 FROM tab2 cor0
----
1225
1377
918

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT DISTINCT + + 57 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-3393
SELECT DISTINCT + + 57 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT - SUM( + 47 ) FROM tab2 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-3394
SELECT - SUM ( + 47 ) FROM tab2 AS cor0
----
-141

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * + 41 IN ( + 48 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE 59 <= col0
----
87
21
10
97
1
99

query I rowsort
SELECT ALL 4 + - 76 * col0 FROM tab1 AS cor0
----
-3872
-6456
-6912

query I rowsort
SELECT DISTINCT + - col1 + - col0 FROM tab0 WHERE + col1 IS NOT NULL
----
-108
-96
-98

query II rowsort
SELECT 94 AS col0, col0 AS col2 FROM tab2
----
94
46
94
64
94
75

query II rowsort
SELECT DISTINCT + col0 AS col2, - col1 * + col2 AS col0 FROM tab2
----
46
-1173
64
-3080
75
-3886

query II rowsort
SELECT + 54 AS col1, col2 * + col0 AS col0 FROM tab1
----
54
4896
54
5015
54
6188

query II rowsort
SELECT DISTINCT + 43 AS col0, + col0 AS col2 FROM tab0
----
43
15
43
87
43
97

query I rowsort
SELECT 68 * + 80 + 29 - - - col2 * + 75 FROM tab2
----
1119
2469
3744

query I rowsort
SELECT DISTINCT + col0 + col1 + + col1 FROM tab2 AS cor0
----
148
209
218

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT ALL - - COUNT( * ) - + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL - - COUNT ( * ) - + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
6

query I rowsort
SELECT - col1 - col1 * - col2 * - + ( - + ( 95 ) ) AS col0 FROM tab2 AS cor0
----
111384
292523
369103

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT + + SUM( ALL + + 9 ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3407
SELECT + + SUM ( ALL + + 9 ) FROM tab0 AS cor0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3408
SELECT - - 3 DIV - - 85 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3408
SELECT - - 3 / - - 85 FROM tab0 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3409
SELECT DISTINCT + CAST( - 82 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <> ( + - col2 * + col1 )
----

skipif mysql # not compatible
query I rowsort label-3409
SELECT DISTINCT + CAST ( - 82 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <> ( + - col2 * + col1 )
----

query I rowsort
SELECT + 95 * 26 AS col1 FROM tab2 AS cor0
----
2470
2470
2470

query I rowsort
SELECT - - col2 FROM tab0 AS cor0 WHERE NOT NULL > col2
----

query I rowsort
SELECT 57 * + col0 FROM tab2 AS cor0 WHERE NOT ( - ( - col2 ) ) NOT BETWEEN ( + col1 * + 94 / - 16 * + 18 * + col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT COUNT( ALL - + col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3413
SELECT COUNT ( ALL - + col2 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - ( - + col2 ) * + - col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3415
SELECT ALL * FROM tab0 WHERE + 86 + - + col0 * col1 * - CAST( NULL AS SIGNED ) + col0 + col0 >= NULL
----

skipif mysql # not compatible
query III rowsort label-3415
SELECT ALL * FROM tab0 WHERE + 86 + - + col0 * col1 * - CAST ( NULL AS INTEGER ) + col0 + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT DISTINCT COUNT( DISTINCT - + col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3416
SELECT DISTINCT COUNT ( DISTINCT - + col1 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT ( 53 ) AS col2 FROM tab1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3418
SELECT + col0 AS col0, + 18 * + 26 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-3418
SELECT + col0 AS col0, + 18 * + 26 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 24 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 * + 49 AS col2 FROM tab0 AS cor0
----
4263
4753
735

query I rowsort
SELECT ALL col1 * + 31 * + col1 FROM tab0 AS cor0
----
13671
203391
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT DISTINCT COUNT( * ) * + 64 FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-3422
SELECT DISTINCT COUNT ( * ) * + 64 FROM tab0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT COUNT( * ) + 91 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
100

skipif mysql # not compatible
query I rowsort label-3423
SELECT COUNT ( * ) + 91 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
100

query I rowsort
SELECT ALL ( - col0 ) + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - col1 * + ( 4 ) AS col0 FROM tab2 AS cor0
----
-204
-268
-308

query II rowsort
SELECT + 96 AS col1, col2 AS col1 FROM tab1 AS cor0
----
96
59
96
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT - + 75 + - - COUNT( * ) * - ( - 7 ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-3427
SELECT - + 75 + - - COUNT ( * ) * - ( - 7 ) FROM tab1 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT DISTINCT ( COUNT( * ) ) + + + 38 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-3428
SELECT DISTINCT ( COUNT ( * ) ) + + + 38 FROM tab2 AS cor0
----
41

query I rowsort
SELECT 17 + + 67 * 78 FROM tab1 AS cor0 WHERE ( NULL ) = ( NULL )
----

query I rowsort
SELECT ALL 90 + 8 + - 21 * col1 AS col2 FROM tab1
----
-196
-7
-889

query I rowsort
SELECT + + col0 + + col0 * - col0 AS col0 FROM tab2 WHERE + 6 + + + col1 IS NOT NULL
----
-2070
-4032
-5550

query I rowsort
SELECT col0 + col0 + - + 69 - + - 15 * - - col0 AS col2 FROM tab1
----
1376
1478
798

onlyif mysql # aggregate syntax: 
query II rowsort label-3433
SELECT 66 + - 39 AS col0, + MIN( ALL col1 ) FROM tab0
----
27
1

skipif mysql # not compatible
query II rowsort label-3433
SELECT 66 + - 39 AS col0, + MIN ( ALL col1 ) FROM tab0
----
27
1

query II rowsort
SELECT ALL - col2 - col1 - 17 * - 28 AS col2, - col1 FROM tab1 WHERE NOT NULL <= - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3435
SELECT ( + 3 ) DIV + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3435
SELECT ( + 3 ) / + col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - 55 * + ( + ( - + col0 ) ) FROM tab0
----
4785
5335
825

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = + col1 * + - 95
----

query I rowsort
SELECT ALL + + col0 + - ( col2 ) AS col2 FROM tab2 AS cor0
----
17
23
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * + col0 * + 53 AS col0, + 63 + - col0 col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
124338
17
261184
-1
266325
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3440
SELECT ALL - + CAST( NULL AS SIGNED ) - - COUNT( * ) * - 49 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL - + CAST ( NULL AS INTEGER ) - - COUNT ( * ) * - 49 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 IS NULL AND NULL BETWEEN NULL AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 + - 75 col0 FROM tab1
----
-22
-22
-22

query II rowsort
SELECT ALL + col1, 46 FROM tab2
----
51
46
67
46
77
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT DISTINCT + - MAX( 92 ) FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT + - MAX ( 92 ) FROM tab1 AS cor0
----
-92

query I rowsort
SELECT DISTINCT + ( - - 19 ) FROM tab2 AS cor0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3446
SELECT + SUM( - - col1 ) + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT + CAST( NULL AS SIGNED ) + CAST( col0 AS SIGNED ) IS NULL )
----
198

skipif mysql # not compatible
query I rowsort label-3446
SELECT + SUM ( - - col1 ) + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT + CAST ( NULL AS INTEGER ) + CAST ( col0 AS INTEGER ) IS NULL )
----
198

query I rowsort
SELECT DISTINCT - + 89 AS col1 FROM tab2 cor0
----
-89

query I rowsort
SELECT + + 38 / + + 86 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT col0 * - + 23 FROM tab0
----
-2001
-2231
-345

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3450
SELECT * FROM tab1 WHERE NOT NULL <= - CAST( - + 62 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3450
SELECT * FROM tab1 WHERE NOT NULL <= - CAST ( - + 62 AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3451
SELECT ALL + ( col1 ) + + + CAST( + - 3 AS SIGNED ) FROM tab2 WHERE ( + col0 ) + - - 80 * + CAST( NULL AS SIGNED ) / col0 * + col0 * + col2 IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL + ( col1 ) + + + CAST ( + - 3 AS INTEGER ) FROM tab2 WHERE ( + col0 ) + - - 80 * + CAST ( NULL AS INTEGER ) / col0 * + col0 * + col2 IN ( col1 )
----

query I rowsort
SELECT DISTINCT col2 + 46 * + col2 AS col0 FROM tab1 AS cor0
----
2773
3196
4512

query I rowsort
SELECT - ( + - 32 ) * + col2 * - col0 + + col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( + col0 ) + - col1 * - 71 + - 32 IN ( + col0 + - col0, - ( - - 83 ) )
----
-156621
-160395
-197925

query I rowsort
SELECT col1 * - + 27 FROM tab2 AS cor0
----
-1377
-1809
-2079

query I rowsort
SELECT col1 * col2 + + - col0 FROM tab2
----
1127
3016
3811

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL = NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3457
SELECT DISTINCT + COUNT( * ), 84 AS col2 FROM tab1 AS cor0
----
3
84

skipif mysql # not compatible
query II rowsort label-3457
SELECT DISTINCT + COUNT ( * ), 84 AS col2 FROM tab1 AS cor0
----
3
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3458
SELECT DISTINCT + - col2 + - + CAST( - 44 AS SIGNED ) + - 43 AS col2 FROM tab0 AS cor0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-3458
SELECT DISTINCT + - col2 + - + CAST ( - 44 AS INTEGER ) + - 43 AS col2 FROM tab0 AS cor0
----
-46
-9
-98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 <> col0 * - col0 / - - col0 + 4 / + 8 - + - col2 * - 67
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3460
SELECT ALL - - COUNT( * ) AS col1, COUNT( * ) col2 FROM tab0 cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3460
SELECT ALL - - COUNT ( * ) AS col1, COUNT ( * ) col2 FROM tab0 cor0
----
3
3

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE NULL = - col1 + col1
----

query I rowsort
SELECT ALL + col1 + + 9 * + 9 FROM tab2 AS cor0
----
132
148
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 25 * col1 col2 FROM tab1 AS cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT DISTINCT - COUNT( * ) + 82 AS col1 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-3464
SELECT DISTINCT - COUNT ( * ) + 82 AS col1 FROM tab0 AS cor0
----
79

query I rowsort
SELECT ALL + + col1 + - 82 + col1 FROM tab0 AS cor0
----
-40
-80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT DISTINCT COUNT( * ) * + 4 + - 89 AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT COUNT ( * ) * + 4 + - 89 AS col2 FROM tab2
----
-77

query I rowsort
SELECT + col2 - - col2 - - - col1 + + col2 FROM tab2
----
107
18
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3468
SELECT DISTINCT MAX( ALL - col0 ) AS col1, + ( CAST( NULL AS SIGNED ) ) FROM tab1
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-3468
SELECT DISTINCT MAX ( ALL - col0 ) AS col1, + ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
-51
NULL

query I rowsort
SELECT - col0 + - 95 AS col1 FROM tab1
----
-146
-180
-186

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT 44 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT + - COUNT( * ) + 18 AS col1 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-3471
SELECT + - COUNT ( * ) + 18 AS col1 FROM tab0 cor0
----
15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( NOT 25 + + col2 * 19 IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3473
SELECT + - 7, + ( COUNT( * ) ) AS col2 FROM tab0 cor0
----
-7
3

skipif mysql # not compatible
query II rowsort label-3473
SELECT + - 7, + ( COUNT ( * ) ) AS col2 FROM tab0 cor0
----
-7
3

query I rowsort
SELECT ALL ( + col2 ) - - + ( col2 ) AS col2 FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT ALL SUM( + ( + col0 ) ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL SUM ( + ( + col0 ) ) FROM tab1 cor0
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3476
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * - 35 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3476
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - 35 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT + COUNT( * ) * + 95 AS col0 FROM tab1 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-3477
SELECT + COUNT ( * ) * + 95 AS col0 FROM tab1 AS cor0
----
285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3478
SELECT ALL + + CAST( + 75 AS SIGNED ) FROM tab2 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL + + CAST ( + 75 AS INTEGER ) FROM tab2 AS cor0
----
75
75
75

onlyif mysql # DIV for integer division: 
query II rowsort label-3479
SELECT 44 DIV - col1 AS col1, 44 AS col0 FROM tab0 AS cor0
----
-2
44
-44
44
0
44

skipif mysql # not compatible
query II rowsort label-3479
SELECT 44 / - col1 AS col1, 44 AS col0 FROM tab0 AS cor0
----
-2
44
-44
44
0
44

query I rowsort
SELECT DISTINCT 69 * - + 5 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT ALL COUNT( ALL 57 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL COUNT ( ALL 57 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT COUNT( * ) FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-3482
SELECT COUNT ( * ) FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
3

query I rowsort
SELECT - - col0 AS col2 FROM tab0 WHERE NOT NULL < + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 8 col0 FROM tab0
----
-2
-39
-91

query I rowsort
SELECT + 43 + col1 FROM tab1
----
48
57
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3486
SELECT - CAST( NULL AS DECIMAL ) + - 63 - MIN( - 27 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3486
SELECT - CAST ( NULL AS REAL ) + - 63 - MIN ( - 27 ) FROM tab2
----
NULL

query II rowsort
SELECT + col2 AS col0, col2 AS col0 FROM tab0 cor0
----
10
10
47
47
99
99

query I rowsort
SELECT 77 + col0 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( + col0 * + - col1 + + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT ALL COUNT( ALL col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL COUNT ( ALL col0 ) AS col2 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE NULL <> - ( - col0 )
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + 50 + - col2 AS col0 FROM tab0
----
-49
3
40

query I rowsort
SELECT DISTINCT + + col0 * + col0 * - 35 * col1 AS col1 FROM tab1 AS cor0
----
-1264375
-1274490
-13622245

query II rowsort
SELECT 17 + - col0 AS col0, - col0 FROM tab2 AS cor0
----
-29
-46
-47
-64
-58
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3495
SELECT * FROM tab1 AS cor0 WHERE + col0 IN ( + col2, CAST( NULL AS DECIMAL ) * 25 )
----

skipif mysql # not compatible
query III rowsort label-3495
SELECT * FROM tab1 AS cor0 WHERE + col0 IN ( + col2, CAST ( NULL AS REAL ) * 25 )
----

query I rowsort
SELECT ALL - 15 FROM tab1 AS cor0 WHERE col2 > + col0
----
-15

query I rowsort
SELECT + col1 + - - col1 FROM tab1
----
10
28
94

query I rowsort
SELECT ALL + 78 * - - 85 FROM tab2
----
6630
6630
6630

query I rowsort
SELECT DISTINCT - ( + col2 ) - + 92 FROM tab2
----
-115
-132
-150

onlyif mysql # DIV for integer division: 
query I rowsort label-3500
SELECT DISTINCT - col1 * + col2 DIV - col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3500
SELECT DISTINCT - col1 * + col2 / - col2 FROM tab1
----
14
47
5

query III rowsort
SELECT * FROM tab2 WHERE col2 * + + 78 / - col1 = + col2
----

query I rowsort
SELECT ALL col1 * + col2 * - 91 - - col2 AS col0 FROM tab2
----
-106720
-280240
-353568

query I rowsort
SELECT - - col2 + + - 89 FROM tab1 WHERE NOT + col1 * + col2 + - col0 IS NULL OR - - 10 IS NULL
----
-21
-30
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT ALL + - COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL + - COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT 30 * col0 AS col2 FROM tab2
----
1380
1920
2250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3506
SELECT ALL CAST( NULL AS SIGNED ) - + + 34 * - + col2 + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3506
SELECT ALL CAST ( NULL AS INTEGER ) - + + 34 * - + col2 + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( col2 ) BETWEEN NULL AND - col1 + - + col2
----

query I rowsort
SELECT DISTINCT col0 - + 49 FROM tab0
----
-34
38
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT - - 30 - + - COUNT( * ) FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-3509
SELECT - - 30 - + - COUNT ( * ) FROM tab2 AS cor0
----
33

query I rowsort
SELECT ALL + col0 * - + col0 AS col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # DIV for integer division: 
query I rowsort label-3511
SELECT DISTINCT - 86 DIV + col0 FROM tab0 cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT - 86 / + col0 FROM tab0 cor0
----
-5
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3512
SELECT ALL CAST( NULL AS SIGNED ) * + 61 * + COUNT( - 56 ) * + - COUNT( * ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3512
SELECT ALL CAST ( NULL AS INTEGER ) * + 61 * + COUNT ( - 56 ) * + - COUNT ( * ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 * - col0 * + - col2 FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT + + 21 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - - col2 * + - col2 ) <= 68
----

query II rowsort
SELECT + col1, + 41 FROM tab1
----
14
41
47
41
5
41

query I rowsort
SELECT ( 55 ) AS col0 FROM tab0
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT ALL - 55 * + COUNT( * ) AS col0 FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL - 55 * + COUNT ( * ) AS col0 FROM tab2
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3519
SELECT ALL * FROM tab2 WHERE 57 * - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3519
SELECT ALL * FROM tab2 WHERE 57 * - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3520
SELECT COUNT( * ) AS col0, COUNT( * ) * - 41 FROM tab1
----
3
-123

skipif mysql # not compatible
query II rowsort label-3520
SELECT COUNT ( * ) AS col0, COUNT ( * ) * - 41 FROM tab1
----
3
-123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3521
SELECT ALL 0 + + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL 0 + + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2, + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3523
SELECT - + COUNT( * ) DIV 21 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3523
SELECT - + COUNT ( * ) / 21 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, + 20 AS col0 FROM tab1 AS cor0
----
59
20
68
20
96
20

query I rowsort
SELECT ALL - 3 * + 73 AS col0 FROM tab2 AS cor0
----
-219
-219
-219

query I rowsort
SELECT ALL - + col2 FROM tab0 AS cor0 WHERE NOT + 17 IN ( + col2, col0 * col1 )
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3527
SELECT DISTINCT - CAST( + + col2 AS SIGNED ), col1 FROM tab0
----
-10
21
-47
81
-99
1

skipif mysql # not compatible
query II rowsort label-3527
SELECT DISTINCT - CAST ( + + col2 AS INTEGER ), col1 FROM tab0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT + ( - 97 ) * + + 16 AS col1 FROM tab0
----
-1552
-1552
-1552

query I rowsort
SELECT - 89 * col0 AS col2 FROM tab2
----
-4094
-5696
-6675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3530
SELECT ALL + col1 / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL + col1 / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3531
SELECT DISTINCT col0 * - col2 AS col2, - col2 + + 76 - + CAST( - - col1 AS SIGNED ) DIV CAST( + 26 AS SIGNED ) AS col2 FROM tab2
----
-1058
52
-2560
34
-4350
16

skipif mysql # not compatible
query II rowsort label-3531
SELECT DISTINCT col0 * - col2 AS col2, - col2 + + 76 - + CAST ( - - col1 AS INTEGER ) / CAST ( + 26 AS INTEGER ) AS col2 FROM tab2
----
-1058
52
-2560
34
-4350
16

query I rowsort
SELECT ALL + - 19 FROM tab0 AS cor0 WHERE - col2 * col2 <= - + col1
----
-19
-19
-19

query I rowsort
SELECT DISTINCT + - 64 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= 57
----

query I rowsort
SELECT DISTINCT - col0 + - 90 FROM tab0
----
-105
-177
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT ALL + SUM( ALL 91 ) FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL + SUM ( ALL 91 ) FROM tab0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT + 97 * - - 33 * - + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-28809

skipif mysql # not compatible
query I rowsort label-3536
SELECT + 97 * - - 33 * - + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-28809

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3537
SELECT ALL - 7 + - - CAST( NULL AS SIGNED ) * COUNT( * ) / - - 74 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL - 7 + - - CAST ( NULL AS INTEGER ) * COUNT ( * ) / - - 74 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT + - 3 + + COUNT( * ) + - + MIN( ALL col1 ) col1 FROM tab1 AS cor0 WHERE col1 + - + col2 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3538
SELECT + - 3 + + COUNT ( * ) + - + MIN ( ALL col1 ) col1 FROM tab1 AS cor0 WHERE col1 + - + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3539
SELECT + + COUNT( * ), 49 AS col2 FROM tab1 cor0
----
3
49

skipif mysql # not compatible
query II rowsort label-3539
SELECT + + COUNT ( * ), 49 AS col2 FROM tab1 cor0
----
3
49

onlyif mysql # DIV for integer division: 
query II rowsort label-3540
SELECT - + ( - col1 ) - - 79, + 52 DIV + col1 + 19 AS col2 FROM tab0 AS cor0
----
100
21
160
19
80
71

skipif mysql # not compatible
query II rowsort label-3540
SELECT - + ( - col1 ) - - 79, + 52 / + col1 + 19 AS col2 FROM tab0 AS cor0
----
100
21
160
19
80
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3541
SELECT ALL - col1 - CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL - col1 - CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 - - - col0 + - - col2 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT ALL col0 - + ( ( + col0 ) ) + col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-3544
SELECT - 26 - - 74 AS col2, - COUNT( * ) * - + SUM( 2 ) FROM tab0
----
48
18

skipif mysql # not compatible
query II rowsort label-3544
SELECT - 26 - - 74 AS col2, - COUNT ( * ) * - + SUM ( 2 ) FROM tab0
----
48
18

query I rowsort
SELECT ALL + col2 + + - 70 AS col1 FROM tab1
----
-11
-2
26

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3547
SELECT * FROM tab1 WHERE - col1 * 85 * + - 7 * + CAST( + + col2 AS DECIMAL ) + ( - col2 ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-3547
SELECT * FROM tab1 WHERE - col1 * 85 * + - 7 * + CAST ( + + col2 AS REAL ) + ( - col2 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab2 WHERE - - col1 - - 38 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3548
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab2 WHERE - - col1 - - 38 < NULL
----
0

query I rowsort
SELECT ALL col2 + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 / - col2 * - 93 BETWEEN + col0 * col1 + - + 84 + col2 AND - 53
----
198
20
94

query I rowsort
SELECT - 62 / - + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + - col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3552
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3552
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT MIN( ALL - col1 ) * - + 18 FROM tab0 AS cor0
----
1458

skipif mysql # not compatible
query I rowsort label-3553
SELECT MIN ( ALL - col1 ) * - + 18 FROM tab0 AS cor0
----
1458

query I rowsort
SELECT DISTINCT - col2 * - 24 AS col0 FROM tab0
----
1128
2376
240

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 62 * + - col1 * + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3556
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) + + - col2 * - col2 < - + col1 * + - col2
----

skipif mysql # not compatible
query III rowsort label-3556
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) + + - col2 * - col2 < - + col1 * + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT DISTINCT SUM( + col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3557
SELECT DISTINCT SUM ( + col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 col1 FROM tab1 cor0
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT + SUM( DISTINCT + - 1 ) AS col1 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3559
SELECT + SUM ( DISTINCT + - 1 ) AS col1 FROM tab2 cor0
----
-1

query I rowsort
SELECT 97 * - + col0 AS col2 FROM tab1 AS cor0
----
-4947
-8245
-8827

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT ALL - + 62 * 22 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-4092

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL - + 62 * 22 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-4092

query II rowsort
SELECT - + col1 * + + ( col2 ) AS col0, - col1 AS col0 FROM tab1 AS cor0
----
-1344
-14
-295
-5
-3196
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT - COUNT( ALL + - 83 ) * + 23 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3563
SELECT - COUNT ( ALL + - 83 ) * + 23 FROM tab1 AS cor0
----
-69

query I rowsort
SELECT DISTINCT - 84 * - - col2 * - 13 FROM tab0
----
108108
10920
51324

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 84 IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3566
SELECT DISTINCT - col2 DIV 69 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-3566
SELECT DISTINCT - col2 / 69 AS col1 FROM tab1
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 + ( - col2 ) col0 FROM tab0
----
-10
-62
27

query I rowsort
SELECT DISTINCT + 92 AS col0 FROM tab1 WHERE NOT col0 + - 99 <> + col0 + 58
----

query I rowsort
SELECT col2 + + 5 FROM tab2
----
28
45
63

query I rowsort
SELECT DISTINCT col0 * - col1 * - - 8 + - col1 FROM tab0
----
-14637
-777
-9801

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3571
SELECT ALL - 89 / - + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT ALL - 89 / - + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > - 63
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3573
SELECT DISTINCT * FROM tab1 cor0 WHERE ( ( - CAST( 15 AS SIGNED ) ) * - - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3573
SELECT DISTINCT * FROM tab1 cor0 WHERE ( ( - CAST ( 15 AS INTEGER ) ) * - - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT - + COUNT( DISTINCT + 26 ) col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3574
SELECT - + COUNT ( DISTINCT + 26 ) col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL - ( col0 ) + + 55 AS col2 FROM tab1 AS cor0
----
-30
-36
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3576
SELECT DISTINCT + 20 / + col1 * - CAST( - + col1 AS SIGNED ) FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + col1 * col1
----

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT + 20 / + col1 * - CAST ( - + col1 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + col1 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3577
SELECT DISTINCT col2 + col2 + - - col1 + - col1 + - - col1 DIV - col1 col2 FROM tab1 AS cor0
----
117
135
191

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3577
SELECT DISTINCT col2 + col2 + - - col1 + - col1 + - - col1 / - col1 col2 FROM tab1 AS cor0
----
117
135
191

query II rowsort
SELECT - col0 + - col0 AS col1, col0 FROM tab2
----
-128
64
-150
75
-92
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3579
SELECT * FROM tab2 AS cor0 WHERE 51 * - - ( - CAST( NULL AS SIGNED ) ) + - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3579
SELECT * FROM tab2 AS cor0 WHERE 51 * - - ( - CAST ( NULL AS INTEGER ) ) + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3580
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 * CAST( NULL AS SIGNED ), + 9 + + + ( - 98 ), col2, col1 )
----

skipif mysql # not compatible
query III rowsort label-3580
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 * CAST ( NULL AS INTEGER ), + 9 + + + ( - 98 ), col2, col1 )
----

query I rowsort
SELECT ALL + col2 * - col0 + + col1 AS col0 FROM tab0 AS cor0
----
-624
-849
-9602

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 10 IS NULL
----

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE 31 <> - col0 * - + col1
----
-1
-21
-81

query II rowsort
SELECT DISTINCT 9 AS col2, col0 * col2 AS col2 FROM tab0
----
9
705
9
870
9
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab0 WHERE - - 62 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3585
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab0 WHERE - - 62 = NULL
----
0

query II rowsort
SELECT DISTINCT + 56, col1 - 28 AS col0 FROM tab0
----
56
-27
56
-7
56
53

query I rowsort
SELECT DISTINCT - + ( + + 74 ) AS col1 FROM tab1 AS cor0
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-3588
SELECT - ( col0 ) DIV - col1 + - 53 AS col0 FROM tab0 cor0 WHERE NOT ( - 59 ) + 92 * col2 DIV - col0 = + col1
----
-49
-53
44

skipif mysql # not compatible
query I rowsort label-3588
SELECT - ( col0 ) / - col1 + - 53 AS col0 FROM tab0 cor0 WHERE NOT ( - 59 ) + 92 * col2 / - col0 = + col1
----
-49
-53
44

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3589
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL BETWEEN NULL AND CAST( - col2 AS DECIMAL ) ) )
----

skipif mysql # not compatible
query III rowsort label-3589
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL BETWEEN NULL AND CAST ( - col2 AS REAL ) ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > col0 / - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT 0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * + 68 AS col2 FROM tab2 cor0
----
1564
2720
3944

query I rowsort
SELECT ALL 37 AS col0 FROM tab0 WHERE + - col1 + + ( + - col0 ) * + 0 > + col0
----

query I rowsort
SELECT DISTINCT + 36 * - col2 * + + col0 + col1 FROM tab1 AS cor0
----
-176242
-180535
-222721

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT DISTINCT SUM( + col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT 71 * - col0 * - - 28 IS NULL
----
156

skipif mysql # not compatible
query I rowsort label-3595
SELECT DISTINCT SUM ( + col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT 71 * - col0 * - - 28 IS NULL
----
156

query II rowsort
SELECT ( - col2 ) AS col2, - col0 FROM tab2 AS cor0
----
-23
-46
-40
-64
-58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT ALL 80 * COUNT( * ) FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL 80 * COUNT ( * ) FROM tab1
----
240

query I rowsort
SELECT ALL - 0 FROM tab0 WHERE NOT ( NOT col1 < + 68 )
----
0
0

query I rowsort
SELECT ALL - ( 34 ) AS col1 FROM tab2
----
-34
-34
-34

query I rowsort
SELECT 21 * + + 44 * col2 AS col0 FROM tab0
----
43428
91476
9240

query II rowsort
SELECT - 99, + 12 AS col0 FROM tab1
----
-99
12
-99
12
-99
12

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( col2 ) + - 64 = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT DISTINCT - 23 + + SUM( - - 46 ) col2 FROM tab0 AS cor0
----
115

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3603
SELECT DISTINCT - 23 + + SUM ( - - 46 ) col2 FROM tab0 AS cor0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT DISTINCT 11 - COUNT( * ) AS col0 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-3604
SELECT DISTINCT 11 - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
8

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 31 <= NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT COUNT( * ) * - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3607
SELECT COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL - 44 * 2 FROM tab2
----
-88
-88
-88

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT + - col2 <= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3610
SELECT ALL col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col1 IS NULL )
----

query I rowsort
SELECT 85 - - col2 + - col1 AS col2 FROM tab1 cor0
----
106
139
167

query II rowsort
SELECT DISTINCT + + col0, - 79 AS col2 FROM tab1 AS cor0
----
51
-79
85
-79
91
-79

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col2 > + col0
----

query I rowsort
SELECT + - col2 - - - 4 + - + col0 FROM tab1 AS cor0
----
-148
-151
-163

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3616
SELECT * FROM tab2 AS cor0 WHERE NOT ( - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) > + 12 )
----

skipif mysql # not compatible
query III rowsort label-3616
SELECT * FROM tab2 AS cor0 WHERE NOT ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) > + 12 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3617
SELECT - ( 82 ) DIV col1 * - ( + 14 ) FROM tab0 AS cor0
----
1148
14
42

skipif mysql # not compatible
query I rowsort label-3617
SELECT - ( 82 ) / col1 * - ( + 14 ) FROM tab0 AS cor0
----
1148
14
42

onlyif mysql # DIV for integer division: 
query I rowsort label-3618
SELECT ALL + 55 DIV col0 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL + 55 / col0 AS col1 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3619
SELECT DISTINCT * FROM tab1 WHERE NOT + - 7 / CAST( - + ( col2 ) AS DECIMAL ) - col1 + + - col0 + - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3619
SELECT DISTINCT * FROM tab1 WHERE NOT + - 7 / CAST ( - + ( col2 ) AS REAL ) - col1 + + - col0 + - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 57 * ( + 56 ) * - + col2 * + 73 FROM tab0 AS cor0
----
-10951752
-23068584
-2330160

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT ALL - 66 * - + COUNT( * ) FROM tab1 cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL - 66 * - + COUNT ( * ) FROM tab1 cor0 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT ALL - COUNT( ALL + - 30 ) FROM tab2, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL - COUNT ( ALL + - 30 ) FROM tab2, tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3623
SELECT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT DISTINCT SUM( DISTINCT - ( - + ( col2 ) ) ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3624
SELECT DISTINCT SUM ( DISTINCT - ( - + ( col2 ) ) ) FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT DISTINCT + SUM( + 35 ) AS col2 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-3625
SELECT DISTINCT + SUM ( + 35 ) AS col2 FROM tab1 AS cor0
----
105

query I rowsort
SELECT - 27 FROM tab0 AS cor0 WHERE NOT NULL = - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3627
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN - col1 * + col1 - - + col1 + - 86 + - + col2 + - + col0 * + col0 / + col0 AND - col1
----

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN - col1 * + col1 - - + col1 + - 86 + - + col2 + - + col0 * + col0 / + col0 AND - col1
----

query II rowsort
SELECT + 29 AS col0, 88 + - col2 AS col2 FROM tab2 AS cor0
----
29
30
29
48
29
65

query II rowsort
SELECT 27 AS col1, col1 FROM tab0 AS cor0 WHERE NOT + col2 < + col1
----
27
1

query II rowsort
SELECT + - col1 AS col2, + col1 / + + col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3631
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3631
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 96 + + - ( - col2 ) * + col1 AS col2 FROM tab2 AS cor0
----
1269
3176
3982

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3633
SELECT ALL + MIN( ALL - CAST( - + col2 AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT + col2 + col0 * + col2 + - - col2 IS NULL
----
10

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL + MIN ( ALL - CAST ( - + col2 AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT + col2 + col0 * + col2 + - - col2 IS NULL
----
10

query I rowsort
SELECT ALL 11 + 13 FROM tab2
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT DISTINCT COUNT( * ) + - - SUM( DISTINCT - col0 ) AS col0 FROM tab1 WHERE NOT + 19 IS NULL
----
-224

skipif mysql # not compatible
query I rowsort label-3635
SELECT DISTINCT COUNT ( * ) + - - SUM ( DISTINCT - col0 ) AS col0 FROM tab1 WHERE NOT + 19 IS NULL
----
-224

query II rowsort
SELECT 49 + - 58 AS col0, 84 AS col2 FROM tab1
----
-9
84
-9
84
-9
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3637
SELECT - col2 * CAST( + + col0 AS SIGNED ) * - - 87 + - col2 AS col1 FROM tab1
----
-426048
-436364
-538424

skipif mysql # not compatible
query I rowsort label-3637
SELECT - col2 * CAST ( + + col0 AS INTEGER ) * - - 87 + - col2 AS col1 FROM tab1
----
-426048
-436364
-538424

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3638
SELECT col2 + - - 13 - + ( CAST( 79 AS SIGNED ) ) * col0 + ( + - ( - CAST( NULL AS SIGNED ) ) ) + col1 * CAST( col2 AS SIGNED ) * ( + col1 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3638
SELECT col2 + - - 13 - + ( CAST ( 79 AS INTEGER ) ) * col0 + ( + - ( - CAST ( NULL AS INTEGER ) ) ) + col1 * CAST ( col2 AS INTEGER ) * ( + col1 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT + MAX( ALL - col0 ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3639
SELECT + MAX ( ALL - col0 ) AS col2 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT 46 * COUNT( * ) FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-3640
SELECT 46 * COUNT ( * ) FROM tab2 AS cor0
----
138

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + col0 * col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3642
SELECT col1 DIV - col0 + - 35 AS col0 FROM tab2
----
-35
-36
-36

skipif mysql # not compatible
query I rowsort label-3642
SELECT col1 / - col0 + - 35 AS col0 FROM tab2
----
-35
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT - 68 + COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-3643
SELECT - 68 + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + + col2 ) col1 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT - 21 + - - col0 AS col0 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN - + ( col2 ) AND - - 89
----
30
64

query I rowsort
SELECT DISTINCT + ( 16 ) * - + ( + col2 ) AS col1 FROM tab1 cor0
----
-1088
-1536
-944

query II rowsort
SELECT ALL - 20 AS col2, col2 * + col1 AS col0 FROM tab2 AS cor0
----
-20
1173
-20
3080
-20
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT 23 * - + MAX( - 23 ) AS col0 FROM tab2 AS cor0
----
529

skipif mysql # not compatible
query I rowsort label-3648
SELECT 23 * - + MAX ( - 23 ) AS col0 FROM tab2 AS cor0
----
529

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3649
SELECT 40 DIV - COUNT( * ) FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-3649
SELECT 40 / - COUNT ( * ) FROM tab1
----
-13

query II rowsort
SELECT DISTINCT 14, + col2 FROM tab0
----
14
10
14
47
14
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT DISTINCT - MIN( 56 ) AS col1 FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-3651
SELECT DISTINCT - MIN ( 56 ) AS col1 FROM tab0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3652
SELECT DISTINCT + 38 * CAST( NULL AS SIGNED ) * COUNT( * ) / - - 36 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT + 38 * CAST ( NULL AS INTEGER ) * COUNT ( * ) / - - 36 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - + col0 col2 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3654
SELECT 83 AS col2, CAST( NULL AS DECIMAL ) col2 FROM tab1
----
83
NULL
83
NULL
83
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3654
SELECT 83 AS col2, CAST ( NULL AS REAL ) col2 FROM tab1
----
83
NULL
83
NULL
83
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT ALL - SUM( ALL + 78 ) AS col2 FROM tab0 cor0
----
-234

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL - SUM ( ALL + 78 ) AS col2 FROM tab0 cor0
----
-234

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3656
SELECT DISTINCT col2 AS col0, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-3656
SELECT DISTINCT col2 AS col0, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3657
SELECT ALL - - col2 + + col2 + - + 51 DIV - 97 FROM tab1 AS cor0
----
118
136
192

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL - - col2 + + col2 + - + 51 / - 97 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT - col0 * 25 * + + 94 * 17 AS col1 FROM tab0
----
-3475650
-3875150
-599250

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT ALL - + COUNT( ALL - + col1 ) FROM tab2 WHERE NOT - col0 + + - 62 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL - + COUNT ( ALL - + col1 ) FROM tab2 WHERE NOT - col0 + + - 62 IS NULL
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3660
SELECT ALL 40 * + + COUNT( * ) * + + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
360

skipif mysql # not compatible
query I rowsort label-3660
SELECT ALL 40 * + + COUNT ( * ) * + + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
360

query II rowsort
SELECT DISTINCT ( - col2 ) AS col2, col0 FROM tab1 cor0
----
-59
85
-68
91
-96
51

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 13 BETWEEN - - col2 AND col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3663
SELECT DISTINCT - COUNT( * ) + 72, - COUNT( * ) * + 88 col1 FROM tab0 AS cor0
----
69
-264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3663
SELECT DISTINCT - COUNT ( * ) + 72, - COUNT ( * ) * + 88 col1 FROM tab0 AS cor0
----
69
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT + MIN( ALL - 50 ) FROM tab2 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-3664
SELECT + MIN ( ALL - 50 ) FROM tab2 AS cor0
----
-50

query I rowsort
SELECT - col1 * - + 91 - + + col0 * col0 AS col2 FROM tab2 AS cor0
----
2525
2911
472

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT ALL - MIN( ALL + - col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL - MIN ( ALL + - col2 ) FROM tab0
----
99

query I rowsort
SELECT 70 * + col2 AS col0 FROM tab2
----
1610
2800
4060

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + col1 ) - + col2 * - - col1 + - col0 col0 FROM tab0
----
-197
-318
-3903

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, - col0 AS col1 FROM tab2
----
51
-46
67
-75
77
-64

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) > - ( - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3671
SELECT * FROM tab1 WHERE NULL NOT IN ( - - CAST( - + col0 AS SIGNED ), col1 / - 52 * col0, + col0 * - col1 + - - CAST( - + col0 AS SIGNED ) - - - 85 * + col2 * col2 / - col0 * + 86 + + + 10 )
----

skipif mysql # not compatible
query III rowsort label-3671
SELECT * FROM tab1 WHERE NULL NOT IN ( - - CAST ( - + col0 AS INTEGER ), col1 / - 52 * col0, + col0 * - col1 + - - CAST ( - + col0 AS INTEGER ) - - - 85 * + col2 * col2 / - col0 * + 86 + + + 10 )
----

query I rowsort
SELECT - col1 + - - col0 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT DISTINCT - col2 + 80 * - col1 * - col1 * - col0 FROM tab1 AS cor0
----
-16081588
-170059
-799776

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 + + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + - col2 + + col0 * - col0 AS col1, - 0 FROM tab0 AS cor0
----
-272
0
-7579
0
-9508
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3676
SELECT - col0 * col1 / - col2 + - col2 + + + col0 * - - 95 + col2 * + CAST( NULL AS SIGNED ) * - + col0 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-3676
SELECT - col0 * col1 / - col2 + - col2 + + + col0 * - - 95 + col2 * + CAST ( NULL AS INTEGER ) * - + col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT DISTINCT COUNT( * ) * COUNT( * ) * - + 55 * SUM( DISTINCT + - 26 ) * + 86 AS col0 FROM tab1 AS cor0
----
1106820

skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * - + 55 * SUM ( DISTINCT + - 26 ) * + 86 AS col0 FROM tab1 AS cor0
----
1106820

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT COUNT( * ) * - COUNT( * ) + - 7 AS col2 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-3678
SELECT COUNT ( * ) * - COUNT ( * ) + - 7 AS col2 FROM tab1 AS cor0
----
-16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3679
SELECT + col1 * + col2 * - - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3679
SELECT + col1 * + col2 * - - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * + - 25 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3681
SELECT DISTINCT 31 * - col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3681
SELECT DISTINCT 31 * - col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT DISTINCT + - COUNT( * ) col0 FROM tab1 cor0 WHERE NOT + 1 <> NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3682
SELECT DISTINCT + - COUNT ( * ) col0 FROM tab1 cor0 WHERE NOT + 1 <> NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3683
SELECT + ( col1 ) * + 15 * - + 79 FROM tab1 WHERE NOT CAST( col2 AS SIGNED ) NOT BETWEEN - + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3683
SELECT + ( col1 ) * + 15 * - + 79 FROM tab1 WHERE NOT CAST ( col2 AS INTEGER ) NOT BETWEEN - + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT + COUNT( ALL - - col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3684
SELECT + COUNT ( ALL - - col2 ) AS col1 FROM tab0
----
3

query II rowsort
SELECT ALL + 17, - col0 FROM tab1 AS cor0 WHERE NOT - 15 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 * + col1 / + col1 * - col2 + + + 67 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3687
SELECT DISTINCT + CAST( CAST( + + 33 AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-3687
SELECT DISTINCT + CAST ( CAST ( + + 33 AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, - 22 col1 FROM tab0
----
1
-22
21
-22
81
-22

query II rowsort
SELECT + 16, col2 + + col0 * + 7 AS col1 FROM tab0 AS cor0
----
16
152
16
619
16
778

query I rowsort
SELECT DISTINCT - col1 + - col1 * + - col1 + col2 AS col1 FROM tab2 AS cor0
----
2573
4480
5892

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3691
SELECT ALL col0 + - CAST( - 81 AS SIGNED ) FROM tab1 AS cor0
----
132
166
172

skipif mysql # not compatible
query I rowsort label-3691
SELECT ALL col0 + - CAST ( - 81 AS INTEGER ) FROM tab1 AS cor0
----
132
166
172

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 25 IS NULL
----

query I rowsort
SELECT - col2 + col2 + col1 - 92 * - col1 * + + col0 FROM tab2
----
215883
453453
462367

query III rowsort
SELECT * FROM tab1 WHERE + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT - 17 * - MAX( ALL - ( col2 ) ) AS col0 FROM tab0
----
-170

skipif mysql # not compatible
query I rowsort label-3695
SELECT - 17 * - MAX ( ALL - ( col2 ) ) AS col0 FROM tab0
----
-170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + - col0 * + col1 col1 FROM tab0
----
158949
18225
9409

query I rowsort
SELECT ALL - col0 + + ( 34 ) AS col2 FROM tab2 AS cor0
----
-12
-30
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT ALL + COUNT( * ) * - COUNT( * ) * - MAX( DISTINCT - col0 ) FROM tab1
----
-459

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL + COUNT ( * ) * - COUNT ( * ) * - MAX ( DISTINCT - col0 ) FROM tab1
----
-459

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 <> - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 86 FROM tab1 WHERE NOT col0 - - - col0 + - 23 - - 97 IS NULL
----
86
86
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3701
SELECT + col2 * - + ( - - 76 ) - CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3491
-739
-7523

skipif mysql # not compatible
query I rowsort label-3701
SELECT + col2 * - + ( - - 76 ) - CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3491
-739
-7523

query I rowsort
SELECT DISTINCT - 77 * + 38 AS col1 FROM tab2 AS cor0
----
-2926

query I rowsort
SELECT ALL - - col2 * - + col2 + + - 35 FROM tab1 AS cor0
----
-3516
-4659
-9251

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT DISTINCT ( - + 48 ) * - MAX( - 35 ) * 20 + - COUNT( * ) * 34 FROM tab2 AS cor0
----
-33702

skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT ( - + 48 ) * - MAX ( - 35 ) * 20 + - COUNT ( * ) * 34 FROM tab2 AS cor0
----
-33702

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3705
SELECT - COUNT( * ) DIV + - 85 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3705
SELECT - COUNT ( * ) / + - 85 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3706
SELECT ( CAST( NULL AS SIGNED ) ) * + + col2 * + col1 * - col0, - col2 AS col0 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-3706
SELECT ( CAST ( NULL AS INTEGER ) ) * + + col2 * + col1 * - col0, - col2 AS col0 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + 49 AND + 9 * - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT ALL - 78 * - COUNT( * ) AS col0 FROM tab2
----
234

skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL - 78 * - COUNT ( * ) AS col0 FROM tab2
----
234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 / + col2 col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + + 97
----

query I rowsort
SELECT ALL - - 51 AS col2 FROM tab0 AS cor0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT DISTINCT + 84 + - - MIN( col1 ) AS col0 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-3711
SELECT DISTINCT + 84 + - - MIN ( col1 ) AS col0 FROM tab1 AS cor0
----
89

query I rowsort
SELECT DISTINCT - col0 + ( + col0 ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT ALL COUNT( * ) + + 2 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3713
SELECT ALL COUNT ( * ) + + 2 FROM tab0 AS cor0
----
5

query I rowsort
SELECT - col2 + + + 96 FROM tab0 cor0
----
-3
49
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT 57 + + COUNT( * ) + ( - 43 ) AS col0 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-3715
SELECT 57 + + COUNT ( * ) + ( - 43 ) AS col0 FROM tab0
----
17

query I rowsort
SELECT ALL - ( + 68 ) FROM tab2
----
-68
-68
-68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 21 / col0 = col1 * col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 = - - col0 / + ( + 60 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT DISTINCT COUNT( * ) + - - 9 col1 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3719
SELECT DISTINCT COUNT ( * ) + - - 9 col1 FROM tab2 AS cor0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3720
SELECT * FROM tab2 AS cor0 WHERE NULL <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3720
SELECT * FROM tab2 AS cor0 WHERE NULL <= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col2 - + + col1 * col1 AS col0 FROM tab2 cor0
----
-2578
-4431
-5889

query I rowsort
SELECT DISTINCT - + col0 + + ( col2 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT 85 - - COUNT( * ) - COUNT( * ) FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-3723
SELECT 85 - - COUNT ( * ) - COUNT ( * ) FROM tab2
----
85

onlyif mysql # DIV for integer division: 
query II rowsort label-3724
SELECT DISTINCT - 83 + - + 12 - + col1 DIV + - col1, 74 * - 46 * - col0 + - col0 AS col0 FROM tab0
----
-94
296061
-94
330091
-94
51045

skipif mysql # not compatible
query II rowsort label-3724
SELECT DISTINCT - 83 + - + 12 - + col1 / + - col1, 74 * - 46 * - col0 + - col0 AS col0 FROM tab0
----
-94
296061
-94
330091
-94
51045

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT DISTINCT SUM( col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-3725
SELECT DISTINCT SUM ( col1 ) AS col0 FROM tab2
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3726
SELECT ALL col0, CAST( + + col0 AS SIGNED ) FROM tab1
----
51
51
85
85
91
91

skipif mysql # not compatible
query II rowsort label-3726
SELECT ALL col0, CAST ( + + col0 AS INTEGER ) FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT DISTINCT COUNT( * ) - - 92 FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-3727
SELECT DISTINCT COUNT ( * ) - - 92 FROM tab2
----
95

query I rowsort
SELECT + col2 + - 32 AS col0 FROM tab2
----
-9
26
8

query I rowsort
SELECT ALL ( - col2 ) - - col2 * col0 AS col2 FROM tab1
----
4800
4956
6120

query I rowsort
SELECT DISTINCT - col2 - - + 16 FROM tab0
----
-31
-83
6

query I rowsort
SELECT DISTINCT - + 78 * col1 AS col0 FROM tab1 AS cor0
----
-1092
-3666
-390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 + - col1 + - col1 col2 FROM tab1 cor0
----
-14
-80
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 col1 FROM tab1 AS cor0 WHERE NOT col1 + - 43 / col1 * + col2 IS NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 45 AS col0, - col2 col2 FROM tab0 AS cor0
----
45
-10
45
-47
45
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 4 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
4

query I rowsort
SELECT + 73 * - - 13 FROM tab2 AS cor0
----
949
949
949

query I rowsort
SELECT ALL + 63 * - - 2 FROM tab0 cor0 WHERE NULL IS NULL
----
126
126
126

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT + SUM( 12 ) FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-3738
SELECT + SUM ( 12 ) FROM tab2 AS cor0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3739
SELECT - CAST( - MAX( DISTINCT - 77 ) AS SIGNED ) * - + 96 AS col2 FROM tab2 AS cor0
----
7392

skipif mysql # not compatible
query I rowsort label-3739
SELECT - CAST ( - MAX ( DISTINCT - 77 ) AS INTEGER ) * - + 96 AS col2 FROM tab2 AS cor0
----
7392

query I rowsort
SELECT + - col1 * - 87 * + + col0 FROM tab0 AS cor0
----
105705
158949
8439

query I rowsort
SELECT + + col2 - + 93 * - - col2 FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3742
SELECT ALL + 77 + - COUNT( * ), 88 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
77
88

skipif mysql # not compatible
query II rowsort label-3742
SELECT ALL + 77 + - COUNT ( * ), 88 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
77
88

query II rowsort
SELECT DISTINCT 38, + col2 FROM tab2
----
38
23
38
40
38
58

query II rowsort
SELECT ALL - col1, + col2 AS col2 FROM tab1
----
-14
96
-47
68
-5
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3745
SELECT + 33 * + col0 / - - CAST( NULL AS SIGNED ) + - col1 - - col0 - + col1 - - 79 * + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3745
SELECT + 33 * + col0 / - - CAST ( NULL AS INTEGER ) + - col1 - - col0 - + col1 - - 79 * + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 71 + + ( - - col0 ) AS col0 FROM tab2
----
-25
-7
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3747
SELECT 32 + - + ( + CAST( NULL AS SIGNED ) ) * - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3747
SELECT 32 + - + ( + CAST ( NULL AS INTEGER ) ) * - col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3748
SELECT ALL + - col1 * + col2 * col2 * 54 + + ( - - col1 ) DIV - col2 FROM tab0 AS cor0
----
-113402
-529254
-9662167

skipif mysql # not compatible
query I rowsort label-3748
SELECT ALL + - col1 * + col2 * col2 * 54 + + ( - - col1 ) / - col2 FROM tab0 AS cor0
----
-113402
-529254
-9662167

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3749
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 / + - CAST( - col2 AS SIGNED ) + - + 87 NOT BETWEEN NULL AND + 92
----

skipif mysql # not compatible
query III rowsort label-3749
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 / + - CAST ( - col2 AS INTEGER ) + - + 87 NOT BETWEEN NULL AND + 92
----

query II rowsort
SELECT - 6, ( - col0 ) AS col0 FROM tab2 AS cor0
----
-6
-46
-6
-64
-6
-75

query I rowsort
SELECT ALL - ( + col0 ) + - col0 + col0 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab0 WHERE ( - 78 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * - col2 IN ( - 35 + 25 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 66 * col1 AS col2 FROM tab1 WHERE col1 IN ( + 95 + - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) > + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT ALL SUM( - ( col2 ) ) AS col1 FROM tab1 WHERE NOT - col2 >= ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL SUM ( - ( col2 ) ) AS col1 FROM tab1 WHERE NOT - col2 >= ( - col2 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > - 82 / + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT + SUM( ALL col0 ) * - COUNT( DISTINCT - col2 ) col1 FROM tab1
----
-681

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3758
SELECT + SUM ( ALL col0 ) * - COUNT ( DISTINCT - col2 ) col1 FROM tab1
----
-681

query I rowsort
SELECT 23 * + 68 FROM tab2
----
1564
1564
1564

query I rowsort
SELECT 60 * col0 FROM tab1
----
3060
5100
5460

query I rowsort
SELECT 29 * 67 AS col2 FROM tab1
----
1943
1943
1943

query I rowsort
SELECT + 14 * - col2 AS col1 FROM tab1
----
-1344
-826
-952

query I rowsort
SELECT 26 * col2 - col2 AS col1 FROM tab2
----
1000
1450
575

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NULL NOT IN ( ( col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3765
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( col2 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3765
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( col2 + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col1 ) >= ( col0 )
----
15
81
47

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col2 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT ALL + COUNT( * ) * 94 FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL + COUNT ( * ) * 94 FROM tab0
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT DISTINCT - 93 + COUNT( * ) col0 FROM tab1
----
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3769
SELECT DISTINCT - 93 + COUNT ( * ) col0 FROM tab1
----
-90

query I rowsort
SELECT col0 * 14 AS col0 FROM tab0
----
1218
1358
210

query I rowsort
SELECT - col2 * + ( + 62 * + col1 ) FROM tab1
----
-18290
-198152
-83328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3772
SELECT DISTINCT 97 AS col2 FROM tab0 WHERE NOT - CAST( col1 AS SIGNED ) - 8 * col1 NOT IN ( 82 )
----

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT 97 AS col2 FROM tab0 WHERE NOT - CAST ( col1 AS INTEGER ) - 8 * col1 NOT IN ( 82 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( + 28 + + col0 )
----

query I rowsort
SELECT DISTINCT col2 * - col2 + ( + col2 ) AS col0 FROM tab0 WHERE NOT - 81 IS NOT NULL
----

query I rowsort
SELECT + col2 + 0 AS col0 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT - SUM( 33 ) AS col2 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-3776
SELECT - SUM ( 33 ) AS col2 FROM tab1
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT - col2 + col2 * + col1 AS col1 FROM tab2
----
1150
3040
3828

query I rowsort
SELECT + col0 + - col1 * - 93 FROM tab0
----
190
2040
7548

query I rowsort
SELECT ALL - col2 - 43 FROM tab1
----
-102
-111
-139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 34 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3782
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 34 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3783
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * ( + 85 * + col0 ) + col2 > col2
----

skipif mysql # not compatible
query III rowsort label-3783
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * ( + 85 * + col0 ) + col2 > col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 ) BETWEEN + col0 * 73 AND ( + 48 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3785
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN col1 AND ( - CAST( + col2 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-3785
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN col1 AND ( - CAST ( + col2 AS REAL ) )
----

query I rowsort
SELECT col2 + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT DISTINCT COUNT( ALL col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3787
SELECT DISTINCT COUNT ( ALL col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT COUNT( * ) + 30 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
39

skipif mysql # not compatible
query I rowsort label-3788
SELECT COUNT ( * ) + 30 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
39

query I rowsort
SELECT 60 + + 66 AS col2 FROM tab2 cor0 WHERE NOT - 10 * + 56 BETWEEN NULL AND ( - col2 / + col1 )
----

query I rowsort
SELECT ALL + col2 * ( - col0 ) FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT + col2 * - 51 - 83 NOT BETWEEN 26 AND col2 + + col2 * - 76
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 11 IN ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 65 col2 FROM tab0 AS cor0
----
-50
22
32

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT NULL > ( 5 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND col0 * 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT + - SUM( col2 ) FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3796
SELECT + - SUM ( col2 ) FROM tab2 cor0
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-3797
SELECT ALL - col2 DIV 68 - col1 FROM tab2 WHERE NOT ( col2 ) BETWEEN ( 81 ) AND NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3797
SELECT ALL - col2 / 68 - col1 FROM tab2 WHERE NOT ( col2 ) BETWEEN ( 81 ) AND NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3798
SELECT CAST( 78 AS SIGNED ) DIV - ( + col1 ) FROM tab1
----
-1
-15
-5

skipif mysql # not compatible
query I rowsort label-3798
SELECT CAST ( 78 AS INTEGER ) / - ( + col1 ) FROM tab1
----
-1
-15
-5

query I rowsort
SELECT + col1 * + - 86 AS col2 FROM tab2
----
-4386
-5762
-6622

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND + col1 / col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT ALL - SUM( - ( - 58 ) ) AS col1 FROM tab1
----
-174

skipif mysql # not compatible
query I rowsort label-3802
SELECT ALL - SUM ( - ( - 58 ) ) AS col1 FROM tab1
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT ALL + MAX( - 92 ) FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-3803
SELECT ALL + MAX ( - 92 ) FROM tab1
----
-92

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 IN ( 73 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT - COUNT( * ) FROM tab1 WHERE ( + ( - 20 ) ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3805
SELECT - COUNT ( * ) FROM tab1 WHERE ( + ( - 20 ) ) NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3806
SELECT * FROM tab1 AS cor0 WHERE + col1 / 19 + CAST( NULL AS SIGNED ) < col1 * + 15
----

skipif mysql # not compatible
query III rowsort label-3806
SELECT * FROM tab1 AS cor0 WHERE + col1 / 19 + CAST ( NULL AS INTEGER ) < col1 * + 15
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3807
SELECT ALL col0 + + col1 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3807
SELECT ALL col0 + + col1 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 + - col0 ) IS NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE + 74 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT COUNT( * ) + COUNT( * ) AS col2 FROM tab1 cor0 WHERE ( - col2 + + 5 * + col0 ) NOT BETWEEN NULL AND ( 86 )
----
6

skipif mysql # not compatible
query I rowsort label-3810
SELECT COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE ( - col2 + + 5 * + col0 ) NOT BETWEEN NULL AND ( 86 )
----
6

query I rowsort
SELECT ALL - - 22 + - col0 FROM tab2 AS cor0
----
-24
-42
-53

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 NOT IN ( + col1 + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + ( + + col2 ) * - col1 AS col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT col2 - - col2 + - col0 + - col2 * - col2 FROM tab2 cor0
----
1616
3405
529

query I rowsort
SELECT col1 / - 41 FROM tab2 AS cor0 WHERE + 72 IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3816
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) FROM tab1 cor0
----
0

query I rowsort
SELECT ALL - - 35 * 87 FROM tab1 AS cor0
----
3045
3045
3045

query I rowsort
SELECT + - col1 - + - 24 FROM tab2 cor0
----
-27
-43
-53

query I rowsort
SELECT DISTINCT 38 * + - 24 + - - 72 + - 87 AS col1 FROM tab1 AS cor0
----
-927

query I rowsort
SELECT DISTINCT + col2 - - - ( - col1 ) + + col0 FROM tab2 AS cor0
----
120
181
200

query I rowsort
SELECT ALL - 46 + + ( + ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
-127
-47
-67

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE ( - 43 + + col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 63 IS NOT NULL AND NOT 81 NOT IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 + + + col0 col1 FROM tab1
----
-3396
-4533
-9165

query III rowsort
SELECT * FROM tab0 WHERE + - col2 > + 80 + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab0 WHERE - ( - col1 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3827
SELECT ALL - COUNT( * ) + 82 * 39 AS col0 FROM tab0 WHERE ( - col0 ) NOT BETWEEN 26 + + col2 * + CAST( NULL AS DECIMAL ) AND ( NULL )
----
3198

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL - COUNT ( * ) + 82 * 39 AS col0 FROM tab0 WHERE ( - col0 ) NOT BETWEEN 26 + + col2 * + CAST ( NULL AS REAL ) AND ( NULL )
----
3198

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3828
SELECT - 80 * col0 - - col1 AS col1 FROM tab2 WHERE NOT ( - CAST( + 79 AS DECIMAL ) + col2 ) BETWEEN NULL AND + col2
----

skipif mysql # not compatible
query I rowsort label-3828
SELECT - 80 * col0 - - col1 AS col1 FROM tab2 WHERE NOT ( - CAST ( + 79 AS REAL ) + col2 ) BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3829
SELECT ( CAST( col1 AS SIGNED ) ) FROM tab2 WHERE NOT + col2 <> + col0 * + 58
----

skipif mysql # not compatible
query I rowsort label-3829
SELECT ( CAST ( col1 AS INTEGER ) ) FROM tab2 WHERE NOT + col2 <> + col0 * + 58
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 31 ) * col1 col2 FROM tab2
----
1581
2077
2387

onlyif mysql # DIV for integer division: 
query I rowsort label-3831
SELECT - 96 DIV col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3831
SELECT - 96 / col1 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 39 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 col2 FROM tab1 AS cor0
----
-57

query I rowsort
SELECT - col2 * col2 - ( 12 ) AS col2 FROM tab2 WHERE NOT + - col0 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3835
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab2 WHERE + 24 * + col2 * 99 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3835
SELECT ALL CAST ( NULL AS REAL ) FROM tab2 WHERE + 24 * + col2 * 99 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 + 11 FROM tab1 WHERE NOT NULL NOT BETWEEN ( + col0 ) AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3837
SELECT DISTINCT - - 56 DIV 34 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT - - 56 / 34 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1

query I rowsort
SELECT DISTINCT + col2 * - col1 + + + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-1196
-3120
-3944

query I rowsort
SELECT DISTINCT + - 85 + - - col0 * - + col1 FROM tab1 AS cor0
----
-4362
-510
-799

onlyif mysql # aggregate syntax: 
query II rowsort label-3840
SELECT - 33, 71 * ( COUNT( * ) ) AS col1 FROM tab0 cor0
----
-33
213

skipif mysql # not compatible
query II rowsort label-3840
SELECT - 33, 71 * ( COUNT ( * ) ) AS col1 FROM tab0 cor0
----
-33
213

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3841
SELECT - + COUNT( DISTINCT - col2 ) * COUNT( * ) DIV - + MAX( 95 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3841
SELECT - + COUNT ( DISTINCT - col2 ) * COUNT ( * ) / - + MAX ( 95 ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3842
SELECT DISTINCT - 11 AS col0, MIN( - - col2 ) * COUNT( * ) FROM tab0 AS cor0
----
-11
30

skipif mysql # not compatible
query II rowsort label-3842
SELECT DISTINCT - 11 AS col0, MIN ( - - col2 ) * COUNT ( * ) FROM tab0 AS cor0
----
-11
30

query I rowsort
SELECT ALL - 52 + - 48 AS col0 FROM tab1 AS cor0
----
-100
-100
-100

query I rowsort
SELECT ALL - 47 FROM tab2 AS cor0 WHERE NOT + ( 47 ) IN ( - - 34 )
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-3845
SELECT + 27 * - COUNT( - 61 ) AS col0, 31 AS col1 FROM tab0 cor0
----
-81
31

skipif mysql # not compatible
query II rowsort label-3845
SELECT + 27 * - COUNT ( - 61 ) AS col0, 31 AS col1 FROM tab0 cor0
----
-81
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT ALL - - 0 + + + COUNT( ALL - + 23 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3846
SELECT ALL - - 0 + + + COUNT ( ALL - + 23 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3847
SELECT DISTINCT - 13 + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT - 13 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL + - col1 * - col2 * - + col1 + + 37 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3849
SELECT + 58 + - CAST( - CAST( - 7 AS SIGNED ) AS SIGNED ) * 29 + + - col1 FROM tab0
----
-146
-166
-226

skipif mysql # not compatible
query I rowsort label-3849
SELECT + 58 + - CAST ( - CAST ( - 7 AS INTEGER ) AS INTEGER ) * 29 + + - col1 FROM tab0
----
-146
-166
-226

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 7 + - col1 * - 1 col0 FROM tab2
----
127
147
95

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col0 IN ( - 41 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT DISTINCT MIN( DISTINCT - + col0 ) + - 1 AS col0 FROM tab0
----
-98

skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT MIN ( DISTINCT - + col0 ) + - 1 AS col0 FROM tab0
----
-98

query II rowsort
SELECT col0, col0 * + - col1 FROM tab1 AS cor0
----
51
-714
85
-425
91
-4277

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3854
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * - + col0 * + 77 * - - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3854
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - + col0 * + 77 * - - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * + + ( 25 ) AS col0 FROM tab0 AS cor0
----
-2025
-25
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT DISTINCT - ( - COUNT( * ) ) + + 89 AS col2 FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-3856
SELECT DISTINCT - ( - COUNT ( * ) ) + + 89 AS col2 FROM tab1 AS cor0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3857
SELECT + MAX( ( - col1 ) ) FROM tab2 WHERE ( CAST( + col2 AS DECIMAL ) * - col2 * + col2 / - 26 ) BETWEEN ( NULL ) AND CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3857
SELECT + MAX ( ( - col1 ) ) FROM tab2 WHERE ( CAST ( + col2 AS REAL ) * - col2 * + col2 / - 26 ) BETWEEN ( NULL ) AND CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + col0 * + 76 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT ALL - COUNT( * ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NOT - col2 < ( NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NOT - col2 < ( NULL ) )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + + col1 + 52 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + + col0 * + col0 IS NULL
----

query I rowsort
SELECT ALL - col1 * + 81 FROM tab0 AS cor0
----
-1701
-6561
-81

query I rowsort
SELECT ALL - 75 * - 52 FROM tab0
----
3900
3900
3900

query I rowsort
SELECT ( + 53 ) * + - 2 * - + ( + 64 ) + + col1 AS col2 FROM tab2 WHERE NOT + 14 NOT BETWEEN - 17 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT - COUNT( - col0 ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3866
SELECT - COUNT ( - col0 ) col1 FROM tab2
----
-3

query I rowsort
SELECT + 31 * - - col0 AS col2 FROM tab2
----
1426
1984
2325

query I rowsort
SELECT DISTINCT - col2 * + col2 * + - 13 * - col2 AS col2 FROM tab1
----
-11501568
-2669927
-4087616

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col1 <> NULL
----

query II rowsort
SELECT DISTINCT col2 * + col2 * + col2 AS col0, - col2 FROM tab0
----
1000
-10
103823
-47
970299
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3871
SELECT CAST( - + col1 AS SIGNED ) AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3871
SELECT CAST ( - + col1 AS INTEGER ) AS col0 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 / ( + + col2 ) + - col2 * - col2 * - 50 + col0 BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + col1 col2 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT DISTINCT - 5 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3875
SELECT ALL CAST( - + MIN( ALL + col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3875
SELECT ALL CAST ( - + MIN ( ALL + col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3876
SELECT ( - - 67 ) + + CAST( - 85 AS SIGNED ) DIV - - col1 FROM tab2
----
66
66
66

skipif mysql # not compatible
query I rowsort label-3876
SELECT ( - - 67 ) + + CAST ( - 85 AS INTEGER ) / - - col1 FROM tab2
----
66
66
66

query IIIIII rowsort
SELECT * FROM tab2 cor0 LEFT JOIN tab2 AS cor1 ON NOT NULL IS NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT col2 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3879
SELECT ALL COUNT( * ) DIV + MAX( + 21 ) * - + SUM( + col1 ) AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL COUNT ( * ) / + MAX ( + 21 ) * - + SUM ( + col1 ) AS col0 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL + - col0 + - 94 + + ( 7 ) FROM tab1 AS cor0
----
-138
-172
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT DISTINCT + - COUNT( + col1 ) FROM tab1 AS cor0 WHERE NULL < col2 + + - col2
----
0

skipif mysql # not compatible
query I rowsort label-3881
SELECT DISTINCT + - COUNT ( + col1 ) FROM tab1 AS cor0 WHERE NULL < col2 + + - col2
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 / - col2 * - + 39 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * + + col0 * col0 + - col2 + - - 54 col0 FROM tab2 AS cor0
----
-163826
-326254
-48637

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT + MIN( DISTINCT + ( + col0 ) ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3884
SELECT + MIN ( DISTINCT + ( + col0 ) ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL - ( - 77 ) + + + 79 AS col0 FROM tab1 AS cor0
----
156
156
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT ALL - MAX( 72 ) FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL - MAX ( 72 ) FROM tab0 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT DISTINCT - COUNT( * ) * + 28 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-3887
SELECT DISTINCT - COUNT ( * ) * + 28 FROM tab2
----
-84

query III rowsort
SELECT * FROM tab1 WHERE ( + + col1 + col2 / 46 * - + col2 * + col1 + + + col1 + - - col1 ) IS NULL
----

query I rowsort
SELECT - col2 + + - 46 FROM tab0 AS cor0
----
-145
-56
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3890
SELECT 20 FROM tab0 WHERE NULL BETWEEN CAST( NULL AS SIGNED ) / + 12 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3890
SELECT 20 FROM tab0 WHERE NULL BETWEEN CAST ( NULL AS INTEGER ) / + 12 AND ( NULL )
----

query I rowsort
SELECT ALL - 41 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

onlyif mysql # DIV for integer division: 
query I rowsort label-3892
SELECT + col2 * - - col1 * - 48 - - - 86 DIV col1 * - col2 - + col1 FROM tab2 AS cor0
----
-147877
-186537
-56332

skipif mysql # not compatible
query I rowsort label-3892
SELECT + col2 * - - col1 * - 48 - - - 86 / col1 * - col2 - + col1 FROM tab2 AS cor0
----
-147877
-186537
-56332

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT ALL + SUM( DISTINCT - ( + + col0 ) ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL + SUM ( DISTINCT - ( + + col0 ) ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT - + ( + - col0 ) AS col2 FROM tab0 AS cor0
----
15
87
97

query II rowsort
SELECT ALL - 44, 39 AS col2 FROM tab2 AS cor0
----
-44
39
-44
39
-44
39

query II rowsort
SELECT DISTINCT + col2, + 47 AS col1 FROM tab1 AS cor0
----
59
47
68
47
96
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, col1 * col2 col1 FROM tab0 AS cor0
----
-10
210
-47
3807
-99
99

query I rowsort
SELECT - - 11 * - + col1 AS col1 FROM tab0 AS cor0
----
-11
-231
-891

query I rowsort
SELECT + 95 * + + col1 * - col2 + + col2 AS col1 FROM tab1 cor0
----
-127584
-27966
-303552

query I rowsort
SELECT + - ( + + col0 ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-3901
SELECT COUNT( * ) AS col2, - 32 FROM tab1 AS cor0
----
3
-32

skipif mysql # not compatible
query II rowsort label-3901
SELECT COUNT ( * ) AS col2, - 32 FROM tab1 AS cor0
----
3
-32

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= ( + 1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 7 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3904
SELECT DISTINCT - 19 * col1 * - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT - 19 * col1 * - CAST ( NULL AS REAL ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3905
SELECT ALL MAX( + 25 ), 49 col2 FROM tab1
----
25
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3905
SELECT ALL MAX ( + 25 ), 49 col2 FROM tab1
----
25
49

query I rowsort
SELECT ALL + 11 * 97 FROM tab0 cor0 WHERE col2 * - col1 <> NULL
----

query I rowsort
SELECT DISTINCT + - col1 * + col1 * - 83 FROM tab2 AS cor0
----
215883
372587
492107

query I rowsort
SELECT + - col1 * - ( - + 25 ) * - col1 * + + col0 + - col2 - - 92 FROM tab1 WHERE NOT + 42 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * - 14 AS col2 FROM tab1
----
-1190
-1274
-714

query II rowsort
SELECT + col1 AS col2, - col2 * + col0 FROM tab2
----
51
-1058
67
-4350
77
-2560

query II rowsort
SELECT DISTINCT + 23 AS col2, ( col0 ) * + 64 AS col0 FROM tab1 AS cor0
----
23
3264
23
5440
23
5824

query I rowsort
SELECT + - col0 + - 43 FROM tab0 cor0
----
-130
-140
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT DISTINCT + - COUNT( * ) + - - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3913
SELECT DISTINCT + - COUNT ( * ) + - - COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT DISTINCT - MIN( DISTINCT 48 ) FROM tab0 cor0 WHERE NULL NOT IN ( col0, 41 / + col0, col1 / + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3914
SELECT DISTINCT - MIN ( DISTINCT 48 ) FROM tab0 cor0 WHERE NULL NOT IN ( col0, 41 / + col0, col1 / + col0 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 66 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 59 + col1 AS col2 FROM tab2 AS cor0
----
110
126
136

query II rowsort
SELECT ALL col2 * + col0 * col0, + col2 + - col1 AS col1 FROM tab1 AS cor0
----
249696
82
426275
54
563108
21

query I rowsort
SELECT + 67 + - + col0 + - 57 AS col2 FROM tab1 AS cor0
----
-41
-75
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3919
SELECT DISTINCT col0 - + CAST( NULL AS SIGNED ) * col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3919
SELECT DISTINCT col0 - + CAST ( NULL AS INTEGER ) * col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3920
SELECT DISTINCT + col0 DIV + + col0 + + - col1 + - col1 AS col1, col2 col1 FROM tab0
----
-1
99
-161
47
-41
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3920
SELECT DISTINCT + col0 / + + col0 + + - col1 + - col1 AS col1, col2 col1 FROM tab0
----
-1
99
-161
47
-41
10

query I rowsort
SELECT col1 FROM tab1 WHERE - 76 IS NOT NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3922
SELECT + 33 DIV col2 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3922
SELECT + 33 / col2 AS col1 FROM tab2
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3923
SELECT + ( - CAST( + - col1 AS SIGNED ) ) FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3923
SELECT + ( - CAST ( + - col1 AS INTEGER ) ) FROM tab1
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3924
SELECT + - 92 DIV + - 8 + - col0 AS col1 FROM tab0 AS cor0
----
-4
-76
-86

skipif mysql # not compatible
query I rowsort label-3924
SELECT + - 92 / + - 8 + - col0 AS col1 FROM tab0 AS cor0
----
-4
-76
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT + ( - + ( COUNT( * ) ) ) * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-3925
SELECT + ( - + ( COUNT ( * ) ) ) * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

query I rowsort
SELECT col2 * + col2 + + 78 FROM tab2
----
1678
3442
607

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col0, + 29 col2 FROM tab1
----
14
29
47
29
5
29

query I rowsort
SELECT DISTINCT ( 5 ) AS col1 FROM tab0 AS cor0
----
5

query I rowsort
SELECT DISTINCT col2 * - 50 + + col2 * - col0 FROM tab2 cor0
----
-2208
-4560
-7250

onlyif mysql # DIV for integer division: 
query I rowsort label-3930
SELECT DISTINCT + 39 DIV + col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3930
SELECT DISTINCT + 39 / + col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT ALL - COUNT( DISTINCT + 62 ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3931
SELECT ALL - COUNT ( DISTINCT + 62 ) AS col0 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT - COUNT( * ) * 56 * - - 80 AS col1 FROM tab0 cor0
----
-13440

skipif mysql # not compatible
query I rowsort label-3933
SELECT - COUNT ( * ) * 56 * - - 80 AS col1 FROM tab0 cor0
----
-13440

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3934
SELECT ALL CAST( - col2 AS DECIMAL ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 + - 58 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3934
SELECT ALL CAST ( - col2 AS REAL ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 + - 58 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT - ( + COUNT( DISTINCT - + col2 ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3935
SELECT - ( + COUNT ( DISTINCT - + col2 ) ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 WHERE NOT col2 >= + 73
----
-59
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 14 AS col1, + 58 + - - col1 col0 FROM tab2 cor0
----
14
109
14
125
14
135

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT DISTINCT - MAX( DISTINCT - + col1 ) col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3938
SELECT DISTINCT - MAX ( DISTINCT - + col1 ) col1 FROM tab1 AS cor0
----
5

query II rowsort
SELECT ALL - col0, 85 + + 13 AS col2 FROM tab0 AS cor0
----
-15
98
-87
98
-97
98

query II rowsort
SELECT + 13 AS col1, - col2 + ( col1 ) AS col2 FROM tab1 AS cor0
----
13
-21
13
-54
13
-82

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT + 59 * 79 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3942
SELECT + + 33 FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL OR NOT - - 63 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3942
SELECT + + 33 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL OR NOT - - 63 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT DISTINCT - MIN( DISTINCT col0 ) AS col1 FROM tab1 AS cor0 WHERE 98 IS NOT NULL
----
-51

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT - MIN ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0 WHERE 98 IS NOT NULL
----
-51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 39 ) + + col1 * col0 < NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 col0 FROM tab2 AS cor0 WHERE NULL IN ( + col2 + - 49 )
----

query II rowsort
SELECT DISTINCT - - 21 + - 42, col2 AS col0 FROM tab0 AS cor0
----
-21
10
-21
47
-21
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT DISTINCT - 96 - - COUNT( ALL col2 ) + + COUNT( * ) * - 42 - - 49 * 83 FROM tab2 cor0
----
3848

skipif mysql # not compatible
query I rowsort label-3948
SELECT DISTINCT - 96 - - COUNT ( ALL col2 ) + + COUNT ( * ) * - 42 - - 49 * 83 FROM tab2 cor0
----
3848

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT DISTINCT - 81 * + COUNT( * ) + 24 FROM tab0 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT - 81 * + COUNT ( * ) + 24 FROM tab0 AS cor0
----
-219

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3950
SELECT ALL + CAST( col1 AS SIGNED ), 63 DIV + + 48 col1 FROM tab1 AS cor0
----
14
1
47
1
5
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3950
SELECT ALL + CAST ( col1 AS INTEGER ), 63 / + + 48 col1 FROM tab1 AS cor0
----
14
1
47
1
5
1

query I rowsort
SELECT + ( + ( + + 14 ) ) * + ( + col1 ) - + col1 FROM tab0
----
1053
13
273

query II rowsort
SELECT + 25 * + + 55 - + 94, col2 AS col1 FROM tab1
----
1281
59
1281
68
1281
96

query I rowsort
SELECT 97 * - - col2 - col0 * col2 AS col1 FROM tab2
----
1173
1276
1320

query II rowsort
SELECT col0 * - - col2 * - col2 - 92 AS col0, - col2 + 58 + + - 51 FROM tab2
----
-102492
-33
-24426
-16
-252392
-51

query I rowsort
SELECT DISTINCT ( + 59 ) AS col0 FROM tab0, tab2 cor0
----
59

query III rowsort
SELECT * FROM tab2 WHERE ( 79 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3957
SELECT DISTINCT - col2 DIV + 52 - + col1 FROM tab0
----
-2
-21
-81

skipif mysql # not compatible
query I rowsort label-3957
SELECT DISTINCT - col2 / + 52 - + col1 FROM tab0
----
-2
-21
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-3958
SELECT - 32 col0, COUNT( * ) FROM tab1 WHERE - + col2 >= - ( - col2 )
----
-32
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3958
SELECT - 32 col0, COUNT ( * ) FROM tab1 WHERE - + col2 >= - ( - col2 )
----
-32
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, col0 AS col2 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE NULL > 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT ALL + COUNT( * ) + + - COUNT( DISTINCT + 9 ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL + COUNT ( * ) + + - COUNT ( DISTINCT + 9 ) FROM tab1 AS cor0
----
2

query I rowsort
SELECT ALL 39 * 59 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4b5e7067af0866477fb93f83eaeb3eb7

onlyif mysql # aggregate syntax: 
query II rowsort label-3963
SELECT DISTINCT + MAX( DISTINCT - 88 ) AS col0, 93 AS col2 FROM tab0
----
-88
93

skipif mysql # not compatible
query II rowsort label-3963
SELECT DISTINCT + MAX ( DISTINCT - 88 ) AS col0, 93 AS col2 FROM tab0
----
-88
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab1 AS cor0 WHERE NOT - col2 > - - 95
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT DISTINCT ( MAX( 73 ) ) AS col0 FROM tab1 cor0
----
73

skipif mysql # not compatible
query I rowsort label-3965
SELECT DISTINCT ( MAX ( 73 ) ) AS col0 FROM tab1 cor0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-3966
SELECT - col1 DIV + - 18 AS col2 FROM tab1 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3966
SELECT - col1 / + - 18 AS col2 FROM tab1 cor0
----
0
0
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3967
SELECT ALL COUNT( * ) DIV - 67 + - - COUNT( * ) + + 56 AS col0, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
59
-3

skipif mysql # not compatible
query II rowsort label-3967
SELECT ALL COUNT ( * ) / - 67 + - - COUNT ( * ) + + 56 AS col0, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
59
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3968
SELECT + + 72 / + CAST( NULL AS DECIMAL ) * + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3968
SELECT + + 72 / + CAST ( NULL AS REAL ) * + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3969
SELECT ALL - COUNT( 92 ) DIV - MAX( DISTINCT + 47 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL - COUNT ( 92 ) / - MAX ( DISTINCT + 47 ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3970
SELECT DISTINCT - + CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT - + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT DISTINCT COUNT( ALL - 20 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT COUNT ( ALL - 20 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT + ( + 92 ) > ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT - 14 * - COUNT( * ) AS col2 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-3974
SELECT - 14 * - COUNT ( * ) AS col2 FROM tab0
----
42

query I rowsort
SELECT col2 + 0 + col0 FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT ALL + + MIN( DISTINCT + + 63 ) AS col2 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL + + MIN ( DISTINCT + + 63 ) AS col2 FROM tab0 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT SUM( - - 58 ) col2 FROM tab0 AS cor0
----
174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3977
SELECT SUM ( - - 58 ) col2 FROM tab0 AS cor0
----
174

query II rowsort
SELECT col2 AS col2, - ( col1 ) FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT MAX( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3979
SELECT MAX ( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < 59
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3981
SELECT + CAST( NULL AS DECIMAL ) col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3981
SELECT + CAST ( NULL AS REAL ) col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT + 38 + + - COUNT( * ) + + - 86 AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3982
SELECT + 38 + + - COUNT ( * ) + + - 86 AS col2 FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3983
SELECT - col0 + - + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3983
SELECT - col0 + - + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT DISTINCT - + COUNT( * ) + + 99 AS col0 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT - + COUNT ( * ) + + 99 AS col0 FROM tab2 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3986
SELECT ALL - 8 + CAST( NULL AS SIGNED ) + 43 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL - 8 + CAST ( NULL AS INTEGER ) + 43 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3987
SELECT - + ( + col2 ) * ( + + 23 ) + + CAST( - col1 AS SIGNED ), + col2 FROM tab2 AS cor0
----
-1401
58
-580
23
-997
40

skipif mysql # not compatible
query II rowsort label-3987
SELECT - + ( + col2 ) * ( + + 23 ) + + CAST ( - col1 AS INTEGER ), + col2 FROM tab2 AS cor0
----
-1401
58
-580
23
-997
40

query I rowsort
SELECT + + ( + col2 ) FROM tab0 AS cor0 WHERE - col0 * - col0 IS NOT NULL
----
10
47
99

query I rowsort
SELECT - col1 AS col2 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
-51
-67
-77

query I rowsort
SELECT ALL + col0 * 55 * + col0 + 83 AS col1 FROM tab0
----
12458
416378
517578

query I rowsort
SELECT ALL + 3 * - col1 FROM tab2
----
-153
-201
-231

query I rowsort
SELECT ALL - ( - col2 ) * - + 4 + + 53 FROM tab0
----
-135
-343
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3993
SELECT ALL - col1, CAST( col2 AS SIGNED ) FROM tab0 WHERE NOT col0 * - ( + 78 ) * + col1 + + - col0 + - col2 * - col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-3993
SELECT ALL - col1, CAST ( col2 AS INTEGER ) FROM tab0 WHERE NOT col0 * - ( + 78 ) * + col1 + + - col0 + - col2 * - col1 IS NOT NULL
----

query II rowsort
SELECT ALL - 41 * + - col2 AS col0, + col1 + + + col2 AS col0 FROM tab2
----
1640
117
2378
125
943
74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3995
SELECT ALL - col2 DIV CAST( - col0 AS SIGNED ) * - - col1 AS col0 FROM tab1 AS cor0
----
0
0
14

skipif mysql # not compatible
query I rowsort label-3995
SELECT ALL - col2 / CAST ( - col0 AS INTEGER ) * - - col1 AS col0 FROM tab1 AS cor0
----
0
0
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col1 * col2 - + + col2 IN ( 17 + - - col1 )
----
3

skipif mysql # not compatible
query I rowsort label-3996
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col1 * col2 - + + col2 IN ( 17 + - - col1 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT ALL + MIN( + + 54 ) AS col0 FROM tab2 cor0 WHERE NOT + 54 + col0 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL + MIN ( + + 54 ) AS col0 FROM tab2 cor0 WHERE NOT + 54 + col0 <= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3998
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) BETWEEN + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3998
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3999
SELECT + MAX( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3999
SELECT + MAX ( + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4000
SELECT ALL + + ( col2 ) DIV - - col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL + + ( col2 ) / - - col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4001
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 18 * col1 - CAST( - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4001
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 18 * col1 - CAST ( - col1 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + 23 FROM tab2 AS cor0 WHERE NOT col2 + + 68 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT - - SUM( - + 43 ) FROM tab2 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-4003
SELECT - - SUM ( - + 43 ) FROM tab2 AS cor0
----
-129

query I rowsort
SELECT DISTINCT 11 * - - col1 * - 95 FROM tab1
----
-14630
-49115
-5225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4005
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + MIN( DISTINCT - col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4005
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + MIN ( DISTINCT - col1 ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4006
SELECT ALL - 1 DIV - 78 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL - 1 / - 78 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT COUNT( * ) FROM tab0, tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4007
SELECT COUNT ( * ) FROM tab0, tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4008
SELECT DISTINCT - col0 + col2 DIV col0 AS col2 FROM tab0 cor0
----
-12
-87
-96

skipif mysql # not compatible
query I rowsort label-4008
SELECT DISTINCT - col0 + col2 / col0 AS col2 FROM tab0 cor0
----
-12
-87
-96

query I rowsort
SELECT DISTINCT + + col2 + + 32 FROM tab0 AS cor0
----
131
42
79

query I rowsort
SELECT + 12 * col2 + + 9 FROM tab2 AS cor0
----
285
489
705

query I rowsort
SELECT ALL - - 86 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query III rowsort
SELECT * FROM tab0 WHERE - - col0 * - col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT - 17 * SUM( + col1 ) FROM tab2 cor0
----
-3315

skipif mysql # not compatible
query I rowsort label-4013
SELECT - 17 * SUM ( + col1 ) FROM tab2 cor0
----
-3315

query I rowsort
SELECT col2 * - col0 - 43 FROM tab0 AS cor0
----
-748
-913
-9646

query I rowsort
SELECT ALL - - col2 + + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-1035
-2520
-4292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4016
SELECT CAST( COUNT( * ) AS SIGNED ) - - MAX( 6 ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4016
SELECT CAST ( COUNT ( * ) AS INTEGER ) - - MAX ( 6 ) AS col2 FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4017
SELECT ALL ( - MAX( DISTINCT - + col0 ) ) FROM tab0 WHERE + 42 + CAST( NULL AS DECIMAL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL ( - MAX ( DISTINCT - + col0 ) ) FROM tab0 WHERE + 42 + CAST ( NULL AS REAL ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - col2 - + ( - + col0 ) FROM tab0
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4019
SELECT DISTINCT + col0 DIV 79 - - ( - + col1 ) * - - col1 AS col2 FROM tab2
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-4019
SELECT DISTINCT + col0 / 79 - - ( - + col1 ) * - - col1 AS col2 FROM tab2
----
-2601
-4489
-5929

query I rowsort
SELECT ALL + col1 * - 37 * col2 FROM tab1
----
-10915
-118252
-49728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4021
SELECT MIN( - col1 ) DIV - ( + 92 ) AS col0 FROM tab2 WHERE NOT - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4021
SELECT MIN ( - col1 ) / - ( + 92 ) AS col0 FROM tab2 WHERE NOT - col0 IS NULL
----
0

query II rowsort
SELECT DISTINCT + - 29 AS col1, 26 FROM tab2 AS cor0
----
-29
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4023
SELECT ALL + col0 AS col2 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL + col0 AS col2 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 * + + 50 col0 FROM tab1
----
21250
213850
35700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4025
SELECT + - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4025
SELECT + - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT MAX( + col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
97

skipif mysql # not compatible
query I rowsort label-4026
SELECT MAX ( + col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
97

query II rowsort
SELECT + + ( - col2 ), col1 * + col0 AS col1 FROM tab2 AS cor0
----
-23
2346
-40
4928
-58
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT + COUNT( - col1 ) * + MIN( - 96 ) FROM tab1 cor0
----
-288

skipif mysql # not compatible
query I rowsort label-4028
SELECT + COUNT ( - col1 ) * + MIN ( - 96 ) FROM tab1 cor0
----
-288

query I rowsort
SELECT DISTINCT - - col0 * + 70 FROM tab2 AS cor0
----
3220
4480
5250

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT ALL + - COUNT( * ) col0 FROM tab2 cor0 WHERE 36 * + 96 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4030
SELECT ALL + - COUNT ( * ) col0 FROM tab2 cor0 WHERE 36 * + 96 IS NULL
----
0

query I rowsort
SELECT 76 * + col2 * 49 * - + col1 AS col0 FROM tab2 AS cor0
----
-11469920
-14471464
-4368252

onlyif mysql # DIV for integer division: 
query II rowsort label-4032
SELECT + col2 DIV - 52 AS col1, - 47 FROM tab1 AS cor0
----
-1
-47
-1
-47
-1
-47

skipif mysql # not compatible
query II rowsort label-4032
SELECT + col2 / - 52 AS col1, - 47 FROM tab1 AS cor0
----
-1
-47
-1
-47
-1
-47

query I rowsort
SELECT DISTINCT 8 * - 6 AS col0 FROM tab2
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4034
SELECT ALL ( 15 ) DIV + COUNT( * ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4034
SELECT ALL ( 15 ) / + COUNT ( * ) AS col0 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT + 75 * + 48 + + COUNT( * ) FROM tab1
----
3603

skipif mysql # not compatible
query I rowsort label-4035
SELECT + 75 * + 48 + + COUNT ( * ) FROM tab1
----
3603

query I rowsort
SELECT 15 * 75 AS col0 FROM tab0
----
1125
1125
1125

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT ALL + 64 + + COUNT( * ) - COUNT( * ) AS col0 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL + 64 + + COUNT ( * ) - COUNT ( * ) AS col0 FROM tab2
----
64

query I rowsort
SELECT - + ( - + 33 ) AS col1 FROM tab0 AS cor0
----
33
33
33

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 40 NOT BETWEEN + 84 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 / + col0 AS col2 FROM tab2 WHERE NOT NULL <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT + 48 + + + COUNT( * ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4041
SELECT + 48 + + + COUNT ( * ) FROM tab1
----
51

query I rowsort
SELECT DISTINCT col2 + ( + col1 ) FROM tab0
----
100
128
31

query I rowsort
SELECT 19 + - 48 + - col2 * + + 10 AS col1 FROM tab0 AS cor0
----
-1019
-129
-499

query I rowsort
SELECT ALL - col2 + + ( - - col0 ) * + col0 * + 55 AS col0 FROM tab2 AS cor0
----
116357
225240
309317

onlyif mysql # DIV for integer division: 
query II rowsort label-4045
SELECT - ( - 71 ) DIV - col2 + + col2 * + + col2 col0, 78 * + 61 FROM tab1 AS cor0
----
3480
4758
4623
4758
9216
4758

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4045
SELECT - ( - 71 ) / - col2 + + col2 * + + col2 col0, 78 * + 61 FROM tab1 AS cor0
----
3480
4758
4623
4758
9216
4758

query I rowsort
SELECT DISTINCT + + col1 - - + 3 AS col1 FROM tab2 AS cor0
----
54
70
80

query I rowsort
SELECT ALL - 41 - + 77 AS col2 FROM tab2
----
-118
-118
-118

query I rowsort
SELECT 88 * + - col0 AS col2 FROM tab2
----
-4048
-5632
-6600

query I rowsort
SELECT ALL + 14 * + 93 FROM tab0
----
1302
1302
1302

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4050
SELECT * FROM tab1 WHERE NOT - 54 / - ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4050
SELECT * FROM tab1 WHERE NOT - 54 / - ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT - SUM( ALL - - 50 ) AS col1 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-4051
SELECT - SUM ( ALL - - 50 ) AS col1 FROM tab0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT ALL - COUNT( ALL - 34 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4052
SELECT ALL - COUNT ( ALL - 34 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col1 + + col1 * + 81 + - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
4159
5436
6274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4054
SELECT + - CAST( NULL AS SIGNED ) * 50 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4054
SELECT + - CAST ( NULL AS INTEGER ) * 50 FROM tab0 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col2 * + + col1 AS col1, + col2 AS col0 FROM tab0
----
-210
10
-3807
47
-99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4056
SELECT + 80 DIV - - col0 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4056
SELECT + 80 / - - col0 AS col2 FROM tab1
----
0
0
1

query III rowsort
SELECT + 49 AS col0, 73 AS col2, + + col1 - + - ( + col2 ) FROM tab1
----
9 values hashing to 33e14f11c4cfca366c8aa2dbbc7c39e8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4058
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 + - col0 + - + col1 * - - col0 + - + 56 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4058
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 + - col0 + - + col1 * - - col0 + - + 56 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + + ( - col1 ) + - col0 + col2 col1 FROM tab0 cor0
----
-1183
-1904
-95

query I rowsort
SELECT DISTINCT - + col0 + + + col1 + + 1 FROM tab0 AS cor0
----
-65
-95
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4061
SELECT COUNT( - 91 ) FROM tab0 AS cor0 WHERE NOT col1 + - - CAST( NULL AS SIGNED ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4061
SELECT COUNT ( - 91 ) FROM tab0 AS cor0 WHERE NOT col1 + - - CAST ( NULL AS INTEGER ) <> NULL
----
0

query I rowsort
SELECT DISTINCT - + col0 * + - col1 + - 15 FROM tab2 AS cor0
----
2331
4913
5010

query II rowsort
SELECT DISTINCT + 87 * + col2, + ( 1 ) AS col1 FROM tab1 AS cor0
----
5133
1
5916
1
8352
1

query I rowsort
SELECT ALL - 13 + + - ( + 16 ) AS col1 FROM tab2
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-4065
SELECT ALL - 8 * COUNT( * ) AS col1, - MIN( ALL 92 ) FROM tab1
----
-24
-92

skipif mysql # not compatible
query II rowsort label-4065
SELECT ALL - 8 * COUNT ( * ) AS col1, - MIN ( ALL 92 ) FROM tab1
----
-24
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT - COUNT( * ) * + ( SUM( ALL - 59 ) ) AS col1 FROM tab1
----
531

skipif mysql # not compatible
query I rowsort label-4066
SELECT - COUNT ( * ) * + ( SUM ( ALL - 59 ) ) AS col1 FROM tab1
----
531

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4067
SELECT - col0 * - col2 AS col1, - col2 * CAST( NULL AS SIGNED ) col2 FROM tab0
----
705
NULL
870
NULL
9603
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4067
SELECT - col0 * - col2 AS col1, - col2 * CAST ( NULL AS INTEGER ) col2 FROM tab0
----
705
NULL
870
NULL
9603
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4068
SELECT col2 DIV col0 AS col1, + col0 FROM tab0
----
0
87
1
97
3
15

skipif mysql # not compatible
query II rowsort label-4068
SELECT col2 / col0 AS col1, + col0 FROM tab0
----
0
87
1
97
3
15

onlyif mysql # aggregate syntax: 
query II rowsort label-4069
SELECT ALL SUM( - + 9 ) AS col0, - COUNT( + - col1 ) FROM tab2
----
-27
-3

skipif mysql # not compatible
query II rowsort label-4069
SELECT ALL SUM ( - + 9 ) AS col0, - COUNT ( + - col1 ) FROM tab2
----
-27
-3

query I rowsort
SELECT - col2 * + + ( - col2 ) * + - 33 AS col1 FROM tab1
----
-114873
-152592
-304128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4071
SELECT - col0 * - + 68 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4071
SELECT - col0 * - + 68 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + + ( - - col0 ) AS col2 FROM tab0
----
196
62
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4073
SELECT DISTINCT + 8 - + - col0 - + 86 DIV + 94 * 71 FROM tab1
----
59
93
99

skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT + 8 - + - col0 - + 86 / + 94 * 71 FROM tab1
----
59
93
99

query II rowsort
SELECT DISTINCT - col2 AS col1, 32 AS col1 FROM tab1 AS cor0
----
-59
32
-68
32
-96
32

query II rowsort
SELECT DISTINCT + col1, + 64 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * - 67 * + 54 * + col0 BETWEEN - col1 * 43 AND NULL
----
1
64
21
64
81
64

query I rowsort
SELECT ALL col0 * + 13 / + col2 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT DISTINCT COUNT( * ) * 12 AS col2 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT COUNT ( * ) * 12 AS col2 FROM tab2 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT ALL - MAX( + - col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL - MAX ( + - col2 ) AS col1 FROM tab2 AS cor0
----
23

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) BETWEEN NULL AND + 74
----

query II rowsort
SELECT DISTINCT - - col1 AS col0, 32 AS col1 FROM tab1 AS cor0
----
14
32
47
32
5
32

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT - 26 <> NULL
----

query I rowsort
SELECT DISTINCT + - col1 + + + col0 AS col0 FROM tab0 WHERE NOT - col1 * - col2 IS NULL
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT DISTINCT + SUM( - col0 ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4083
SELECT DISTINCT + SUM ( - col0 ) AS col2 FROM tab1
----
-227

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE NOT - + col1 * col2 <> col1 * col1 + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= 98
----

query I rowsort
SELECT ALL - - col1 FROM tab1 AS cor0 WHERE 13 >= NULL
----

query I rowsort
SELECT 1 * col1 AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT - COUNT( - + 29 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4088
SELECT - COUNT ( - + 29 ) AS col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4089
SELECT ALL + + CAST( + col1 AS SIGNED ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL + + CAST ( + col1 AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 <> + col0
----
0

skipif mysql # not compatible
query I rowsort label-4090
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 <> + col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, col2 col1 FROM tab2 cor0
----
-23
23
-40
40
-58
58

query I rowsort
SELECT - col1 / - + col1 * - col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 * - 97 NOT BETWEEN - - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4093
SELECT - CAST( + - col2 AS SIGNED ) * + col1 AS col0 FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-4093
SELECT - CAST ( + - col2 AS INTEGER ) * + col1 AS col0 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT DISTINCT + MAX( + + 49 ) + - 90 FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-4094
SELECT DISTINCT + MAX ( + + 49 ) + - 90 FROM tab2 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT DISTINCT COUNT( * ) + - + 28 AS col0 FROM tab1 cor0 WHERE NOT - col0 IS NOT NULL
----
-28

skipif mysql # not compatible
query I rowsort label-4095
SELECT DISTINCT COUNT ( * ) + - + 28 AS col0 FROM tab1 cor0 WHERE NOT - col0 IS NOT NULL
----
-28

query I rowsort
SELECT - + 58 + + col1 AS col2 FROM tab0 AS cor0
----
-37
-57
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4097
SELECT DISTINCT - COUNT( + - CAST( 30 AS SIGNED ) ) * + COUNT( * ) + COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-4097
SELECT DISTINCT - COUNT ( + - CAST ( 30 AS INTEGER ) ) * + COUNT ( * ) + COUNT ( * ) FROM tab0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-4098
SELECT DISTINCT 15 + - 24 + + - 80 DIV col1 FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT 15 + - 24 + + - 80 / col1 FROM tab2
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4099
SELECT - MAX( ALL CAST( - col0 AS SIGNED ) ) * - 65 + 61 AS col2 FROM tab0
----
-914

skipif mysql # not compatible
query I rowsort label-4099
SELECT - MAX ( ALL CAST ( - col0 AS INTEGER ) ) * - 65 + 61 AS col2 FROM tab0
----
-914

query II rowsort
SELECT col1, + col1 * + col2 FROM tab1
----
14
1344
47
3196
5
295

query I rowsort
SELECT - 3 * - 0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * - col2 - - 50 + - col0 - col1 AS col1 FROM tab0 AS cor0
----
659
812
9555

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4103
SELECT CAST( - 40 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-4103
SELECT CAST ( - 40 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-40
-40
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-4104
SELECT ALL - + 62 * + 63 + + - col1 + 1 DIV + 48 AS col0 FROM tab2 cor0
----
-3957
-3973
-3983

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL - + 62 * + 63 + + - col1 + 1 / + 48 AS col0 FROM tab2 cor0
----
-3957
-3973
-3983

onlyif mysql # DIV for integer division: 
query I rowsort label-4105
SELECT ALL + + 94 + + col2 DIV + - 51 + + - col0 FROM tab1 AS cor0
----
2
42
8

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL + + 94 + + col2 / + - 51 + + - col0 FROM tab1 AS cor0
----
2
42
8

query I rowsort
SELECT DISTINCT - 5 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4107
SELECT - + col0 * - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4107
SELECT - + col0 * - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + col0 ) FROM tab1 AS cor0 WHERE NOT col2 - 26 <> NULL
----

query I rowsort
SELECT ALL 50 * + - col0 * col0 FROM tab1 AS cor0
----
-130050
-361250
-414050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4110
SELECT ALL - COUNT( * ) DIV - MIN( DISTINCT + col0 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL - COUNT ( * ) / - MIN ( DISTINCT + col0 ) FROM tab0 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4111
SELECT ALL - 35 DIV + + 92 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4111
SELECT ALL - 35 / + + 92 AS col0 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 78 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT - MAX( + + ( - 74 ) ) FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-4113
SELECT - MAX ( + + ( - 74 ) ) FROM tab1 AS cor0
----
74

query II rowsort
SELECT - 46, col0 FROM tab2
----
-46
46
-46
64
-46
75

query I rowsort
SELECT DISTINCT - 63 * + 6 FROM tab2
----
-378

query II rowsort
SELECT - 81, - col2 AS col2 FROM tab1
----
-81
-59
-81
-68
-81
-96

query I rowsort
SELECT DISTINCT col1 * col0 * + col1 FROM tab2
----
119646
336675
379456

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4118
SELECT CAST( NULL AS DECIMAL ) * + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4118
SELECT CAST ( NULL AS REAL ) * + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT col0 AS col2, - 24 FROM tab1
----
51
-24
85
-24
91
-24

query II rowsort
SELECT ALL - 36 AS col1, ( - + 13 ) FROM tab0 AS cor0
----
-36
-13
-36
-13
-36
-13

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE + 88 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT ALL - MAX( DISTINCT 68 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL - MAX ( DISTINCT 68 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + col2 + + - 15 FROM tab0
----
-5
32
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT ALL + COUNT( * ) * - 56 + - + ( COUNT( * ) ) FROM tab1
----
-171

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL + COUNT ( * ) * - 56 + - + ( COUNT ( * ) ) FROM tab1
----
-171

onlyif mysql # DIV for integer division: 
query I rowsort label-4125
SELECT ALL + col2 DIV + - col2 + 80 AS col0 FROM tab1 AS cor0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-4125
SELECT ALL + col2 / + - col2 + 80 AS col0 FROM tab1 AS cor0
----
79
79
79

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - col1 AND + col0
----

query I rowsort
SELECT ALL - ( - col0 ) FROM tab1 AS cor0 WHERE + col2 + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4128
SELECT ALL - 71 + - 64 + - + 29 * - CAST( col1 AS SIGNED ) + - ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL - 71 + - 64 + - + 29 * - CAST ( col1 AS INTEGER ) + - ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 97 * - col1 + + - col2 FROM tab2 AS cor0
----
4924
6441
7429

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT + + MIN( 73 ) FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-4130
SELECT + + MIN ( 73 ) FROM tab1 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT + SUM( DISTINCT + ( - col2 ) ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-4131
SELECT + SUM ( DISTINCT + ( - col2 ) ) AS col2 FROM tab2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT ALL ( MAX( DISTINCT - col1 ) ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL ( MAX ( DISTINCT - col1 ) ) AS col2 FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT DISTINCT ( - MIN( DISTINCT + col0 ) ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT ( - MIN ( DISTINCT + col0 ) ) AS col1 FROM tab0
----
-15

query I rowsort
SELECT 58 + col1 AS col0 FROM tab2
----
109
125
135

query I rowsort
SELECT DISTINCT 12 * + + col2 * + 24 FROM tab0
----
13536
28512
2880

query I rowsort
SELECT ALL + - 45 * col2 FROM tab2 cor0
----
-1035
-1800
-2610

query I rowsort
SELECT - + col2 * + - col2 + col0 AS col1 FROM tab2 cor0
----
1664
3439
575

query I rowsort
SELECT DISTINCT - 81 + - col2 FROM tab1
----
-140
-149
-177

query I rowsort
SELECT DISTINCT - col1 FROM tab2 cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT - col2 * - - 16 * + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4141
SELECT DISTINCT - col0 DIV + col0 + 24 - col0 * + + ( - col0 ) AS col2 FROM tab2 AS cor0
----
2139
4119
5648

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT - col0 / + col0 + 24 - col0 * + + ( - col0 ) AS col2 FROM tab2 AS cor0
----
2139
4119
5648

query I rowsort
SELECT + col1 * - - col2 AS col2 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT ALL col1 * ( - - col1 ) AS col2 FROM tab1 cor0 WHERE NOT col0 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4144
SELECT + CAST( - SUM( ALL + + col0 ) AS SIGNED ), + 9 AS col0 FROM tab1 cor0 WHERE NOT - 4 * col2 + col0 IS NULL
----
-227
9

skipif mysql # not compatible
query II rowsort label-4144
SELECT + CAST ( - SUM ( ALL + + col0 ) AS INTEGER ), + 9 AS col0 FROM tab1 cor0 WHERE NOT - 4 * col2 + col0 IS NULL
----
-227
9

query I rowsort
SELECT + 3 * + - col1 AS col2 FROM tab2 AS cor0
----
-153
-201
-231

query I rowsort
SELECT ALL 16 * - + col1 FROM tab2
----
-1072
-1232
-816

query I rowsort
SELECT - col2 * - col0 + - 49 AS col2 FROM tab0 WHERE NOT ( 89 ) <= - 39
----
656
821
9554

onlyif mysql # DIV for integer division: 
query I rowsort label-4148
SELECT ALL + 88 DIV col0 * - col1 FROM tab0 WHERE ( NOT + 40 * col1 IS NULL )
----
-21
-405
0

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL + 88 / col0 * - col1 FROM tab0 WHERE ( NOT + 40 * col1 IS NULL )
----
-21
-405
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4149
SELECT ALL col0 * col0 DIV + col2 AS col2 FROM tab0
----
4
756
95

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL col0 * col0 / + col2 AS col2 FROM tab0
----
4
756
95

query I rowsort
SELECT + - 38 * - col1 + col0 * + - col0 AS col2 FROM tab2 WHERE NOT + col0 + 80 * + 66 < col1
----
-1170
-178
-3079

query III rowsort
SELECT * FROM tab0 WHERE NOT + 61 + - 1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 18 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4152
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 18 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4153
SELECT COUNT( * ) AS col0, - 67 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9
-67

skipif mysql # not compatible
query II rowsort label-4153
SELECT COUNT ( * ) AS col0, - 67 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9
-67

query I rowsort
SELECT DISTINCT + 79 * - + col1 FROM tab2
----
-4029
-5293
-6083

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON NULL <> NULL
----
18 values hashing to 3bb2bca130a6dfa84e4c44460040062d

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT + col2 < NULL )
----

query I rowsort
SELECT ALL + col1 + + col2 FROM tab0 AS cor0 WHERE NOT - 96 * + 9 IS NULL
----
100
128
31

query I rowsort
SELECT + col0 + 44 AS col1 FROM tab2 AS cor0
----
108
119
90

query I rowsort
SELECT + 39 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
39
39
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4160
SELECT DISTINCT - ( + col0 ) + - CAST( NULL AS SIGNED ) * - 36, + col2 AS col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-4160
SELECT DISTINCT - ( + col0 ) + - CAST ( NULL AS INTEGER ) * - 36, + col2 AS col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4161
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - 36 - col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4161
SELECT DISTINCT + CAST ( NULL AS REAL ) + - 36 - col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ( 71 ) + - col0 AS col2 FROM tab1 AS cor0
----
-14
-20
20

query I rowsort
SELECT 40 * - - col1 AS col2 FROM tab1
----
1880
200
560

query I rowsort
SELECT col1 * 62 FROM tab2
----
3162
4154
4774

query I rowsort
SELECT ALL 94 * + 61 AS col0 FROM tab1
----
5734
5734
5734

query III rowsort
SELECT * FROM tab1 WHERE col0 + - col2 * - col0 IS NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) <= - - col1 / - 48
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4168
SELECT DISTINCT 94 DIV 13 AS col0 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-4168
SELECT DISTINCT 94 / 13 AS col0 FROM tab1
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 * - col1 col2 FROM tab0
----
-3321
-41
-861

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT ALL - COUNT( * ) * - COUNT( - col0 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL - COUNT ( * ) * - COUNT ( - col0 ) FROM tab2
----
9

query I rowsort
SELECT col0 * - - col0 AS col0 FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4172
SELECT ALL + + col2 + - + 2 col0 FROM tab0 AS cor0 WHERE NOT col1 - - CAST( NULL AS SIGNED ) - - 23 * - col2 IS NOT NULL
----
45
8
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4172
SELECT ALL + + col2 + - + 2 col0 FROM tab0 AS cor0 WHERE NOT col1 - - CAST ( NULL AS INTEGER ) - - 23 * - col2 IS NOT NULL
----
45
8
97

query II rowsort
SELECT DISTINCT + - col2, col0 * - col0 * + 85 AS col2 FROM tab2 cor0
----
-23
-179860
-40
-348160
-58
-478125

query I rowsort
SELECT - 72 * - 36 FROM tab0 AS cor0
----
2592
2592
2592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, 99 col0 FROM tab2 cor0
----
51
99
67
99
77
99

query III rowsort
SELECT * FROM tab0 WHERE NOT + 11 > NULL
----

query II rowsort
SELECT DISTINCT 79 AS col1, col0 AS col1 FROM tab1
----
79
51
79
85
79
91

query I rowsort
SELECT DISTINCT + 36 * col0 AS col1 FROM tab0
----
3132
3492
540

query II rowsort
SELECT col1, col2 * + col2 + 69 - - col1 + - - col0 * + - 76 AS col2 FROM tab2
----
51
-2847
67
-2200
77
-3118

query III rowsort
SELECT * FROM tab0 WHERE NOT 0 * col0 < NULL
----

query I rowsort
SELECT ALL + ( + 42 ) AS col0 FROM tab1
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT MIN( DISTINCT col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4182
SELECT MIN ( DISTINCT col1 ) AS col1 FROM tab2
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4183
SELECT ALL * FROM tab0 WHERE + - col0 * col0 + + CAST( NULL AS DECIMAL ) + 89 + - 9 + - col0 + + - col1 * - col1 * - + col1 >= NULL
----

skipif mysql # not compatible
query III rowsort label-4183
SELECT ALL * FROM tab0 WHERE + - col0 * col0 + + CAST ( NULL AS REAL ) + 89 + - 9 + - col0 + + - col1 * - col1 * - + col1 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 = + 94
----

query I rowsort
SELECT - 16 + - ( - col0 ) FROM tab1 AS cor0
----
35
69
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT ALL COUNT( * ) + COUNT( * ) * 93 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL COUNT ( * ) + COUNT ( * ) * 93 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT DISTINCT MIN( 70 ) AS col1 FROM tab0 cor0
----
70

skipif mysql # not compatible
query I rowsort label-4187
SELECT DISTINCT MIN ( 70 ) AS col1 FROM tab0 cor0
----
70

query I rowsort
SELECT - + 93 - 65 * - + col1 AS col0 FROM tab0 AS cor0
----
-28
1272
5172

query I rowsort
SELECT ALL + ( + col1 ) - col0 AS col0 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT + 65 - 15 FROM tab1
----
50
50
50

query I rowsort
SELECT 10 + - col1 AS col1 FROM tab0
----
-11
-71
9

query I rowsort
SELECT ALL 37 AS col0 FROM tab2 WHERE NOT 23 * + col0 / - - 59 >= - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 55 * - - ( 98 ) BETWEEN + 99 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - ( - 57 ) + - col0 + col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 = - col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT SUM( 85 ) AS col2 FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-4195
SELECT SUM ( 85 ) AS col2 FROM tab2
----
255

query III rowsort
SELECT * FROM tab1 WHERE 29 / - col2 = + 67
----

query I rowsort
SELECT ALL - col2 * col1 + 65 * col0 FROM tab2
----
1080
1817
989

query I rowsort
SELECT ALL - col1 + col2 * + 27 FROM tab1
----
1588
1789
2578

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT ALL COUNT( DISTINCT col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL COUNT ( DISTINCT col2 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT - COUNT( * ) + - 83 AS col0 FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-4200
SELECT - COUNT ( * ) + - 83 AS col0 FROM tab0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT ALL 6 + - COUNT( - col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL 6 + - COUNT ( - col0 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 47 * - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT MIN( col2 ) col0 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4203
SELECT MIN ( col2 ) col0 FROM tab0
----
10

query I rowsort
SELECT DISTINCT + 34 AS col0 FROM tab1 WHERE NOT ( - col0 - col1 / col0 ) < + 37
----

query I rowsort
SELECT DISTINCT + ( col1 ) + - 34 FROM tab2
----
17
33
43

query I rowsort
SELECT ALL - 88 AS col2 FROM tab1 WHERE NOT ( - col0 ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4207
SELECT + col2 DIV + col2 + 52 AS col1 FROM tab2
----
53
53
53

skipif mysql # not compatible
query I rowsort label-4207
SELECT + col2 / + col2 + 52 AS col1 FROM tab2
----
53
53
53

query I rowsort
SELECT 80 FROM tab0 WHERE 37 IS NOT NULL
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT - MAX( col2 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-4209
SELECT - MAX ( col2 ) AS col0 FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT ALL - COUNT( * ) + - COUNT( * ) AS col1 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1
----
-6

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> - 37 * col0 - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4212
SELECT + ( col1 ) DIV + ( ( + col1 ) + col2 ) + - col2 col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4212
SELECT + ( col1 ) / + ( ( + col1 ) + col2 ) + - col2 col0 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT 79 * - 31 FROM tab1
----
-2449

query I rowsort
SELECT col0 + - 24 AS col0 FROM tab2 WHERE ( col0 ) <= - col1
----

query I rowsort
SELECT + col0 * + col0 AS col1 FROM tab2 AS cor0 WHERE - 25 <= col2
----
2116
4096
5625

query I rowsort
SELECT ALL + col1 * + col0 + + 0 AS col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT DISTINCT - SUM( col2 ) + - COUNT( * ) FROM tab1 AS cor0
----
-226

skipif mysql # not compatible
query I rowsort label-4217
SELECT DISTINCT - SUM ( col2 ) + - COUNT ( * ) FROM tab1 AS cor0
----
-226

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN + col2 AND ( NULL )
----

query I rowsort
SELECT ALL + 72 FROM tab2 WHERE NOT + 61 IS NULL
----
72
72
72

query I rowsort
SELECT ALL 65 + + col2 FROM tab2 WHERE ( 41 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4221
SELECT - 55 DIV - col0 + col2 AS col2 FROM tab1
----
59
68
97

skipif mysql # not compatible
query I rowsort label-4221
SELECT - 55 / - col0 + col2 AS col2 FROM tab1
----
59
68
97

query I rowsort
SELECT - 15 * - col2 + col2 * col2 FROM tab1 AS cor0
----
10656
4366
5644

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 64 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT 11 + + COUNT( * ) AS col1 FROM tab2 cor0
----
14

skipif mysql # not compatible
query I rowsort label-4224
SELECT 11 + + COUNT ( * ) AS col1 FROM tab2 cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT + + SUM( DISTINCT col0 ) + 59 FROM tab0 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-4225
SELECT + + SUM ( DISTINCT col0 ) + 59 FROM tab0 AS cor0
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT + MIN( + col0 ) col2 FROM tab2 AS cor0 WHERE col2 BETWEEN ( + col2 ) AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4226
SELECT + MIN ( + col0 ) col2 FROM tab2 AS cor0 WHERE col2 BETWEEN ( + col2 ) AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4227
SELECT DISTINCT - col0 FROM tab0 WHERE + col1 + CAST( col0 AS SIGNED ) IS NOT NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4227
SELECT DISTINCT - col0 FROM tab0 WHERE + col1 + CAST ( col0 AS INTEGER ) IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4228
SELECT + COUNT( * ) FROM tab2 WHERE ( + col1 + - CAST( col0 AS SIGNED ) ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4228
SELECT + COUNT ( * ) FROM tab2 WHERE ( + col1 + - CAST ( col0 AS INTEGER ) ) IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab1 WHERE col1 IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 - + 27 * 90 FROM tab0
----
-2445
-2517
-2527

query I rowsort
SELECT DISTINCT 30 * + - 82 FROM tab0
----
-2460

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 97 * + + col1 FROM tab0
----
2037
7857
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4234
SELECT - CAST( NULL AS SIGNED ) * - ( + 2 ) * - col2 - - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4234
SELECT - CAST ( NULL AS INTEGER ) * - ( + 2 ) * - col2 - - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN col1 AND NULL
----
51
67
77

query I rowsort
SELECT 88 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 * 43 IN ( 22 - col1 )
----
88
88
88

query I rowsort
SELECT DISTINCT - 25 FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( col0 + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4238
SELECT ALL AVG ( - CAST( NULL AS SIGNED ) ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4238
SELECT ALL AVG ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT DISTINCT + ( + + COUNT( * ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4239
SELECT DISTINCT + ( + + COUNT ( * ) ) FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL >= - col1 * col2
----

query I rowsort
SELECT ALL - - col1 * - 73 * - col0 * col0 + col2 + col2 AS col0 FROM tab2 AS cor0
----
23023696
27511991
7877914

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT DISTINCT MAX( col1 ) FROM tab0 AS cor0 WHERE NOT + col2 + - - 35 IS NULL
----
81

skipif mysql # not compatible
query I rowsort label-4242
SELECT DISTINCT MAX ( col1 ) FROM tab0 AS cor0 WHERE NOT + col2 + - - 35 IS NULL
----
81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4244
SELECT - col1 DIV + col0 * + 15 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4244
SELECT - col1 / + col0 * + 15 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 * col0 col2 FROM tab2 WHERE ( + 13 * + col1 * + 37 ) = - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4246
SELECT * FROM tab0 WHERE col0 > + - 31 * CAST( 71 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4246
SELECT * FROM tab0 WHERE col0 > + - 31 * CAST ( 71 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 NOT IN ( + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE 47 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT - - COUNT( DISTINCT col2 ) + + - 40 AS col2 FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-4249
SELECT - - COUNT ( DISTINCT col2 ) + + - 40 AS col2 FROM tab1 AS cor0
----
-37

query I rowsort
SELECT + col0 + + - 80 + - + col0 AS col1 FROM tab2
----
-80
-80
-80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 ) > 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT DISTINCT + COUNT( - col1 ) + + 39 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT + COUNT ( - col1 ) + + 39 FROM tab2 AS cor0
----
42

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE col1 >= ( - col0 )
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4254
SELECT + 18 - + - col2 DIV - col1 FROM tab1 AS cor0
----
12
17
7

skipif mysql # not compatible
query I rowsort label-4254
SELECT + 18 - + - col2 / - col1 FROM tab1 AS cor0
----
12
17
7

query I rowsort
SELECT ALL - 28 + + 52 AS col2 FROM tab0 AS cor0
----
24
24
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4256
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - - 68 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - - 68 AS col1 FROM tab1 cor0
----
NULL

query II rowsort
SELECT DISTINCT + col0 * + col0 - + - col0, + col2 AS col2 FROM tab0 AS cor0
----
240
47
7656
10
9506
99

query I rowsort
SELECT 38 * col1 + + col2 - - - col0 * + col2 * - col2 AS col0 FROM tab0 AS cor0
----
36260
9508
950834

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4259
SELECT + CAST( NULL AS SIGNED ) - - ( + col1 ) + - + col0 + + col2 * - 41 * + 28 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4259
SELECT + CAST ( NULL AS INTEGER ) - - ( + col1 ) + - + col0 + + col2 * - 41 * + 28 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * + col2 + - col2 + + col0 * col0 AS col0 FROM tab1 AS cor0
----
-2391
2025
2151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4261
SELECT + MIN( ALL - CAST( - CAST( + 10 AS DECIMAL ) AS SIGNED ) ) + - COUNT( DISTINCT - 27 ) * MIN( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4261
SELECT + MIN ( ALL - CAST ( - CAST ( + 10 AS REAL ) AS INTEGER ) ) + - COUNT ( DISTINCT - 27 ) * MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4262
SELECT DISTINCT + 35 DIV + 16 + - col0 AS col1 FROM tab2
----
-44
-62
-73

skipif mysql # not compatible
query I rowsort label-4262
SELECT DISTINCT + 35 / + 16 + - col0 AS col1 FROM tab2
----
-44
-62
-73

query II rowsort
SELECT DISTINCT - col2 AS col1, + 97 FROM tab1
----
-59
97
-68
97
-96
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 WHERE col2 * - col2 BETWEEN + ( + - col1 ) + + col1 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4264
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 WHERE col2 * - col2 BETWEEN + ( + - col1 ) + + col1 AND ( NULL )
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT NULL NOT BETWEEN col1 AND - + col0 )
----

query I rowsort
SELECT + ( 88 ) * + 9 FROM tab0
----
792
792
792

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col1 * col2 + + col0 + ( + col0 ) NOT BETWEEN col0 - + 12 AND col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 + + + 34 BETWEEN col0 AND ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col1, 89 FROM tab0 AS cor0
----
1
89
21
89
81
89

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 > + - col0 / + 27
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * col0 * + 56 + + col0 IS NULL
----

query I rowsort
SELECT + ( 36 ) FROM tab2 AS cor0
----
36
36
36

query II rowsort
SELECT - ( - 58 ), + 83 * 85 AS col2 FROM tab1 cor0
----
58
7055
58
7055
58
7055

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 - - + col1 + 29 + + - col0 + - col0 * + + col0 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4275
SELECT - col0 + + + col1 * - - CAST( + 73 AS SIGNED ) * + - 9 + - col0 FROM tab0 AS cor0
----
-13971
-53247
-851

skipif mysql # not compatible
query I rowsort label-4275
SELECT - col0 + + + col1 * - - CAST ( + 73 AS INTEGER ) * + - 9 + - col0 FROM tab0 AS cor0
----
-13971
-53247
-851

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4276
SELECT + CAST( NULL AS SIGNED ) + - col1 * - 17 * + - col0 * 6 * 56 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT + CAST ( NULL AS INTEGER ) + - col1 * - 17 * + - col0 * 6 * 56 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE 98 + + col2 - + + 63 IS NOT NULL
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 * ( col0 ) )
----

query I rowsort
SELECT ALL col2 * + 95 + 75 + - - 7 * + col2 * - col1 AS col2 FROM tab2 AS cor0
----
-17685
-21617
-5951

onlyif mysql # aggregate syntax: 
query II rowsort label-4280
SELECT DISTINCT - + SUM( ALL + col1 ) AS col2, + COUNT( * ) FROM tab1 AS cor0
----
-66
3

skipif mysql # not compatible
query II rowsort label-4280
SELECT DISTINCT - + SUM ( ALL + col1 ) AS col2, + COUNT ( * ) FROM tab1 AS cor0
----
-66
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT DISTINCT - COUNT( + 14 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4281
SELECT DISTINCT - COUNT ( + 14 ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col0 + - + col1 * + + col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 63 NOT BETWEEN + - ( 63 ) AND - col1 * - col2
----

query I rowsort
SELECT - 55 * + 30 * + - col0 * - 31 FROM tab0 AS cor0
----
-4450050
-4961550
-767250

query II rowsort
SELECT 75 AS col0, - 14 FROM tab2 AS cor0
----
75
-14
75
-14
75
-14

query I rowsort
SELECT ( col0 ) + 84 AS col1 FROM tab1 WHERE + col0 >= + 1 / + - col0 + + + col0 + col0 * ( - 78 ) + 45 * 45
----
135
169
175

query I rowsort
SELECT ALL - 60 * 7 AS col2 FROM tab0
----
-420
-420
-420

query I rowsort
SELECT 84 + col2 + ( + 49 ) AS col2 FROM tab2
----
156
173
191

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 62 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT - 34 + + - SUM( ALL + 9 ) FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-4290
SELECT - 34 + + - SUM ( ALL + 9 ) FROM tab0 AS cor0
----
-61

query I rowsort
SELECT 14 * + + col0 + + col2 + - col0 FROM tab1 cor0
----
1164
1251
759

query II rowsort
SELECT col0 * col2 + + - col1 + - col0, 13 + - + 88 AS col2 FROM tab2 AS cor0 WHERE col1 / - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4293
SELECT DISTINCT + 41 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT + 41 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT + COUNT( 80 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4294
SELECT + COUNT ( 80 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4295
SELECT - SUM( DISTINCT - CAST( - + 99 AS SIGNED ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-4295
SELECT - SUM ( DISTINCT - CAST ( - + 99 AS INTEGER ) ) FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ALL COUNT( * ) * + - 79 AS col1 FROM tab2
----
-237

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL COUNT ( * ) * + - 79 AS col1 FROM tab2
----
-237

query II rowsort
SELECT col1, 56 AS col0 FROM tab1
----
14
56
47
56
5
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4298
SELECT 82 AS col1, COUNT( ALL 33 ) FROM tab0
----
82
3

skipif mysql # not compatible
query II rowsort label-4298
SELECT 82 AS col1, COUNT ( ALL 33 ) FROM tab0
----
82
3

query II rowsort
SELECT 57, col1 AS col1 FROM tab0
----
57
1
57
21
57
81

onlyif mysql # DIV for integer division: 
query II rowsort label-4300
SELECT DISTINCT + col0 * ( - 84 ) * + col0 DIV - + col0, 68 * - ( + - col0 ) - + col1 + + + col0 DIV col2 col0 FROM tab1
----
4284
3454
7140
5776
7644
6142

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4300
SELECT DISTINCT + col0 * ( - 84 ) * + col0 / - + col0, 68 * - ( + - col0 ) - + col1 + + + col0 / col2 col0 FROM tab1
----
4284
3454
7140
5776
7644
6142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4301
SELECT DISTINCT - ( + CAST( + col2 AS SIGNED ) ) AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT - ( + CAST ( + col2 AS INTEGER ) ) AS col0 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 54 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT col2 col2, + col0 + + + col2, col0 FROM tab0 cor0
----
9 values hashing to bc45c56c42cc589d6aabb9e837f7e3cb

query II rowsort
SELECT ALL ( - col1 ) * 87, 57 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT DISTINCT - - 94 * MAX( + col1 ) + - 9 AS col2 FROM tab1 cor0
----
4409

skipif mysql # not compatible
query I rowsort label-4305
SELECT DISTINCT - - 94 * MAX ( + col1 ) + - 9 AS col2 FROM tab1 cor0
----
4409

query II rowsort
SELECT DISTINCT 57 AS col1, col2 + - col0 FROM tab2
----
57
-17
57
-23
57
-24

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 93 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT DISTINCT + - COUNT( * ) - + 54 * - + COUNT( - - col1 ) AS col1 FROM tab1 WHERE NULL NOT BETWEEN + col2 * col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4308
SELECT DISTINCT + - COUNT ( * ) - + 54 * - + COUNT ( - - col1 ) AS col1 FROM tab1 WHERE NULL NOT BETWEEN + col2 * col1 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT DISTINCT COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0 INNER JOIN tab2 AS cor1 ON NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0 INNER JOIN tab2 AS cor1 ON NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4310
SELECT + CAST( 11 AS SIGNED ) * + MIN( DISTINCT - - ( + 72 ) ) + 62 FROM tab2
----
854

skipif mysql # not compatible
query I rowsort label-4310
SELECT + CAST ( 11 AS INTEGER ) * + MIN ( DISTINCT - - ( + 72 ) ) + 62 FROM tab2
----
854

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( - 47 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 - - + 98 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4313
SELECT - - ( - COUNT( * ) ), - 32 AS col0 FROM tab1 AS cor0
----
-3
-32

skipif mysql # not compatible
query II rowsort label-4313
SELECT - - ( - COUNT ( * ) ), - 32 AS col0 FROM tab1 AS cor0
----
-3
-32

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 5 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 84 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4316
SELECT DISTINCT col0 + col0 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4316
SELECT DISTINCT col0 + col0 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4317
SELECT ALL + 77 + - col2 DIV - col0 AS col2 FROM tab1 AS cor0
----
77
77
78

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL + 77 + - col2 / - col0 AS col2 FROM tab1 AS cor0
----
77
77
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT + + COUNT( ALL 3 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4318
SELECT + + COUNT ( ALL 3 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + - col1 * 49 AS col2 FROM tab2 AS cor0
----
-2499
-3283
-3773

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - ( col0 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT ALL + SUM( DISTINCT + + col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL + SUM ( DISTINCT + + col2 ) AS col2 FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT ( 57 ) + + + COUNT( * ) AS col1 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-4322
SELECT ( 57 ) + + + COUNT ( * ) AS col1 FROM tab2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT MIN( 3 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4323
SELECT MIN ( 3 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4324
SELECT DISTINCT + col1 + + ( + CAST( NULL AS DECIMAL ) ) + + col0 * + col1 * 65 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT DISTINCT + col1 + + ( + CAST ( NULL AS REAL ) ) + + col0 * + col1 * 65 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - ( - - 72 ) FROM tab1 cor0
----
-72
-72
-72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4326
SELECT * FROM tab0 WHERE - col2 + + col0 + + - CAST( - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4326
SELECT * FROM tab0 WHERE - col2 + + col0 + + - CAST ( - col1 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT DISTINCT - MAX( - 65 ) FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-4327
SELECT DISTINCT - MAX ( - 65 ) FROM tab2 AS cor0
----
65

query II rowsort
SELECT + + col1, + ( - ( + col0 ) ) * - 44 - + - col1 + - - col1 + + - 81 * - col2 + - col2 FROM tab2 AS cor0
----
51
3966
67
8074
77
6170

query I rowsort
SELECT DISTINCT + 27 FROM tab1 AS cor0 WHERE NOT 25 IS NOT NULL
----

query II rowsort
SELECT + col2 AS col2, + col1 AS col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT - + ( - - ( + col2 ) ) FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4332
SELECT + col1 DIV + col1 + 93 * col2 * + col2 AS col1 FROM tab1 AS cor0
----
323734
430033
857089

skipif mysql # not compatible
query I rowsort label-4332
SELECT + col1 / + col1 + 93 * col2 * + col2 AS col1 FROM tab1 AS cor0
----
323734
430033
857089

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN col2 / - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT DISTINCT + MAX( - + col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4334
SELECT DISTINCT + MAX ( - + col1 ) AS col2 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT DISTINCT + ( + 27 ) AS col1 FROM tab1 AS cor0
----
27

query I rowsort
SELECT DISTINCT 90 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4337
SELECT + ( ( CAST( NULL AS DECIMAL ) ) ) * - - col0 * col0 * CAST( NULL AS SIGNED ) * - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4337
SELECT + ( ( CAST ( NULL AS REAL ) ) ) * - - col0 * col0 * CAST ( NULL AS INTEGER ) * - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4338
SELECT - col2 DIV - - 86 AS col2, - col1 * - 96 FROM tab1
----
-1
1344
0
4512
0
480

skipif mysql # not compatible
query II rowsort label-4338
SELECT - col2 / - - 86 AS col2, - col1 * - 96 FROM tab1
----
-1
1344
0
4512
0
480

query I rowsort
SELECT ALL + 70 * - col2 * - col1 FROM tab0
----
14700
266490
6930

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4340
SELECT ALL col0 * - 40 / CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL col0 * - 40 / CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 77 * - + col1 FROM tab2
----
-3927
-5159
-5929

query I rowsort
SELECT col1 * - 37 * + + col1 * 57 FROM tab0
----
-13837149
-2109
-930069

query I rowsort
SELECT ALL - - 56 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 / + col2 FROM tab2 WHERE NOT 93 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 23 col2 FROM tab2 AS cor0
----
23
23
23

query I rowsort
SELECT DISTINCT + col0 FROM tab2 cor0 WHERE + col0 * + - 93 <> ( - col1 )
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4347
SELECT - + CAST( - + 27 AS SIGNED ) col2 FROM tab2 AS cor0
----
27
27
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4347
SELECT - + CAST ( - + 27 AS INTEGER ) col2 FROM tab2 AS cor0
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4348
SELECT - - CAST( 19 AS SIGNED ) FROM tab1 AS cor0
----
19
19
19

skipif mysql # not compatible
query I rowsort label-4348
SELECT - - CAST ( 19 AS INTEGER ) FROM tab1 AS cor0
----
19
19
19

onlyif mysql # DIV for integer division: 
query I rowsort label-4349
SELECT + 51 DIV - 58 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4349
SELECT + 51 / - 58 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - col0 * - + ( col2 ) * 29 AS col1 FROM tab1
----
141984
145435
179452

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT ALL - COUNT( * ) AS col1 FROM tab2 WHERE - col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 WHERE - col0 IS NOT NULL
----
-3

query II rowsort
SELECT ALL + - col1, + col2 AS col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query I rowsort
SELECT + 78 + + - col1 * - + 21 * + - 34 FROM tab2 AS cor0
----
-36336
-47760
-54900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4354
SELECT - col2 + + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4354
SELECT - col2 + + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 78, + 19 AS col2 FROM tab0 AS cor0
----
78
19
78
19
78
19

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN col1 AND ( col1 )
----
-51
-67
-77

query I rowsort
SELECT col0 + - + 70 + col2 AS col1 FROM tab1 AS cor0
----
74
77
89

onlyif mysql # DIV for integer division: 
query I rowsort label-4358
SELECT DISTINCT + col2 DIV - - 24 FROM tab0 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4358
SELECT DISTINCT + col2 / - - 24 FROM tab0 AS cor0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 49 * + col0 col2 FROM tab1
----
2513
4170
4506

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT - MIN( 89 ) FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-4360
SELECT - MIN ( 89 ) FROM tab2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE + 88 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE + 88 <> NULL
----
0

query II rowsort
SELECT DISTINCT - - col0, - col2 AS col0 FROM tab0 WHERE NOT col1 BETWEEN NULL AND - - 73 * - col1
----
15
-47
87
-10
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT + MIN( - - 82 ) * - MAX( + col0 ) FROM tab2
----
-6150

skipif mysql # not compatible
query I rowsort label-4363
SELECT + MIN ( - - 82 ) * - MAX ( + col0 ) FROM tab2
----
-6150

onlyif mysql # aggregate syntax: 
query II rowsort label-4364
SELECT + - COUNT( * ) AS col0, + COUNT( * ) FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4364
SELECT + - COUNT ( * ) AS col0, + COUNT ( * ) FROM tab0 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT MAX( 3 ) col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4365
SELECT MAX ( 3 ) col0 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT DISTINCT + SUM( - + col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4366
SELECT DISTINCT + SUM ( - + col0 ) AS col1 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ALL - col2 + - - 20 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4368
SELECT + COUNT( * ) + + COUNT( * ) AS col0, - ( 58 ) FROM tab0
----
6
-58

skipif mysql # not compatible
query II rowsort label-4368
SELECT + COUNT ( * ) + + COUNT ( * ) AS col0, - ( 58 ) FROM tab0
----
6
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4369
SELECT * FROM tab2 WHERE ( NOT 56 + - + 70 IS NULL ) OR + col1 * - + col2 + - 95 + CAST( - col2 AS SIGNED ) * 43 IN ( - + 79 * - - col2 - col2 + col1 * - 48 * + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4369
SELECT * FROM tab2 WHERE ( NOT 56 + - + 70 IS NULL ) OR + col1 * - + col2 + - 95 + CAST ( - col2 AS INTEGER ) * 43 IN ( - + 79 * - - col2 - col2 + col1 * - 48 * + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( 60 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT ALL ( COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT - col1 * - + col1 - + 44 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL ( COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT - col1 * - + col1 - + 44 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 > NULL
----

query II rowsort
SELECT ALL - ( - col2 ) AS col2, col1 * + 52 * - col0 * + - 74 AS col1 FROM tab1 cor0
----
59
1635400
68
16457896
96
2747472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4374
SELECT + 37 / + col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4374
SELECT + 37 / + col2 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 74 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT + - 43 * + col1 AS col1 FROM tab0 AS cor0
----
-3483
-43
-903

onlyif mysql # DIV for integer division: 
query I rowsort label-4377
SELECT ALL - col1 DIV col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL - col1 / col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1
-1
-2

query II rowsort
SELECT - 79 AS col0, col1 AS col0 FROM tab1
----
-79
14
-79
47
-79
5

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2 AS col2, 90 FROM tab1
----
59
90
68
90
96
90

query II rowsort
SELECT DISTINCT + col1, - col1 FROM tab2
----
51
-51
67
-67
77
-77

query III rowsort
SELECT * FROM tab2 WHERE NOT 34 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT DISTINCT - + 34 * COUNT( * ) FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT - + 34 * COUNT ( * ) FROM tab1 AS cor0
----
-102

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> col0
----

query I rowsort
SELECT col2 + - 56 + 18 - + - 41 * - - col0 FROM tab2
----
1871
2626
3095

query I rowsort
SELECT + + 65 FROM tab2 WHERE - - 98 * - - ( + - col1 ) > NULL
----

query I rowsort
SELECT 59 FROM tab2 AS cor0 WHERE - 82 * col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4388
SELECT DISTINCT - col2 + + col1 + + col2 * col2 * + + CAST( NULL AS SIGNED ) * - - col2 * 79 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4388
SELECT DISTINCT - col2 + + col1 + + col2 * col2 * + + CAST ( NULL AS INTEGER ) * - - col2 * 79 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col2 * + 49 AS col1 FROM tab0 AS cor0
----
-2303
-4851
-490

onlyif mysql # DIV for integer division: 
query I rowsort label-4390
SELECT ALL 57 + - + col1 DIV + + col0 + col2 FROM tab1 AS cor0
----
116
125
153

skipif mysql # not compatible
query I rowsort label-4390
SELECT ALL 57 + - + col1 / + + col0 + col2 FROM tab1 AS cor0
----
116
125
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4391
SELECT DISTINCT + - MAX( - + 78 ) DIV 29 AS col0 FROM tab2 AS cor0 WHERE ( col0 IS NOT NULL )
----
2

skipif mysql # not compatible
query I rowsort label-4391
SELECT DISTINCT + - MAX ( - + 78 ) / 29 AS col0 FROM tab2 AS cor0 WHERE ( col0 IS NOT NULL )
----
2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 94 ) <> - 44
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4393
SELECT - - 69 - + + col0 DIV - col2 - col2 * + col1 FROM tab0 AS cor0
----
-133
-30
-3738

skipif mysql # not compatible
query I rowsort label-4393
SELECT - - 69 - + + col0 / - col2 - col2 * + col1 FROM tab0 AS cor0
----
-133
-30
-3738

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE ( NOT + col0 IS NULL )
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * col1 - + 13 + + col2 AS col1 FROM tab2
----
1183
3107
3931

query I rowsort
SELECT + col1 + - 1 + col0 + + 80 * - + col0 * + col0 AS col0 FROM tab1
----
-208016
-577911
-662343

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4398
SELECT + col1 * + + CAST( NULL AS DECIMAL ) * CAST( + 25 AS SIGNED ) + + 59 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4398
SELECT + col1 * + + CAST ( NULL AS REAL ) * CAST ( + 25 AS INTEGER ) + + 59 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 - - 31 FROM tab0
----
-56
-66
16

query I rowsort
SELECT - col0 + + - col2 AS col2 FROM tab2
----
-104
-133
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4401
SELECT DISTINCT 87 DIV + 29 + - - col1 - + - col2 FROM tab2 AS cor0
----
120
128
77

skipif mysql # not compatible
query I rowsort label-4401
SELECT DISTINCT 87 / + 29 + - - col1 - + - col2 FROM tab2 AS cor0
----
120
128
77

query I rowsort
SELECT ALL - col0 + - 16 AS col2 FROM tab1 AS cor0
----
-101
-107
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4403
SELECT + + COUNT( * ) DIV COUNT( * ) col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4403
SELECT + + COUNT ( * ) / COUNT ( * ) col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT col1 + ( - 39 ) FROM tab1 AS cor0
----
-25
-34
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT + + COUNT( ALL - + 55 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4405
SELECT + + COUNT ( ALL - + 55 ) FROM tab1 cor0
----
3

query I rowsort
SELECT 15 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT ALL 53 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT DISTINCT - COUNT( * ) * + 63 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-4408
SELECT DISTINCT - COUNT ( * ) * + 63 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-186

query I rowsort
SELECT + 50 FROM tab0 AS cor0 WHERE NOT + col0 + col2 <> 58 * - col1 + + 62 * + 37 / col1
----

query I rowsort
SELECT + 72 / + col0 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4411
SELECT + ( - ( + CAST( NULL AS DECIMAL ) ) ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4411
SELECT + ( - ( + CAST ( NULL AS REAL ) ) ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - 42 ) * 28 * 6 FROM tab1 AS cor0
----
7056
7056
7056

query II rowsort
SELECT - col1, - 81 AS col2 FROM tab2 AS cor0
----
-51
-81
-67
-81
-77
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 21 > - 11 + - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * + col1 + + + 44 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 4 * ( - 82 ) AS col0 FROM tab1 AS cor0
----
328
328
328

query I rowsort
SELECT DISTINCT + + 61 * - 35 AS col1 FROM tab1 AS cor0
----
-2135

query II rowsort
SELECT DISTINCT - + col1 AS col1, - col0 AS col2 FROM tab0 AS cor0
----
-1
-97
-21
-87
-81
-15

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 + col0 + 25 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT - COUNT( DISTINCT - 30 ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4420
SELECT - COUNT ( DISTINCT - 30 ) AS col1 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT + ( 57 ) * MAX( DISTINCT + - 7 ) FROM tab2
----
-399

skipif mysql # not compatible
query I rowsort label-4421
SELECT + ( 57 ) * MAX ( DISTINCT + - 7 ) FROM tab2
----
-399

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT - col1 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + - - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4424
SELECT COUNT( * ) AS col0, 97 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3
97

skipif mysql # not compatible
query II rowsort label-4424
SELECT COUNT ( * ) AS col0, 97 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT ALL + 88 * COUNT( * ) AS col2 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL + 88 * COUNT ( * ) AS col2 FROM tab2
----
264

query I rowsort
SELECT - col0 + - col0 + - - col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4427
SELECT ALL + - col2 DIV + col0 + col0 * - 36 * + + col2 FROM tab2 AS cor0
----
-156600
-38088
-92160

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL + - col2 / + col0 + col0 * - 36 * + + col2 FROM tab2 AS cor0
----
-156600
-38088
-92160

query I rowsort
SELECT DISTINCT - 30 AS col0 FROM tab2 cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT + 76 * COUNT( * ) * 89 FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN - 17 AND - 37
----
20292

skipif mysql # not compatible
query I rowsort label-4429
SELECT + 76 * COUNT ( * ) * 89 FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN - 17 AND - 37
----
20292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4430
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + 91 col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4430
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + + 91 col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col1 + - + 68 FROM tab1 AS cor0
----
-21
-54
-63

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 / col0 <= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 2 + ( + 28 ) AS col2 FROM tab1 AS cor0
----
30

query I rowsort
SELECT DISTINCT + - col0 - col1 * - col0 * - - col2 + + col2 AS col2 FROM tab0 cor0
----
18193
57137
9605

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT + ( + + COUNT( * ) ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4435
SELECT + ( + + COUNT ( * ) ) FROM tab2 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( NULL = + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) * 30 col2 FROM tab2
----
1530
2010
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT ALL + MAX( ALL + 84 ) * + 51 AS col2 FROM tab0
----
4284

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL + MAX ( ALL + 84 ) * + 51 AS col2 FROM tab0
----
4284

query I rowsort
SELECT col2 * col2 * + col2 - - - col1 - + ( - col2 ) AS col0 FROM tab1
----
205433
314453
884818

onlyif mysql # DIV for integer division: 
query I rowsort label-4440
SELECT ( + 16 ) - col2 DIV col2 + 3 - - - 48 + col2 + 99 + + + col1 FROM tab2
----
143
186
194

skipif mysql # not compatible
query I rowsort label-4440
SELECT ( + 16 ) - col2 / col2 + 3 - - - 48 + col2 + 99 + + + col1 FROM tab2
----
143
186
194

query I rowsort
SELECT DISTINCT + 30 * ( col0 ) AS col2 FROM tab2 AS cor0
----
1380
1920
2250

query I rowsort
SELECT + - ( ( - col1 ) ) - + 93 + - 28 * - col1 FROM tab1 cor0
----
1270
313
52

query I rowsort
SELECT DISTINCT + 70 * col1 AS col1 FROM tab1
----
3290
350
980

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4444
SELECT ALL CAST( NULL AS DECIMAL ) / + 29 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL CAST ( NULL AS REAL ) / + 29 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 >= - ( + col2 )
----

query II rowsort
SELECT DISTINCT 13, + 43 + + 10 + - 78 AS col2 FROM tab1 AS cor0
----
13
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4447
SELECT DISTINCT - MIN( CAST( NULL AS SIGNED ) ) col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4447
SELECT DISTINCT - MIN ( CAST ( NULL AS INTEGER ) ) col0 FROM tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - col2 * 12 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 70 AS col2 FROM tab0 cor0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4450
SELECT - - 3 DIV - 63 - col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4450
SELECT - - 3 / - 63 - col1 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + + col1 <= + 65
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT ALL COUNT( * ) * - MIN( ALL col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4452
SELECT ALL COUNT ( * ) * - MIN ( ALL col1 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4453
SELECT - CAST( NULL AS SIGNED ) * + col0 / + - 89 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4453
SELECT - CAST ( NULL AS INTEGER ) * + col0 / + - 89 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN col1 + col1 * - col2 * - - 62 AND - 26
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, + col1 * + - col2 col2 FROM tab1
----
51
-1344
85
-295
91
-3196

query I rowsort
SELECT - 88 * col2 AS col2 FROM tab0
----
-4136
-8712
-880

query I rowsort
SELECT DISTINCT + + col2 AS col0 FROM tab2 WHERE + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 col2 FROM tab1 AS cor0 WHERE NULL IN ( - col1, + 9, - col1 * 77, col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 83 col0 FROM tab0 AS cor0
----
170
180
98

query I rowsort
SELECT DISTINCT - 42 - + ( - col2 ) FROM tab1
----
17
26
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT + 0 * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4461
SELECT + 0 * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query II rowsort
SELECT - + 53 * + col1 * col1, col2 FROM tab0 AS cor0
----
-23373
10
-347733
47
-53
99

query I rowsort
SELECT ALL + col2 + + + 25 FROM tab2 AS cor0
----
48
65
83

query I rowsort
SELECT DISTINCT col0 + - col2 / - col0 AS col1 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col0 - + col2 + - + col2 FROM tab1 AS cor0
----
-141
-33
-45

query I rowsort
SELECT ALL col2 - - col0 AS col0 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT + 75 + - MIN( DISTINCT - 98 ) + + COUNT( * ) AS col0 FROM tab1
----
176

skipif mysql # not compatible
query I rowsort label-4467
SELECT + 75 + - MIN ( DISTINCT - 98 ) + + COUNT ( * ) AS col0 FROM tab1
----
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4468
SELECT DISTINCT + col0 * + CAST( - + 96 AS SIGNED ) AS col1 FROM tab1
----
-4896
-8160
-8736

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT + col0 * + CAST ( - + 96 AS INTEGER ) AS col1 FROM tab1
----
-4896
-8160
-8736

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT ALL - 5 * 40 * - + COUNT( * ) * + COUNT( DISTINCT col2 ) FROM tab1
----
1800

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL - 5 * 40 * - + COUNT ( * ) * + COUNT ( DISTINCT col2 ) FROM tab1
----
1800

query I rowsort
SELECT ALL - 15 FROM tab1 WHERE + + 36 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4471
SELECT + CAST( - 35 AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4471
SELECT + CAST ( - 35 AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT ALL + + SUM( DISTINCT 75 ) AS col2 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL + + SUM ( DISTINCT 75 ) AS col2 FROM tab1 AS cor0
----
75

query I rowsort
SELECT - 9 * + ( 40 ) + + col0 FROM tab1 cor0
----
-269
-275
-309

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4474
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( + col2 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-4474
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( + col2 AS INTEGER ) < NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col1 NOT BETWEEN ( - + col0 * + col2 ) AND - ( + col2 ) - + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT 71 + + col0 NOT BETWEEN NULL AND 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT ALL ( - MIN( col2 ) ) * - COUNT( ALL col1 ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL ( - MIN ( col2 ) ) * - COUNT ( ALL col1 ) FROM tab0
----
30

query I rowsort
SELECT - + 71 - - 49 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

onlyif mysql # DIV for integer division: 
query II rowsort label-4479
SELECT ALL - col1 DIV + col2 AS col2, - col2 * + col1 + - - 12 FROM tab1 AS cor0
----
0
-1332
0
-283
0
-3184

skipif mysql # not compatible
query II rowsort label-4479
SELECT ALL - col1 / + col2 AS col2, - col2 * + col1 + - - 12 FROM tab1 AS cor0
----
0
-1332
0
-283
0
-3184

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4480
SELECT ALL - col0 + - 29 AS col0, - 62 + CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-116
-72
-126
-161
-44
-109

skipif mysql # not compatible
query II rowsort label-4480
SELECT ALL - col0 + - 29 AS col0, - 62 + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-116
-72
-126
-161
-44
-109

query I rowsort
SELECT - + ( - + 99 ) FROM tab1 AS cor0
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT DISTINCT SUM( - 79 ) FROM tab1 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT SUM ( - 79 ) FROM tab1 AS cor0
----
-237

onlyif mysql # DIV for integer division: 
query I rowsort label-4483
SELECT - col0 DIV - ( + 35 ) + + - col2 * - col2 * ( col1 ) DIV col2 FROM tab0 AS cor0
----
101
212
3807

skipif mysql # not compatible
query I rowsort label-4483
SELECT - col0 / - ( + 35 ) + + - col2 * - col2 * ( col1 ) / col2 FROM tab0 AS cor0
----
101
212
3807

query II rowsort
SELECT + - col1 + 79, col1 AS col1 FROM tab0 AS cor0
----
-2
81
58
21
78
1

query I rowsort
SELECT ALL + 99 * + col0 * + col1 FROM tab2
----
232254
487872
497475

query I rowsort
SELECT DISTINCT 0 * + - col1 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4487
SELECT + COUNT( * ) * - COUNT( CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4487
SELECT + COUNT ( * ) * - COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - col0 - col0 AND col0 / - 90 * col0
----

query I rowsort
SELECT DISTINCT + 44 AS col0 FROM tab2, tab1 AS cor0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-4490
SELECT ALL col0 DIV col2 + + col1 AS col1 FROM tab2
----
53
68
78

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL col0 / col2 + + col1 AS col1 FROM tab2
----
53
68
78

onlyif mysql # DIV for integer division: 
query I rowsort label-4491
SELECT DISTINCT + 3 DIV - 44 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT + 3 / - 44 AS col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + ( + 61 ) col1 FROM tab2
----
112
128
138

query I rowsort
SELECT DISTINCT 6 + - 96 AS col2 FROM tab0
----
-90

query I rowsort
SELECT col0 * - 87 + + + 4 AS col1 FROM tab1 AS cor0
----
-4433
-7391
-7913

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4495
SELECT + col1 DIV + CAST( - col0 AS SIGNED ) + col0 * - - 47 + 57 + - col2 * + 85 * col2 * - 75 * + + col2 FROM tab2 AS cor0
----
1243842582
408003064
77566843

skipif mysql # not compatible
query I rowsort label-4495
SELECT + col1 / + CAST ( - col0 AS INTEGER ) + col0 * - - 47 + 57 + - col2 * + 85 * col2 * - 75 * + + col2 FROM tab2 AS cor0
----
1243842582
408003064
77566843

query I rowsort
SELECT col1 + + col1 - + col1 FROM tab0 AS cor0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 74 col1 FROM tab2 AS cor0
----
-1
10
28

query I rowsort
SELECT DISTINCT + + 76 * - col2 * ( - 73 ) + 91 FROM tab0 cor0
----
260847
549343
55571

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 >= - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 43 * + 14 AS col2 FROM tab1 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4501
SELECT + MIN( ALL - col1 ), CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-4501
SELECT + MIN ( ALL - col1 ), CAST ( NULL AS REAL ) AS col2 FROM tab0
----
-81
NULL

query II rowsort
SELECT ( col1 ), col0 AS col1 FROM tab2
----
51
46
67
75
77
64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 97 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4504
SELECT ALL 16 * - CAST( + 11 AS SIGNED ) * 70 FROM tab0 cor0
----
-12320
-12320
-12320

skipif mysql # not compatible
query I rowsort label-4504
SELECT ALL 16 * - CAST ( + 11 AS INTEGER ) * 70 FROM tab0 cor0
----
-12320
-12320
-12320

query I rowsort
SELECT DISTINCT - 84 * + 72 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-6048

query II rowsort
SELECT ALL - col1 AS col0, + col2 AS col2 FROM tab0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT - 41 FROM tab1 WHERE NOT + ( + col0 ) IS NULL
----
-41
-41
-41

query I rowsort
SELECT - 29 * col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( - 41 ) IS NOT NULL
----

query I rowsort
SELECT ALL + ( + - col2 ) * - - col0 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 col2 FROM tab2 AS cor0 WHERE NOT - 43 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + - col2 col0 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT ALL + + 79 + + 40 AS col2 FROM tab2 AS cor0
----
119
119
119

onlyif mysql # DIV for integer division: 
query I rowsort label-4513
SELECT ALL + 88 DIV + + col2 AS col1 FROM tab0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL + 88 / + + col2 AS col1 FROM tab0
----
0
1
8

query I rowsort
SELECT 27 * + 62 FROM tab2
----
1674
1674
1674

query I rowsort
SELECT ALL col1 + + col2 * + col0 FROM tab2 AS cor0
----
1109
2637
4417

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4516
SELECT * FROM tab1 AS cor0 WHERE NULL = ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4516
SELECT * FROM tab1 AS cor0 WHERE NULL = ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + 75 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT DISTINCT - ( + COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT - ( + COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4519
SELECT DISTINCT + COUNT( * ) - CAST( ( + MIN( ALL - col1 ) ) AS SIGNED ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-4519
SELECT DISTINCT + COUNT ( * ) - CAST ( ( + MIN ( ALL - col1 ) ) AS INTEGER ) FROM tab2
----
80

query I rowsort
SELECT ALL - - col0 * - 84 AS col1 FROM tab0 AS cor0
----
-1260
-7308
-8148

query I rowsort
SELECT DISTINCT - 23 * - - 58 + - col2 + 44 AS col1 FROM tab2 AS cor0
----
-1313
-1330
-1348

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 90 * - - 45 AS col1 FROM tab0 AS cor0
----
-4050
-4050
-4050

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT MAX( ALL 11 ) AS col0 FROM tab1 cor0
----
11

skipif mysql # not compatible
query I rowsort label-4524
SELECT MAX ( ALL 11 ) AS col0 FROM tab1 cor0
----
11

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( 69, - col1 )
----

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT col1 * + col2 IS NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - ( - 56 ) / + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( 72 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT + COUNT( DISTINCT + - col2 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4528
SELECT + COUNT ( DISTINCT + - col2 ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT DISTINCT - COUNT( DISTINCT + 53 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT - COUNT ( DISTINCT + 53 ) FROM tab1
----
-1

query I rowsort
SELECT DISTINCT - - 53 - - 67 * + 17 FROM tab0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT ( 74 ) FROM tab2, tab0 AS cor0
----
74

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE NOT - 21 + + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT DISTINCT + - MIN( - + col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4533
SELECT DISTINCT + - MIN ( - + col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4534
SELECT DISTINCT col1 AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-4534
SELECT DISTINCT col1 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - - ( + - col2 )
----

query II rowsort
SELECT ALL - col1 AS col0, - 87 AS col1 FROM tab1 AS cor0
----
-14
-87
-47
-87
-5
-87

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 18 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT DISTINCT 22 * - + SUM( DISTINCT - col1 ) * - 57 AS col1 FROM tab0
----
-129162

skipif mysql # not compatible
query I rowsort label-4538
SELECT DISTINCT 22 * - + SUM ( DISTINCT - col1 ) * - 57 AS col1 FROM tab0
----
-129162

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT ALL + 59 + + 42 * COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
437

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4539
SELECT ALL + 59 + + 42 * COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
437

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT + + SUM( - col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4540
SELECT + + SUM ( - col2 ) AS col1 FROM tab0 AS cor0
----
-156

query II rowsort
SELECT - col1, - col0 + - col1 FROM tab1 AS cor0 WHERE col2 * - ( + + 59 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT - - 85 + - COUNT( * ) FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-4542
SELECT - - 85 + - COUNT ( * ) FROM tab2 AS cor0
----
82

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 26 + ( - col2 ) >= + - 88 * ( + col0 ) - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 + - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-4992
-5074
-6256

onlyif mysql # aggregate syntax: 
query II rowsort label-4545
SELECT 68 + + 91, MAX( - - 11 ) col2 FROM tab2 AS cor0
----
159
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4545
SELECT 68 + + 91, MAX ( - - 11 ) col2 FROM tab2 AS cor0
----
159
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4546
SELECT ALL col1 + col1 DIV - col0 AS col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL col1 + col1 / - col0 AS col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT MIN( ALL col1 ) FROM tab1 AS cor0 WHERE col2 < - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-4547
SELECT MIN ( ALL col1 ) FROM tab1 AS cor0 WHERE col2 < - 58
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4548
SELECT ALL col1 + - + col0 DIV + CAST( + CAST( - col1 AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
17
22
48

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL col1 + - + col0 / + CAST ( + CAST ( - col1 AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
17
22
48

query I rowsort
SELECT col2 + + - col2 + + col2 * - - 49 FROM tab2 AS cor0
----
1127
1960
2842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4550
SELECT COUNT( * ) + + 42 - 41 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4550
SELECT COUNT ( * ) + + 42 - 41 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT DISTINCT + COUNT( - + col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4551
SELECT DISTINCT + COUNT ( - + col1 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT 4 * + + COUNT( * ) AS col1 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-4552
SELECT 4 * + + COUNT ( * ) AS col1 FROM tab1
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 * + + col0 col1 FROM tab2
----
-1150
-1600
-1875

query I rowsort
SELECT col1 * - + col1 AS col2 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT ALL col2 + 47 AS col0 FROM tab0 cor0
----
146
57
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT ALL ( MIN( - col2 ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL ( MIN ( - col2 ) ) FROM tab0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4557
SELECT - + col1 * col1 DIV + col2 AS col0 FROM tab1 AS cor0
----
-2
-32
0

skipif mysql # not compatible
query I rowsort label-4557
SELECT - + col1 * col1 / + col2 AS col0 FROM tab1 AS cor0
----
-2
-32
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT COUNT( ALL + col1 ) * - - COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4558
SELECT COUNT ( ALL + col1 ) * - - COUNT ( * ) FROM tab0 AS cor0
----
9

query II rowsort
SELECT + 73, col2 AS col2 FROM tab0
----
73
10
73
47
73
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4560
SELECT ALL MIN( DISTINCT - 5 ) DIV - 67 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4560
SELECT ALL MIN ( DISTINCT - 5 ) / - 67 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4561
SELECT ALL COUNT( * ) AS col0, COUNT( * ) col1 FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4561
SELECT ALL COUNT ( * ) AS col0, COUNT ( * ) col1 FROM tab0
----
3
3

query I rowsort
SELECT ALL + col2 * - 19 * + col0 * - col1 AS col2 FROM tab2
----
1025202
3745280
5537550

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT MAX( - - 35 ) AS col1 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-4563
SELECT MAX ( - - 35 ) AS col1 FROM tab0
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, col1 AS col0 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT DISTINCT - col2 * + col1 + - - 90 + col1 FROM tab1 AS cor0 WHERE NOT ( col0 > - col1 * + col0 * - - col0 + - col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col0 + - 98 * + - col0 + 29, + col1 * - col0 * - col1 )
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT NULL BETWEEN - - col0 AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 11 + - + 91 + + - 98 * col2 col0, col1 FROM tab0 AS cor0
----
-1082
21
-4708
81
-9804
1

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 59 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT + MIN( ALL - 90 ) FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-4571
SELECT + MIN ( ALL - 90 ) FROM tab2 AS cor0
----
-90

query I rowsort
SELECT ALL + 80 + - - col1 * + + col1 FROM tab1 cor0
----
105
2289
276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4573
SELECT - - col1 AS col0 FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) + - + ( ( + ( col0 ) ) ) IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4573
SELECT - - col1 AS col0 FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) + - + ( ( + ( col0 ) ) ) IS NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4574
SELECT DISTINCT COUNT( - + CAST( 77 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4574
SELECT DISTINCT COUNT ( - + CAST ( 77 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4575
SELECT DISTINCT CAST( - - ( + 79 ) AS SIGNED ) DIV - col2 - col1 - col0 AS col2 FROM tab0
----
-115
-97
-98

skipif mysql # not compatible
query I rowsort label-4575
SELECT DISTINCT CAST ( - - ( + 79 ) AS INTEGER ) / - col2 - col1 - col0 AS col2 FROM tab0
----
-115
-97
-98

query I rowsort
SELECT ( + - col2 ) - - - col0 AS col0 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT col0 * + 90 + + + col0 AS col1 FROM tab0
----
1365
7917
8827

query II rowsort
SELECT ALL + 39, - 68 * - col1 FROM tab2 WHERE NOT ( + col2 ) <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4579
SELECT + CAST( - col1 AS SIGNED ) + + col0 FROM tab2
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-4579
SELECT + CAST ( - col1 AS INTEGER ) + + col0 FROM tab2
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT + MAX( DISTINCT col0 ) + + COUNT( * ) AS col1 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-4580
SELECT + MAX ( DISTINCT col0 ) + + COUNT ( * ) AS col1 FROM tab1
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) col0 FROM tab2 cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 * + ( - col0 ) + - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4583
SELECT - - COUNT( 22 ), COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4583
SELECT - - COUNT ( 22 ), COUNT ( * ) FROM tab0 AS cor0
----
3
3

query II rowsort
SELECT - col1 AS col0, col2 + - - col2 * + 89 FROM tab2
----
-51
2070
-67
5220
-77
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT COUNT( * ) * - + 27 * COUNT( * ) * - ( + - 36 ) AS col1 FROM tab2
----
-8748

skipif mysql # not compatible
query I rowsort label-4585
SELECT COUNT ( * ) * - + 27 * COUNT ( * ) * - ( + - 36 ) AS col1 FROM tab2
----
-8748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4586
SELECT DISTINCT + ( + COUNT( DISTINCT - col2 ) ) * + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4586
SELECT DISTINCT + ( + COUNT ( DISTINCT - col2 ) ) * + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 4 * 71 FROM tab2 AS cor0
----
-284
-284
-284

query II rowsort
SELECT DISTINCT + + col1 AS col1, - 82 * + ( + ( + ( + col1 ) ) ) AS col1 FROM tab2 AS cor0
----
51
-4182
67
-5494
77
-6314

query I rowsort
SELECT + col0 * + + 88 AS col1 FROM tab2 AS cor0
----
4048
5632
6600

onlyif mysql # DIV for integer division: 
query I rowsort label-4590
SELECT DISTINCT + col2 DIV - - col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT + col2 / - - col0 FROM tab2 AS cor0
----
0

query II rowsort
SELECT + + col1, ( - 25 ) AS col2 FROM tab2 AS cor0
----
51
-25
67
-25
77
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 89 col1, + col1 + col0 AS col1 FROM tab1 AS cor0
----
-89
138
-89
65
-89
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4593
SELECT + 61 * - col1 DIV - + col1 AS col2 FROM tab0 cor0
----
61
61
61

skipif mysql # not compatible
query I rowsort label-4593
SELECT + 61 * - col1 / - + col1 AS col2 FROM tab0 cor0
----
61
61
61

query I rowsort
SELECT - - ( col1 ) AS col0 FROM tab2 cor0
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4595
SELECT DISTINCT + col1 DIV col0 * - 66 col1 FROM tab0
----
-330
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4595
SELECT DISTINCT + col1 / col0 * - 66 col1 FROM tab0
----
-330
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4596
SELECT ALL + + COUNT( col0 ) * - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab0 WHERE + 38 IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL + + COUNT ( col0 ) * - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 WHERE + 38 IS NOT NULL
----
-9

query I rowsort
SELECT DISTINCT + 65 * - - ( + col0 ) FROM tab2
----
2990
4160
4875

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT DISTINCT - + MAX( - - 97 ) FROM tab1 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4598
SELECT DISTINCT - + MAX ( - - 97 ) FROM tab1 AS cor0
----
-97

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 9 IS NOT NULL
----

query I rowsort
SELECT - - ( - col1 ) + - - 32 FROM tab2 AS cor0
----
-19
-35
-45

query I rowsort
SELECT + 80 + 66 FROM tab1 cor0
----
146
146
146

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT ALL + - SUM( + col0 ) * - 29 + 83 AS col0 FROM tab1 AS cor0 WHERE NOT col2 + - ( + 52 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL + - SUM ( + col0 ) * - 29 + 83 AS col0 FROM tab1 AS cor0 WHERE NOT col2 + - ( + 52 ) IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( col0 - + col2 + + col1 )
----

query I rowsort
SELECT ALL + - col0 - + + col1 + col2 AS col1 FROM tab1 cor0
----
-31
-70
31

query I rowsort
SELECT DISTINCT col0 + - col1 * 17 AS col0 FROM tab1
----
-187
-708
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4606
SELECT DISTINCT COUNT( * ), ( - + COUNT( * ) ) col2 FROM tab0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4606
SELECT DISTINCT COUNT ( * ), ( - + COUNT ( * ) ) col2 FROM tab0
----
3
-3

query I rowsort
SELECT ALL + col2 - + - col2 AS col2 FROM tab1
----
118
136
192

query II rowsort
SELECT ALL + col2, 0 FROM tab0
----
10
0
47
0
99
0

query I rowsort
SELECT ALL col2 * ( 12 ) - - + col2 FROM tab2
----
299
520
754

query I rowsort
SELECT DISTINCT + 48 AS col0 FROM tab2 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4611
SELECT col1 - + CAST( + 20 AS SIGNED ) AS col0 FROM tab2
----
31
47
57

skipif mysql # not compatible
query I rowsort label-4611
SELECT col1 - + CAST ( + 20 AS INTEGER ) AS col0 FROM tab2
----
31
47
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 22 col1 FROM tab0 AS cor0
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + + col1 col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT 64 - - col1 FROM tab0 AS cor0
----
145
65
85

query I rowsort
SELECT DISTINCT - 17 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT - - MAX( 4 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
4

skipif mysql # not compatible
query I rowsort label-4616
SELECT - - MAX ( 4 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
4

query I rowsort
SELECT DISTINCT + 21 * + col2 AS col0 FROM tab0
----
2079
210
987

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT COUNT( 96 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4618
SELECT COUNT ( 96 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - col2 * + ( col1 ) AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query II rowsort label-4620
SELECT DISTINCT COUNT( - col1 ) AS col1, 4 FROM tab0 AS cor0
----
3
4

skipif mysql # not compatible
query II rowsort label-4620
SELECT DISTINCT COUNT ( - col1 ) AS col1, 4 FROM tab0 AS cor0
----
3
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT DISTINCT MIN( DISTINCT - 92 ) FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-4621
SELECT DISTINCT MIN ( DISTINCT - 92 ) FROM tab1 AS cor0
----
-92

query II rowsort
SELECT - + col0 * + + 1, col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4623
SELECT - col2 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT - ( - col1 ) <= - col1 + 68
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4623
SELECT - col2 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT - ( - col1 ) <= - col1 + 68
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4624
SELECT + SUM( DISTINCT + CAST( + + ( + CAST( - 80 AS SIGNED ) ) AS SIGNED ) ) FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-4624
SELECT + SUM ( DISTINCT + CAST ( + + ( + CAST ( - 80 AS INTEGER ) ) AS INTEGER ) ) FROM tab0
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4625
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4625
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - + 69 AS col2 FROM tab0
----
-3243
-6831
-690

onlyif mysql # DIV for integer division: 
query I rowsort label-4627
SELECT DISTINCT - ( + ( col0 ) ) DIV - 38 AS col0 FROM tab1
----
1
2

skipif mysql # not compatible
query I rowsort label-4627
SELECT DISTINCT - ( + ( col0 ) ) / - 38 AS col0 FROM tab1
----
1
2

query I rowsort
SELECT ALL ( - ( col1 ) ) * + 37 - col1 FROM tab2
----
-1938
-2546
-2926

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT - 23 = NULL )
----

query I rowsort
SELECT ALL + col1 * - + col1 * + col2 FROM tab0
----
-308367
-4410
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4631
SELECT DISTINCT - + col1 DIV - 55 AS col2 FROM tab2 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT - + col1 / - 55 AS col2 FROM tab2 cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4632
SELECT ALL col1 DIV 24 + - col2 col1 FROM tab1 AS cor0
----
-59
-67
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4632
SELECT ALL col1 / 24 + - col2 col1 FROM tab1 AS cor0
----
-59
-67
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-4633
SELECT - MAX( DISTINCT col1 ) + - 71 AS col2, - COUNT( * ) FROM tab1 AS cor0
----
-118
-3

skipif mysql # not compatible
query II rowsort label-4633
SELECT - MAX ( DISTINCT col1 ) + - 71 AS col2, - COUNT ( * ) FROM tab1 AS cor0
----
-118
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) IN ( 67 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 45 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT - SUM( DISTINCT - 52 ) FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-4636
SELECT - SUM ( DISTINCT - 52 ) FROM tab1
----
52

query I rowsort
SELECT col1 * col2 + col1 AS col1 FROM tab1
----
1358
300
3243

query I rowsort
SELECT ALL - 22 * col1 FROM tab2
----
-1122
-1474
-1694

query I rowsort
SELECT 17 AS col0 FROM tab0 WHERE NOT ( NULL ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 * + ( ( + 70 ) ) col2 FROM tab2
----
4410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4641
SELECT + 62 DIV COUNT( * ) AS col0 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-4641
SELECT + 62 / COUNT ( * ) AS col0 FROM tab1
----
20

query I rowsort
SELECT DISTINCT col0 - ( 75 ) AS col2 FROM tab1
----
-24
10
16

query III rowsort
SELECT * FROM tab2 WHERE NOT - 75 BETWEEN + col2 + col2 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT 40 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4645
SELECT DISTINCT 41 DIV col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4645
SELECT DISTINCT 41 / col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col2 * 45 AS col2 FROM tab2 WHERE NULL NOT BETWEEN + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4647
SELECT col0 * - CAST( - 16 AS SIGNED ) AS col2 FROM tab0
----
1392
1552
240

skipif mysql # not compatible
query I rowsort label-4647
SELECT col0 * - CAST ( - 16 AS INTEGER ) AS col2 FROM tab0
----
1392
1552
240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4648
SELECT ALL ( + col1 ) FROM tab2 WHERE ( - 73 / CAST( NULL AS SIGNED ) ) BETWEEN ( NULL ) AND ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL ( + col1 ) FROM tab2 WHERE ( - 73 / CAST ( NULL AS INTEGER ) ) BETWEEN ( NULL ) AND ( - col1 )
----

query I rowsort
SELECT ( 50 ) * - col0 FROM tab2
----
-2300
-3200
-3750

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT BETWEEN col0 * - col2 AND + col0 - + 83
----

query I rowsort
SELECT ALL 31 + + 43 * col0 FROM tab1
----
2224
3686
3944

query I rowsort
SELECT col2 FROM tab0 WHERE NOT - 27 IN ( + col0 + col1 )
----
10
47
99

query III rowsort
SELECT * FROM tab2 WHERE ( - 12 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT - SUM( ALL col1 ) * SUM( 62 * 76 - + 15 ) FROM tab1
----
-930006

skipif mysql # not compatible
query I rowsort label-4654
SELECT - SUM ( ALL col1 ) * SUM ( 62 * 76 - + 15 ) FROM tab1
----
-930006

query I rowsort
SELECT ALL - col1 + 36 FROM tab0
----
-45
15
35

query I rowsort
SELECT DISTINCT - ( + col1 ) + + 3 FROM tab0
----
-18
-78
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4657
SELECT ALL + 1 DIV ( col1 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL + 1 / ( col1 ) FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 62 AS col2 FROM tab0 cor0
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - col2 col2 FROM tab0 AS cor0 WHERE NOT NULL < ( col2 + 80 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT DISTINCT ( + COUNT( + col0 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4660
SELECT DISTINCT ( + COUNT ( + col0 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4661
SELECT + col2 DIV 88 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4661
SELECT + col2 / 88 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-4662
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4663
SELECT - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4663
SELECT - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col1 FROM tab1 WHERE NOT 38 - 86 IS NULL
----
14
47
5

query I rowsort
SELECT + + col1 * 23 AS col1 FROM tab2 AS cor0
----
1173
1541
1771

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT - MIN( - 25 ) FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-4666
SELECT - MIN ( - 25 ) FROM tab1 AS cor0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4667
SELECT + col1 * - ( - col1 DIV col1 ) FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4667
SELECT + col1 * - ( - col1 / col1 ) FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT - + 46 * col1 FROM tab2 AS cor0
----
-2346
-3082
-3542

query I rowsort
SELECT + + 31 * - 99 FROM tab0 AS cor0
----
-3069
-3069
-3069

query I rowsort
SELECT + - col1 * + 18 AS col2 FROM tab1 AS cor0
----
-252
-846
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT ALL - + MIN( + 62 ) * - COUNT( * ) + 9 FROM tab0 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4671
SELECT ALL - + MIN ( + 62 ) * - COUNT ( * ) + 9 FROM tab0 AS cor0
----
195

query I rowsort
SELECT DISTINCT - 12 * + 63 AS col0 FROM tab1 AS cor0
----
-756

query I rowsort
SELECT ALL + 72 * - col0 AS col0 FROM tab2 AS cor0
----
-3312
-4608
-5400

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT COUNT( * ) + 20 AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4674
SELECT COUNT ( * ) + 20 AS col1 FROM tab2 AS cor0
----
23

query I rowsort
SELECT col0 + - - 87 FROM tab0
----
102
174
184

query I rowsort
SELECT ALL - 98 AS col1 FROM tab0 WHERE NOT 75 IS NULL
----
-98
-98
-98

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( ( col1 ) ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4678
SELECT ALL - CAST( SUM( DISTINCT 90 ) AS DECIMAL ) + + COUNT( * ) FROM tab1 WHERE NULL IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL - CAST ( SUM ( DISTINCT 90 ) AS REAL ) + + COUNT ( * ) FROM tab1 WHERE NULL IN ( col0 )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 < + 82
----

query I rowsort
SELECT - 35 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT DISTINCT + 74 AS col1 FROM tab1, tab2 AS cor0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4682
SELECT ALL CAST( 10 AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL CAST ( 10 AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4683
SELECT - CAST( - - COUNT( * ) AS SIGNED ) + - COUNT( - 84 ) col0 FROM tab1
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4683
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) + - COUNT ( - 84 ) col0 FROM tab1
----
-6

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL NOT IN ( ( + 98 ) - col2 * col0 ) )
----

query I rowsort
SELECT 94 + + - 46 * 52 + 63 AS col2 FROM tab0
----
-2235
-2235
-2235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4686
SELECT DISTINCT + + CAST( + + col1 AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT + + CAST ( + + col1 AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT COUNT( * ) + 13 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-4687
SELECT COUNT ( * ) + 13 FROM tab1 AS cor0
----
16

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4689
SELECT DISTINCT + + col2 DIV ( - col0 ) * - col1 - 45 FROM tab1 AS cor0
----
-31
-45

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT + + col2 / ( - col0 ) * - col1 - 45 FROM tab1 AS cor0
----
-31
-45

query I rowsort
SELECT ALL - 38 + - 27 FROM tab2 AS cor0
----
-65
-65
-65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4691
SELECT * FROM tab1 cor0 WHERE + col1 * + col2 * - ( col2 ) IN ( + CAST( NULL AS SIGNED ) + 1 )
----

skipif mysql # not compatible
query III rowsort label-4691
SELECT * FROM tab1 cor0 WHERE + col1 * + col2 * - ( col2 ) IN ( + CAST ( NULL AS INTEGER ) + 1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4692
SELECT ALL + 89 + col1 AS col0 FROM tab0 AS cor0 WHERE col1 = ( - - col2 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4692
SELECT ALL + 89 + col1 AS col0 FROM tab0 AS cor0 WHERE col1 = ( - - col2 + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= ( + 87 * col0 * 6 + col1 ) AND - ( col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - - 81 + - ( + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * + col1 - + 63 FROM tab2
----
2283
4865
4962

query II rowsort
SELECT col0 * - - col1 AS col1, + col2 AS col0 FROM tab0
----
1215
47
1827
10
97
99

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 27 ) IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT ALL + SUM( DISTINCT 45 ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL + SUM ( DISTINCT 45 ) FROM tab1
----
45

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 + + col1 + - 15 * + ( + col1 ) <= ( 94 - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4700
SELECT col0 * - col0 * - ( + ( + CAST( col2 AS SIGNED ) ) ) AS col2 FROM tab1
----
249696
426275
563108

skipif mysql # not compatible
query I rowsort label-4700
SELECT col0 * - col0 * - ( + ( + CAST ( col2 AS INTEGER ) ) ) AS col2 FROM tab1
----
249696
426275
563108

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT - MAX( DISTINCT - col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-4701
SELECT - MAX ( DISTINCT - col2 ) AS col1 FROM tab2
----
23

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL BETWEEN ( + - 89 ) AND NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( 51 * + col0 + + col2 - 52 * - col0 )
----

query I rowsort
SELECT + 46 * col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + col1 * - col0 )
----

query I rowsort
SELECT ( - col2 ) * - col2 FROM tab1 WHERE NOT + - col0 IN ( + col2 )
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT DISTINCT + ( + COUNT( * ) ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4706
SELECT DISTINCT + ( + COUNT ( * ) ) col2 FROM tab0
----
3

query I rowsort
SELECT col2 * 50 AS col2 FROM tab0
----
2350
4950
500

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 3 + + col1 + + col0 col2, + col0 * + col2 AS col0 FROM tab2 AS cor0
----
100
1058
144
2560
145
4350

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT 97 - + col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4711
SELECT + 16 * CAST( + 67 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
-24656
-42880
-62176

skipif mysql # not compatible
query I rowsort label-4711
SELECT + 16 * CAST ( + 67 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
-24656
-42880
-62176

query I rowsort
SELECT DISTINCT - ( - - col1 ) AS col2 FROM tab2 cor0
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * ( + + 93 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 2 * - col1 + - + col0 + 4 AS col0 FROM tab0 cor0
----
-125
-173
-95

query II rowsort
SELECT + col0 AS col0, - col2 FROM tab0
----
15
-47
87
-10
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT ALL - SUM( DISTINCT - col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL - SUM ( DISTINCT - col1 ) FROM tab0
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4717
SELECT ALL 97 + + - 38 + - COUNT( col1 ) DIV + ( + 72 ) FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL 97 + + - 38 + - COUNT ( col1 ) / + ( + 72 ) FROM tab2
----
59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4718
SELECT CAST( + + col2 AS SIGNED ) DIV - ( + 28 ) + + col0 AS col2 FROM tab0
----
14
87
94

skipif mysql # not compatible
query I rowsort label-4718
SELECT CAST ( + + col2 AS INTEGER ) / - ( + 28 ) + + col0 AS col2 FROM tab0
----
14
87
94

query I rowsort
SELECT - col0 + - - col2 * + col1 AS col2 FROM tab2 AS cor0
----
1127
3016
3811

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < 35
----

query I rowsort
SELECT - col1 * + + 33 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1683
-2211
-2541

query II rowsort
SELECT + col0 AS col2, 63 * - col2 FROM tab0 cor0
----
15
-2961
87
-630
97
-6237

query I rowsort
SELECT + ( - ( + col2 ) ) * + + col1 + - + 53 * 75 AS col0 FROM tab1
----
-4270
-5319
-7171

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 5 IS NULL
----

query I rowsort
SELECT DISTINCT + 20 * - 17 AS col1 FROM tab2 AS cor0
----
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT - SUM( ALL col2 ) - - 88 FROM tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-4726
SELECT - SUM ( ALL col2 ) - - 88 FROM tab1 AS cor0
----
-135

query I rowsort
SELECT + 18 - 42 FROM tab2 AS cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT DISTINCT - + MAX( DISTINCT + 72 ) + 93 FROM tab1 cor0
----
21

skipif mysql # not compatible
query I rowsort label-4728
SELECT DISTINCT - + MAX ( DISTINCT + 72 ) + 93 FROM tab1 cor0
----
21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4729
SELECT + CAST( NULL AS DECIMAL ) + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4729
SELECT + CAST ( NULL AS REAL ) + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT MAX( ALL - ( 61 ) ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-4730
SELECT MAX ( ALL - ( 61 ) ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-64

query I rowsort
SELECT - col1 + 6 * + 73 FROM tab1 AS cor0
----
391
424
433

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 4 + + 90 col2 FROM tab2 AS cor0
----
94
94
94

query I rowsort
SELECT AVG ( + col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4734
SELECT - col1 AS col2, CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-4734
SELECT - col1 AS col2, CAST ( NULL AS REAL ) AS col0 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL ) OR NULL IS NOT NULL
----

query II rowsort
SELECT ALL col2 AS col1, ( - 17 ) AS col2 FROM tab0
----
10
-17
47
-17
99
-17

query II rowsort
SELECT + 99 AS col1, - 17 FROM tab0
----
99
-17
99
-17
99
-17

query I rowsort
SELECT + col2 / col0 - - - ( col1 ) FROM tab1 WHERE NOT - 45 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT ALL + MAX( - col2 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-4739
SELECT ALL + MAX ( - col2 ) AS col1 FROM tab2
----
-23

query I rowsort
SELECT ( 44 ) AS col2 FROM tab2
----
44
44
44

query I rowsort
SELECT + col1 * - 71 FROM tab2 cor0
----
-3621
-4757
-5467

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT 33 <> ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT COUNT( col1 ) FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4743
SELECT COUNT ( col1 ) FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 77 + + 74 AS col2, - 64 col2 FROM tab0 AS cor0
----
-3
-64

query II rowsort
SELECT ALL - + col0 * ( - col1 ), col2 + - col2 + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT + col2 + 96 AS col0 FROM tab1 AS cor0
----
155
164
192

query I rowsort
SELECT ( + ( 50 ) ) + - - ( - + 34 ) FROM tab1 AS cor0
----
16
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - col2 - 31 + ( - 15 ), - 75 col1 FROM tab2 AS cor0
----
-1646
-75
-3410
-75
-575
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT ALL - SUM( ( col2 ) ) AS col1 FROM tab0 WHERE NOT ( + - col1 ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL - SUM ( ( col2 ) ) AS col1 FROM tab0 WHERE NOT ( + - col1 ) > NULL
----
NULL

query I rowsort
SELECT ALL + col0 + + 80 FROM tab0
----
167
177
95

query II rowsort
SELECT - 17 AS col1, col0 FROM tab1
----
-17
51
-17
85
-17
91

query I rowsort
SELECT - + 86 * + col2 - - - col1 * - col0 FROM tab1 cor0
----
-1571
-4649
-7542

query II rowsort
SELECT DISTINCT + 55, + 82 * col2 AS col2 FROM tab2 AS cor0
----
55
1886
55
3280
55
4756

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 BETWEEN col2 AND - col1 + - col2 / + ( - + col0 )
----

query I rowsort
SELECT DISTINCT - - col2 + + 80 FROM tab0 AS cor0
----
127
179
90

query I rowsort
SELECT DISTINCT - - 89 + - 90 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL + col2 * + + col1 - - 71 AS col1 FROM tab2
----
1244
3151
3957

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT ALL + MAX( DISTINCT 56 ) * + 95 FROM tab1
----
5320

skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL + MAX ( DISTINCT 56 ) * + 95 FROM tab1
----
5320

query I rowsort
SELECT + 75 + - col1 AS col0 FROM tab1
----
28
61
70

query I rowsort
SELECT ( - 79 ) FROM tab0 cor0
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT DISTINCT + COUNT( * ) + + COUNT( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4761
SELECT DISTINCT + COUNT ( * ) + + COUNT ( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
6

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE NOT - 12 / + + col2 + - + col0 NOT BETWEEN - col2 AND ( col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4763
SELECT ALL + COUNT( * ) col2, - 92 FROM tab2 cor0
----
3
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4763
SELECT ALL + COUNT ( * ) col2, - 92 FROM tab2 cor0
----
3
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-4764
SELECT - 95 DIV col1 FROM tab1 AS cor0
----
-19
-2
-6

skipif mysql # not compatible
query I rowsort label-4764
SELECT - 95 / col1 FROM tab1 AS cor0
----
-19
-2
-6

query II rowsort
SELECT DISTINCT + col0, 6 - 44 - + col2 AS col2 FROM tab0 AS cor0
----
15
-85
87
-48
97
-137

query II rowsort
SELECT DISTINCT - 98 AS col2, col0 * col1 FROM tab0 cor0
----
-98
1215
-98
1827
-98
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT DISTINCT - ( + 81 ) * + COUNT( * ) + SUM( - + 15 ) col0 FROM tab2
----
-288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4767
SELECT DISTINCT - ( + 81 ) * + COUNT ( * ) + SUM ( - + 15 ) col0 FROM tab2
----
-288

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 <= - col0 + - col0
----

query I rowsort
SELECT DISTINCT col2 * + 12 FROM tab1
----
1152
708
816

query III rowsort
SELECT ALL * FROM tab1 WHERE - 43 IS NULL
----

query I rowsort
SELECT ALL col0 * - - 0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - 68 * - 37 * - - col2 FROM tab1
----
148444
171088
241536

onlyif mysql # DIV for integer division: 
query I rowsort label-4773
SELECT DISTINCT col0 DIV ( 43 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4773
SELECT DISTINCT col0 / ( 43 ) FROM tab2
----
1

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= 58
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4775
SELECT + 47 * - - 12 * + - col1 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4775
SELECT + 47 * - - 12 * + - col1 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT ALL MAX( + + col1 ) * COUNT( DISTINCT - - ( - 0 ) ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL MAX ( + + col1 ) * COUNT ( DISTINCT - - ( - 0 ) ) FROM tab1 cor0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4777
SELECT + ( - 51 ) DIV + 59 * col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4777
SELECT + ( - 51 ) / + 59 * col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 47 * - col0 FROM tab2
----
-2162
-3008
-3525

onlyif mysql # DIV for integer division: 
query I rowsort label-4779
SELECT ALL + col2 DIV - 91 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL + col2 / - 91 AS col2 FROM tab1
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 32 BETWEEN 3 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4781
SELECT DISTINCT - CAST( - - ( - COUNT( * ) ) AS SIGNED ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4781
SELECT DISTINCT - CAST ( - - ( - COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT + COUNT( * ) + + - 23 AS col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-20

skipif mysql # not compatible
query I rowsort label-4782
SELECT + COUNT ( * ) + + - 23 AS col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-4783
SELECT + COUNT( * ) col0, COUNT( + 58 ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4783
SELECT + COUNT ( * ) col0, COUNT ( + 58 ) FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT ALL + - col0 + - + col0 + - + col2 AS col2 FROM tab1 AS cor0
----
-198
-229
-250

query I rowsort
SELECT DISTINCT - col2 * + + col1 - - - col1 + - ( - col0 ) FROM tab0 AS cor0
----
-144
-3
-3873

query I rowsort
SELECT - ( - 28 ) + col2 FROM tab1
----
124
87
96

query I rowsort
SELECT ALL + 68 - + col1 AS col0 FROM tab1
----
21
54
63

query III rowsort
SELECT * FROM tab1 WHERE - col2 + col0 NOT BETWEEN NULL AND ( 34 )
----

query I rowsort
SELECT col0 + - - ( + col1 ) AS col2 FROM tab2
----
141
142
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 74 col2 FROM tab1
----
-125
-159
-165

query I rowsort
SELECT - 50 + + + ( col1 ) FROM tab2
----
1
17
27

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + + col2 - + col0 * + + ( - - ( + col2 ) ), - col0, col1, 34 * + + col2 * + col2 * + - 72 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4793
SELECT DISTINCT + CAST( NULL AS SIGNED ) - 70 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4793
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - 70 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4794
SELECT + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4794
SELECT + - CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + + - 65 * + col0 AS col2 FROM tab2
----
-2939
-4083
-4808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4796
SELECT ALL col0 - ( CAST( NULL AS SIGNED ) ) + 80 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL col0 - ( CAST ( NULL AS INTEGER ) ) + 80 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 col2 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT ALL COUNT( ALL - 87 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL COUNT ( ALL - 87 ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4799
SELECT ALL - col1 AS col0, col2 DIV + col0 + - + col0 AS col1 FROM tab0 AS cor0
----
-1
-96
-21
-87
-81
-12

skipif mysql # not compatible
query II rowsort label-4799
SELECT ALL - col1 AS col0, col2 / + col0 + - + col0 AS col1 FROM tab0 AS cor0
----
-1
-96
-21
-87
-81
-12

query II rowsort
SELECT ALL col1, - col1 * - + col0 AS col2 FROM tab2 AS cor0
----
51
2346
67
5025
77
4928

query I rowsort
SELECT - 67 * + 17 AS col1 FROM tab1 AS cor0
----
-1139
-1139
-1139

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT SUM( - 58 ) AS col0 FROM tab1 cor0
----
-174

skipif mysql # not compatible
query I rowsort label-4802
SELECT SUM ( - 58 ) AS col0 FROM tab1 cor0
----
-174

query II rowsort
SELECT + col2 * + col1, 58 AS col2 FROM tab0
----
210
58
3807
58
99
58

query I rowsort
SELECT + 50 + 92 FROM tab0 WHERE NOT NULL IS NOT NULL
----
142
142
142

onlyif mysql # aggregate syntax: 
query II rowsort label-4805
SELECT ALL + 73 AS col0, + COUNT( col0 ) AS col0 FROM tab1
----
73
3

skipif mysql # not compatible
query II rowsort label-4805
SELECT ALL + 73 AS col0, + COUNT ( col0 ) AS col0 FROM tab1
----
73
3

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT ( + col1 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4808
SELECT DISTINCT + col0 * - - CAST( - + 18 AS SIGNED ) FROM tab1 AS cor0
----
-1530
-1638
-918

skipif mysql # not compatible
query I rowsort label-4808
SELECT DISTINCT + col0 * - - CAST ( - + 18 AS INTEGER ) FROM tab1 AS cor0
----
-1530
-1638
-918

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 95 >= NULL
----

query I rowsort
SELECT + col0 * + + col2 + col0 FROM tab0 AS cor0
----
720
957
9700

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT - 26 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4811
SELECT - 26 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-23

query I rowsort
SELECT ALL + col2 + + + col1 AS col1 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT ALL AVG ( - col1 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4814
SELECT DISTINCT + + COUNT( * ) + - 36, 94 * + 98 AS col2 FROM tab2 cor0
----
-33
9212

skipif mysql # not compatible
query II rowsort label-4814
SELECT DISTINCT + + COUNT ( * ) + - 36, 94 * + 98 AS col2 FROM tab2 cor0
----
-33
9212

query I rowsort
SELECT ALL 83 / - 55 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT DISTINCT - SUM( 73 ) * - + MIN( - - col1 ) + - MIN( - col0 ) FROM tab0 AS cor0
----
316

skipif mysql # not compatible
query I rowsort label-4816
SELECT DISTINCT - SUM ( 73 ) * - + MIN ( - - col1 ) + - MIN ( - col0 ) FROM tab0 AS cor0
----
316

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4817
SELECT ALL ( - CAST( 81 AS SIGNED ) ), - col2 AS col0 FROM tab1
----
-81
-59
-81
-68
-81
-96

skipif mysql # not compatible
query II rowsort label-4817
SELECT ALL ( - CAST ( 81 AS INTEGER ) ), - col2 AS col0 FROM tab1
----
-81
-59
-81
-68
-81
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4818
SELECT CAST( - col2 AS SIGNED ) * + 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-4818
SELECT CAST ( - col2 AS INTEGER ) * + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT DISTINCT - MIN( DISTINCT - - ( col2 ) ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-4819
SELECT DISTINCT - MIN ( DISTINCT - - ( col2 ) ) AS col0 FROM tab2
----
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4820
SELECT ALL * FROM tab0 AS cor0 WHERE col2 / - + CAST( NULL AS DECIMAL ) < 17 OR NOT + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4820
SELECT ALL * FROM tab0 AS cor0 WHERE col2 / - + CAST ( NULL AS REAL ) < 17 OR NOT + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 - + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( + col1 IS NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 / + col2 * - ( - col0 ) col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 43 )
----

query I rowsort
SELECT - + col1 * - col2 * + + 81 AS col2 FROM tab0 AS cor0
----
17010
308367
8019

query I rowsort
SELECT DISTINCT + ( + 28 ) AS col0 FROM tab2
----
28

query III rowsort
SELECT ALL * FROM tab0 WHERE + 15 > + + 71
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4827
SELECT + col2 DIV 33 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4827
SELECT + col2 / 33 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT DISTINCT + MAX( - col1 ) col0 FROM tab1
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4828
SELECT DISTINCT + MAX ( - col1 ) col0 FROM tab1
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 93 AS col2, + col1 + - 40 col0 FROM tab1 AS cor0
----
-93
-26
-93
-35
-93
7

query I rowsort
SELECT ALL - 95 * + 4 * col2 AS col2 FROM tab0
----
-17860
-37620
-3800

query I rowsort
SELECT 87 + - col0 FROM tab0 WHERE - - col0 IS NOT NULL
----
-10
0
72

query I rowsort
SELECT DISTINCT + - 34 * + + ( + 60 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-2040

onlyif mysql # DIV for integer division: 
query II rowsort label-4833
SELECT - col1 * 52 AS col2, + 65 DIV + col0 AS col0 FROM tab0
----
-1092
0
-4212
4
-52
0

skipif mysql # not compatible
query II rowsort label-4833
SELECT - col1 * 52 AS col2, + 65 / + col0 AS col0 FROM tab0
----
-1092
0
-4212
4
-52
0

query I rowsort
SELECT ALL - 69 + - col0 FROM tab1 AS cor0
----
-120
-154
-160

query I rowsort
SELECT DISTINCT - - 55 + + col2 + 47 FROM tab0 AS cor0
----
112
149
201

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4836
SELECT - COUNT( ALL - col2 ) AS col1, - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) * COUNT( * ) * + + 79 AS col2 FROM tab0 AS cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-4836
SELECT - COUNT ( ALL - col2 ) AS col1, - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) * + + 79 AS col2 FROM tab0 AS cor0
----
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4837
SELECT DISTINCT + 31 + - - CAST( NULL AS SIGNED ) * + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4837
SELECT DISTINCT + 31 + - - CAST ( NULL AS INTEGER ) * + col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 81 + col1 * - ( - 92 ) * - col2 FROM tab2 AS cor0
----
-107997
-283441
-357593

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4840
SELECT + col1 + col0 DIV col2 col1 FROM tab2
----
53
68
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4840
SELECT + col1 + col0 / col2 col1 FROM tab2
----
53
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT ALL 84 * - SUM( - - col2 ) + ( - + COUNT( * ) ) FROM tab1
----
-18735

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL 84 * - SUM ( - - col2 ) + ( - + COUNT ( * ) ) FROM tab1
----
-18735

query I rowsort
SELECT DISTINCT + 17 - - 87 AS col2 FROM tab0
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4843
SELECT - CAST( NULL AS SIGNED ) + - - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4843
SELECT - CAST ( NULL AS INTEGER ) + - - col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col1 - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE + 23 >= - col2
----
59
68
96

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * ( + 32 ) * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4847
SELECT DISTINCT + COUNT( DISTINCT ( CAST( NULL AS SIGNED ) ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT + COUNT ( DISTINCT ( CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + + col2 * - col1 col2, col1 + + col0 + col0 + - - 87 FROM tab0 AS cor0 WHERE NOT 54 + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT - COUNT( 75 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4849
SELECT - COUNT ( 75 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT MIN( + col0 ) col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4850
SELECT MIN ( + col0 ) col1 FROM tab1 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4851
SELECT + + col2 DIV - + 35 AS col1 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4851
SELECT + + col2 / - + 35 AS col1 FROM tab1 AS cor0
----
-1
-1
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4852
SELECT SUM( - + CAST( - 65 AS SIGNED ) ) * - 24 FROM tab2 AS cor0
----
-4680

skipif mysql # not compatible
query I rowsort label-4852
SELECT SUM ( - + CAST ( - 65 AS INTEGER ) ) * - 24 FROM tab2 AS cor0
----
-4680

onlyif mysql # aggregate syntax: 
query II rowsort label-4853
SELECT - COUNT( * ), 82 AS col1 FROM tab1 AS cor0
----
-3
82

skipif mysql # not compatible
query II rowsort label-4853
SELECT - COUNT ( * ), 82 AS col1 FROM tab1 AS cor0
----
-3
82

query I rowsort
SELECT + 75 * - - col1 FROM tab0 AS cor0
----
1575
6075
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT 83 * COUNT( * ) FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-4855
SELECT 83 * COUNT ( * ) FROM tab0
----
249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4856
SELECT + AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4856
SELECT + AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4857
SELECT DISTINCT CAST( - col0 AS SIGNED ) AS col2, + col0 AS col0 FROM tab2 cor0
----
-46
46
-64
64
-75
75

skipif mysql # not compatible
query II rowsort label-4857
SELECT DISTINCT CAST ( - col0 AS INTEGER ) AS col2, + col0 AS col0 FROM tab2 cor0
----
-46
46
-64
64
-75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + - - col2 * - 5 col0 FROM tab0 AS cor0
----
-282
-594
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT SUM( DISTINCT + - col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4859
SELECT SUM ( DISTINCT + - col2 ) AS col0 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT 85 + + + col1 * + 93 AS col2 FROM tab2
----
4828
6316
7246

query I rowsort
SELECT col1 + + 71 AS col2 FROM tab0 cor0
----
152
72
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4862
SELECT ALL + - CAST( NULL AS SIGNED ) / ( + col0 ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL + - CAST ( NULL AS INTEGER ) / ( + col0 ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 81 * - col0 - + col0 FROM tab0 AS cor0
----
-1230
-7134
-7954

query I rowsort
SELECT - col1 * - 58 AS col2 FROM tab2 AS cor0
----
2958
3886
4466

query I rowsort
SELECT DISTINCT + col2 + - 67 AS col2 FROM tab0 AS cor0
----
-20
-57
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT + MIN( DISTINCT - 85 ) AS col1 FROM tab0 cor0
----
-85

skipif mysql # not compatible
query I rowsort label-4866
SELECT + MIN ( DISTINCT - 85 ) AS col1 FROM tab0 cor0
----
-85

query I rowsort
SELECT - col0 + - - col0 * - - 51 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
4350
4850
750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4868
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + + 11 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4868
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + + 11 FROM tab1
----
NULL

query I rowsort
SELECT ALL col1 * - 3 - + col0 AS col1 FROM tab1
----
-100
-232
-93

query I rowsort
SELECT DISTINCT col0 - - 61 + + + col1 * - 93 FROM tab0
----
-1805
-7457
65

query I rowsort
SELECT ALL - 29 - - 32 FROM tab1
----
3
3
3

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT + 87 - COUNT( * ) + COUNT( * ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-4873
SELECT + 87 - COUNT ( * ) + COUNT ( * ) FROM tab1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT DISTINCT + 55 * COUNT( * ) AS col1 FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT + 55 * COUNT ( * ) AS col1 FROM tab1
----
165

query I rowsort
SELECT + 52 * + - 14 AS col0 FROM tab1 AS cor0
----
-728
-728
-728

query I rowsort
SELECT 91 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 96 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 col1, + col2 FROM tab2 WHERE NOT NULL <> - col0 - + 15
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 59 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4879
SELECT ALL - - col2 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * + col0 * - 70 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL - - col2 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + col0 * - 70 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col1 )
----

query I rowsort
SELECT DISTINCT + ( + col2 ) AS col1 FROM tab1 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT ALL 18, col0 FROM tab1
----
18
51
18
85
18
91

query II rowsort
SELECT - col0, - 86 AS col2 FROM tab0
----
-15
-86
-87
-86
-97
-86

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 47 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4885
SELECT 52 * + 14 * - CAST( + + col0 AS SIGNED ) FROM tab1
----
-37128
-61880
-66248

skipif mysql # not compatible
query I rowsort label-4885
SELECT 52 * + 14 * - CAST ( + + col0 AS INTEGER ) FROM tab1
----
-37128
-61880
-66248

query II rowsort
SELECT DISTINCT 8, - col1 AS col2 FROM tab0
----
8
-1
8
-21
8
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-4887
SELECT ALL - COUNT( * ) col0, COUNT( * ) * 3 * + COUNT( - col2 ) AS col1 FROM tab2
----
-3
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4887
SELECT ALL - COUNT ( * ) col0, COUNT ( * ) * 3 * + COUNT ( - col2 ) AS col1 FROM tab2
----
-3
27

query I rowsort
SELECT ALL + 22 + col0 + - col2 AS col2 FROM tab0
----
-10
20
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4889
SELECT * FROM tab0 WHERE + 67 BETWEEN - + col1 / + CAST( - col2 AS SIGNED ) AND ( col1 )
----
15
81
47

skipif mysql # not compatible
query III rowsort label-4889
SELECT * FROM tab0 WHERE + 67 BETWEEN - + col1 / + CAST ( - col2 AS INTEGER ) AND ( col1 )
----
15
81
47

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT - 58 + + 26 - - col2 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT - + AVG ( - 0 ) * COUNT( + - 41 ) - + MAX( + + col2 ) col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4891
SELECT - + AVG ( - 0 ) * COUNT ( + - 41 ) - + MAX ( + + col2 ) col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT - col1 * 21 * - 54, + col1 FROM tab1 WHERE NOT - - 43 - + 37 IS NOT NULL
----

query I rowsort
SELECT col0 * + - col1 AS col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT COUNT( * ) * - MIN( ALL + + col2 ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-4894
SELECT COUNT ( * ) * - MIN ( ALL + + col2 ) FROM tab2
----
-69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4895
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 71 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT CAST ( NULL AS REAL ) * 71 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4896
SELECT - 75 - 49 DIV ( col0 ) AS col1 FROM tab2 AS cor0
----
-75
-75
-76

skipif mysql # not compatible
query I rowsort label-4896
SELECT - 75 - 49 / ( col0 ) AS col1 FROM tab2 AS cor0
----
-75
-75
-76

query I rowsort
SELECT ( col2 ) - + col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT ALL - COUNT( * ) * 13 + - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL - COUNT ( * ) * 13 + - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT - 12 * - MIN( ALL - col2 ) + + COUNT( * ) FROM tab2 AS cor0
----
-693

skipif mysql # not compatible
query I rowsort label-4899
SELECT - 12 * - MIN ( ALL - col2 ) + + COUNT ( * ) FROM tab2 AS cor0
----
-693

query I rowsort
SELECT + - col0 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + 25 col0 FROM tab0 AS cor0
----
-56
24
4

query I rowsort
SELECT DISTINCT 18 + + - col1 FROM tab0
----
-3
-63
17

query I rowsort
SELECT 51 + - col2 AS col2 FROM tab2
----
-7
11
28

onlyif mysql # aggregate syntax: 
query II rowsort label-4904
SELECT ALL - COUNT( * ) AS col2, + 25 FROM tab0
----
-3
25

skipif mysql # not compatible
query II rowsort label-4904
SELECT ALL - COUNT ( * ) AS col2, + 25 FROM tab0
----
-3
25

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col1 / - col2 IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4907
SELECT DISTINCT CAST( + + SUM( - CAST( + - col1 AS SIGNED ) ) AS SIGNED ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT CAST ( + + SUM ( - CAST ( + - col1 AS INTEGER ) ) AS INTEGER ) FROM tab1 AS cor0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4908
SELECT DISTINCT - 62 DIV - + col2 * col2 DIV col2 + ( - col2 ) - - - col2 AS col2 FROM tab1 AS cor0
----
-117
-136
-192

skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT - 62 / - + col2 * col2 / col2 + ( - col2 ) - - - col2 AS col2 FROM tab1 AS cor0
----
-117
-136
-192

query II rowsort
SELECT DISTINCT col0 AS col1, col2 AS col1 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT ALL - + ( + 27 ) FROM tab0 AS cor0
----
-27
-27
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4911
SELECT - - col1 * - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4911
SELECT - - col1 * - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT + SUM( DISTINCT - + col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4912
SELECT + SUM ( DISTINCT - + col0 ) AS col2 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT + 42 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query II rowsort
SELECT DISTINCT - col2 AS col0, col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT ALL - col1 * + 79 + + 16 FROM tab0 cor0
----
-1643
-63
-6383

query I rowsort
SELECT DISTINCT col1 * + col1 FROM tab1 cor0 WHERE NOT 30 / ( + 31 ) BETWEEN NULL AND NULL
----

query II rowsort
SELECT col1, col2 - + + col2 AS col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

query I rowsort
SELECT 53 + + - 14 * + - 83 AS col2 FROM tab0 cor0
----
1215
1215
1215

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT 20 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT DISTINCT - - 26 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4920
SELECT DISTINCT - - 26 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
23

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = - + 85 - - + ( - + col1 ) + 78 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT ALL - - ( + COUNT( * ) ) AS col0 FROM tab0 WHERE NOT NULL <= + 50 * + 57
----
0

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL - - ( + COUNT ( * ) ) AS col0 FROM tab0 WHERE NOT NULL <= + 50 * + 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT ALL COUNT( DISTINCT - - col1 ) + - COUNT( * ) * + + 60 FROM tab2
----
-177

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL COUNT ( DISTINCT - - col1 ) + - COUNT ( * ) * + + 60 FROM tab2
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT - SUM( ALL 15 ) AS col0 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-4924
SELECT - SUM ( ALL 15 ) AS col0 FROM tab1
----
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-4925
SELECT ALL - col0 DIV + 71, col1 FROM tab2
----
-1
67
0
51
0
77

skipif mysql # not compatible
query II rowsort label-4925
SELECT ALL - col0 / + 71, col1 FROM tab2
----
-1
67
0
51
0
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * 37, + col1 col1 FROM tab0
----
2997
81
37
1
777
21

query I rowsort
SELECT DISTINCT - + col2 + 72 FROM tab2 cor0
----
14
32
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4928
SELECT - col2 / - col0 + - - 71 + - + col0 AS col1, - 45 AS col1 FROM tab2 cor0 WHERE + 7 IS NOT NULL AND 24 IN ( 91 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query II rowsort label-4928
SELECT - col2 / - col0 + - - 71 + - + col0 AS col1, - 45 AS col1 FROM tab2 cor0 WHERE + 7 IS NOT NULL AND 24 IN ( 91 * + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col2 + - 53 AS col2 FROM tab2
----
-13
-30
5

query II rowsort
SELECT 77 + - ( + 14 ) AS col0, - 33 AS col1 FROM tab2
----
63
-33
63
-33
63
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT DISTINCT COUNT( * ) + - 28 AS col0 FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT COUNT ( * ) + - 28 AS col0 FROM tab1 AS cor0
----
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col1, - 59 FROM tab2 cor0
----
-23
-59
-40
-59
-58
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT ALL + SUM( ALL 25 ) + + 48 AS col2 FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-4933
SELECT ALL + SUM ( ALL 25 ) + + 48 AS col2 FROM tab0 AS cor0
----
123

query I rowsort
SELECT ALL - - 45 * - + col0 - - col2 + + col1 AS col1 FROM tab2 AS cor0
----
-1996
-2763
-3250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4935
SELECT DISTINCT CAST( 56 AS SIGNED ) FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-4935
SELECT DISTINCT CAST ( 56 AS INTEGER ) FROM tab2 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT 20 * + 90 + COUNT( * ) FROM tab1 AS cor0
----
1803

skipif mysql # not compatible
query I rowsort label-4936
SELECT 20 * + 90 + COUNT ( * ) FROM tab1 AS cor0
----
1803

onlyif mysql # DIV for integer division: 
query I rowsort label-4937
SELECT + col2 DIV col1 * + + col2 DIV col2 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-4937
SELECT + col2 / col1 * + + col2 / col2 FROM tab1
----
1
11
6

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 23 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT + + SUM( + col0 ) AS col1 FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-4939
SELECT + + SUM ( + col0 ) AS col1 FROM tab1 cor0
----
227

query I rowsort
SELECT DISTINCT + 61 + + + col1 FROM tab0 cor0
----
142
62
82

query I rowsort
SELECT ALL + - 42 * - - ( + - 80 ) * col0 + col2 + - col2 + col2 * - col0 FROM tab2 AS cor0
----
153502
212480
247650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4942
SELECT ALL - + col1 * + - 53 + + + col1 + + 85 + - + col1 * CAST( NULL AS SIGNED ) * + + col0 + - ( + 82 ) + 13 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL - + col1 * + - 53 + + + col1 + + 85 + - + col1 * CAST ( NULL AS INTEGER ) * + + col0 + - ( + 82 ) + 13 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4943
SELECT DISTINCT - col2 DIV + col1 FROM tab0 cor0
----
-99
0

skipif mysql # not compatible
query I rowsort label-4943
SELECT DISTINCT - col2 / + col1 FROM tab0 cor0
----
-99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT DISTINCT + 28 + - - SUM( - col1 ) FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT + 28 + - - SUM ( - col1 ) FROM tab0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT + 68 + + COUNT( * ) AS col0 FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-4945
SELECT + 68 + + COUNT ( * ) AS col0 FROM tab2
----
71

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( NULL ) <> + + col0 )
----

query I rowsort
SELECT DISTINCT - 1 * + col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT DISTINCT + SUM( ALL col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4948
SELECT DISTINCT + SUM ( ALL col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT DISTINCT COUNT( * ) + MIN( - 58 ) col1 FROM tab1 cor0
----
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4949
SELECT DISTINCT COUNT ( * ) + MIN ( - 58 ) col1 FROM tab1 cor0
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-4950
SELECT + col0 + - col0 DIV col2 AS col1 FROM tab0 AS cor0
----
15
79
97

skipif mysql # not compatible
query I rowsort label-4950
SELECT + col0 + - col0 / col2 AS col1 FROM tab0 AS cor0
----
15
79
97

query I rowsort
SELECT ALL - ( + col2 ) + - col1 AS col0 FROM tab0 cor0
----
-100
-128
-31

query II rowsort
SELECT col1 AS col1, + 88 AS col0 FROM tab1 AS cor0
----
14
88
47
88
5
88

query III rowsort
SELECT * FROM tab1 WHERE ( + 70 + col1 + col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - ( + - 25 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
25

query II rowsort
SELECT DISTINCT + ( + col2 ) AS col0, 32 AS col2 FROM tab1 AS cor0
----
59
32
68
32
96
32

query I rowsort
SELECT - - 52 * - col2 + col1 FROM tab2 AS cor0
----
-1145
-2003
-2949

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT DISTINCT ( - MIN( ALL + 35 ) ) AS col0 FROM tab0 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-4957
SELECT DISTINCT ( - MIN ( ALL + 35 ) ) AS col0 FROM tab0 AS cor0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4958
SELECT ALL - col1 * 36, col1 / + 33 + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
-1836
NULL
-2412
NULL
-2772
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4958
SELECT ALL - col1 * 36, col1 / + 33 + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
-1836
NULL
-2412
NULL
-2772
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * + 53 / - 92 - + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 44 FROM tab1 WHERE NOT + col1 + 52 IS NULL
----
44
44
44

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( + - col2 ) < NULL
----

query I rowsort
SELECT ALL + ( - - col0 ) * col1 FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < col2 + 33
----

query I rowsort
SELECT - col1 - - + col1 * + col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 < + col1
----
1134
1806
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4965
SELECT ALL - COUNT( * ) AS col1, - COUNT( * ) FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
-3
-3

skipif mysql # not compatible
query II rowsort label-4965
SELECT ALL - COUNT ( * ) AS col1, - COUNT ( * ) FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
-3
-3

query I rowsort
SELECT ALL + + 47 * + col2 * ( col2 ) + col2 - - col2 * - + 26 AS col1 FROM tab1 WHERE NOT + - 48 < 92
----

query II rowsort
SELECT ALL 8 + - col2 AS col1, - col1 AS col0 FROM tab2 AS cor0
----
-15
-51
-32
-77
-50
-67

query I rowsort
SELECT + col1 + - col0 * + + col0 AS col0 FROM tab2 AS cor0
----
-2065
-4019
-5558

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT + + COUNT( * ) + - COUNT( * ) + - 36 AS col0 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4969
SELECT + + COUNT ( * ) + - COUNT ( * ) + - 36 AS col0 FROM tab0 AS cor0
----
-36

query I rowsort
SELECT + col1 + + 7 AS col0 FROM tab1 AS cor0
----
12
21
54

query I rowsort
SELECT 10 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT ALL + + 42 AS col2 FROM tab0 WHERE NOT - 47 IS NOT NULL
----

query I rowsort
SELECT 6 * 29 FROM tab2
----
174
174
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4974
SELECT + ( - CAST( NULL AS SIGNED ) ) * AVG ( ALL - - col1 ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4974
SELECT + ( - CAST ( NULL AS INTEGER ) ) * AVG ( ALL - - col1 ) col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col1 / col2 AS col1 FROM tab2 WHERE NOT + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4976
SELECT ALL COUNT( * ) + CAST( + COUNT( * ) AS SIGNED ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-4976
SELECT ALL COUNT ( * ) + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1
----
6

query I rowsort
SELECT col2 * - - 85 AS col1 FROM tab0
----
3995
8415
850

onlyif mysql # DIV for integer division: 
query I rowsort label-4978
SELECT 21 DIV + + col2 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4978
SELECT 21 / + + col2 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT - COUNT( * ) - 79 AS col1 FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-4979
SELECT - COUNT ( * ) - 79 AS col1 FROM tab1 AS cor0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT ALL ( - MAX( col2 ) ) + - 30 FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL ( - MAX ( col2 ) ) + - 30 FROM tab2 AS cor0
----
-88

query I rowsort
SELECT DISTINCT - col0 + + - col2 FROM tab1 cor0
----
-144
-147
-159

query I rowsort
SELECT - col2 - + 92 FROM tab0 AS cor0
----
-102
-139
-191

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 55, col2 * + col1 + + ( - + col0 ) col1 FROM tab2 AS cor0
----
-55
1127
-55
3016
-55
3811

onlyif mysql # DIV for integer division: 
query I rowsort label-4984
SELECT DISTINCT - - col2 DIV - + col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4984
SELECT DISTINCT - - col2 / - + col2 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT + ( COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4985
SELECT + ( COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 ) * + col2 + col0 + + col1 < NULL
----

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 AS cor0 WHERE NOT NULL <> col0 - + 49
----

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT + 66 + + + col2 FROM tab0 cor0
----
113
165
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4990
SELECT + SUM( + CAST( - + ( + CAST( NULL AS DECIMAL ) ) AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4990
SELECT + SUM ( + CAST ( - + ( + CAST ( NULL AS REAL ) ) AS INTEGER ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT DISTINCT + ( COUNT( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4991
SELECT DISTINCT + ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT - COUNT( + ( + col1 ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4992
SELECT - COUNT ( + ( + col1 ) ) AS col1 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4993
SELECT ALL * FROM tab2 WHERE NOT + col0 BETWEEN + + 97 - CAST( - + col1 AS DECIMAL ) AND + + CAST( - + col0 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4993
SELECT ALL * FROM tab2 WHERE NOT + col0 BETWEEN + + 97 - CAST ( - + col1 AS REAL ) AND + + CAST ( - + col0 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 35 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col1, col1 * 38 AS col0 FROM tab0 cor0
----
15
3078
87
798
97
38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4996
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2, col0, - 7, col0, - - CAST( - + col1 AS SIGNED ) - + col2, - col2, - col0, col2 )
----

skipif mysql # not compatible
query III rowsort label-4996
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2, col0, - 7, col0, - - CAST ( - + col1 AS INTEGER ) - + col2, - col2, - col0, col2 )
----

query II rowsort
SELECT col2 AS col1, + 47 FROM tab1 AS cor0
----
59
47
68
47
96
47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 89 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-4999
SELECT DISTINCT - 43 DIV + 29 + + + 42, col0, - col1 + col1 * + col1 AS col0 FROM tab1 AS cor0
----
9 values hashing to 594a414e1d7e6ecd7d25b8dccadb3a61

skipif mysql # not compatible
query III rowsort label-4999
SELECT DISTINCT - 43 / + 29 + + + 42, col0, - col1 + col1 * + col1 AS col0 FROM tab1 AS cor0
----
9 values hashing to 594a414e1d7e6ecd7d25b8dccadb3a61

query I rowsort
SELECT - 70 - - 87 * + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-116998
-25735
-278122

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5001
SELECT * FROM tab1 cor0 WHERE - 52 NOT IN ( + col2 * - col2, + col1, - CAST( NULL AS SIGNED ) - - 86 )
----

skipif mysql # not compatible
query III rowsort label-5001
SELECT * FROM tab1 cor0 WHERE - 52 NOT IN ( + col2 * - col2, + col1, - CAST ( NULL AS INTEGER ) - - 86 )
----

query II rowsort
SELECT + col1 + + + 8, - col2 AS col1 FROM tab2
----
59
-23
75
-58
85
-40

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 <= col0
----
46
51
23
64
77
40

query I rowsort
SELECT col0 + - col1 * + col2 AS col0 FROM tab1
----
-1293
-210
-3105

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT ALL - SUM( 91 ) + - + 13 FROM tab2
----
-286

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL - SUM ( 91 ) + - + 13 FROM tab2
----
-286

query I rowsort
SELECT col1 + + + 59 FROM tab1
----
106
64
73

query I rowsort
SELECT - - col2 FROM tab0 WHERE - 47 > + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT DISTINCT 14 * - - COUNT( * ) AS col2 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT 14 * - - COUNT ( * ) AS col2 FROM tab0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT MAX( + 4 ) + ( + + COUNT( * ) ) AS col1 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-5009
SELECT MAX ( + 4 ) + ( + + COUNT ( * ) ) AS col1 FROM tab0
----
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5010
SELECT - MAX( + - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5010
SELECT - MAX ( + - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col2 BETWEEN - col1 + - - col1 AND + col0 + - - col2 * + col1 + 40
----

query I rowsort
SELECT DISTINCT + col2 + + + col0 AS col0 FROM tab2 AS cor0
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col2 col0 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT ALL + COUNT( * ) * - 10 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL + COUNT ( * ) * - 10 FROM tab2 AS cor0
----
-30

query I rowsort
SELECT col2 * col1 - + col1 FROM tab2 AS cor0
----
1122
3003
3819

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT ALL - COUNT( * ) * - 53 * + ( 25 ) FROM tab1 AS cor0
----
3975

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL - COUNT ( * ) * - 53 * + ( 25 ) FROM tab1 AS cor0
----
3975

query I rowsort
SELECT - 61 * + 54 FROM tab2 cor0
----
-3294
-3294
-3294

query I rowsort
SELECT ALL + 47 FROM tab1 AS cor0 WHERE 17 IS NOT NULL
----
47
47
47

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 83 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NOT NULL < ( col0 * + + 46 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + - + col1 * - col1 / - col2 >= NULL
----

query II rowsort
SELECT DISTINCT col2 * + - 99 AS col1, col0 AS col1 FROM tab2
----
-2277
46
-3960
64
-5742
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + - 34 ) col2 FROM tab1 AS cor0
----
34
34
34

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT NULL IN ( col0 * - col1 * col0, + col0 ) )
----

query I rowsort
SELECT DISTINCT - + 72 + + col1 * col1 AS col2 FROM tab0 AS cor0
----
-71
369
6489

query I rowsort
SELECT DISTINCT ( + 57 ) * - - col0 AS col2 FROM tab2
----
2622
3648
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT + + 60 * - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-540

skipif mysql # not compatible
query I rowsort label-5027
SELECT + + 60 * - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-540

query I rowsort
SELECT col1 * col2 + + col2 AS col0 FROM tab1
----
1440
3264
354

query I rowsort
SELECT DISTINCT + col1 * - col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5030
SELECT DISTINCT + col1 + - - col2 + + - CAST( NULL AS SIGNED ) * + + col1 / - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT + col1 + - - col2 + + - CAST ( NULL AS INTEGER ) * + + col1 / - col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + col0 * + - 65 + - col1 AS col0 FROM tab0 cor0
----
-1056
-5676
-6306

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5032
SELECT col0 + col0 AS col1, CAST( col1 AS SIGNED ) DIV - - col0 AS col0 FROM tab1 AS cor0
----
102
0
170
0
182
0

skipif mysql # not compatible
query II rowsort label-5032
SELECT col0 + col0 AS col1, CAST ( col1 AS INTEGER ) / - - col0 AS col0 FROM tab1 AS cor0
----
102
0
170
0
182
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 47 - col2 + - 36 IS NULL
----

query I rowsort
SELECT DISTINCT + - 68 + + - col0 * 56 FROM tab2 AS cor0
----
-2644
-3652
-4268

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5035
SELECT DISTINCT - + CAST( + 51 AS SIGNED ) AS col0, + col1 AS col1 FROM tab1 AS cor0
----
-51
14
-51
47
-51
5

skipif mysql # not compatible
query II rowsort label-5035
SELECT DISTINCT - + CAST ( + 51 AS INTEGER ) AS col0, + col1 AS col1 FROM tab1 AS cor0
----
-51
14
-51
47
-51
5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5036
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) > - 95
----

skipif mysql # not compatible
query III rowsort label-5036
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) > - 95
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5037
SELECT ALL ( col0 ) - - ( 35 ) + - 43 DIV col1 DIV + col1 AS col0 FROM tab0
----
122
50
89

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL ( col0 ) - - ( 35 ) + - 43 / col1 / + col1 AS col0 FROM tab0
----
122
50
89

query I rowsort
SELECT ALL + 55 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT DISTINCT COUNT( * ) + MAX( DISTINCT - col2 ) + - - COUNT( 16 ) - + COUNT( * ) col2 FROM tab0
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5039
SELECT DISTINCT COUNT ( * ) + MAX ( DISTINCT - col2 ) + - - COUNT ( 16 ) - + COUNT ( * ) col2 FROM tab0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5040
SELECT ALL - + CAST( + + MAX( ALL - col0 ) AS SIGNED ) AS col0 FROM tab2 WHERE NULL IS NULL
----
46

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL - + CAST ( + + MAX ( ALL - col0 ) AS INTEGER ) AS col0 FROM tab2 WHERE NULL IS NULL
----
46

query I rowsort
SELECT - 23 - 11 FROM tab0
----
-34
-34
-34

query I rowsort
SELECT + col2 * + col0 - + col2 * - - col1 + - col1 AS col0 FROM tab0
----
-3183
639
9503

query I rowsort
SELECT 26 - + + 42 AS col0 FROM tab0 AS cor0
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT + ( - MAX( DISTINCT 33 ) ) AS col1 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-5044
SELECT + ( - MAX ( DISTINCT 33 ) ) AS col1 FROM tab0
----
-33

query I rowsort
SELECT ALL 44 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
44
44
44

query I rowsort
SELECT DISTINCT col2 + col2 FROM tab1 WHERE NOT + 92 >= 24 * - col1 + + 25
----

query I rowsort
SELECT ( + col0 ) AS col1 FROM tab1 WHERE NOT + col0 = col1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT MAX( ALL + 27 ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-5048
SELECT MAX ( ALL + 27 ) FROM tab0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT SUM( DISTINCT col2 ) FROM tab0 WHERE NULL IS NULL
----
156

skipif mysql # not compatible
query I rowsort label-5049
SELECT SUM ( DISTINCT col2 ) FROM tab0 WHERE NULL IS NULL
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT MAX( - 60 ) AS col0 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-5050
SELECT MAX ( - 60 ) AS col0 FROM tab1
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-5051
SELECT DISTINCT - 92 DIV + col2 + + 32 FROM tab1
----
31
32

skipif mysql # not compatible
query I rowsort label-5051
SELECT DISTINCT - 92 / + col2 + + 32 FROM tab1
----
31
32

query I rowsort
SELECT - 66 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < + 14 * + 81
----

query I rowsort
SELECT + 53 FROM tab2 WHERE NULL IS NULL
----
53
53
53

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 <= + col2 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 1 * AVG ( - col1 ) AS col1 FROM tab1 WHERE 88 + + col0 * - 1 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 * - 16 FROM tab2 WHERE NOT NULL NOT IN ( - col1 * col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5058
SELECT + COUNT( * ) DIV 17 + COUNT( * ) * ( - MIN( ALL - col0 ) ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-5058
SELECT + COUNT ( * ) / 17 + COUNT ( * ) * ( - MIN ( ALL - col0 ) ) FROM tab1
----
273

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 83 ) > ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 82 ) - 62 col0 FROM tab2 WHERE + col0 * + col0 > ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE + ( - col0 ) BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT + ( + 60 ) FROM tab2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5064
SELECT - 16 + CAST( MAX( col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5064
SELECT - 16 + CAST ( MAX ( col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 3 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT ALL 0 * - COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5066
SELECT ALL 0 * - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
0

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5068
SELECT - col1 * + CAST( col0 / 8 AS SIGNED ) FROM tab0 WHERE NULL < ( - col2 - col0 )
----

skipif mysql # not compatible
query I rowsort label-5068
SELECT - col1 * + CAST ( col0 / 8 AS INTEGER ) FROM tab0 WHERE NULL < ( - col2 - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 col2 FROM tab0 WHERE NOT ( - col2 ) IN ( col1 )
----
49

query I rowsort
SELECT ( + col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5071
SELECT * FROM tab1 AS cor0 WHERE ( 0 + col1 * CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5071
SELECT * FROM tab1 AS cor0 WHERE ( 0 + col1 * CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5072
SELECT ALL + ( col1 ) + 42 FROM tab1 AS cor0 WHERE ( CAST( NULL AS SIGNED ) * col0 ) BETWEEN 66 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL + ( col1 ) + 42 FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) * col0 ) BETWEEN 66 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE ( 19 + 76 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5073
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE ( 19 + 76 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT - col2 + col0 * col0 AS col1 FROM tab1 AS cor0
----
2505
7166
8213

query I rowsort
SELECT - col1 - + col2 * + 33 AS col1 FROM tab1 AS cor0
----
-1952
-2291
-3182

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT ALL - - 96 + + COUNT( * ) FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL - - 96 + + COUNT ( * ) FROM tab0 cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5077
SELECT col2 DIV + 96 + 57 AS col1 FROM tab0 cor0
----
57
57
58

skipif mysql # not compatible
query I rowsort label-5077
SELECT col2 / + 96 + 57 AS col1 FROM tab0 cor0
----
57
57
58

query I rowsort
SELECT DISTINCT - + 97 + 63 FROM tab0 AS cor0
----
-34

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL < - col1
----

query I rowsort
SELECT DISTINCT 38 - - col1 * - 84 FROM tab2 AS cor0
----
-4246
-5590
-6430

query I rowsort
SELECT 29 + 94 AS col1 FROM tab2 AS cor0
----
123
123
123

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT 35 + MAX( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0 WHERE - col0 < - 83 + + ( - 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5082
SELECT 35 + MAX ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0 WHERE - col0 < - 83 + + ( - 43 )
----
NULL

query I rowsort
SELECT ALL - col1 * + col1 - + col2 AS col0 FROM tab1 AS cor0
----
-2277
-292
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5084
SELECT + ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN col2 * 60 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5084
SELECT + ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN col2 * 60 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 79 col1 FROM tab0
----
-18
-8
64

query I rowsort
SELECT DISTINCT 95 FROM tab1 WHERE + col2 IS NOT NULL
----
95

query I rowsort
SELECT col0 + - 98 AS col1 FROM tab0
----
-1
-11
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 + + col2 col2 FROM tab2
----
108
125
143

onlyif mysql # DIV for integer division: 
query I rowsort label-5089
SELECT DISTINCT - col1 - col0 + col2 DIV + 25 FROM tab0
----
-108
-95

skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT - col1 - col0 + col2 / + 25 FROM tab0
----
-108
-95

query I rowsort
SELECT - 14 + + + col2 FROM tab2
----
26
44
9

query I rowsort
SELECT ALL col0 - - + ( - ( + col1 ) ) AS col1 FROM tab2
----
-13
-5
8

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( col2 ) AND 85 / 18 - - ( 17 )
----

query I rowsort
SELECT + 9 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5094
SELECT - col2 * CAST( 85 AS SIGNED ) FROM tab1 WHERE NOT ( NULL ) BETWEEN + col2 * col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5094
SELECT - col2 * CAST ( 85 AS INTEGER ) FROM tab1 WHERE NOT ( NULL ) BETWEEN + col2 * col0 AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 95 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <> col1 - - col2
----

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT + 89 IS NULL
----
-1
-21
-81

query I rowsort
SELECT + 4 FROM tab0 WHERE NOT ( + + col1 ) IN ( col0 + col2 )
----
4
4
4

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + col1 ) IN ( col2 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col2 AS col2, 32 FROM tab0 AS cor0
----
-10
32
-47
32
-99
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5101
SELECT - CAST( - col2 AS SIGNED ) * ( 2 - + col1 ) FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-5101
SELECT - CAST ( - col2 AS INTEGER ) * ( 2 - + col1 ) FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 * 85 + - col0 col2 FROM tab1 AS cor0
----
1694
1700
1734

query I rowsort
SELECT - ( + col0 ) * - 71 FROM tab2 AS cor0
----
3266
4544
5325

query I rowsort
SELECT DISTINCT - 24 * + + col2 FROM tab2 AS cor0
----
-1392
-552
-960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5105
SELECT DISTINCT + CAST( - 99 AS SIGNED ) col1 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5105
SELECT DISTINCT + CAST ( - 99 AS INTEGER ) col1 FROM tab1 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5106
SELECT ALL + col1 * ( + CAST( 53 AS SIGNED ) ) AS col1 FROM tab0 WHERE NOT ( ( + col0 ) + + ( - col2 ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL + col1 * ( + CAST ( 53 AS INTEGER ) ) AS col1 FROM tab0 WHERE NOT ( ( + col0 ) + + ( - col2 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5107
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT + 23 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT + 23 IS NOT NULL
----

query I rowsort
SELECT ALL ( - - col1 ) * - 11 FROM tab0
----
-11
-231
-891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 col2 FROM tab1 WHERE NOT + 32 * + 71 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 25 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT ( 52 ) = ( 3 )
----
3

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT ( 52 ) = ( 3 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT - COUNT( * ) * - ( MAX( ALL 64 ) ) AS col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5112
SELECT - COUNT ( * ) * - ( MAX ( ALL 64 ) ) AS col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5113
SELECT DISTINCT 16 / + - col1 * - col2 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT 16 / + - col1 * - col2 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 11 * - col1 AS col0 FROM tab0 WHERE NOT ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT 26 * col1 AS col2 FROM tab1 AS cor0
----
1222
130
364

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + - col2 + + col1 + ( col0 ) / col0 <> NULL
----

query I rowsort
SELECT DISTINCT - - 6 + - - col1 * col0 FROM tab1 AS cor0
----
4283
431
720

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 >= ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 * col1 NOT BETWEEN NULL AND - 26
----

query I rowsort
SELECT + col1 + - - col2 AS col2 FROM tab0
----
100
128
31

query I rowsort
SELECT DISTINCT - col2 * + col1 + 89 * + - col1 FROM tab0 AS cor0
----
-11016
-188
-2079

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 = + col1
----

query I rowsort
SELECT ALL - col2 * - - col0 + - 30 + col0 AS col0 FROM tab0 AS cor0
----
-720
-813
-9536

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT DISTINCT - COUNT( * ) + 88 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-5124
SELECT DISTINCT - COUNT ( * ) + 88 FROM tab2 AS cor0
----
85

query I rowsort
SELECT DISTINCT + ( + 59 ) AS col1 FROM tab0 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT DISTINCT + 80 - + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5126
SELECT DISTINCT + 80 - + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + ( - - col2 ) AND ( - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5128
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 81 AS col2 FROM tab0 AS cor0 WHERE - col1 + - 69 * col0 / + + col0 BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT DISTINCT MAX( DISTINCT + + col0 ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5130
SELECT DISTINCT MAX ( DISTINCT + + col0 ) AS col2 FROM tab0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) col1 FROM tab0
----
1
21
81

query I rowsort
SELECT - 17 * col1 * - col2 FROM tab1
----
22848
5015
54332

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT - MIN( DISTINCT + ( - col2 ) ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-5133
SELECT - MIN ( DISTINCT + ( - col2 ) ) AS col1 FROM tab2
----
58

query I rowsort
SELECT + - 28 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - + col2 AND NULL
----

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 36 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5136
SELECT col2 DIV col1 * - 6 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5136
SELECT col2 / col1 * - 6 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT + COUNT( * ) + - 12 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-3

skipif mysql # not compatible
query I rowsort label-5137
SELECT + COUNT ( * ) + - 12 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 83 * + col2 >= ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT + MAX( ALL - - 33 ) AS col2 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-5139
SELECT + MAX ( ALL - - 33 ) AS col2 FROM tab2 AS cor0
----
33

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - - col2 * col1 * + - col2 * col0 * col2 )
----

query I rowsort
SELECT DISTINCT + col1 * + + col1 * - 29 + + 5 * col2 AS col0 FROM tab1 AS cor0
----
-430
-5204
-63721

query I rowsort
SELECT ALL col0 + 62 AS col2 FROM tab0 AS cor0
----
149
159
77

query I rowsort
SELECT - col2 * - 0 * + + col2 * + col2 + col0 * ( + 86 ) FROM tab0 AS cor0
----
1290
7482
8342

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5144
SELECT CAST( NULL AS SIGNED ) AS col0, - CAST( + 65 AS SIGNED ) * col2 FROM tab2
----
NULL
-1495
NULL
-2600
NULL
-3770

skipif mysql # not compatible
query II rowsort label-5144
SELECT CAST ( NULL AS INTEGER ) AS col0, - CAST ( + 65 AS INTEGER ) * col2 FROM tab2
----
NULL
-1495
NULL
-2600
NULL
-3770

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT DISTINCT + SUM( DISTINCT + col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-5145
SELECT DISTINCT + SUM ( DISTINCT + col0 ) AS col2 FROM tab0
----
199

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 10 > NULL
----

query I rowsort
SELECT col2 + + ( + 9 ) AS col0 FROM tab1
----
105
68
77

query I rowsort
SELECT DISTINCT + - ( - 17 ) FROM tab1 WHERE - col0 BETWEEN + 43 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5149
SELECT ALL + col2 * - col0 - + CAST( - - col0 AS SIGNED ) * col1 - - + 1 + - col0 FROM tab0 AS cor0
----
-1934
-2783
-9796

skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL + col2 * - col0 - + CAST ( - - col0 AS INTEGER ) * col1 - - + 1 + - col0 FROM tab0 AS cor0
----
-1934
-2783
-9796

query II rowsort
SELECT + col2 + - col2 * - 54, + col0 FROM tab1 AS cor0
----
3245
85
3740
91
5280
51

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 - - col2 * + + col0 <> NULL
----

query II rowsort
SELECT col2 AS col0, + ( - - 0 ) * + col2 + + - col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT DISTINCT + MAX( ALL col0 ) AS col2 FROM tab0 WHERE ( - + ( col2 ) ) NOT BETWEEN NULL AND - col2 - - - col1
----
97

skipif mysql # not compatible
query I rowsort label-5153
SELECT DISTINCT + MAX ( ALL col0 ) AS col2 FROM tab0 WHERE ( - + ( col2 ) ) NOT BETWEEN NULL AND - col2 - - - col1
----
97

query I rowsort
SELECT ( + col0 ) * + col2 AS col2 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5155
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 + - ( - CAST( NULL AS SIGNED ) ) + - - CAST( NULL AS SIGNED ) * + col2 NOT BETWEEN col1 * - col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5155
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 + - ( - CAST ( NULL AS INTEGER ) ) + - - CAST ( NULL AS INTEGER ) * + col2 NOT BETWEEN col1 * - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5156
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5156
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 * - col2 * + + col1 + col0 col1 FROM tab0 AS cor0
----
-16923
-308352
-7922

query I rowsort
SELECT + col0 * - col0 - + col2 + + col1 * - col1 AS col0 FROM tab2 cor0
----
-10065
-10172
-4740

query I rowsort
SELECT ALL 33 + - - col0 * - col0 AS col0 FROM tab2 cor0 WHERE ( NOT ( col2 ) IS NOT NULL ) OR NOT NULL BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5160
SELECT - CAST( + - COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5160
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5161
SELECT DISTINCT - 19 DIV + - col0 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT - 19 / + - col0 AS col0 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 * 25 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5163
SELECT ALL * FROM tab0 WHERE CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-5163
SELECT ALL * FROM tab0 WHERE CAST ( NULL AS INTEGER ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT DISTINCT + COUNT( DISTINCT - - 38 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5164
SELECT DISTINCT + COUNT ( DISTINCT - - 38 ) AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT DISTINCT - SUM( 22 ) AS col0 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT - SUM ( 22 ) AS col0 FROM tab2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT ALL COUNT( * ) * SUM( col2 ) FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL COUNT ( * ) * SUM ( col2 ) FROM tab1
----
669

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5167
SELECT - - CAST( + 75 AS SIGNED ) AS col2 FROM tab2 cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-5167
SELECT - - CAST ( + 75 AS INTEGER ) AS col2 FROM tab2 cor0
----
75
75
75

query II rowsort
SELECT ALL - 44, + col1 FROM tab1 AS cor0
----
-44
14
-44
47
-44
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT + 25 * + COUNT( DISTINCT + + col1 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5169
SELECT + 25 * + COUNT ( DISTINCT + + col1 ) FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT DISTINCT - SUM( ALL - col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT - SUM ( ALL - col1 ) AS col2 FROM tab2
----
195

query I rowsort
SELECT ALL - + 30 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 col0 FROM tab0
----
-69

query I rowsort
SELECT ( - - 65 ) FROM tab2
----
65
65
65

query I rowsort
SELECT 53 / - col1 AS col0 FROM tab1 WHERE NOT + + 12 = NULL
----

query III rowsort
SELECT - 39, - 13 AS col1, 6 * - + col2 AS col0 FROM tab2 AS cor0
----
9 values hashing to 29a9a6bb3182220a027742a77bfd75af

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL = - 78 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT ALL + - COUNT( * ) FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL + - COUNT ( * ) FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5178
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) NOT IN ( + + 85 )
----

skipif mysql # not compatible
query III rowsort label-5178
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) NOT IN ( + + 85 )
----

query I rowsort
SELECT ALL ( - 24 ) + + + col0 FROM tab0 AS cor0
----
-9
63
73

query I rowsort
SELECT + 33 * - col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 + - 52 AS col1 FROM tab2 AS cor0
----
-103
-119
-129

query I rowsort
SELECT - + 85 + - col2 FROM tab1 AS cor0
----
-144
-153
-181

query I rowsort
SELECT DISTINCT - 59 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN 1 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5184
SELECT ALL - + COUNT( * ) * 49 DIV 49 + - 22 col0 FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5184
SELECT ALL - + COUNT ( * ) * 49 / 49 + - 22 col0 FROM tab1 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-5185
SELECT DISTINCT + COUNT( * ), 46 * 19 AS col0 FROM tab0 AS cor0
----
3
874

skipif mysql # not compatible
query II rowsort label-5185
SELECT DISTINCT + COUNT ( * ), 46 * 19 AS col0 FROM tab0 AS cor0
----
3
874

query I rowsort
SELECT + AVG ( ALL col1 ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col2 + + - col0 - + col2 < ( - col0 ) * + col1 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5188
SELECT ALL - COUNT( + 19 ), COUNT( * ) AS col0 FROM tab2
----
-3
3

skipif mysql # not compatible
query II rowsort label-5188
SELECT ALL - COUNT ( + 19 ), COUNT ( * ) AS col0 FROM tab2
----
-3
3

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( + 20 ) = col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 40 - 74 + 21 FROM tab1 AS cor0
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT - MIN( - + 0 ) - - + 47 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5191
SELECT - MIN ( - + 0 ) - - + 47 FROM tab2 AS cor0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5192
SELECT + ( + COUNT( * ) ) DIV COUNT( * ) + + 23 + + + ( COUNT( + 0 ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
33

skipif mysql # not compatible
query I rowsort label-5192
SELECT + ( + COUNT ( * ) ) / COUNT ( * ) + + 23 + + + ( COUNT ( + 0 ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-5193
SELECT DISTINCT - 48 DIV col0 AS col2 FROM tab0
----
-3
0

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT - 48 / col0 AS col2 FROM tab0
----
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5194
SELECT DISTINCT - ( - 36 ) AS col0 FROM tab0 cor0 WHERE NOT ( ( - 70 * + col0 ) > CAST( NULL AS SIGNED ) * - + col1 )
----

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT - ( - 36 ) AS col0 FROM tab0 cor0 WHERE NOT ( ( - 70 * + col0 ) > CAST ( NULL AS INTEGER ) * - + col1 )
----

query I rowsort
SELECT col2 * - col0 * + - 66 * 15 AS col2 FROM tab2 AS cor0
----
1047420
2534400
4306500

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT MAX( ALL + 78 ) FROM tab2 AS cor0 WHERE NOT - 70 * col1 NOT BETWEEN - col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5196
SELECT MAX ( ALL + 78 ) FROM tab2 AS cor0 WHERE NOT - 70 * col1 NOT BETWEEN - col2 AND NULL
----
NULL

query I rowsort
SELECT + 15 * - 79 + - + ( - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
-1108
-1118
-1134

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT DISTINCT - 61 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-5198
SELECT DISTINCT - 61 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT DISTINCT + COUNT( ALL col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT + COUNT ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT - ( + ( - COUNT( * ) ) ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5200
SELECT - ( + ( - COUNT ( * ) ) ) col1 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 * - - 27 col0 FROM tab2
----
2430
2430
2430

query I rowsort
SELECT 26 * col1 * - - col2 AS col1 FROM tab2
----
101036
30498
80080

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
0

query I rowsort
SELECT ALL - 90 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT col2 + - - 37 * + 76 AS col1 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
2835
2852
2870

onlyif mysql # DIV for integer division: 
query I rowsort label-5206
SELECT ALL + ( + - 82 ) DIV - col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL + ( + - 82 ) / - col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL 50 + col1 * col1 + + col1 AS col0 FROM tab1 AS cor0
----
2306
260
80

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 34 + + - 80 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5209
SELECT DISTINCT + - 17 * + 2 + + ( - + 19 ) DIV - + 3 + + col2 AS col0 FROM tab1 AS cor0
----
31
40
68

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT + - 17 * + 2 + + ( - + 19 ) / - + 3 + + col2 AS col0 FROM tab1 AS cor0
----
31
40
68

query II rowsort
SELECT DISTINCT - + 74 + - col0 * + col1, col2 FROM tab0 cor0
----
-1289
47
-171
99
-1901
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5211
SELECT ALL col2 + - 13 DIV - col1 AS col2 FROM tab0 AS cor0
----
10
112
47

skipif mysql # not compatible
query I rowsort label-5211
SELECT ALL col2 + - 13 / - col1 AS col2 FROM tab0 AS cor0
----
10
112
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5212
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 60 / ( - 92 ) - - col0 + - CAST( NULL AS SIGNED ) BETWEEN NULL AND + col0
----

skipif mysql # not compatible
query III rowsort label-5212
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 60 / ( - 92 ) - - col0 + - CAST ( NULL AS INTEGER ) BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT DISTINCT + 9 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT + 9 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
6

query I rowsort
SELECT 76 + + col2 + 20 AS col2 FROM tab2
----
119
136
154

onlyif mysql # aggregate syntax: 
query II rowsort label-5215
SELECT ALL COUNT( * ) col2, COUNT( + - col2 ) FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5215
SELECT ALL COUNT ( * ) col2, COUNT ( + - col2 ) FROM tab2
----
3
3

query I rowsort
SELECT - - col0 FROM tab2 WHERE - - 97 >= + col2
----
46
64
75

query I rowsort
SELECT ALL 8 + + col1 FROM tab1
----
13
22
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5218
SELECT ALL + COUNT( * ) * + MIN( + CAST( + col0 AS SIGNED ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
153

skipif mysql # not compatible
query I rowsort label-5218
SELECT ALL + COUNT ( * ) * + MIN ( + CAST ( + col0 AS INTEGER ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5219
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, col1 * - 11 AS col2 FROM tab0
----
NULL
-11
NULL
-231
NULL
-891

skipif mysql # not compatible
query II rowsort label-5219
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, col1 * - 11 AS col2 FROM tab0
----
NULL
-11
NULL
-231
NULL
-891

query I rowsort
SELECT + ( - col1 ) + - 67 + 99 + - col0 * - 46 + - 96 * col2 AS col1 FROM tab1 AS cor0 WHERE ( + + col2 IS NOT NULL )
----
-1727
-2357
-6852

query I rowsort
SELECT DISTINCT - 34 + - - col2 * - 12 * 50 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-13834
-24034
-34834

query II rowsort
SELECT DISTINCT + 8 * + 59 AS col1, - 81 AS col2 FROM tab2 AS cor0
----
472
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5223
SELECT ALL + + ( + col2 ) + - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5223
SELECT ALL + + ( + col2 ) + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 63 + + + 64 - - col2 - + 28 * 43 FROM tab1 AS cor0
----
-1009
-1018
-981

query I rowsort
SELECT DISTINCT + col2 + - ( - col2 ) AS col0 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # DIV for integer division: 
query I rowsort label-5226
SELECT DISTINCT - col1 DIV - - ( - - col0 ) - - 26 + - - col2 FROM tab1
----
122
85
94

skipif mysql # not compatible
query I rowsort label-5226
SELECT DISTINCT - col1 / - - ( - - col0 ) - - 26 + - - col2 FROM tab1
----
122
85
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT ALL 14 * + + COUNT( * ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL 14 * + + COUNT ( * ) FROM tab1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 + - + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 + - + col2 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT DISTINCT + MAX( + col1 ) * - 61 FROM tab1 AS cor0
----
-2867

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT + MAX ( + col1 ) * - 61 FROM tab1 AS cor0
----
-2867

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 + - + ( - col0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5230
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 + - + ( - col0 ) IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT DISTINCT - - COUNT( 67 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT - - COUNT ( 67 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 85 * + col2 FROM tab0 AS cor0
----
-3995
-8415
-850

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) < + col2
----

query I rowsort
SELECT DISTINCT + col1 * + - 72 + col0 + col1 + - col1 AS col0 FROM tab1 AS cor0
----
-275
-3293
-957

query I rowsort
SELECT col1 * + - col1 AS col0 FROM tab1 cor0
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-5237
SELECT DISTINCT + 33, SUM( - col2 ) col0 FROM tab2
----
33
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5237
SELECT DISTINCT + 33, SUM ( - col2 ) col0 FROM tab2
----
33
-121

query I rowsort
SELECT DISTINCT - 35 * - col1 FROM tab1
----
1645
175
490

query I rowsort
SELECT - 87 * 11 AS col2 FROM tab0
----
-957
-957
-957

onlyif mysql # DIV for integer division: 
query I rowsort label-5240
SELECT col0 + - 13 DIV - 65 AS col0 FROM tab0 WHERE NOT - 23 IN ( + col0 )
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5240
SELECT col0 + - 13 / - 65 AS col0 FROM tab0 WHERE NOT - 23 IN ( + col0 )
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5241
SELECT ALL 14 DIV - col0 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5241
SELECT ALL 14 / - col0 AS col0 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5242
SELECT DISTINCT + col2 DIV 4 FROM tab2 cor0
----
10
14
5

skipif mysql # not compatible
query I rowsort label-5242
SELECT DISTINCT + col2 / 4 FROM tab2 cor0
----
10
14
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5243
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT DISTINCT + - 5 * - 62 + - MIN( + col1 ) FROM tab2 AS cor0
----
259

skipif mysql # not compatible
query I rowsort label-5244
SELECT DISTINCT + - 5 * - 62 + - MIN ( + col1 ) FROM tab2 AS cor0
----
259

query I rowsort
SELECT DISTINCT + 12 * - col0 FROM tab1
----
-1020
-1092
-612

query I rowsort
SELECT 2 + - - col1 * + col2 FROM tab0
----
101
212
3809

query I rowsort
SELECT - col1 + - ( + col1 ) + + 12 FROM tab1 AS cor0
----
-16
-82
2

query I rowsort
SELECT DISTINCT + col1 + + - ( col0 ) AS col0 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # DIV for integer division: 
query I rowsort label-5249
SELECT - + col2 * col0 DIV + ( 8 ) + + - col1 + col0 AS col2 FROM tab0 cor0
----
-1104
-154
-42

skipif mysql # not compatible
query I rowsort label-5249
SELECT - + col2 * col0 / + ( 8 ) + + - col1 + col0 AS col2 FROM tab0 cor0
----
-1104
-154
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT + COUNT( ALL + col2 ) + 3 AS col2 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-5250
SELECT + COUNT ( ALL + col2 ) + 3 AS col2 FROM tab2 cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5251
SELECT + 83 * CAST( NULL AS SIGNED ) * - col2 - + col1 + col2 * - - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5251
SELECT + 83 * CAST ( NULL AS INTEGER ) * - col2 - + col1 + col2 * - - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - - col0 AS col2, - col1 FROM tab1 cor0
----
51
-14
85
-5
91
-47

query I rowsort
SELECT col1 * col2 + + + col1 AS col1 FROM tab1 AS cor0
----
1358
300
3243

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT - - 97 + MIN( - ( col2 ) ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5254
SELECT - - 97 + MIN ( - ( col2 ) ) AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5255
SELECT ALL + CAST( NULL AS SIGNED ) + + SUM( - col0 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5255
SELECT ALL + CAST ( NULL AS INTEGER ) + + SUM ( - col0 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + - col1 ) col0 FROM tab2
----
51
67
77

query II rowsort
SELECT DISTINCT + col1, - col1 - + 96 FROM tab2 AS cor0
----
51
-147
67
-163
77
-173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 col1 FROM tab1 cor0 WHERE NOT + col0 * + 26 IS NULL
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT COUNT( * ) * + 29 col2 FROM tab2 cor0
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5259
SELECT COUNT ( * ) * + 29 col2 FROM tab2 cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT DISTINCT COUNT( 34 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5260
SELECT DISTINCT COUNT ( 34 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 cor0 WHERE NOT ( - + ( col2 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5262
SELECT - COUNT( * ) AS col0, - 18 - - 11 FROM tab0 cor0
----
-3
-7

skipif mysql # not compatible
query II rowsort label-5262
SELECT - COUNT ( * ) AS col0, - 18 - - 11 FROM tab0 cor0
----
-3
-7

query I rowsort
SELECT ALL + col0 / col1 + + - 16 - + + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 + + + col1 AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 col0 FROM tab2 AS cor0
----
44

query II rowsort
SELECT DISTINCT + col0, col0 AS col1 FROM tab1 WHERE NOT + 87 NOT BETWEEN NULL AND + 34
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5266
SELECT ( - MAX( + + col2 ) ) DIV COUNT( * ) AS col0 FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-5266
SELECT ( - MAX ( + + col2 ) ) / COUNT ( * ) AS col0 FROM tab2
----
-19

query III rowsort
SELECT * FROM tab0 WHERE NOT + 14 * - col1 * - ( + + ( - col0 ) ) NOT BETWEEN + + ( - - col0 ) * + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT DISTINCT - + MAX( DISTINCT + 52 ) FROM tab1 WHERE NOT 82 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5268
SELECT DISTINCT - + MAX ( DISTINCT + 52 ) FROM tab1 WHERE NOT 82 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5269
SELECT DISTINCT + - ( + 96 ) FROM tab1 WHERE - ( + col0 ) * + ( - + CAST( NULL AS SIGNED ) ) + 61 BETWEEN NULL AND + + 16
----

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT + - ( + 96 ) FROM tab1 WHERE - ( + col0 ) * + ( - + CAST ( NULL AS INTEGER ) ) + 61 BETWEEN NULL AND + + 16
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5270
SELECT - CAST( - ( + - col2 ) AS SIGNED ) AS col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5270
SELECT - CAST ( - ( + - col2 ) AS INTEGER ) AS col0 FROM tab2
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 62 + 87 col2 FROM tab1 AS cor0
----
25
25
25

query I rowsort
SELECT + 97 AS col1 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
97
97
97

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5273
SELECT col2 * col1 * - CAST( NULL AS DECIMAL ) AS col0, - 5 * + + 19 FROM tab1
----
NULL
-95
NULL
-95
NULL
-95

skipif mysql # not compatible
query II rowsort label-5273
SELECT col2 * col1 * - CAST ( NULL AS REAL ) AS col0, - 5 * + + 19 FROM tab1
----
NULL
-95
NULL
-95
NULL
-95

query II rowsort
SELECT DISTINCT + col2 AS col2, col1 FROM tab2 cor0
----
23
51
40
77
58
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5275
SELECT DISTINCT - col1 * CAST( + + col2 AS SIGNED ) FROM tab0 AS cor0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT - col1 * CAST ( + + col2 AS INTEGER ) FROM tab0 AS cor0 WHERE col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + col1 ) + col1 col1 FROM tab1 cor0
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5277
SELECT * FROM tab0 AS cor0 WHERE col0 * CAST( NULL AS SIGNED ) NOT BETWEEN + col0 / col0 - - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5277
SELECT * FROM tab0 AS cor0 WHERE col0 * CAST ( NULL AS INTEGER ) NOT BETWEEN + col0 / col0 - - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5278
SELECT - col1 - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5278
SELECT - col1 - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5279
SELECT ALL - 69 + + + CAST( - - col0 AS SIGNED ) - col1 + + col2 * - 11 * + col0 + ( col2 ) * - - 44 FROM tab2 AS cor0
----
-10700
-26482
-45359

skipif mysql # not compatible
query I rowsort label-5279
SELECT ALL - 69 + + + CAST ( - - col0 AS INTEGER ) - col1 + + col2 * - 11 * + col0 + ( col2 ) * - - 44 FROM tab2 AS cor0
----
-10700
-26482
-45359

onlyif mysql # DIV for integer division: 
query I rowsort label-5280
SELECT + + col2 + - col1 DIV - 8 + + col1 FROM tab1 AS cor0
----
111
120
64

skipif mysql # not compatible
query I rowsort label-5280
SELECT + + col2 + - col1 / - 8 + + col1 FROM tab1 AS cor0
----
111
120
64

query I rowsort
SELECT + col2 + - 55 - - + col0 FROM tab0 cor0
----
141
42
7

query I rowsort
SELECT + 76 + col2 FROM tab2 AS cor0
----
116
134
99

query I rowsort
SELECT 68 + - + col1 FROM tab0
----
-13
47
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5284
SELECT ALL 24 AS col0 FROM tab0 WHERE NOT NULL > 61 + + CAST( - + col2 AS SIGNED ) * 52 * + 43
----

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL 24 AS col0 FROM tab0 WHERE NOT NULL > 61 + + CAST ( - + col2 AS INTEGER ) * 52 * + 43
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5285
SELECT ALL col2 / CAST( NULL AS SIGNED ) 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-5285
SELECT ALL col2 / CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT ALL - - COUNT( * ) FROM tab2 AS cor0 WHERE + 24 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL - - COUNT ( * ) FROM tab2 AS cor0 WHERE + 24 IS NOT NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5287
SELECT + - 58 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) / - 86 IN ( + 93 - - - col2 + + 50, col0 )
----

skipif mysql # not compatible
query I rowsort label-5287
SELECT + - 58 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) / - 86 IN ( + 93 - - - col2 + + 50, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5288
SELECT col0 AS col1, CAST( + 54 AS SIGNED ) FROM tab2
----
46
54
64
54
75
54

skipif mysql # not compatible
query II rowsort label-5288
SELECT col0 AS col1, CAST ( + 54 AS INTEGER ) FROM tab2
----
46
54
64
54
75
54

onlyif mysql # DIV for integer division: 
query I rowsort label-5289
SELECT 62 DIV 94 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5289
SELECT 62 / 94 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - 27 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-27

query I rowsort
SELECT + ( + col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT + col2 <= - - col0
----
1
81

query II rowsort
SELECT col2 AS col0, 27 * + 85 AS col2 FROM tab1 AS cor0
----
59
2295
68
2295
96
2295

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 * col1 AND - ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT - + 4 * + COUNT( * ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-5294
SELECT - + 4 * + COUNT ( * ) FROM tab0 AS cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5295
SELECT ALL CAST( NULL AS SIGNED ), + 87 AS col2 FROM tab2 AS cor0
----
NULL
87
NULL
87
NULL
87

skipif mysql # not compatible
query II rowsort label-5295
SELECT ALL CAST ( NULL AS INTEGER ), + 87 AS col2 FROM tab2 AS cor0
----
NULL
87
NULL
87
NULL
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT SUM( - + 71 ) AS col0 FROM tab1 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-5296
SELECT SUM ( - + 71 ) AS col0 FROM tab1 AS cor0
----
-213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 col0 FROM tab0 AS cor0
----
69

query I rowsort
SELECT - 76 * - 86 AS col0 FROM tab1 AS cor0
----
6536
6536
6536

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT ALL COUNT( ALL - - 86 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL COUNT ( ALL - - 86 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT + COUNT( DISTINCT 54 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5300
SELECT + COUNT ( DISTINCT 54 ) FROM tab2
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= 1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5302
SELECT 60, - col0 + - - CAST( NULL AS SIGNED ) / + col0 AS col0 FROM tab0 AS cor0
----
60
NULL
60
NULL
60
NULL

skipif mysql # not compatible
query II rowsort label-5302
SELECT 60, - col0 + - - CAST ( NULL AS INTEGER ) / + col0 AS col0 FROM tab0 AS cor0
----
60
NULL
60
NULL
60
NULL

query I rowsort
SELECT DISTINCT + 55 + - col1 AS col1 FROM tab1 AS cor0
----
41
50
8

query I rowsort
SELECT DISTINCT col1 * - col1 * + + col1 AS col0 FROM tab2 AS cor0
----
-132651
-300763
-456533

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT ALL + 25 * 6 + - COUNT( * ) + + - 15 AS col0 FROM tab0 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL + 25 * 6 + - COUNT ( * ) + + - 15 AS col0 FROM tab0 AS cor0
----
132

query II rowsort
SELECT 68 AS col1, + col0 FROM tab0 AS cor0
----
68
15
68
87
68
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5307
SELECT ALL - CAST( + col2 AS SIGNED ) * col1 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL - CAST ( + col2 AS INTEGER ) * col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5308
SELECT CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5308
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3

query II rowsort
SELECT + 79 AS col0, - col0 AS col2 FROM tab1 AS cor0
----
79
-51
79
-85
79
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-5310
SELECT ALL col1 * col1 DIV - col0 + - 3 AS col0, col0 * + col2 FROM tab2 AS cor0
----
-59
1058
-62
4350
-95
2560

skipif mysql # not compatible
query II rowsort label-5310
SELECT ALL col1 * col1 / - col0 + - 3 AS col0, col0 * + col2 FROM tab2 AS cor0
----
-59
1058
-62
4350
-95
2560

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT ALL - 17 + + - COUNT( * ) FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL - 17 + + - COUNT ( * ) FROM tab1 AS cor0
----
-20

query III rowsort
SELECT * FROM tab1 WHERE ( ( NOT ( ( NULL ) BETWEEN NULL AND ( NULL ) ) ) )
----

query I rowsort
SELECT DISTINCT - - 75 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
75

query I rowsort
SELECT ALL 63 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT ALL - 64 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 + 73 col0 FROM tab2
----
60
60
60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 17 - - col2 + + - 81 * 86 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT - 74 + - - MAX( - + col2 ) AS col0 FROM tab1 AS cor0
----
-133

skipif mysql # not compatible
query I rowsort label-5318
SELECT - 74 + - - MAX ( - + col2 ) AS col0 FROM tab1 AS cor0
----
-133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5319
SELECT + - CAST( + 11 AS SIGNED ) + ( - col1 ) * + 27 * + col2 AS col2 FROM tab1 AS cor0
----
-36299
-7976
-86303

skipif mysql # not compatible
query I rowsort label-5319
SELECT + - CAST ( + 11 AS INTEGER ) + ( - col1 ) * + 27 * + col2 AS col2 FROM tab1 AS cor0
----
-36299
-7976
-86303

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT - + 41 * - MIN( col0 ) AS col1 FROM tab0 AS cor0
----
615

skipif mysql # not compatible
query I rowsort label-5320
SELECT - + 41 * - MIN ( col0 ) AS col1 FROM tab0 AS cor0
----
615

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT ALL - - 10 - + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL - - 10 - + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5322
SELECT DISTINCT col2 - - col2 + CAST( + col1 AS SIGNED ) AS col0 FROM tab0
----
175
199
41

skipif mysql # not compatible
query I rowsort label-5322
SELECT DISTINCT col2 - - col2 + CAST ( + col1 AS INTEGER ) AS col0 FROM tab0
----
175
199
41

query I rowsort
SELECT col0 * + 46 - - 67 AS col0 FROM tab1
----
2413
3977
4253

query III rowsort
SELECT * FROM tab0 WHERE - - col0 >= - - col1
----
87
21
10
97
1
99

query I rowsort
SELECT 37 - - - col2 AS col0 FROM tab2
----
-21
-3
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT DISTINCT - 13 * + COUNT( * ) AS col1 FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-5326
SELECT DISTINCT - 13 * + COUNT ( * ) AS col1 FROM tab1
----
-39

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( - col1, + col1 * + col2, - 95 * + 16 + - 37 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5328
SELECT COUNT( ALL + CAST( NULL AS SIGNED ) ) * + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5328
SELECT COUNT ( ALL + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT ALL + 80 * - col0 AS col2 FROM tab1
----
-4080
-6800
-7280

query I rowsort
SELECT DISTINCT col2 * - col2 * + - ( + col2 ) FROM tab0
----
1000
103823
970299

query II rowsort
SELECT col0 * - col0 * 31, col0 + + col2 + + col0 AS col1 FROM tab2 AS cor0
----
-126976
168
-174375
208
-65596
115

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT + COUNT( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5332
SELECT + COUNT ( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

query I rowsort
SELECT col2 * + 13 * + col1 + + 59 FROM tab0 AS cor0
----
1346
2789
49550

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5334
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 90 col2 FROM tab0 cor0
----
-90
-90
-90

query I rowsort
SELECT ALL col0 * + ( + col0 ) AS col0 FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT - ( + - MAX( ALL col2 ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5337
SELECT - ( + - MAX ( ALL col2 ) ) FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5338
SELECT DISTINCT ( COUNT( * ) ) * 29 + + COUNT( * ) col2, + 23 AS col2 FROM tab1 AS cor0
----
90
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5338
SELECT DISTINCT ( COUNT ( * ) ) * 29 + + COUNT ( * ) col2, + 23 AS col2 FROM tab1 AS cor0
----
90
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5339
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 * CAST( + col2 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-5339
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 * CAST ( + col2 AS INTEGER ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * + 92 BETWEEN NULL AND 41 + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT ALL + MIN( DISTINCT - - col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5341
SELECT ALL + MIN ( DISTINCT - - col1 ) AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT + 38 * - + 85 * + - COUNT( * ) FROM tab2
----
9690

skipif mysql # not compatible
query I rowsort label-5342
SELECT + 38 * - + 85 * + - COUNT ( * ) FROM tab2
----
9690

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5343
SELECT * FROM tab1 WHERE NOT NULL = CAST( NULL AS SIGNED ) + + col1 * - 45
----

skipif mysql # not compatible
query III rowsort label-5343
SELECT * FROM tab1 WHERE NOT NULL = CAST ( NULL AS INTEGER ) + + col1 * - 45
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 85, + col2 - - col1 col0 FROM tab1
----
-85
110
-85
115
-85
64

onlyif mysql # DIV for integer division: 
query I rowsort label-5345
SELECT + col1 DIV 36 AS col0 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5345
SELECT + col1 / 36 AS col0 FROM tab2
----
1
1
2

query III rowsort
SELECT * FROM tab0 WHERE - 84 < col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 + - 39 col0 FROM tab0
----
11

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE - 51 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT - - COUNT( ALL - - col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5349
SELECT - - COUNT ( ALL - - col2 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5350
SELECT DISTINCT - CAST( col2 AS SIGNED ) + col1 AS col1 FROM tab0 AS cor0
----
-98
11
34

skipif mysql # not compatible
query I rowsort label-5350
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + col1 AS col1 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT col1 + - + col1 FROM tab0 WHERE 59 <> ( + + 88 + - - col2 * + + col0 )
----
0
0
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE + 0 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT + 56 + - col1 AS col2 FROM tab2 AS cor0
----
-11
-21
5

query II rowsort
SELECT - col2 + - ( - - col1 ) + - - col0 AS col1, col2 AS col0 FROM tab1 AS cor0
----
-24
68
-59
96
21
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT - COUNT( * ) + 7 FROM tab1 cor0
----
4

skipif mysql # not compatible
query I rowsort label-5355
SELECT - COUNT ( * ) + 7 FROM tab1 cor0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5356
SELECT ALL - + 39 + + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5356
SELECT ALL - + 39 + + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * + 68 - - + col2 AS col0 FROM tab2
----
-3445
-4498
-5196

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5358
SELECT - CAST( + col1 AS SIGNED ) AS col2, - col1 FROM tab0
----
-1
-1
-21
-21
-81
-81

skipif mysql # not compatible
query II rowsort label-5358
SELECT - CAST ( + col1 AS INTEGER ) AS col2, - col1 FROM tab0
----
-1
-1
-21
-21
-81
-81

query I rowsort
SELECT ALL 23 * col0 FROM tab2
----
1058
1472
1725

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT ALL COUNT( DISTINCT + 88 ) * - COUNT( * ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5360
SELECT ALL COUNT ( DISTINCT + 88 ) * - COUNT ( * ) col2 FROM tab0
----
-3

query II rowsort
SELECT ALL + 70 * + + 72 AS col0, col0 AS col1 FROM tab2
----
5040
46
5040
64
5040
75

query I rowsort
SELECT col2 * - 49 * + col1 FROM tab1 AS cor0
----
-14455
-156604
-65856

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 < 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT MIN( DISTINCT - 9 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5364
SELECT MIN ( DISTINCT - 9 ) FROM tab1
----
-9

query I rowsort
SELECT ALL - + 5 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + + col1 ) = NULL
----

query I rowsort
SELECT ALL ( + ( 62 ) ) * 22 * - 70 AS col0 FROM tab0
----
-95480
-95480
-95480

onlyif mysql # DIV for integer division: 
query I rowsort label-5368
SELECT DISTINCT - 49 DIV + col1 FROM tab0 cor0
----
-2
-49
0

skipif mysql # not compatible
query I rowsort label-5368
SELECT DISTINCT - 49 / + col1 FROM tab0 cor0
----
-2
-49
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col1 AND + ( + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5370
SELECT ALL + 23 * 91 DIV - col2 + ( col2 ) FROM tab2 AS cor0
----
-12
-68
22

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL + 23 * 91 / - col2 + ( col2 ) FROM tab2 AS cor0
----
-12
-68
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5371
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * 94 + + + col1 + - col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5371
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * 94 + + + col1 + - col1 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 98 + + - col1 FROM tab1 AS cor0
----
51
84
93

query II rowsort
SELECT DISTINCT + 41 + - 38 * - ( + + ( col1 ) ) + - col2, - col2 AS col1 FROM tab1 AS cor0
----
172
-59
1759
-68
477
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5374
SELECT ALL - + SUM( ALL - CAST( - - ( - ( 26 ) ) AS SIGNED ) ) FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL - + SUM ( ALL - CAST ( - - ( - ( 26 ) ) AS INTEGER ) ) FROM tab0 AS cor0
----
-78

query I rowsort
SELECT + ( - col2 ) * col0 + + col0 + - 21 FROM tab0 AS cor0
----
-711
-804
-9527

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT - ( + COUNT( * ) ) + 87 AS col0 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-5376
SELECT - ( + COUNT ( * ) ) + 87 AS col0 FROM tab2 AS cor0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5377
SELECT DISTINCT - 64 DIV - 19 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5377
SELECT DISTINCT - 64 / - 19 FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 WHERE 10 >= 65
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5379
SELECT * FROM tab0 WHERE col0 <> + + CAST( + 93 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5379
SELECT * FROM tab0 WHERE col0 <> + + CAST ( + 93 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT - COUNT( * ) - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-6

skipif mysql # not compatible
query I rowsort label-5380
SELECT - COUNT ( * ) - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5381
SELECT 35 - CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-5381
SELECT 35 - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
32

query II rowsort
SELECT - + col2 + - 72, col1 AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND + - 53
----

query I rowsort
SELECT DISTINCT - col0 * + + col1 AS col2 FROM tab1
----
-425
-4277
-714

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5384
SELECT ALL - CAST( NULL AS DECIMAL ) - - + MAX( col0 ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5384
SELECT ALL - CAST ( NULL AS REAL ) - - + MAX ( col0 ) col2 FROM tab1
----
NULL

query I rowsort
SELECT - - col1 * - col0 * + col0 AS col2 FROM tab2 AS cor0
----
-107916
-315392
-376875

onlyif mysql # DIV for integer division: 
query I rowsort label-5386
SELECT - + ( 15 ) DIV + + 13 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5386
SELECT - + ( 15 ) / + + 13 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT MAX( + + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5387
SELECT MAX ( + + col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT DISTINCT col1 + + - 57 FROM tab0 AS cor0
----
-36
-56
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5389
SELECT - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE 43 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5389
SELECT - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE 43 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT ALL + COUNT( 74 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL + COUNT ( 74 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT DISTINCT - + SUM( ALL - col2 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT - + SUM ( ALL - col2 ) FROM tab2 cor0
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-5392
SELECT DISTINCT 99, COUNT( - + col2 ) AS col1 FROM tab1
----
99
3

skipif mysql # not compatible
query II rowsort label-5392
SELECT DISTINCT 99, COUNT ( - + col2 ) AS col1 FROM tab1
----
99
3

query II rowsort
SELECT DISTINCT - 70 AS col2, + col0 FROM tab0
----
-70
15
-70
87
-70
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT DISTINCT MIN( ALL + 59 ) AS col1 FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-5394
SELECT DISTINCT MIN ( ALL + 59 ) AS col1 FROM tab0
----
59

query II rowsort
SELECT ALL - col0, - col0 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

query II rowsort
SELECT ALL col2 * col1 AS col0, - col1 FROM tab1
----
1344
-14
295
-5
3196
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT COUNT( 74 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5397
SELECT COUNT ( 74 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT COUNT( * ) + + 22 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
31

skipif mysql # not compatible
query I rowsort label-5398
SELECT COUNT ( * ) + + 22 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT - 75 + + COUNT( - col0 ) + - 13 * + 91 * - 93 AS col0 FROM tab1 cor0 WHERE NOT + col1 * - col0 IS NULL
----
109947

skipif mysql # not compatible
query I rowsort label-5399
SELECT - 75 + + COUNT ( - col0 ) + - 13 * + 91 * - 93 AS col0 FROM tab1 cor0 WHERE NOT + col1 * - col0 IS NULL
----
109947

query I rowsort
SELECT DISTINCT - + 10 + + col1 FROM tab2 AS cor0
----
41
57
67

query I rowsort
SELECT DISTINCT - - col2 + - col2 - - col2 * + + col2 FROM tab1 AS cor0
----
3481
4624
9216

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * + 6 * - - col0 * col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - + col1 col0 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT 2 + + - 26 AS col1 FROM tab1
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT COUNT( * ) + + MIN( + + col2 ) * - 20 AS col2 FROM tab2
----
-457

skipif mysql # not compatible
query I rowsort label-5405
SELECT COUNT ( * ) + + MIN ( + + col2 ) * - 20 AS col2 FROM tab2
----
-457

query I rowsort
SELECT DISTINCT - col1 * + col0 + + 11 AS col2 FROM tab2
----
-2335
-4917
-5014

query I rowsort
SELECT ALL 57 * 24 FROM tab2
----
1368
1368
1368

query I rowsort
SELECT col2 + + 67 AS col2 FROM tab2
----
107
125
90

query I rowsort
SELECT + 58 + + - ( col1 ) AS col0 FROM tab2
----
-19
-9
7

query I rowsort
SELECT + col0 * + col1 + - + col0 AS col0 FROM tab0
----
0
1200
1740

query II rowsort
SELECT + + col0 * - - 16 - + col0 * - - 89 + + 21 * - + col0, 44 AS col1 FROM tab2 AS cor0
----
-4324
44
-6016
44
-7050
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT - MIN( DISTINCT + - col0 ) AS col1 FROM tab2 AS cor0 WHERE - col0 * + + col2 - - col2 * + + 85 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5412
SELECT - MIN ( DISTINCT + - col0 ) AS col1 FROM tab2 AS cor0 WHERE - col0 * + + col2 - - col2 * + + 85 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col1 * + 91 + + col1 FROM tab0 cor0
----
1932
7452
92

onlyif mysql # DIV for integer division: 
query I rowsort label-5414
SELECT + 77 + 66 DIV + + 12 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

skipif mysql # not compatible
query I rowsort label-5414
SELECT + 77 + 66 / + + 12 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 - - 33 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 * col2 col0 FROM tab0 AS cor0
----
4324
9108
920

query II rowsort
SELECT - ( + col2 ) AS col0, col2 AS col1 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5418
SELECT COUNT( * ) * ( 9 ) DIV - COUNT( ALL - - 94 ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5418
SELECT COUNT ( * ) * ( 9 ) / - COUNT ( ALL - - 94 ) FROM tab1 cor0
----
-9

query I rowsort
SELECT DISTINCT + 1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 79 < col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN - col1 / + + col2 AND NULL
----

query I rowsort
SELECT ALL - ( + - col1 ) AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT - col1 * + + 45 * + col0 FROM tab1 WHERE - 87 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5424
SELECT col0 FROM tab2 WHERE NOT + CAST( - ( + - 65 ) AS DECIMAL ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5424
SELECT col0 FROM tab2 WHERE NOT + CAST ( - ( + - 65 ) AS REAL ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IS NOT NULL AND NOT + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 51 * + col0 col1 FROM tab0
----
35955
44370
489753

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5427
SELECT ALL + CAST( 8 AS SIGNED ) FROM tab1
----
8
8
8

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL + CAST ( 8 AS INTEGER ) FROM tab1
----
8
8
8

query I rowsort
SELECT DISTINCT 39 * + + 98 + + 43 AS col2 FROM tab1 AS cor0
----
3865

query I rowsort
SELECT ALL - - 42 * 75 AS col2 FROM tab0 AS cor0
----
3150
3150
3150

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5430
SELECT - col0 * - - CAST( NULL AS DECIMAL ) + 28 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5430
SELECT - col0 * - - CAST ( NULL AS REAL ) + 28 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT DISTINCT + COUNT( * ) * 69 FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-5431
SELECT DISTINCT + COUNT ( * ) * 69 FROM tab2
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT ALL - 59 * + 49 + + - COUNT( * ) AS col0 FROM tab2
----
-2894

skipif mysql # not compatible
query I rowsort label-5432
SELECT ALL - 59 * + 49 + + - COUNT ( * ) AS col0 FROM tab2
----
-2894

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT - COUNT( - - 9 ) + + 57 FROM tab0 cor0
----
54

skipif mysql # not compatible
query I rowsort label-5433
SELECT - COUNT ( - - 9 ) + + 57 FROM tab0 cor0
----
54

query I rowsort
SELECT ALL + col0 + 37 AS col1 FROM tab1 AS cor0
----
122
128
88

onlyif mysql # aggregate syntax: 
query II rowsort label-5435
SELECT + MIN( DISTINCT col1 ) + + 90 + - + COUNT( * ), - 88 AS col2 FROM tab1 AS cor0
----
92
-88

skipif mysql # not compatible
query II rowsort label-5435
SELECT + MIN ( DISTINCT col1 ) + + 90 + - + COUNT ( * ), - 88 AS col2 FROM tab1 AS cor0
----
92
-88

query I rowsort
SELECT DISTINCT - ( + 37 ) * 65 * - col0 + + 6 + + + col2 AS col2 FROM tab2 AS cor0
----
110659
153966
180439

query I rowsort
SELECT col2 + + + col2 AS col0 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT + col0 + + + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1293
-210
-3105

query I rowsort
SELECT DISTINCT - col0 + 81 AS col1 FROM tab0 AS cor0
----
-16
-6
66

query I rowsort
SELECT ALL - + col2 * - - col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5441
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST( + col2 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5441
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST ( + col2 AS REAL ) IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NOT NULL = - 67
----

query I rowsort
SELECT ALL col2 * - ( - - ( 39 ) ) FROM tab1
----
-2301
-2652
-3744

query I rowsort
SELECT - ( - col1 ) * col1 - 46 FROM tab1
----
-21
150
2163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5445
SELECT + CAST( NULL AS SIGNED ) * + 41 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5445
SELECT + CAST ( NULL AS INTEGER ) * + 41 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5446
SELECT DISTINCT AVG ( + CAST( NULL AS SIGNED ) ) + AVG ( ALL + + col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5446
SELECT DISTINCT AVG ( + CAST ( NULL AS INTEGER ) ) + AVG ( ALL + + col2 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT - MAX( DISTINCT - + col1 ) + - ( + - 69 ) AS col1 FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-5447
SELECT - MAX ( DISTINCT - + col1 ) + - ( + - 69 ) AS col1 FROM tab2 AS cor0
----
120

query I rowsort
SELECT 66 * - - 41 * col2 * + 29 FROM tab0
----
3688278
7768926
784740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5449
SELECT ( - CAST( NULL AS SIGNED ) ) + - col2 FROM tab0 AS cor0 WHERE NOT - 89 > col2 + - + col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5449
SELECT ( - CAST ( NULL AS INTEGER ) ) + - col2 FROM tab0 AS cor0 WHERE NOT - 89 > col2 + - + col1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - + col2, col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query I rowsort
SELECT - col1 * - - col1 + - col1 FROM tab2 AS cor0
----
-2652
-4556
-6006

onlyif mysql # DIV for integer division: 
query I rowsort label-5452
SELECT DISTINCT - ( 49 ) * 1 DIV - - col2 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5452
SELECT DISTINCT - ( 49 ) * 1 / - - col2 FROM tab2 AS cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5453
SELECT COUNT( * ) AS col1, + 52 AS col0 FROM tab0 AS cor0
----
3
52

skipif mysql # not compatible
query II rowsort label-5453
SELECT COUNT ( * ) AS col1, + 52 AS col0 FROM tab0 AS cor0
----
3
52

query I rowsort
SELECT DISTINCT - 30 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT ALL + MIN( - - 44 ) FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL + MIN ( - - 44 ) FROM tab2
----
44

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 52 * - 92 * col2 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5457
SELECT - col0 DIV - - col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5457
SELECT - col0 / - - col0 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 BETWEEN NULL AND + col2 + + - 66
----

query I rowsort
SELECT DISTINCT col0 * - 50 + + col0 + + col2 FROM tab0 AS cor0
----
-4253
-4654
-688

query I rowsort
SELECT DISTINCT + - col0 + + 49 FROM tab0 AS cor0
----
-38
-48
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5461
SELECT DISTINCT + col2 + - + CAST( NULL AS SIGNED ) - + col1 FROM tab1 WHERE NOT col0 * + col0 / CAST( NULL AS SIGNED ) / col0 + + - 25 * col0 IS NULL AND NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5461
SELECT DISTINCT + col2 + - + CAST ( NULL AS INTEGER ) - + col1 FROM tab1 WHERE NOT col0 * + col0 / CAST ( NULL AS INTEGER ) / col0 + + - 25 * col0 IS NULL AND NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 62 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT DISTINCT + COUNT( * ) - - - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5463
SELECT DISTINCT + COUNT ( * ) - - - COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT ALL + col1 - + 37 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

query II rowsort
SELECT ALL col0 AS col1, + col0 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5466
SELECT DISTINCT + col0 * - + col0 AS col2, CAST( - + col1 AS SIGNED ) FROM tab2
----
-2116
-51
-4096
-77
-5625
-67

skipif mysql # not compatible
query II rowsort label-5466
SELECT DISTINCT + col0 * - + col0 AS col2, CAST ( - + col1 AS INTEGER ) FROM tab2
----
-2116
-51
-4096
-77
-5625
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * col1 col2 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT + - 84 AS col2 FROM tab2 cor0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT + - COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 53 IS NULL
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5469
SELECT + - COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 53 IS NULL
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 + - col0 < - 18 * + 55
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5471
SELECT - CAST( - COUNT( * ) AS SIGNED ) * + 24 * - - 48 FROM tab2 AS cor0
----
3456

skipif mysql # not compatible
query I rowsort label-5471
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * + 24 * - - 48 FROM tab2 AS cor0
----
3456

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( - 58 ) + - + col1 BETWEEN NULL AND col0 + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5473
SELECT ALL - SUM( DISTINCT + ( + col1 ) ) DIV COUNT( DISTINCT col0 ) FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL - SUM ( DISTINCT + ( + col1 ) ) / COUNT ( DISTINCT col0 ) FROM tab0 AS cor0
----
-34

query I rowsort
SELECT 79 - col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT - COUNT( + 72 ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5475
SELECT - COUNT ( + 72 ) col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT ALL - ( + COUNT( * ) ) FROM tab0, tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5476
SELECT ALL - ( + COUNT ( * ) ) FROM tab0, tab1 cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 77 * 10 col0 FROM tab2
----
770

query I rowsort
SELECT DISTINCT - 70 FROM tab1 WHERE ( - 1 ) <> col0 * + 5 + + col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT ALL - SUM( DISTINCT - - col0 ) col2 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5479
SELECT ALL - SUM ( DISTINCT - - col0 ) col2 FROM tab1
----
-227

query I rowsort
SELECT ALL + ( + - col0 ) FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT + - SUM( - - 11 ) FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-5481
SELECT + - SUM ( - - 11 ) FROM tab0 AS cor0
----
-33

onlyif mysql # DIV for integer division: 
query II rowsort label-5482
SELECT + col2, col1 + - 72 + 61 DIV + col1 AS col0 FROM tab2 AS cor0
----
23
-20
40
5
58
-5

skipif mysql # not compatible
query II rowsort label-5482
SELECT + col2, col1 + - 72 + 61 / + col1 AS col0 FROM tab2 AS cor0
----
23
-20
40
5
58
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5483
SELECT - CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 WHERE 69 + + col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5483
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE 69 + + col1 <> NULL
----
0

query I rowsort
SELECT ALL + 2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5485
SELECT CAST( NULL AS SIGNED ) * - col2 + 72 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5485
SELECT CAST ( NULL AS INTEGER ) * - col2 + 72 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 4 * + 54 FROM tab1
----
-216
-216
-216

query I rowsort
SELECT DISTINCT col0 + - col0 / - col2 FROM tab1 WHERE - 51 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL col2 + + 54 * ( col1 - - col2 ) FROM tab1
----
3515
6036
6278

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT COUNT( * ) - 89 col0 FROM tab0
----
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5489
SELECT COUNT ( * ) - 89 col0 FROM tab0
----
-86

query I rowsort
SELECT 12 * 16 AS col2 FROM tab1
----
192
192
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5491
SELECT ( - col0 ) * ( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5491
SELECT ( - col0 ) * ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * 72 FROM tab0
----
1080
6264
6984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5493
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE ( - col1 + col1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5493
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE ( - col1 + col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 + 80 < + col2 + col1 * - 53
----

query I rowsort
SELECT DISTINCT + col1 * + col0 + col2 AS col2 FROM tab2
----
2369
4968
5083

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT DISTINCT SUM( - col2 ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-5496
SELECT DISTINCT SUM ( - col2 ) AS col2 FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE col1 > ( + 35 )
----
3

skipif mysql # not compatible
query I rowsort label-5497
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE col1 > ( + 35 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5498
SELECT col2 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) / 89 > 40 + + 56 * + 79
----

skipif mysql # not compatible
query I rowsort label-5498
SELECT col2 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) / 89 > 40 + + 56 * + 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT MIN( + ( + col0 ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5499
SELECT MIN ( + ( + col0 ) ) FROM tab0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5500
SELECT DISTINCT + COUNT( * ) / + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5500
SELECT DISTINCT + COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL 97 * - 94 AS col2 FROM tab2
----
-9118
-9118
-9118

query I rowsort
SELECT + col2 - + 94 * 16 FROM tab0
----
-1405
-1457
-1494

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col1 - 27 * col2 )
----

query I rowsort
SELECT 76 AS col1 FROM tab2 WHERE 43 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5505
SELECT DISTINCT CAST( - 13 AS SIGNED ) * - col0 AS col1 FROM tab0
----
1131
1261
195

skipif mysql # not compatible
query I rowsort label-5505
SELECT DISTINCT CAST ( - 13 AS INTEGER ) * - col0 AS col1 FROM tab0
----
1131
1261
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5506
SELECT - ( CAST( NULL AS SIGNED ) ) / col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5506
SELECT - ( CAST ( NULL AS INTEGER ) ) / col2 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5507
SELECT col2 DIV ( + 63 * col0 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5507
SELECT col2 / ( + 63 * col0 ) FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5508
SELECT ALL + col1 * ( col1 ) + - col2 DIV col0 AS col1 FROM tab0
----
0
441
6558

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL + col1 * ( col1 ) + - col2 / col0 AS col1 FROM tab0
----
0
441
6558

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE ( + 21 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) + - COUNT( * ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-5510
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) + - COUNT ( * ) FROM tab0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-5511
SELECT col1 + - col1 DIV + col1 FROM tab0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-5511
SELECT col1 + - col1 / + col1 FROM tab0
----
0
20
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5512
SELECT ALL * FROM tab2 WHERE + col2 + CAST( + col2 + col2 * - col1 AS SIGNED ) * 53 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5512
SELECT ALL * FROM tab2 WHERE + col2 + CAST ( + col2 + col2 * - col1 AS INTEGER ) * 53 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT COUNT( * ) - - 7 FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5513
SELECT COUNT ( * ) - - 7 FROM tab2 AS cor0
----
10

query I rowsort
SELECT DISTINCT + 35 AS col1 FROM tab1 cor0
----
35

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 44 * col0 IS NOT NULL
----

query I rowsort
SELECT col0 * + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 90 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 / - col0 - - col1 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5518
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5518
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5519
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + CAST( + col2 AS SIGNED ) AND 73 + - col1
----

skipif mysql # not compatible
query III rowsort label-5519
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + CAST ( + col2 AS INTEGER ) AND 73 + - col1
----

query I rowsort
SELECT ALL - 77 * col0 FROM tab0
----
-1155
-6699
-7469

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 WHERE NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5522
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5522
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab0 WHERE NOT - 61 + col0 NOT BETWEEN ( col0 ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT + MAX( ALL 48 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( 38 ) NOT IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5525
SELECT + MAX ( ALL 48 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( 38 ) NOT IN ( col2 )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 + - ( 36 + col1 ) * col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5527
SELECT DISTINCT - col2 DIV + 35 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT - col2 / + 35 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT - 7 AS col1 FROM tab2 cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT COUNT( ALL + col0 ) + AVG ( + 6 ) FROM tab0 AS cor0 WHERE NOT ( col2 * - 32 + - col2 * col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5529
SELECT COUNT ( ALL + col0 ) + AVG ( + 6 ) FROM tab0 AS cor0 WHERE NOT ( col2 * - 32 + - col2 * col0 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT ALL - MAX( DISTINCT 82 ) AS col1 FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL - MAX ( DISTINCT 82 ) AS col1 FROM tab2 AS cor0
----
-82

query I rowsort
SELECT - - col2 * - 25 AS col2 FROM tab2 AS cor0
----
-1000
-1450
-575

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5532
SELECT + MAX( - col0 ) FROM tab0 AS cor0 WHERE NOT ( CAST( - 76 AS DECIMAL ) ) IS NULL
----
-15

skipif mysql # not compatible
query I rowsort label-5532
SELECT + MAX ( - col0 ) FROM tab0 AS cor0 WHERE NOT ( CAST ( - 76 AS REAL ) ) IS NULL
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT DISTINCT ( COUNT( * ) ) col1 FROM tab1 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-5533
SELECT DISTINCT ( COUNT ( * ) ) col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - col1 * col0 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND - col1 + 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT DISTINCT - SUM( ALL 95 ) FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-5535
SELECT DISTINCT - SUM ( ALL 95 ) FROM tab1 AS cor0
----
-285

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5537
SELECT ALL - col1 * col2 DIV ( + col2 ) AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5537
SELECT ALL - col1 * col2 / ( + col2 ) AS col0 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT col1 * - 56 * col2 FROM tab1
----
-16520
-178976
-75264

query I rowsort
SELECT ALL col2 * - - ( col0 ) AS col1 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT ALL - 51 FROM tab0 WHERE + col0 IS NOT NULL
----
-51
-51
-51

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5542
SELECT DISTINCT + ( ( 46 ) ) DIV + col2 FROM tab0
----
0
4

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT + ( ( 46 ) ) / + col2 FROM tab0
----
0
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5543
SELECT ALL CAST( MIN( DISTINCT col0 ) AS SIGNED ) * ( 77 * - 96 ) AS col1 FROM tab0 WHERE NOT ( ( col1 ) ) = ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5543
SELECT ALL CAST ( MIN ( DISTINCT col0 ) AS INTEGER ) * ( 77 * - 96 ) AS col1 FROM tab0 WHERE NOT ( ( col1 ) ) = ( col1 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 + col0 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 FROM tab0 WHERE NOT ( NULL ) BETWEEN 42 AND 42 / - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 94 col0 FROM tab1 AS cor0
----
94

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 + col2 AND 0
----

query I rowsort
SELECT ALL + + col1 + + + col2 + + col0 FROM tab0 AS cor0
----
118
143
197

query I rowsort
SELECT - + col1 * - ( - col0 ) AS col2 FROM tab2 cor0
----
-2346
-4928
-5025

query I rowsort
SELECT col0 FROM tab0 WHERE ( NOT ( col1 ) = - 15 )
----
15
87
97

query I rowsort
SELECT 39 * + col2 FROM tab1
----
2301
2652
3744

query I rowsort
SELECT ALL + ( ( 59 ) ) + - col1 AS col1 FROM tab0
----
-22
38
58

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NULL IN ( - 88 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT - 41 + - SUM( 44 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-437

skipif mysql # not compatible
query I rowsort label-5554
SELECT - 41 + - SUM ( 44 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-437

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT - 12 - MIN( + 20 ) FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-5555
SELECT - 12 - MIN ( + 20 ) FROM tab1 AS cor0
----
-32

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE ( + col0 ) IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5557
SELECT + col0 - - col1 * CAST( 92 AS SIGNED ) col0 FROM tab0 AS cor0
----
189
2019
7467

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5557
SELECT + col0 - - col1 * CAST ( 92 AS INTEGER ) col0 FROM tab0 AS cor0
----
189
2019
7467

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN ( - col2 ) * - col1 AND NULL
----
15
81
47
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN ( + col0 ) AND ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 1 - - col1 AS col2 FROM tab2 AS cor0
----
52
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT + - 95 * - COUNT( * ) + - 54 AS col1 FROM tab1 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-5561
SELECT + - 95 * - COUNT ( * ) + - 54 AS col1 FROM tab1 AS cor0
----
231

query I rowsort
SELECT DISTINCT 95 + + + col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 66 - + col2 + + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-3606
-4758
-9378

query I rowsort
SELECT col2 + + 88 + 84 FROM tab0
----
182
219
271

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5565
SELECT 25 + - 8 DIV + COUNT( * ) FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-5565
SELECT 25 + - 8 / + COUNT ( * ) FROM tab1
----
23

query I rowsort
SELECT - 10 + + 49 AS col2 FROM tab1
----
39
39
39

query I rowsort
SELECT ALL col2 - + col0 + col2 + col1 FROM tab0
----
-46
102
160

query II rowsort
SELECT 33 + + 26, + 70 AS col2 FROM tab2
----
59
70
59
70
59
70

query I rowsort
SELECT + col1 * + col0 * - col2 FROM tab0 WHERE NULL IS NULL
----
-18270
-57105
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT ALL - ( + COUNT( * ) ) AS col1 FROM tab2 WHERE NULL <> - col0
----
0

skipif mysql # not compatible
query I rowsort label-5570
SELECT ALL - ( + COUNT ( * ) ) AS col1 FROM tab2 WHERE NULL <> - col0
----
0

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE NOT + 25 IN ( - col0 / ( col2 ) )
----
-23
-40
-58

query II rowsort
SELECT ALL 10 * + + col0 AS col1, col0 FROM tab1
----
510
51
850
85
910
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 4 col1 FROM tab0
----
4
4
4

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( - col0 ) IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5575
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + 35 * col1 * + ( CAST( NULL AS SIGNED ) ) BETWEEN NULL AND col1
----

skipif mysql # not compatible
query III rowsort label-5575
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + 35 * col1 * + ( CAST ( NULL AS INTEGER ) ) BETWEEN NULL AND col1
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 46 * + + col2 * + + col1 * - 46 IS NULL
----

query I rowsort
SELECT + col2 * - col0 - - + 37 FROM tab1 AS cor0
----
-4859
-4978
-6151

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE + col0 * col0 - col1 * - col1 + + ( + 30 ) IS NULL
----

query I rowsort
SELECT + - 62 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 32 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col0 = - col1
----

query I rowsort
SELECT ALL + 61 + col0 FROM tab1 AS cor0 WHERE ( - col2 * + + col1 + + - 97 ) IS NOT NULL
----
112
146
152

query I rowsort
SELECT ALL + + 19 * - + 31 AS col0 FROM tab2 AS cor0
----
-589
-589
-589

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5584
SELECT - - col1 * 41 DIV + col2 + + - CAST( - - 7 AS SIGNED ) + col0 * 51 AS col0 FROM tab2 AS cor0
----
2429
3335
3865

skipif mysql # not compatible
query I rowsort label-5584
SELECT - - col1 * 41 / + col2 + + - CAST ( - - 7 AS INTEGER ) + col0 * 51 AS col0 FROM tab2 AS cor0
----
2429
3335
3865

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + + col2 * ( - col0 ) + - col2 ) BETWEEN 30 + + 34 AND ( NULL ) AND NOT - col0 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 + - 95 FROM tab1 AS cor0
----
-27
-36
1

query I rowsort
SELECT DISTINCT + + col1 * - 20 * + col1 FROM tab2 cor0 WHERE NOT + col1 NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT - col1 + + - col0 AS col1 FROM tab0 cor0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT SUM( DISTINCT - ( col0 ) ) + 82 FROM tab1 AS cor0
----
-145

skipif mysql # not compatible
query I rowsort label-5589
SELECT SUM ( DISTINCT - ( col0 ) ) + 82 FROM tab1 AS cor0
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT DISTINCT COUNT( * ) * - - 92 AS col2 FROM tab2
----
276

skipif mysql # not compatible
query I rowsort label-5590
SELECT DISTINCT COUNT ( * ) * - - 92 AS col2 FROM tab2
----
276

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 / 75 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT DISTINCT COUNT( * ) * - 27 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-5592
SELECT DISTINCT COUNT ( * ) * - 27 FROM tab2
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5593
SELECT ALL + col0 DIV - 4 FROM tab1
----
-12
-21
-22

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL + col0 / - 4 FROM tab1
----
-12
-21
-22

query I rowsort
SELECT DISTINCT + 5 + + - col1 AS col2 FROM tab0
----
-16
-76
4

query I rowsort
SELECT - 84 * + - 62 FROM tab1
----
5208
5208
5208

query I rowsort
SELECT DISTINCT + 68 AS col0 FROM tab2 WHERE ( - col1 ) <> ( + col2 )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5597
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, + col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-5597
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, + col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5598
SELECT DISTINCT + ( + 18 ) DIV + SUM( - col0 ) * COUNT( * ) * + COUNT( * ) + ( - 8 ) AS col0 FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-5598
SELECT DISTINCT + ( + 18 ) / + SUM ( - col0 ) * COUNT ( * ) * + COUNT ( * ) + ( - 8 ) AS col0 FROM tab2 AS cor0
----
-8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 79 - - - 1 - - - 61 + col1 ) BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL - 44 + + col1 FROM tab2 AS cor0
----
23
33
7

query I rowsort
SELECT DISTINCT + col0 - + - 80 FROM tab0
----
167
177
95

onlyif mysql # DIV for integer division: 
query I rowsort label-5602
SELECT col2 DIV + - col1 + col0 + - + col0 col1 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5602
SELECT col2 / + - col1 + col0 + - + col0 col1 FROM tab1
----
-1
-11
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5603
SELECT DISTINCT 8 + - ( - + CAST( NULL AS SIGNED ) ) + + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5603
SELECT DISTINCT 8 + - ( - + CAST ( NULL AS INTEGER ) ) + + col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col2 * - col0 * - ( - col0 ) AS col0 FROM tab1 AS cor0
----
-249696
-426275
-563108

query I rowsort
SELECT + + col0 AS col0 FROM tab1 AS cor0 WHERE NULL < - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + col0 = - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5607
SELECT + CAST( NULL AS SIGNED ) * - 43, col1 AS col2 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-5607
SELECT + CAST ( NULL AS INTEGER ) * - 43, col1 AS col2 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT DISTINCT - COUNT( * ) + + + MAX( ALL 50 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5608
SELECT DISTINCT - COUNT ( * ) + + + MAX ( ALL 50 ) AS col2 FROM tab1 AS cor0
----
47

query I rowsort
SELECT ALL col0 - - - 75 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 + - + 7 col1, + ( + col2 ) * + - col0 FROM tab1 AS cor0
----
-2
-5015
40
-6188
7
-4896

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT ALL COUNT( DISTINCT + + col2 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5611
SELECT ALL COUNT ( DISTINCT + + col2 ) col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT 2 * - - COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5612
SELECT 2 * - - COUNT ( * ) FROM tab0
----
6

query I rowsort
SELECT col1 * col1 * - col2 AS col2 FROM tab2
----
-237160
-260362
-59823

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col2 * 36 * 85 IS NULL
----

query I rowsort
SELECT ALL ( 28 ) AS col0 FROM tab2
----
28
28
28

query II rowsort
SELECT ALL - + 40, col0 FROM tab2 AS cor0
----
-40
46
-40
64
-40
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5617
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 * - 5 + - 54 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 * - 5 + - 54 IS NOT NULL
----

query II rowsort
SELECT ALL - 14 AS col1, col0 FROM tab2 cor0
----
-14
46
-14
64
-14
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT DISTINCT - ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5619
SELECT DISTINCT - ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT ALL 44 * 87 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to adcf97b6489aa846d151a7d7d0ba5ca4

query I rowsort
SELECT DISTINCT 26 * - col2 FROM tab2
----
-1040
-1508
-598

query I rowsort
SELECT DISTINCT + col0 + col0 * ( + col0 ) * + col1 + col2 AS col0 FROM tab1 AS cor0
----
36269
36561
389366

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 42 <> + + col0
----

query II rowsort
SELECT ALL + - 95 + - col2 AS col2, + col2 - + - 41 + - col2 FROM tab1 AS cor0
----
-154
41
-163
41
-191
41

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * - col1 = + 25
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 22 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-22
-22
-22

query I rowsort
SELECT ALL 93 * col0 FROM tab2
----
4278
5952
6975

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - 62 ) BETWEEN - + 16 AND + col1 AND - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 85 * - + 39 * + col0 + + 63 FROM tab2
----
-152427
-212097
-248562

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - + 2 * col0 col2 FROM tab1
----
-111
-114
-6

query I rowsort
SELECT - col2 * + - col1 AS col1 FROM tab2 WHERE NULL IS NULL
----
1173
3080
3886

query I rowsort
SELECT col1 + + 14 FROM tab0
----
15
35
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5633
SELECT 42 + - col2 * - CAST( NULL AS SIGNED ) * - 0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5633
SELECT 42 + - col2 * - CAST ( NULL AS INTEGER ) * - 0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT ALL MAX( + ( - + col1 ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL MAX ( + ( - + col1 ) ) FROM tab1
----
-5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 36 * - 99 + - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 93 + + - col1 FROM tab2
----
16
26
42

query I rowsort
SELECT DISTINCT + ( + col2 ) + - col0 AS col2 FROM tab1
----
-23
-26
45

query I rowsort
SELECT ALL - 35 + - 77 AS col1 FROM tab0 cor0
----
-112
-112
-112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5639
SELECT ALL + col2 / + + col0 + - 51 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL + col2 / + + col0 + - 51 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + + col0 + - - 38 * - 26 AS col2 FROM tab1 AS cor0
----
-1033
-962
-965

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 * 82 ) = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT ALL - 66 + + MAX( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-5642
SELECT ALL - 66 + + MAX ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 56 * - col2 - - col1 col0 FROM tab2 AS cor0
----
-1237
-2163
-3181

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 56 <> col1
----

query I rowsort
SELECT - - col0 FROM tab1 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 28 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
28

query I rowsort
SELECT + col1 * - - 86 FROM tab2
----
4386
5762
6622

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT DISTINCT - - ( + COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5649
SELECT DISTINCT - - ( + COUNT ( * ) ) FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 = + col2 - + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5651
SELECT col1 DIV - + col0 AS col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5651
SELECT col1 / - + col0 AS col1 FROM tab2 AS cor0
----
-1
-1
0

query II rowsort
SELECT - ( 11 ), + col0 FROM tab2 AS cor0 WHERE NOT ( + col2 ) / + ( - - col2 ) + 57 + 29 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 cor0 WHERE NULL IN ( col1 + + 60 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + col2 col0, 33, - col0 AS col1 FROM tab1 AS cor0
----
9 values hashing to 886dd65a8535161aa0858aeae5e50d3b

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5656
SELECT ALL * FROM tab2 WHERE - 38 - + col2 * CAST( NULL AS SIGNED ) * - col2 + - col1 + - 35 * + + CAST( col2 AS SIGNED ) - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5656
SELECT ALL * FROM tab2 WHERE - 38 - + col2 * CAST ( NULL AS INTEGER ) * - col2 + - col1 + - 35 * + + CAST ( col2 AS INTEGER ) - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 43 * + + col2 FROM tab0
----
2021
4257
430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 * col0 col0 FROM tab2 AS cor0
----
1216
1425
874

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5659
SELECT DISTINCT - col2 DIV 32 + - CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10
-102
-48

skipif mysql # not compatible
query I rowsort label-5659
SELECT DISTINCT - col2 / 32 + - CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10
-102
-48

query I rowsort
SELECT 5 + ( col1 ) FROM tab2 AS cor0
----
56
72
82

query I rowsort
SELECT + col0 + + 40 + - col2 AS col0 FROM tab1 AS cor0
----
-5
63
66

query II rowsort
SELECT ALL - 47 + ( + - col0 ) AS col0, - col0 AS col1 FROM tab2 AS cor0
----
-111
-64
-122
-75
-93
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5663
SELECT CAST( NULL AS SIGNED ) + + 50 + - - ( + col2 ) - + col0 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5663
SELECT CAST ( NULL AS INTEGER ) + + 50 + - - ( + col2 ) - + col0 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + + 20 + - - 80 * + ( - + col1 ) * - - col0 + - + col1 AS col2, col1 AS col2 FROM tab1 AS cor0
----
-33985
5
-342187
47
-57114
14

query I rowsort
SELECT + 59 + + 88 AS col2 FROM tab1 AS cor0
----
147
147
147

query II rowsort
SELECT ALL col0 + + col2 + - - col2 AS col1, col2 AS col0 FROM tab2 AS cor0
----
144
40
191
58
92
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT + - COUNT( * ) + COUNT( * ) col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5667
SELECT + - COUNT ( * ) + COUNT ( * ) col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - 27 + - - 69 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT ALL + COUNT( * ) + + 46 AS col0 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL + COUNT ( * ) + + 46 AS col0 FROM tab0 AS cor0
----
49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5671
SELECT + + 54 * col1 FROM tab2 WHERE - - col0 < + - CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5671
SELECT + + 54 * col1 FROM tab2 WHERE - - col0 < + - CAST ( - col0 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5672
SELECT * FROM tab1 WHERE + col1 <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5672
SELECT * FROM tab1 WHERE + col1 <= - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5673
SELECT - 10 DIV + col0 AS col0, - col1 * ( - col2 ) + - 39 AS col2 FROM tab2
----
0
1134
0
3041
0
3847

skipif mysql # not compatible
query II rowsort label-5673
SELECT - 10 / + col0 AS col0, - col1 * ( - col2 ) + - 39 AS col2 FROM tab2
----
0
1134
0
3041
0
3847

query III rowsort
SELECT * FROM tab0 WHERE + + 45 <= + col0
----
87
21
10
97
1
99

query II rowsort
SELECT col2 * + col2, + 37 + - + ( - col1 ) AS col1 FROM tab1
----
3481
42
4624
84
9216
51

query I rowsort
SELECT 63 - - - ( - + col0 ) FROM tab2 cor0
----
109
127
138

query I rowsort
SELECT ALL + - ( - col1 ) - + col2 * - 76 AS col2 FROM tab2 AS cor0
----
1799
3117
4475

query I rowsort
SELECT + - col0 + - + 61 AS col2 FROM tab2 AS cor0
----
-107
-125
-136

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE - 85 > NULL
----

query I rowsort
SELECT 39 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 7 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NULL NOT BETWEEN NULL AND - 95
----

query I rowsort
SELECT + col0 * - - ( ( + 53 ) ) AS col0 FROM tab0
----
4611
5141
795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5684
SELECT + ( CAST( + + col0 AS SIGNED ) ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5684
SELECT + ( CAST ( + + col0 AS INTEGER ) ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5685
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + - - 84 BETWEEN - CAST( + col2 AS SIGNED ) AND ( + 16 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5685
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + - - 84 BETWEEN - CAST ( + col2 AS INTEGER ) AND ( + 16 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 * - 60 FROM tab2 AS cor0
----
-2760
-3840
-4500

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT ALL + SUM( - + col0 ) * + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-555

skipif mysql # not compatible
query I rowsort label-5687
SELECT ALL + SUM ( - + col0 ) * + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-555

query I rowsort
SELECT - - col0 * - - ( + - col2 ) FROM tab2 AS cor0
----
-1058
-2560
-4350

query II rowsort
SELECT ALL + + col1 AS col0, - col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 84 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 * - + 49 NOT BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT + + COUNT( 68 ) * + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5692
SELECT + + COUNT ( 68 ) * + COUNT ( * ) FROM tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5693
SELECT - col2 DIV 99 + + - 30 + - 5 - + + col1 * 9 * + ( + col0 ) FROM tab1 AS cor0
----
-38528
-3860
-6461

skipif mysql # not compatible
query I rowsort label-5693
SELECT - col2 / 99 + + - 30 + - 5 - + + col1 * 9 * + ( + col0 ) FROM tab1 AS cor0
----
-38528
-3860
-6461

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, 84 col2 FROM tab2 AS cor0
----
-23
84
-40
84
-58
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5695
SELECT DISTINCT col0 AS col2, CAST( 78 AS SIGNED ) + 8 FROM tab2 AS cor0
----
46
86
64
86
75
86

skipif mysql # not compatible
query II rowsort label-5695
SELECT DISTINCT col0 AS col2, CAST ( 78 AS INTEGER ) + 8 FROM tab2 AS cor0
----
46
86
64
86
75
86

onlyif mysql # aggregate syntax: 
query II rowsort label-5696
SELECT COUNT( * ) col0, 50 col2 FROM tab2
----
3
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5696
SELECT COUNT ( * ) col0, 50 col2 FROM tab2
----
3
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT ALL COUNT( * ) FROM tab0 WHERE col2 * + col0 + + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL COUNT ( * ) FROM tab0 WHERE col2 * + col0 + + col2 IS NULL
----
0

query I rowsort
SELECT ALL 82 * col2 * - - 53 AS col0 FROM tab0
----
204262
430254
43460

query II rowsort
SELECT 35, - col1 AS col0 FROM tab0
----
35
-1
35
-21
35
-81

query I rowsort
SELECT DISTINCT 66 * + col0 AS col0 FROM tab2
----
3036
4224
4950

query II rowsort
SELECT + col2 AS col0, + col2 FROM tab1
----
59
59
68
68
96
96

query II rowsort
SELECT ALL + col0, + col0 AS col2 FROM tab2 AS cor0
----
46
46
64
64
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 20 col1, + col2 AS col2 FROM tab1 AS cor0
----
20
59
20
68
20
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT DISTINCT - MAX( + col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5704
SELECT DISTINCT - MAX ( + col0 ) AS col0 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-5705
SELECT + 59 + SUM( + 44 ) AS col1, - 6 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
455
-6

skipif mysql # not compatible
query II rowsort label-5705
SELECT + 59 + SUM ( + 44 ) AS col1, - 6 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
455
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT ALL + + COUNT( * ) + - 80 AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL + + COUNT ( * ) + - 80 AS col0 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 49 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5708
SELECT + col1 + - col1 - col0 DIV col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5708
SELECT + col1 + - col1 - col0 / col2 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT 64 + - COUNT( * ) AS col0 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-5709
SELECT 64 + - COUNT ( * ) AS col0 FROM tab0
----
61

query I rowsort
SELECT + + 7 - + 44 FROM tab0 AS cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT - COUNT( * ) - - + COUNT( * ) * + COUNT( * ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5711
SELECT - COUNT ( * ) - - + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0
----
6

query I rowsort
SELECT ALL + 39 - col1 AS col2 FROM tab0
----
-42
18
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT + MAX( DISTINCT - 9 ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5713
SELECT + MAX ( DISTINCT - 9 ) AS col1 FROM tab1
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5714
SELECT col2 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5714
SELECT col2 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * - + 45 AS col2 FROM tab1 AS cor0
----
-2655
-3060
-4320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5716
SELECT ALL + + COUNT( * ) DIV COUNT( * ) + + 58 * - 94 + COUNT( + + 61 ) - - COUNT( * ) FROM tab0 AS cor0
----
-5445

skipif mysql # not compatible
query I rowsort label-5716
SELECT ALL + + COUNT ( * ) / COUNT ( * ) + + 58 * - 94 + COUNT ( + + 61 ) - - COUNT ( * ) FROM tab0 AS cor0
----
-5445

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5717
SELECT - - CAST( NULL AS SIGNED ) / 58 + - col0 + - col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5717
SELECT - - CAST ( NULL AS INTEGER ) / 58 + - col0 + - col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 * + col2 <> - col1 + - - col0 * - 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT - ( - COUNT( * ) ) * + + 40 AS col2 FROM tab1 cor0
----
120

skipif mysql # not compatible
query I rowsort label-5719
SELECT - ( - COUNT ( * ) ) * + + 40 AS col2 FROM tab1 cor0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT DISTINCT 37 * + COUNT( * ) FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-5720
SELECT DISTINCT 37 * + COUNT ( * ) FROM tab2
----
111

query I rowsort
SELECT - col0 * ( + col2 ) * - col2 AS col1 FROM tab0
----
33135
8700
950697

query III rowsort
SELECT * FROM tab1 WHERE NOT + 85 <> - + 72
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5723
SELECT ALL + 93 * MAX( ALL + col1 ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5723
SELECT ALL + 93 * MAX ( ALL + col1 ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT 37 >= NULL
----

query II rowsort
SELECT ALL col0, ( + + 18 ) FROM tab2
----
46
18
64
18
75
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5726
SELECT ALL col0 * CAST( 48 AS SIGNED ) AS col0 FROM tab1
----
2448
4080
4368

skipif mysql # not compatible
query I rowsort label-5726
SELECT ALL col0 * CAST ( 48 AS INTEGER ) AS col0 FROM tab1
----
2448
4080
4368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5727
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + col1 * - - 87 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5727
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + col1 * - - 87 AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT + - SUM( DISTINCT - - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5728
SELECT + - SUM ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT + - 69 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + col1 * + col2 + - + 74 col1, 78 FROM tab0
----
157
78
26
78
3814
78

query I rowsort
SELECT ALL + 11 + + - col1 AS col1 FROM tab0
----
-10
-70
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 9 col0, - col2 * col0 AS col1 FROM tab0 AS cor0
----
9
-705
9
-870
9
-9603

query I rowsort
SELECT + + col1 * - col2 AS col2 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 + + 62 col0 FROM tab1 AS cor0
----
4339
487
776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 + - + col1 col0 FROM tab1 AS cor0
----
-48
-57
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT - - ( - SUM( + - ( + + col1 ) ) ) + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-5736
SELECT - - ( - SUM ( + - ( + + col1 ) ) ) + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
192

query II rowsort
SELECT + col0, + 8 AS col2 FROM tab2 AS cor0
----
46
8
64
8
75
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT - SUM( - col1 ) * + 33 FROM tab2 AS cor0
----
6435

skipif mysql # not compatible
query I rowsort label-5738
SELECT - SUM ( - col1 ) * + 33 FROM tab2 AS cor0
----
6435

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT ALL - - COUNT( * ) + + MIN( + + 21 ) - SUM( + 54 ) AS col1 FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-5739
SELECT ALL - - COUNT ( * ) + + MIN ( + + 21 ) - SUM ( + 54 ) AS col1 FROM tab0 AS cor0
----
-138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 74 + col0 col2 FROM tab2 cor0 WHERE 94 = - 9
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5741
SELECT DISTINCT + + 31 + + + CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
118
128
46

skipif mysql # not compatible
query I rowsort label-5741
SELECT DISTINCT + + 31 + + + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
118
128
46

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5742
SELECT ALL - CAST( NULL AS SIGNED ) + - col2 * - CAST( + 57 AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5742
SELECT ALL - CAST ( NULL AS INTEGER ) + - col2 * - CAST ( + 57 AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 20 <> - 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT DISTINCT - 39 - COUNT( * ) FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-5744
SELECT DISTINCT - 39 - COUNT ( * ) FROM tab0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT COUNT( * ) - + COUNT( DISTINCT col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5745
SELECT COUNT ( * ) - + COUNT ( DISTINCT col1 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT ALL + 65 + COUNT( * ) AS col1 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-5746
SELECT ALL + 65 + COUNT ( * ) AS col1 FROM tab1
----
68

query I rowsort
SELECT col2 - 83 FROM tab0
----
-36
-73
16

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * col0 IS NULL
----

query I rowsort
SELECT + 39 + - + 24 FROM tab2 AS cor0
----
15
15
15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 48 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5751
SELECT DISTINCT col0 DIV - col1 + - 98 AS col1 FROM tab1 AS cor0
----
-101
-115
-99

skipif mysql # not compatible
query I rowsort label-5751
SELECT DISTINCT col0 / - col1 + - 98 AS col1 FROM tab1 AS cor0
----
-101
-115
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5752
SELECT + + col1 DIV ( + col0 ) + - col2 AS col1 FROM tab0 AS cor0
----
-10
-42
-99

skipif mysql # not compatible
query I rowsort label-5752
SELECT + + col1 / ( + col0 ) + - col2 AS col1 FROM tab0 AS cor0
----
-10
-42
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5753
SELECT CAST( NULL AS SIGNED ) AS col2, col2 + + 33 + - col2 + + 69 + + 49 * + col2 AS col2 FROM tab1
----
NULL
2993
NULL
3434
NULL
4806

skipif mysql # not compatible
query II rowsort label-5753
SELECT CAST ( NULL AS INTEGER ) AS col2, col2 + + 33 + - col2 + + 69 + + 49 * + col2 AS col2 FROM tab1
----
NULL
2993
NULL
3434
NULL
4806

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5754
SELECT CAST( NULL AS SIGNED ) * - 6 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5754
SELECT CAST ( NULL AS INTEGER ) * - 6 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5755
SELECT col0 * + CAST( + - 58 AS SIGNED ) * + col1 AS col0 FROM tab0
----
-105966
-5626
-70470

skipif mysql # not compatible
query I rowsort label-5755
SELECT col0 * + CAST ( + - 58 AS INTEGER ) * + col1 AS col0 FROM tab0
----
-105966
-5626
-70470

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT + - ( - COUNT( * ) ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5756
SELECT + - ( - COUNT ( * ) ) AS col0 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT + - MIN( - - 5 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5757
SELECT + - MIN ( - - 5 ) FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5758
SELECT ALL + CAST( col2 AS SIGNED ) FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL + CAST ( col2 AS INTEGER ) FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT - col1 * - - 37 AS col0 FROM tab1 AS cor0
----
-1739
-185
-518

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5760
SELECT ALL + CAST( NULL AS SIGNED ) / 78 AS col0, 70 AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----

skipif mysql # not compatible
query II rowsort label-5760
SELECT ALL + CAST ( NULL AS INTEGER ) / 78 AS col0, 70 AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 = ( - col0 ) * + 96 * + col0 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 73 * - col2 FROM tab1
----
4307
4964
7008

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 18 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 6 * - 33 FROM tab2
----
198

query III rowsort
SELECT * FROM tab1 WHERE NOT + 15 IN ( - 59 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT ALL MAX( + 44 ) FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL MAX ( + 44 ) FROM tab2
----
44

query I rowsort
SELECT ALL + 32 + + 12 FROM tab0
----
44
44
44

query I rowsort
SELECT DISTINCT + - 95 AS col1 FROM tab2 cor0 WHERE 3 / + col2 IS NOT NULL
----
-95

query II rowsort
SELECT - 51 + + col0, col0 FROM tab1 cor0
----
0
51
34
85
40
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT COUNT( * ) * MIN( DISTINCT + - 93 ) FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-5770
SELECT COUNT ( * ) * MIN ( DISTINCT + - 93 ) FROM tab0
----
-279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - + col0 col1 FROM tab1
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-5772
SELECT ALL + 83 DIV - col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-5772
SELECT ALL + 83 / - col0 FROM tab0
----
-5
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 18 IN ( col1, 68 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 99 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 + + - col1 AS col2 FROM tab1 AS cor0
----
21
54
82

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( NOT NULL = col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 25 - col1 + - col2 * + + 84, col1 col0 FROM tab0
----
-4004
81
-8292
1
-836
21

query I rowsort
SELECT DISTINCT ( + col0 ) - - - col0 - + 20 FROM tab2
----
-20

query III rowsort
SELECT * FROM tab1 WHERE - col1 + - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 55 * - col1 BETWEEN NULL AND - + col1 * 99
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT + MAX( + col0 ) AS col0 FROM tab1 WHERE + 65 IS NOT NULL
----
91

skipif mysql # not compatible
query I rowsort label-5781
SELECT + MAX ( + col0 ) AS col0 FROM tab1 WHERE + 65 IS NOT NULL
----
91

query I rowsort
SELECT + - 87 * col0 FROM tab2 AS cor0
----
-4002
-5568
-6525

query II rowsort
SELECT DISTINCT col1 AS col0, - 55 * col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 77 + - + col0 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-123
-141
-152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) * + 60 * col1 + + + col0 col2 FROM tab0 WHERE + 63 * 71 + + 97 IS NULL
----

query I rowsort
SELECT DISTINCT 82 * - 67 AS col1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-5494

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 44 + + 86 NOT IN ( - col2, - col1 * - col2 * + 31 + - 18 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 * + col1 col0 FROM tab2 AS cor0
----
2448
3216
3696

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + 97 >= NULL
----

query I rowsort
SELECT + col1 * 41 FROM tab2 cor0
----
2091
2747
3157

query I rowsort
SELECT col2 * 32 FROM tab0 AS cor0
----
1504
3168
320

onlyif mysql # aggregate syntax: 
query II rowsort label-5792
SELECT ALL COUNT( * ) AS col2, COUNT( * ) col1 FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5792
SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) col1 FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT + COUNT( + - ( - - col0 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5793
SELECT + COUNT ( + - ( - - col0 ) ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 + - 33 > + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5795
SELECT CAST( - col0 AS SIGNED ) col0 FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5795
SELECT CAST ( - col0 AS INTEGER ) col0 FROM tab1 cor0
----
-51
-85
-91

query II rowsort
SELECT + col1 AS col0, col2 - - 37 + 47 * + col1 * 3 AS col2 FROM tab0 AS cor0
----
1
277
21
3008
81
11505

query I rowsort
SELECT DISTINCT - ( + col1 ) + - - col0 * - - col1 AS col2 FROM tab1 AS cor0
----
420
4230
700

query II rowsort
SELECT ALL - 49 + - - col1, - 95 AS col0 FROM tab1
----
-2
-95
-35
-95
-44
-95

onlyif mysql # DIV for integer division: 
query II rowsort label-5799
SELECT ALL col1 * ( + - col0 ) + 86 * + 43, col1 DIV - col2 col2 FROM tab1 WHERE NOT - col2 DIV + col2 IS NULL
----
-579
0
2984
0
3273
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5799
SELECT ALL col1 * ( + - col0 ) + 86 * + 43, col1 / - col2 col2 FROM tab1 WHERE NOT - col2 / + col2 IS NULL
----
-579
0
2984
0
3273
0

query I rowsort
SELECT DISTINCT + + 99 AS col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
99

query I rowsort
SELECT ALL + + col1 + - + 54 AS col0 FROM tab1 AS cor0
----
-40
-49
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT + - ( - 49 ) * + + SUM( ALL col1 ) AS col0 FROM tab1 AS cor0
----
3234

skipif mysql # not compatible
query I rowsort label-5802
SELECT + - ( - 49 ) * + + SUM ( ALL col1 ) AS col0 FROM tab1 AS cor0
----
3234

query I rowsort
SELECT ALL + col1 - + col2 * - col2 AS col0 FROM tab1 AS cor0
----
3486
4671
9230

query I rowsort
SELECT DISTINCT + 76 * + col1 * + 60 + - + col2 FROM tab1
----
214252
22741
63744

query I rowsort
SELECT col1 * - col2 - + + 76 FROM tab1
----
-1420
-3272
-371

query I rowsort
SELECT col2 - - col0 + - 25 FROM tab1
----
119
122
134

query I rowsort
SELECT ALL - 38 FROM tab1, tab1 cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT DISTINCT - 5 * 1 * + col2 * col2 AS col2 FROM tab1
----
-17405
-23120
-46080

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * + MAX( + col0 ) * - - MIN( ALL 8 ) * - COUNT( * ) * - + COUNT( * ) * 46 FROM tab1
----
2712528

skipif mysql # not compatible
query I rowsort label-5809
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * + MAX ( + col0 ) * - - MIN ( ALL 8 ) * - COUNT ( * ) * - + COUNT ( * ) * 46 FROM tab1
----
2712528

onlyif mysql # DIV for integer division: 
query I rowsort label-5810
SELECT + 56 DIV - + 21 AS col2 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-5810
SELECT + 56 / - + 21 AS col2 FROM tab2
----
-2
-2
-2

query II rowsort
SELECT DISTINCT 49, 82 - - - 91 - - - 18 * col0 FROM tab2 AS cor0 WHERE NULL IN ( col0 + - + col2, 65 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT - MIN( ALL + 48 ) AS col2 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-5812
SELECT - MIN ( ALL + 48 ) AS col2 FROM tab2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT - COUNT( * ) * + 28 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-5813
SELECT - COUNT ( * ) * + 28 FROM tab0 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT - MIN( col2 ) AS col1 FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5814
SELECT - MIN ( col2 ) AS col1 FROM tab2 cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5815
SELECT + CAST( NULL AS SIGNED ) AS col1, col1 + + - 1 * - col0 AS col2 FROM tab0 AS cor0
----
NULL
108
NULL
96
NULL
98

skipif mysql # not compatible
query II rowsort label-5815
SELECT + CAST ( NULL AS INTEGER ) AS col1, col1 + + - 1 * - col0 AS col2 FROM tab0 AS cor0
----
NULL
108
NULL
96
NULL
98

onlyif mysql # DIV for integer division: 
query I rowsort label-5816
SELECT DISTINCT - 80 DIV + + 5 + - - col1 - + + 90 AS col0 FROM tab0 AS cor0
----
-105
-25
-85

skipif mysql # not compatible
query I rowsort label-5816
SELECT DISTINCT - 80 / + + 5 + - - col1 - + + 90 AS col0 FROM tab0 AS cor0
----
-105
-25
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5817
SELECT - CAST( 94 AS SIGNED ) * col0 FROM tab2 cor0
----
-4324
-6016
-7050

skipif mysql # not compatible
query I rowsort label-5817
SELECT - CAST ( 94 AS INTEGER ) * col0 FROM tab2 cor0
----
-4324
-6016
-7050

query II rowsort
SELECT ALL - - 36, ( + - col0 ) AS col1 FROM tab1 AS cor0
----
36
-51
36
-85
36
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5819
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT col1 = col0 + - col1 * - col2 * - col2 - - 27 * - CAST( + 86 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5819
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT col1 = col0 + - col1 * - col2 * - col2 - - 27 * - CAST ( + 86 AS INTEGER ) )
----

query I rowsort
SELECT 80 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT DISTINCT + 81 * - COUNT( * ) col2 FROM tab1 AS cor0
----
-243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5821
SELECT DISTINCT + 81 * - COUNT ( * ) col2 FROM tab1 AS cor0
----
-243

query II rowsort
SELECT ALL ( + col1 ) AS col2, col1 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5823
SELECT col2 * + CAST( 38 AS SIGNED ) FROM tab0
----
1786
3762
380

skipif mysql # not compatible
query I rowsort label-5823
SELECT col2 * + CAST ( 38 AS INTEGER ) FROM tab0
----
1786
3762
380

query I rowsort
SELECT + + col0 FROM tab2 WHERE NOT 98 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT DISTINCT + SUM( - 51 ) AS col0 FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-5825
SELECT DISTINCT + SUM ( - 51 ) AS col0 FROM tab2
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5826
SELECT + 62 * col2 * CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
190960
240932
72726

skipif mysql # not compatible
query I rowsort label-5826
SELECT + 62 * col2 * CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
190960
240932
72726

query I rowsort
SELECT col0 + + 61 * col1 FROM tab1
----
2958
390
905

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5828
SELECT - col0 + + 22 + - col2 + CAST( - 63 AS SIGNED ) * - col0 FROM tab2
----
2851
3950
4614

skipif mysql # not compatible
query I rowsort label-5828
SELECT - col0 + + 22 + - col2 + CAST ( - 63 AS INTEGER ) * - col0 FROM tab2
----
2851
3950
4614

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 29 + + 36 col0, - ( + + 92 ) AS col1 FROM tab1 AS cor0
----
7
-92
7
-92
7
-92

query I rowsort
SELECT + col1 - - col2 - - col0 FROM tab2 AS cor0 WHERE 48 + - col0 IS NOT NULL
----
120
181
200

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > - col0 * + col2 * - 89
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 46 col2, col2 FROM tab2
----
46
23
46
40
46
58

query I rowsort
SELECT ( 64 ) * + - col0 FROM tab2
----
-2944
-4096
-4800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * - col0 col1, - col1 + col0 - + + col2 FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT + 38 + - col2 AS col0 FROM tab0 AS cor0
----
-61
-9
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT ALL - ( - SUM( + 27 ) ) AS col2 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5836
SELECT ALL - ( - SUM ( + 27 ) ) AS col2 FROM tab2 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5837
SELECT + CAST( - + 39 AS SIGNED ) FROM tab0
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-5837
SELECT + CAST ( - + 39 AS INTEGER ) FROM tab0
----
-39
-39
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5838
SELECT - MIN( ALL + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5838
SELECT - MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - 96 ) = 75
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5840
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( NULL ) > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT DISTINCT - MAX( - col2 ) * - 84 AS col1 FROM tab0
----
-840

skipif mysql # not compatible
query I rowsort label-5841
SELECT DISTINCT - MAX ( - col2 ) * - 84 AS col1 FROM tab0
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT - COUNT( * ) * 30 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-5842
SELECT - COUNT ( * ) * 30 FROM tab1
----
-90

query I rowsort
SELECT ALL - - 72 FROM tab2 cor0
----
72
72
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 92 col1 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 74 <> NULL
----

query I rowsort
SELECT + 38 * - - 44 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47b6f47b348b9953f6569bd2abc53510

onlyif mysql # DIV for integer division: 
query I rowsort label-5847
SELECT DISTINCT + 72 DIV col2 FROM tab2
----
1
3

skipif mysql # not compatible
query I rowsort label-5847
SELECT DISTINCT + 72 / col2 FROM tab2
----
1
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 59 * - + 42 * + + ( + - 81 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + + + 63 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - col0 + + - col1 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT DISTINCT + col1 * + col0 AS col1 FROM tab1 cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT - COUNT( + col0 ) * COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5852
SELECT - COUNT ( + col0 ) * COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT DISTINCT + + COUNT( * ) FROM tab0 WHERE NOT + 1 + col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5853
SELECT DISTINCT + + COUNT ( * ) FROM tab0 WHERE NOT + 1 + col0 <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5854
SELECT * FROM tab2 WHERE - + col1 <> - CAST( NULL AS SIGNED ) + col0
----

skipif mysql # not compatible
query III rowsort label-5854
SELECT * FROM tab2 WHERE - + col1 <> - CAST ( NULL AS INTEGER ) + col0
----

query II rowsort
SELECT ALL + 81 AS col0, + col1 FROM tab0
----
81
1
81
21
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5856
SELECT AVG ( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5856
SELECT AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 col0 FROM tab0 WHERE - col1 + + + ( col0 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5858
SELECT DISTINCT + AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) + + MAX( - col2 ) / + 81 * ( - COUNT( * ) ) + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5858
SELECT DISTINCT + AVG ( DISTINCT + CAST ( NULL AS REAL ) ) + + MAX ( - col2 ) / + 81 * ( - COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT + col1 * - col1 * + + col2 AS col2 FROM tab0
----
-308367
-4410
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT + - COUNT( ( col2 ) ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5860
SELECT + - COUNT ( ( col2 ) ) col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - col1 / 8 FROM tab2 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT DISTINCT COUNT( + 3 ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-5862
SELECT DISTINCT COUNT ( + 3 ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9

query I rowsort
SELECT - col0 * col1 * - + col2 AS col0 FROM tab0
----
18270
57105
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-5864
SELECT col1 DIV - - 66 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5864
SELECT col1 / - - 66 AS col2 FROM tab2
----
0
1
1

query II rowsort
SELECT 31 * - 5 AS col0, col1 * - - col0 AS col2 FROM tab2
----
-155
2346
-155
4928
-155
5025

query II rowsort
SELECT ALL - col0 AS col0, col0 FROM tab0 cor0 WHERE NOT col1 IS NULL
----
-15
15
-87
87
-97
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( + 93 * - col2 * col2 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 19 * ( + col1 ) FROM tab1 AS cor0
----
-266
-893
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5869
SELECT DISTINCT + CAST( 0 AS SIGNED ) col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5869
SELECT DISTINCT + CAST ( 0 AS INTEGER ) col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5870
SELECT + 24 * CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5870
SELECT + 24 * CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT ALL COUNT( * ) * + + ( + ( + SUM( ALL col0 ) ) ) col2 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5871
SELECT ALL COUNT ( * ) * + + ( + ( + SUM ( ALL col0 ) ) ) col2 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT + + MAX( DISTINCT - + col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5872
SELECT + + MAX ( DISTINCT - + col1 ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT DISTINCT - 67 * + 60 FROM tab2
----
-4020

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 WHERE NOT + + 38 IS NULL
----
-10
-47
-99

query I rowsort
SELECT ( + ( + + col0 ) ) FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT DISTINCT 9 * - - COUNT( * ) AS col2 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-5876
SELECT DISTINCT 9 * - - COUNT ( * ) AS col2 FROM tab0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5877
SELECT DISTINCT col1, CAST( NULL AS SIGNED ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-5877
SELECT DISTINCT col1, CAST ( NULL AS INTEGER ) FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT ALL MIN( + - 79 ) AS col2 FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL MIN ( + - 79 ) AS col2 FROM tab2 AS cor0
----
-79

query I rowsort
SELECT ALL 16 * - col0 FROM tab0
----
-1392
-1552
-240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - - 52 col1 FROM tab2 AS cor0
----
-15
-25
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT ALL + ( + + COUNT( * ) ) + + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5881
SELECT ALL + ( + + COUNT ( * ) ) + + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - col2 * ( - 33 ) FROM tab0 AS cor0
----
-1551
-3267
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT + 70 + + + COUNT( * ) AS col1 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-5883
SELECT + 70 + + + COUNT ( * ) AS col1 FROM tab0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT - MAX( DISTINCT col1 ) + 86 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-5884
SELECT - MAX ( DISTINCT col1 ) + 86 FROM tab1
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5885
SELECT DISTINCT * FROM tab2 WHERE - col2 < ( - ( + CAST( NULL AS SIGNED ) ) + 57 + - 35 + ( 62 ) - col0 * col2 )
----

skipif mysql # not compatible
query III rowsort label-5885
SELECT DISTINCT * FROM tab2 WHERE - col2 < ( - ( + CAST ( NULL AS INTEGER ) ) + 57 + - 35 + ( 62 ) - col0 * col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 + + 49 col0 FROM tab0
----
148
148
148

query I rowsort
SELECT 17 + + + col0 * + ( - col0 ) FROM tab1
----
-2584
-7208
-8264

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT + MIN( - - col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5888
SELECT + MIN ( - - col1 ) AS col1 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT DISTINCT SUM( ALL - ( + col1 ) ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5889
SELECT DISTINCT SUM ( ALL - ( + col1 ) ) FROM tab1 cor0
----
-66

query II rowsort
SELECT ALL col2 AS col2, + 50 + 72 FROM tab1 AS cor0
----
59
122
68
122
96
122

query I rowsort
SELECT ( - + ( + + 12 ) ) AS col0 FROM tab2 AS cor0
----
-12
-12
-12

query II rowsort
SELECT DISTINCT + 11, 84 AS col1 FROM tab2 AS cor0
----
11
84

query II rowsort
SELECT col2 AS col0, 12 FROM tab0 AS cor0
----
10
12
47
12
99
12

query II rowsort
SELECT DISTINCT + col2 AS col2, - col1 AS col2 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT + + 52 FROM tab1 AS cor0 WHERE NOT - col0 <> ( - col0 )
----
52
52
52

query II rowsort
SELECT DISTINCT col1 AS col0, - 25 AS col1 FROM tab0 cor0
----
1
-25
21
-25
81
-25

query II rowsort
SELECT DISTINCT - col2 AS col1, ( - col2 ) * - col2 FROM tab2 AS cor0
----
-23
529
-40
1600
-58
3364

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT + ( - MIN( 62 ) ) AS col0 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-5898
SELECT + ( - MIN ( 62 ) ) AS col0 FROM tab2 AS cor0
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-5899
SELECT col0 DIV - 28 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-5899
SELECT col0 / - 28 FROM tab2
----
-1
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT ( - SUM( - - 64 ) ) AS col2 FROM tab0
----
-192

skipif mysql # not compatible
query I rowsort label-5900
SELECT ( - SUM ( - - 64 ) ) AS col2 FROM tab0
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT ALL - COUNT( * ) * COUNT( * ) * + - 58 FROM tab0
----
522

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL - COUNT ( * ) * COUNT ( * ) * + - 58 FROM tab0
----
522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 * col2 col1 FROM tab0
----
-1880
-3960
-400

query I rowsort
SELECT ALL + col0 / col0 AS col1 FROM tab2 AS cor0 WHERE NOT col0 / - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT - + SUM( + + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5904
SELECT - + SUM ( + + col1 ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT ALL - 19 * - col0 FROM tab1 AS cor0
----
1615
1729
969

query I rowsort
SELECT + col1 + 23 + + + 87 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 + + 22 + col2 * + col1 AS col1 FROM tab2 AS cor0
----
1246
3179
3975

onlyif mysql # DIV for integer division: 
query II rowsort label-5908
SELECT ALL + - col1 + ( - col0 ), - 92 DIV + + col2 AS col0 FROM tab1 AS cor0
----
-138
-1
-65
0
-90
-1

skipif mysql # not compatible
query II rowsort label-5908
SELECT ALL + - col1 + ( - col0 ), - 92 / + + col2 AS col0 FROM tab1 AS cor0
----
-138
-1
-65
0
-90
-1

query I rowsort
SELECT + - col1 + + ( + col1 ) + col0 AS col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT - 60 + 37 * + 36 FROM tab0 AS cor0
----
1272
1272
1272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 AS cor0 WHERE ( NULL ) <> - col1 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5912
SELECT DISTINCT + 44 * + + CAST( NULL AS SIGNED ) * + + ( - - 87 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5912
SELECT DISTINCT + 44 * + + CAST ( NULL AS INTEGER ) * + + ( - - 87 ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 51 * - 26 FROM tab2 AS cor0
----
-1326
-1326
-1326

query I rowsort
SELECT + 53 * 52 * + 45 AS col1 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN - col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - - col2 + + + 12 BETWEEN - col0 / - col1 AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5916
SELECT DISTINCT - col0 DIV - - 32 col2 FROM tab0
----
-2
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5916
SELECT DISTINCT - col0 / - - 32 col2 FROM tab0
----
-2
-3
0

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT col2 * + + 79 NOT BETWEEN NULL AND - 71 * ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 39 + 93 + - 0 col0 FROM tab0 AS cor0
----
54
54
54

query II rowsort
SELECT DISTINCT - col0 * - 2 - + col1 * col0 * + col2 AS col1, 12 AS col2 FROM tab1 AS cor0
----
-24905
12
-290654
12
-68442
12

query I rowsort
SELECT ALL - + 95 AS col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-95
-95
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * - col2 - - 40 col0, 56 AS col1 FROM tab1
----
4936
56
5055
56
6228
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT - COUNT( DISTINCT ( + + col1 ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5922
SELECT - COUNT ( DISTINCT ( + + col1 ) ) AS col2 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5923
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) * + - col1 * + 83 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5923
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) * + - col1 * + 83 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 70 col0 FROM tab0 AS cor0
----
-3290
-6930
-700

onlyif mysql # DIV for integer division: 
query II rowsort label-5925
SELECT - - ( - + 79 ) DIV - - col1, - 49 * + + col2 col1 FROM tab1 AS cor0
----
-1
-3332
-15
-2891
-5
-4704

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5925
SELECT - - ( - + 79 ) / - - col1, - 49 * + + col2 col1 FROM tab1 AS cor0
----
-1
-3332
-15
-2891
-5
-4704

query I rowsort
SELECT col0 * col2 + - 64 AS col0 FROM tab1 AS cor0
----
4832
4951
6124

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT + COUNT( * ) * + COUNT( * ) col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5927
SELECT + COUNT ( * ) * + COUNT ( * ) col2 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT DISTINCT + - MAX( DISTINCT + 42 ) AS col1 FROM tab0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5928
SELECT DISTINCT + - MAX ( DISTINCT + 42 ) AS col1 FROM tab0 WHERE NULL > NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5929
SELECT COUNT( DISTINCT - + 73 ) DIV + 60 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5929
SELECT COUNT ( DISTINCT - + 73 ) / + 60 AS col2 FROM tab1
----
0

query II rowsort
SELECT + col2, - 69 * - - col1 AS col0 FROM tab0
----
10
-1449
47
-5589
99
-69

query II rowsort
SELECT DISTINCT col1, - 24 FROM tab2
----
51
-24
67
-24
77
-24

query I rowsort
SELECT + col2 * + 22 * - - col0 FROM tab0
----
15510
19140
211266

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT ALL SUM( DISTINCT + col2 ) AS col2 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-5933
SELECT ALL SUM ( DISTINCT + col2 ) AS col2 FROM tab1 cor0
----
223

query II rowsort
SELECT ALL 81, + ( - ( 16 ) ) * 49 AS col2 FROM tab0 cor0
----
81
-784
81
-784
81
-784

query I rowsort
SELECT ALL + 28 * - + col1 FROM tab1 AS cor0
----
-1316
-140
-392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 12 * - 38, - col1 col2 FROM tab0
----
-456
-1
-456
-21
-456
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT DISTINCT - COUNT( ALL + + col1 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5937
SELECT DISTINCT - COUNT ( ALL + + col1 ) FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 55 * + 88 + col2 <= - col2 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5939
SELECT + + 41 * - 68 AS col0 FROM tab1 AS cor0 WHERE NULL >= - CAST( NULL AS SIGNED ) + - - col2
----

skipif mysql # not compatible
query I rowsort label-5939
SELECT + + 41 * - 68 AS col0 FROM tab1 AS cor0 WHERE NULL >= - CAST ( NULL AS INTEGER ) + - - col2
----

query II rowsort
SELECT col0 + - col0 AS col2, - col0 + 20 FROM tab2 AS cor0
----
0
-26
0
-44
0
-55

query I rowsort
SELECT 85 * + col2 + - ( - col1 ) FROM tab1
----
5020
5827
8174

query I rowsort
SELECT + ( - ( - + col1 ) ) AS col1 FROM tab1 WHERE ( NULL IS NULL )
----
14
47
5

query II rowsort
SELECT + col0 * 1 + + 79, col1 FROM tab1
----
130
14
164
5
170
47

query II rowsort
SELECT DISTINCT - 1 AS col1, 39 FROM tab0
----
-1
39

query I rowsort
SELECT col1 * + col0 * - col0 * - ( + 57 ) FROM tab2
----
17977344
21481875
6151212

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5946
SELECT ALL + MAX( + CAST( NULL AS DECIMAL ) ) * + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5946
SELECT ALL + MAX ( + CAST ( NULL AS REAL ) ) * + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * + 61 + + 36 FROM tab2 AS cor0
----
1439
2476
3574

query I rowsort
SELECT ALL - - 41 * - 62 AS col1 FROM tab1 AS cor0
----
-2542
-2542
-2542

query I rowsort
SELECT DISTINCT - ( + 67 ) AS col1 FROM tab1 AS cor0 WHERE NOT - 83 IS NULL
----
-67

query II rowsort
SELECT ALL - + 91 AS col0, 66 AS col0 FROM tab0 cor0
----
-91
66
-91
66
-91
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5951
SELECT DISTINCT + col2 AS col2, - CAST( - 14 AS SIGNED ) + + col2 AS col1 FROM tab0 AS cor0
----
10
24
47
61
99
113

skipif mysql # not compatible
query II rowsort label-5951
SELECT DISTINCT + col2 AS col2, - CAST ( - 14 AS INTEGER ) + + col2 AS col1 FROM tab0 AS cor0
----
10
24
47
61
99
113

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT + SUM( DISTINCT - col0 ) + MAX( ALL - col1 ) AS col2 FROM tab2 WHERE ( NULL ) <> - 17 * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-5952
SELECT + SUM ( DISTINCT - col0 ) + MAX ( ALL - col1 ) AS col2 FROM tab2 WHERE ( NULL ) <> - 17 * 48
----
NULL

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE col0 IN ( col2 / + col2 )
----

query I rowsort
SELECT DISTINCT - 8 / col1 FROM tab1 WHERE NULL > ( - col1 * - 38 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT + MAX( ( - col1 ) ) FROM tab1 WHERE NOT col2 IS NULL
----
-5

skipif mysql # not compatible
query I rowsort label-5955
SELECT + MAX ( ( - col1 ) ) FROM tab1 WHERE NOT col2 IS NULL
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5956
SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) * - 33 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5956
SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) * - 33 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT 41 + ( 66 + - col1 ) AS col2 FROM tab1
----
102
60
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5958
SELECT - CAST( - col0 AS SIGNED ) FROM tab1 WHERE ( col2 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5958
SELECT - CAST ( - col0 AS INTEGER ) FROM tab1 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT + 28 + + 87 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( col2 ) + - 19 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT - col1 <= - col0
----
58

query III rowsort
SELECT * FROM tab1 WHERE NOT - 39 NOT IN ( col2 * 16 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 / + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( - col1 ) * - 29 FROM tab1 WHERE NOT col1 + - 85 = col2 * col2
----
1363
145
406

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 col0 FROM tab2 WHERE NULL <> + 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT - 64 + + 63 * + COUNT( * ) FROM tab2
----
125

skipif mysql # not compatible
query I rowsort label-5966
SELECT - 64 + + 63 * + COUNT ( * ) FROM tab2
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT SUM( DISTINCT + 77 ) col2 FROM tab0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5967
SELECT SUM ( DISTINCT + 77 ) col2 FROM tab0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT + MAX( ALL - col1 ) * COUNT( * ) + + 2 FROM tab2
----
-151

skipif mysql # not compatible
query I rowsort label-5968
SELECT + MAX ( ALL - col1 ) * COUNT ( * ) + + 2 FROM tab2
----
-151

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 26 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 + 77 AS col2 FROM tab1
----
-14
-8
26

query I rowsort
SELECT DISTINCT + 54 * 38 FROM tab0
----
2052

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT MAX( DISTINCT + col2 ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND + 63 + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5972
SELECT MAX ( DISTINCT + col2 ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND + 63 + col2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN 51 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5974
SELECT - col0 FROM tab1 WHERE NOT 34 - col0 * col1 > ( + 2 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5974
SELECT - col0 FROM tab1 WHERE NOT 34 - col0 * col1 > ( + 2 * CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT + MIN( DISTINCT - ( col1 ) ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-5975
SELECT + MIN ( DISTINCT - ( col1 ) ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-141

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5977
SELECT ALL - col1 * CAST( NULL AS SIGNED ) + 32 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5977
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) + 32 FROM tab2 AS cor0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NOT ( 90 * + 63 ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 93 ) col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5980
SELECT * FROM tab0 cor0 WHERE col2 * 47 - col0 IN ( - CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5980
SELECT * FROM tab0 cor0 WHERE col2 * 47 - col0 IN ( - CAST ( col0 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - col0 * + 12 FROM tab0 AS cor0
----
-1044
-1164
-180

query I rowsort
SELECT - col2 + col1 / col0 AS col0 FROM tab1 AS cor0 WHERE col0 * col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5983
SELECT + - CAST( NULL AS SIGNED ) * + col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5983
SELECT + - CAST ( NULL AS INTEGER ) * + col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 25 + col1 AS col0 FROM tab2 AS cor0
----
102
76
92

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - col1 * 24 + + col2 AS col1 FROM tab1 AS cor0
----
-1060
-240
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT + SUM( - 49 ) FROM tab0 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-5987
SELECT + SUM ( - 49 ) FROM tab0 AS cor0
----
-147

query I rowsort
SELECT DISTINCT + + ( - col2 ) + col0 FROM tab1 AS cor0
----
-45
23
26

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE + col0 - - col2 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 + col1 BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT ALL COUNT( DISTINCT + - col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5992
SELECT ALL COUNT ( DISTINCT + - col0 ) FROM tab1
----
3

query I rowsort
SELECT ALL ( col0 ) - - col1 * col1 FROM tab2
----
2647
4564
5993

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE ( + col0 ) <= NULL
----

query I rowsort
SELECT ALL ( + col0 ) - 24 * 19 FROM tab1
----
-365
-371
-405

query I rowsort
SELECT ALL 4 * - - col2 AS col2 FROM tab0
----
188
396
40

query I rowsort
SELECT - ( + 41 ) - 61 * - 30 FROM tab2
----
1789
1789
1789

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5998
SELECT DISTINCT - 66 - + col1 * - ( CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) + + ( - 86 ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5998
SELECT DISTINCT - 66 - + col1 * - ( CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) + + ( - 86 ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5999
SELECT * FROM tab2 WHERE ( NULL ) = + col0 / + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5999
SELECT * FROM tab2 WHERE ( NULL ) = + col0 / + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col2 * col0 col2 FROM tab0
----
10575
75690
931491

query I rowsort
SELECT + col1 - + - col1 FROM tab0
----
162
2
42

query I rowsort
SELECT + 72 + 94 FROM tab1
----
166
166
166

query I rowsort
SELECT - ( + - col0 ) * 56 AS col0 FROM tab2 AS cor0
----
2576
3584
4200

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 / - 26 )
----

query I rowsort
SELECT ALL - col1 * + - col0 * - 24 AS col1 FROM tab1 AS cor0
----
-10200
-102648
-17136

query I rowsort
SELECT ALL col2 + - col0 * + col2 FROM tab0 AS cor0 WHERE NOT NULL >= 54 * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 / col2 col0 FROM tab2 cor0 WHERE NOT ( col1 ) NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT MIN( DISTINCT - + col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-6008
SELECT MIN ( DISTINCT - + col2 ) AS col1 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6009
SELECT ALL + 96 * - CAST( + 22 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2112
-2112
-2112

skipif mysql # not compatible
query I rowsort label-6009
SELECT ALL + 96 * - CAST ( + 22 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2112
-2112
-2112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6010
SELECT ALL - ( + + CAST( NULL AS SIGNED ) ) * - + 38 + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6010
SELECT ALL - ( + + CAST ( NULL AS INTEGER ) ) * - + 38 + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6011
SELECT DISTINCT 0 DIV - col1 FROM tab1 WHERE ( - col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6011
SELECT DISTINCT 0 / - col1 FROM tab1 WHERE ( - col0 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT + - COUNT( * ) + + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-6012
SELECT + - COUNT ( * ) + + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT COUNT( * ) + + 54 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) < ( NULL )
----
54

skipif mysql # not compatible
query I rowsort label-6013
SELECT COUNT ( * ) + + 54 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) < ( NULL )
----
54

query I rowsort
SELECT ALL col0 * + 63 FROM tab1
----
3213
5355
5733

query I rowsort
SELECT ALL + + ( - col1 ) * - - 10 + - 74 * - ( 50 ) FROM tab0 AS cor0
----
2890
3490
3690

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT + 11 * COUNT( DISTINCT - - col0 ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-6016
SELECT + 11 * COUNT ( DISTINCT - - col0 ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-6017
SELECT DISTINCT - col1 DIV + ( - - 34 ) - 73 AS col0 FROM tab2 AS cor0
----
-74
-75

skipif mysql # not compatible
query I rowsort label-6017
SELECT DISTINCT - col1 / + ( - - 34 ) - 73 AS col0 FROM tab2 AS cor0
----
-74
-75

query I rowsort
SELECT 17 * + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1003
1156
1632

query II rowsort
SELECT DISTINCT - col0 AS col0, col2 - + col0 * - 19 FROM tab1 AS cor0
----
-51
1065
-85
1674
-91
1797

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 62 + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 26 col2 FROM tab1 cor0
----
-26
-26
-26

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - 93 * + col0 AND + 14
----

query II rowsort
SELECT ALL col2, + col2 * - + 68 FROM tab0 AS cor0
----
10
-680
47
-3196
99
-6732

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 57 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT + MIN( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6025
SELECT + MIN ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL col1 * - - col0 FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT ALL COUNT( * ) + MAX( DISTINCT col1 ) FROM tab1 WHERE + 74 <> + + 59 * + col2
----
50

skipif mysql # not compatible
query I rowsort label-6027
SELECT ALL COUNT ( * ) + MAX ( DISTINCT col1 ) FROM tab1 WHERE + 74 <> + + 59 * + col2
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6028
SELECT MAX( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6028
SELECT MAX ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT SUM( DISTINCT + 5 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6029
SELECT SUM ( DISTINCT + 5 ) FROM tab1
----
5

query I rowsort
SELECT col1 - - col0 FROM tab0 WHERE NOT + col1 > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6031
SELECT * FROM tab2 WHERE NOT ( - col2 + CAST( col1 AS SIGNED ) ) IN ( col1 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6031
SELECT * FROM tab2 WHERE NOT ( - col2 + CAST ( col1 AS INTEGER ) ) IN ( col1 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 11 + col1 AS col1 FROM tab1 cor0 WHERE ( + col0 IN ( col0 + - 24 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT DISTINCT - SUM( ALL col2 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6033
SELECT DISTINCT - SUM ( ALL col2 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + col0 * - + 7 FROM tab2
----
-322
-448
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT ALL COUNT( DISTINCT - 74 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL COUNT ( DISTINCT - 74 ) AS col0 FROM tab0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6036
SELECT * FROM tab1 WHERE ( + col0 * - - col1 ) BETWEEN NULL AND + 66 * CAST( col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6036
SELECT * FROM tab1 WHERE ( + col0 * - - col1 ) BETWEEN NULL AND + 66 * CAST ( col1 AS REAL )
----

query I rowsort
SELECT + 56 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT ( COUNT( * ) ) - 81 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL AND NOT ( NULL ) = 68
----
-81

skipif mysql # not compatible
query I rowsort label-6038
SELECT ( COUNT ( * ) ) - 81 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL AND NOT ( NULL ) = 68
----
-81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 62 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( + col0 )
----

query II rowsort
SELECT 9 + + + ( - + 54 ) + col2 AS col2, - col2 + - col0 AS col1 FROM tab2
----
-22
-69
-5
-104
13
-133

query I rowsort
SELECT ALL - ( + col0 ) - - col0 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + ( + 42 ) * col1 NOT IN ( + 51 / + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 80 + 79 FROM tab0, tab1 AS cor0
----
9 values hashing to 99d564cc90dff23cb01696db1cdf1cf5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6045
SELECT DISTINCT * FROM tab2 WHERE NOT - + ( + + 89 ) = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6045
SELECT DISTINCT * FROM tab2 WHERE NOT - + ( + + 89 ) = - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT ( - + col2 ) AS col1 FROM tab0
----
-10
-47
-99

query II rowsort
SELECT - col0 AS col0, col2 * - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-46
-1173
-64
-3080
-75
-3886

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 35 * - + 77 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col0 AS col2, + col1 * + col1 AS col1 FROM tab1 AS cor0
----
51
196
85
25
91
2209

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6050
SELECT ALL + CAST( NULL AS DECIMAL ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL + CAST ( NULL AS REAL ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT + 47 + - - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
56

skipif mysql # not compatible
query I rowsort label-6051
SELECT + 47 + - - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
56

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 35 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * + col0 * - col1 + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col2 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6054
SELECT + 89 + - CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
112
129
147

skipif mysql # not compatible
query I rowsort label-6054
SELECT + 89 + - CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
112
129
147

query I rowsort
SELECT ALL - ( + col0 ) * - + 46 AS col0 FROM tab1 AS cor0
----
2346
3910
4186

query I rowsort
SELECT DISTINCT + 5 * - 51 + - 35 AS col2 FROM tab0 AS cor0
----
-290

query I rowsort
SELECT ALL 46 * - + col1 AS col2 FROM tab0 cor0 WHERE NOT ( ( NOT NULL IS NOT NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6058
SELECT ALL - col1 + + CAST( + col1 AS SIGNED ) * + col1 AS col1 FROM tab0 AS cor0 WHERE NOT col1 * + - 77 * + col0 IS NULL
----
0
420
6480

skipif mysql # not compatible
query I rowsort label-6058
SELECT ALL - col1 + + CAST ( + col1 AS INTEGER ) * + col1 AS col1 FROM tab0 AS cor0 WHERE NOT col1 * + - 77 * + col0 IS NULL
----
0
420
6480

onlyif mysql # DIV for integer division: 
query I rowsort label-6059
SELECT DISTINCT col0 DIV + - 13 FROM tab1
----
-3
-6
-7

skipif mysql # not compatible
query I rowsort label-6059
SELECT DISTINCT col0 / + - 13 FROM tab1
----
-3
-6
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6060
SELECT - CAST( - 98 AS SIGNED ) AS col2 FROM tab1
----
98
98
98

skipif mysql # not compatible
query I rowsort label-6060
SELECT - CAST ( - 98 AS INTEGER ) AS col2 FROM tab1
----
98
98
98

query III rowsort
SELECT * FROM tab2 WHERE - col2 NOT IN ( - 12, 73 - + col0, + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( col2, col2 * - - 74 )
----

query I rowsort
SELECT ALL - col1 + + 10 FROM tab2
----
-41
-57
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-6064
SELECT + - COUNT( * ), 29 AS col0 FROM tab0 AS cor0
----
-3
29

skipif mysql # not compatible
query II rowsort label-6064
SELECT + - COUNT ( * ), 29 AS col0 FROM tab0 AS cor0
----
-3
29

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 86 * + + col2 + + col2 = ( - col2 )
----

query I rowsort
SELECT ALL + - col1 - + - col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT DISTINCT SUM( ALL 72 ) AS col2 FROM tab1, tab1 AS cor0
----
648

skipif mysql # not compatible
query I rowsort label-6067
SELECT DISTINCT SUM ( ALL 72 ) AS col2 FROM tab1, tab1 AS cor0
----
648

query I rowsort
SELECT + + 9 * + - col0 AS col2 FROM tab0 cor0
----
-135
-783
-873

query I rowsort
SELECT + 79 * + + col0 + - + 82 AS col2 FROM tab0 AS cor0
----
1103
6791
7581

query I rowsort
SELECT DISTINCT + col1 + 41 * - col0 * + col1 AS col1 FROM tab2 AS cor0
----
-201971
-205958
-96135

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6071
SELECT - + CAST( col0 AS SIGNED ) DIV col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6071
SELECT - + CAST ( col0 AS INTEGER ) / col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - + 57 AS col0 FROM tab2 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT ALL 64 + - 78 + MIN( DISTINCT - + col0 ) AS col2 FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL 64 + - 78 + MIN ( DISTINCT - + col0 ) AS col2 FROM tab1 AS cor0
----
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-6074
SELECT - 60 DIV - col0 - 53 FROM tab1 cor0
----
-52
-53
-53

skipif mysql # not compatible
query I rowsort label-6074
SELECT - 60 / - col0 - 53 FROM tab1 cor0
----
-52
-53
-53

query III rowsort
SELECT * FROM tab2 WHERE NOT - 41 BETWEEN NULL AND + col2
----

query I rowsort
SELECT ALL - 36 * col2 FROM tab1
----
-2124
-2448
-3456

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 < col2
----
97
1
99

query I rowsort
SELECT - 98 * + 95 FROM tab2
----
-9310
-9310
-9310

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 * + - 26 / + - col1 IN ( + - 49 + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6080
SELECT + col1 * - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT + ( - - CAST( + - 95 AS SIGNED ) ) NOT BETWEEN - 29 + - col0 AND ( col0 )
----
-1827
-97

skipif mysql # not compatible
query I rowsort label-6080
SELECT + col1 * - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT + ( - - CAST ( + - 95 AS INTEGER ) ) NOT BETWEEN - 29 + - col0 AND ( col0 )
----
-1827
-97

query II rowsort
SELECT ALL col0, col2 AS col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT NULL <> NULL )
----

query I rowsort
SELECT ALL + - 96 FROM tab0 cor0
----
-96
-96
-96

query I rowsort
SELECT ALL 45 * - + col2 AS col0 FROM tab2
----
-1035
-1800
-2610

query I rowsort
SELECT ALL + col1 * col1 + + 82 * + 25 AS col2 FROM tab1 AS cor0
----
2075
2246
4259

query II rowsort
SELECT DISTINCT - col1, 12 AS col0 FROM tab2 AS cor0
----
-51
12
-67
12
-77
12

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 IN ( - - col2 * - col2, + col0 )
----

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE col0 + - col2 * col2 < ( + 45 ) - col1 * + 12
----
59
68
96

query I rowsort
SELECT - 19 * + 58 * + col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <> - + 7
----

query I rowsort
SELECT DISTINCT 65 AS col0 FROM tab0 AS cor0 WHERE - col1 = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT DISTINCT - - 73 + COUNT( * ) FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-6091
SELECT DISTINCT - - 73 + COUNT ( * ) FROM tab0 AS cor0
----
76

query I rowsort
SELECT ALL col0 * - 55 AS col0 FROM tab0
----
-4785
-5335
-825

query III rowsort
SELECT * FROM tab0 WHERE + 49 * + col1 + col2 + - ( + 40 ) - + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - 32 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6095
SELECT - MIN( CAST( col0 AS SIGNED ) ) FROM tab1 WHERE NULL IS NULL
----
-51

skipif mysql # not compatible
query I rowsort label-6095
SELECT - MIN ( CAST ( col0 AS INTEGER ) ) FROM tab1 WHERE NULL IS NULL
----
-51

query II rowsort
SELECT col2 + - 77, col0 AS col0 FROM tab0
----
-30
15
-67
87
22
97

query I rowsort
SELECT - 3 + + - col1 - 57 FROM tab0
----
-141
-61
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6098
SELECT DISTINCT CAST( SUM( CAST( NULL AS DECIMAL ) ) AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE ( + 89 ) NOT BETWEEN NULL AND ( + 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6098
SELECT DISTINCT CAST ( SUM ( CAST ( NULL AS REAL ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE ( + 89 ) NOT BETWEEN NULL AND ( + 8 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6099
SELECT ALL - + col0 + - col1 DIV - + 93 * + 5 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6099
SELECT ALL - + col0 + - col1 / - + 93 * + 5 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( 2 ) col1 FROM tab2 AS cor0 WHERE NOT col0 + - - 97 * + col1 IS NULL
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6101
SELECT ALL + CAST( NULL AS SIGNED ) - - 75 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6101
SELECT ALL + CAST ( NULL AS INTEGER ) - - 75 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + - col0 - - 67 FROM tab2
----
1125
2627
4417

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( 79 ) <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( + col2 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6105
SELECT + 58 DIV - - col2 col1 FROM tab0 AS cor0
----
0
1
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6105
SELECT + 58 / - - col2 col1 FROM tab0 AS cor0
----
0
1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT - 62 * + - COUNT( * ) FROM tab1 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-6106
SELECT - 62 * + - COUNT ( * ) FROM tab1 AS cor0
----
186

query I rowsort
SELECT ALL col1 * col0 - - - col1 AS col0 FROM tab1 AS cor0 WHERE ( NOT NULL NOT BETWEEN NULL AND NULL )
----

query II rowsort
SELECT col0 AS col2, - 18 FROM tab0 AS cor0
----
15
-18
87
-18
97
-18

query III rowsort
SELECT * FROM tab1 WHERE NOT 60 + - ( 48 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6110
SELECT DISTINCT - ( + - COUNT( - - ( + 3 ) ) ) DIV 70 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6110
SELECT DISTINCT - ( + - COUNT ( - - ( + 3 ) ) ) / 70 AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL col0 * col2 * + + 89 + - col0 AS col0 FROM tab1 AS cor0
----
435693
446250
550641

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6113
SELECT - - CAST( col0 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-6113
SELECT - - CAST ( col0 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
-225
-7569
-9409

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - - col2 * 9 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 85 + - 54 FROM tab1 AS cor0
----
31
31
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6116
SELECT col0 + + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6116
SELECT col0 + + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6117
SELECT + col1 + 74 DIV - 82 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6117
SELECT + col1 + 74 / - 82 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + 29 + - 18 FROM tab2 AS cor0
----
11
11
11

query I rowsort
SELECT - col1 * 60 AS col2 FROM tab2 AS cor0
----
-3060
-4020
-4620

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 18 AND + ( - 38 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6121
SELECT ALL + ( CAST( 18 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-6121
SELECT ALL + ( CAST ( 18 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
18
18
18

query I rowsort
SELECT ( - col0 ) * col1 + - + col0 * + - ( - + ( + + 91 ) ) AS col2 FROM tab0 AS cor0 WHERE 53 IS NOT NULL
----
-2580
-8924
-9744

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT DISTINCT + COUNT( * ) + 97 FROM tab2 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-6123
SELECT DISTINCT + COUNT ( * ) + 97 FROM tab2 AS cor0
----
100

query I rowsort
SELECT DISTINCT 55 AS col1 FROM tab1 cor0
----
55

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 NOT BETWEEN col1 AND + + col1
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6126
SELECT + CAST( col0 AS SIGNED ) AS col0 FROM tab2 WHERE + CAST( NULL AS SIGNED ) * + CAST( + - col1 AS DECIMAL ) - + CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-6126
SELECT + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) * + CAST ( + - col1 AS REAL ) - + CAST ( NULL AS INTEGER ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6127
SELECT - col0 AS col0, - col1 DIV + + CAST( + 64 AS SIGNED ) FROM tab0
----
-15
-1
-87
0
-97
0

skipif mysql # not compatible
query II rowsort label-6127
SELECT - col0 AS col0, - col1 / + + CAST ( + 64 AS INTEGER ) FROM tab0
----
-15
-1
-87
0
-97
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 * + ( + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT DISTINCT - 30 + + MAX( ALL 63 ) FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-6129
SELECT DISTINCT - 30 + + MAX ( ALL 63 ) FROM tab0 AS cor0
----
33

query I rowsort
SELECT ALL - + col1 + + 97 + + col2 * + 4 + col2 AS col2 FROM tab0 AS cor0
----
126
251
591

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6131
SELECT ALL + - col0 * - - CAST( NULL AS SIGNED ) AS col2, 13 * + - 4 + + 65 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----

skipif mysql # not compatible
query II rowsort label-6131
SELECT ALL + - col0 * - - CAST ( NULL AS INTEGER ) AS col2, 13 * + - 4 + + 65 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6132
SELECT * FROM tab2 WHERE 12 * - - CAST( + ( + col0 ) AS SIGNED ) < + - col1
----

skipif mysql # not compatible
query III rowsort label-6132
SELECT * FROM tab2 WHERE 12 * - - CAST ( + ( + col0 ) AS INTEGER ) < + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT COUNT( DISTINCT + - col0 ) * 83 AS col1 FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-6133
SELECT COUNT ( DISTINCT + - col0 ) * 83 AS col1 FROM tab0
----
249

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6135
SELECT + col2 DIV - - col1 FROM tab1 cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-6135
SELECT + col2 / - - col1 FROM tab1 cor0
----
1
11
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6136
SELECT DISTINCT + col0 DIV 92 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6136
SELECT DISTINCT + col0 / 92 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6137
SELECT 80 DIV SUM( ALL - + col0 ) AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6137
SELECT 80 / SUM ( ALL - + col0 ) AS col2 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-6138
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----
0

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE 83 IN ( + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 = + 17
----

query II rowsort
SELECT ALL col1 AS col2, 22 * col2 AS col1 FROM tab1
----
14
2112
47
1496
5
1298

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6142
SELECT DISTINCT CAST( NULL AS SIGNED ) col0, + col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6142
SELECT DISTINCT CAST ( NULL AS INTEGER ) col0, + col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query II rowsort
SELECT col0 AS col2, + col2 AS col2 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT DISTINCT - col0 + - + 48 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-112
-123
-94

query I rowsort
SELECT col0 * 43 AS col1 FROM tab1
----
2193
3655
3913

query I rowsort
SELECT ALL + + 4 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT ALL MAX( ALL - + col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-6147
SELECT ALL MAX ( ALL - + col0 ) FROM tab2
----
-46

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NOT - col1 * - col2 + col1 IS NOT NULL )
----

query I rowsort
SELECT ALL - col0 + - + col1 AS col0 FROM tab0 cor0
----
-108
-96
-98

query I rowsort
SELECT ALL + col2 + + + 51 FROM tab2 AS cor0
----
109
74
91

query I rowsort
SELECT ALL col1 + + - 53 AS col0 FROM tab0 AS cor0
----
-32
-52
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) - + 98 + col1 col2 FROM tab1 AS cor0
----
-119
-152
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT DISTINCT MAX( + + col0 ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-6153
SELECT DISTINCT MAX ( + + col0 ) AS col2 FROM tab0
----
97

query I rowsort
SELECT col0 + + 74 AS col0 FROM tab1
----
125
159
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 * col0 + + col0 col1 FROM tab1
----
1001
561
935

query II rowsort
SELECT DISTINCT + col1, - 34 + + 10 + + col0 * col0 AS col0 FROM tab1
----
14
2577
47
8257
5
7201

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT DISTINCT COUNT( ALL - 44 ) + + SUM( ( + col2 ) ) FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-6157
SELECT DISTINCT COUNT ( ALL - 44 ) + + SUM ( ( + col2 ) ) FROM tab0
----
159

query I rowsort
SELECT ALL 53 AS col1 FROM tab2 WHERE NOT - col1 IS NULL
----
53
53
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6159
SELECT - 31 DIV + + 9 - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6159
SELECT - 31 / + + 9 - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT DISTINCT 89 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * + - 26 - + - col0 AS col1 FROM tab1 AS cor0
----
-1275
-2125
-2275

query I rowsort
SELECT DISTINCT - col0 + + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6163
SELECT ALL - col0 DIV - + 42 FROM tab0 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL - col0 / - + 42 FROM tab0 AS cor0
----
0
2
2

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col1 ) > - 1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6165
SELECT DISTINCT 87 col1 FROM tab2 AS cor0 WHERE NOT + col2 + - CAST( NULL AS SIGNED ) + + col2 + - col2 * - 42 * + col0 BETWEEN NULL AND + col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6165
SELECT DISTINCT 87 col1 FROM tab2 AS cor0 WHERE NOT + col2 + - CAST ( NULL AS INTEGER ) + + col2 + - col2 * - 42 * + col0 BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6166
SELECT - + 24 * CAST( NULL AS SIGNED ) + + 72 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6166
SELECT - + 24 * CAST ( NULL AS INTEGER ) + + 72 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6167
SELECT + + col1, CAST( NULL AS SIGNED ) * - 68 / + - CAST( CAST( + col1 AS SIGNED ) AS SIGNED ) AS col0 FROM tab2 cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-6167
SELECT + + col1, CAST ( NULL AS INTEGER ) * - 68 / + - CAST ( CAST ( + col1 AS INTEGER ) AS INTEGER ) AS col0 FROM tab2 cor0
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT ALL - COUNT( ALL 92 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - ( 26 ) AND col0
----
0

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL - COUNT ( ALL 92 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - ( 26 ) AND col0
----
0

query II rowsort
SELECT + ( - + col0 ), - 27 AS col0 FROM tab1
----
-51
-27
-85
-27
-91
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-6170
SELECT COUNT( col2 ) AS col1, + 97 FROM tab2
----
3
97

skipif mysql # not compatible
query II rowsort label-6170
SELECT COUNT ( col2 ) AS col1, + 97 FROM tab2
----
3
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6171
SELECT DISTINCT + 92 DIV + 89 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6171
SELECT DISTINCT + 92 / + 89 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT - + 44 * - COUNT( * ) - - + MAX( - + col2 ) AS col0 FROM tab0 AS cor0
----
122

skipif mysql # not compatible
query I rowsort label-6172
SELECT - + 44 * - COUNT ( * ) - - + MAX ( - + col2 ) AS col0 FROM tab0 AS cor0
----
122

query II rowsort
SELECT ALL 48 + - - col0 AS col0, col2 AS col1 FROM tab2 AS cor0
----
112
40
123
58
94
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT ALL - MIN( DISTINCT + col2 ) + + 52 AS col1 FROM tab1 AS cor0 WHERE NOT col0 + - + ( + + col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL - MIN ( DISTINCT + col2 ) + + 52 AS col1 FROM tab1 AS cor0 WHERE NOT col0 + - + ( + + col1 ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 2 * + col1 AS col2 FROM tab0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT ALL SUM( - col0 ) * + 17 FROM tab2
----
-3145

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL SUM ( - col0 ) * + 17 FROM tab2
----
-3145

query I rowsort
SELECT ALL - col2 * col2 + - - col2 * col1 AS col1 FROM tab1 AS cor0
----
-1428
-3186
-7872

query I rowsort
SELECT - col1 + + + col0 + + + 37 FROM tab1 AS cor0
----
117
74
81

query I rowsort
SELECT DISTINCT + - 85 + + + 25 * - col0 FROM tab1 AS cor0
----
-1360
-2210
-2360

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT - SUM( DISTINCT - ( - 51 ) ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6180
SELECT - SUM ( DISTINCT - ( - 51 ) ) AS col1 FROM tab2 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0 col1, - col2 - - 82 AS col2 FROM tab0 AS cor0 WHERE - 25 IN ( col0, - col1 * 54 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 20 BETWEEN - - col2 AND ( NULL )
----

query II rowsort
SELECT - - col0 AS col1, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6184
SELECT DISTINCT COUNT( * ) + + COUNT( ALL - 20 ) + - 47, 61 col1 FROM tab0 AS cor0
----
-41
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6184
SELECT DISTINCT COUNT ( * ) + + COUNT ( ALL - 20 ) + - 47, 61 col1 FROM tab0 AS cor0
----
-41
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT ALL COUNT( * ) * + 57 AS col1 FROM tab1 AS cor0 WHERE col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-6185
SELECT ALL COUNT ( * ) * + 57 AS col1 FROM tab1 AS cor0 WHERE col2 < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6186
SELECT + 42 - col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6186
SELECT + 42 - col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6187
SELECT ALL - ( 60 ) - + CAST( col1 AS SIGNED ) + - col0 * + col2 FROM tab2
----
-1169
-2697
-4477

skipif mysql # not compatible
query I rowsort label-6187
SELECT ALL - ( 60 ) - + CAST ( col1 AS INTEGER ) + - col0 * + col2 FROM tab2
----
-1169
-2697
-4477

query I rowsort
SELECT col1 - + col2 + + col0 AS col1 FROM tab2
----
101
74
84

query III rowsort
SELECT * FROM tab1 WHERE col2 * - ( + 93 ) * - + 35 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * col0 + col2 AS col2 FROM tab2
----
-2093
-4056
-5567

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 89 * - + col1 col0 FROM tab1 AS cor0
----
1232
4136
440

query I rowsort
SELECT ALL + col2 + - 54 * - 24 AS col0 FROM tab1 AS cor0
----
1355
1364
1392

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT ALL - ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0 WHERE col1 >= - col2
----
-3

skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL - ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0 WHERE col1 >= - col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT - - 91 + COUNT( * ) + - + COUNT( * ) * + 75 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-575

skipif mysql # not compatible
query I rowsort label-6194
SELECT - - 91 + COUNT ( * ) + - + COUNT ( * ) * + 75 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-575

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT COUNT( * ) * + COUNT( * ) * + - 12 FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-6195
SELECT COUNT ( * ) * + COUNT ( * ) * + - 12 FROM tab2
----
-108

query I rowsort
SELECT DISTINCT - 72 AS col1 FROM tab1 cor0
----
-72

query II rowsort
SELECT DISTINCT - col1, - 41 AS col1 FROM tab2 AS cor0 WHERE NOT col0 * 19 NOT BETWEEN NULL AND - + col0
----

query I rowsort
SELECT - + 92 * + + col1 + 96 FROM tab2 AS cor0
----
-4596
-6068
-6988

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6199
SELECT DISTINCT col1, col1 * + + CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
51
1173
67
3886
77
3080

skipif mysql # not compatible
query II rowsort label-6199
SELECT DISTINCT col1, col1 * + + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
51
1173
67
3886
77
3080

query I rowsort
SELECT ALL 46 * + col1 FROM tab1 AS cor0
----
2162
230
644

query I rowsort
SELECT DISTINCT - col0 * + - col2 + + col2 FROM tab0 cor0
----
752
880
9702

query I rowsort
SELECT - 13 * - - col1 FROM tab0
----
-1053
-13
-273

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 IS NOT NULL OR NOT - ( 1 ) IS NOT NULL
----

query I rowsort
SELECT - + 35 AS col0 FROM tab2 WHERE NOT 78 IS NULL
----
-35
-35
-35

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6205
SELECT ALL col2 DIV CAST( 56 AS SIGNED ) col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6205
SELECT ALL col2 / CAST ( 56 AS INTEGER ) col2 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL col2 * + 89 FROM tab1
----
5251
6052
8544

query I rowsort
SELECT + col1 * + 8 AS col2 FROM tab1
----
112
376
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT ALL - ( + COUNT( * ) ) * - COUNT( * ) + + + 52 * 91 AS col0 FROM tab0
----
4741

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL - ( + COUNT ( * ) ) * - COUNT ( * ) + + + 52 * 91 AS col0 FROM tab0
----
4741

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6209
SELECT + col1 * 5 + + - ( + + 69 ) + - col2 - CAST( NULL AS DECIMAL ) + - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6209
SELECT + col1 * 5 + + - ( + + 69 ) + - col2 - CAST ( NULL AS REAL ) + - col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 74 AS col2, col1 AS col2 FROM tab0
----
74
1
74
21
74
81

query I rowsort
SELECT DISTINCT - col0 + - 36 AS col1 FROM tab0 AS cor0
----
-123
-133
-51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 71 ) IS NULL
----

query I rowsort
SELECT DISTINCT - + 30 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-30

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6215
SELECT DISTINCT 73, - CAST( NULL AS SIGNED ) + - + 34 col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6215
SELECT DISTINCT 73, - CAST ( NULL AS INTEGER ) + - + 34 col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6216
SELECT - 11 DIV - MAX( ALL + col0 ) AS col1 FROM tab0 cor0 WHERE 21 NOT BETWEEN NULL AND col1
----
0

skipif mysql # not compatible
query I rowsort label-6216
SELECT - 11 / - MAX ( ALL + col0 ) AS col1 FROM tab0 cor0 WHERE 21 NOT BETWEEN NULL AND col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6217
SELECT DISTINCT - col2 AS col1, 63 * + - CAST( 83 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 + - col1 NOT IN ( + 59 )
----

skipif mysql # not compatible
query II rowsort label-6217
SELECT DISTINCT - col2 AS col1, 63 * + - CAST ( 83 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 + - col1 NOT IN ( + 59 )
----

query II rowsort
SELECT + 47 + - col1 AS col2, col1 + - 66 FROM tab2 AS cor0
----
-20
1
-30
11
-4
-15

query I rowsort
SELECT ALL - + col0 - + - ( - 61 ) FROM tab2 AS cor0
----
-107
-125
-136

onlyif mysql # DIV for integer division: 
query I rowsort label-6220
SELECT DISTINCT + col0 * + 70 - 93 DIV - col1 FROM tab2
----
3221
4481
5251

skipif mysql # not compatible
query I rowsort label-6220
SELECT DISTINCT + col0 * + 70 - 93 / - col1 FROM tab2
----
3221
4481
5251

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE - + col2 / 10 IS NOT NULL
----
46
64
75

query II rowsort
SELECT DISTINCT + col0 AS col2, + 16 - + col0 AS col2 FROM tab0
----
15
1
87
-71
97
-81

query I rowsort
SELECT ALL 17 - - 25 AS col1 FROM tab0
----
42
42
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, - col0 FROM tab2
----
23
-46
40
-64
58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + - col2 + - 61
----
0

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + - col2 + - 61
----
0

query I rowsort
SELECT + 4 * + + col2 - 75 AS col0 FROM tab0 AS cor0
----
-35
113
321

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 / - col2 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT + 55 * - MAX( DISTINCT - col0 ) + - 12 AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= - 78 + + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-6228
SELECT + 55 * - MAX ( DISTINCT - col0 ) + - 12 AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= - 78 + + + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT DISTINCT - 80 + + - COUNT( * ) FROM tab2 WHERE + col2 BETWEEN + 70 * col2 AND + col2
----
-80

skipif mysql # not compatible
query I rowsort label-6229
SELECT DISTINCT - 80 + + - COUNT ( * ) FROM tab2 WHERE + col2 BETWEEN + 70 * col2 AND + col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT DISTINCT - MIN( DISTINCT + + col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-6230
SELECT DISTINCT - MIN ( DISTINCT + + col1 ) FROM tab1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6231
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN 25 AND + col0 * 56 - - CAST( - 25 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6231
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN 25 AND + col0 * 56 - - CAST ( - 25 AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6232
SELECT ( - + COUNT( * ) ) AS col0, 86 - - CAST( + - 69 AS SIGNED ) * + 15 AS col2 FROM tab2 AS cor0
----
-3
-949

skipif mysql # not compatible
query II rowsort label-6232
SELECT ( - + COUNT ( * ) ) AS col0, 86 - - CAST ( + - 69 AS INTEGER ) * + 15 AS col2 FROM tab2 AS cor0
----
-3
-949

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < ( - + col0 + + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 58 col2 FROM tab1 AS cor0
----
-58
-58
-58

query I rowsort
SELECT col0 * 33 AS col1 FROM tab2 AS cor0
----
1518
2112
2475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6236
SELECT + CAST( col0 AS SIGNED ) * + + 43 * + col1 FROM tab2
----
100878
211904
216075

skipif mysql # not compatible
query I rowsort label-6236
SELECT + CAST ( col0 AS INTEGER ) * + + 43 * + col1 FROM tab2
----
100878
211904
216075

query I rowsort
SELECT DISTINCT + ( + 1 ) AS col1 FROM tab1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6238
SELECT ALL + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) * + - 62 * + CAST( + COUNT( * ) AS SIGNED ) + - AVG ( + + col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6238
SELECT ALL + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) * + - 62 * + CAST ( + COUNT ( * ) AS INTEGER ) + - AVG ( + + col2 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6239
SELECT * FROM tab0 AS cor0 WHERE NULL > ( + CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6239
SELECT * FROM tab0 AS cor0 WHERE NULL > ( + CAST ( + col2 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 * - col0 col2 FROM tab1 AS cor0
----
-408
-680
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT DISTINCT + MIN( + col1 ) * - 49 AS col2 FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-6241
SELECT DISTINCT + MIN ( + col1 ) * - 49 AS col2 FROM tab0 AS cor0
----
-49

query I rowsort
SELECT + - 5 FROM tab0 WHERE col1 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6244
SELECT ALL + col0 DIV 81 + + - col1 col2 FROM tab1
----
-14
-4
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6244
SELECT ALL + col0 / 81 + + - col1 col2 FROM tab1
----
-14
-4
-46

query I rowsort
SELECT + 41 * 38 AS col1 FROM tab2 AS cor0
----
1558
1558
1558

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 41 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6247
SELECT 26 AS col0, + ( + 81 ) + + - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
26
NULL
26
NULL
26
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6247
SELECT 26 AS col0, + ( + 81 ) + + - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
26
NULL
26
NULL
26
NULL

query I rowsort
SELECT + ( - - 27 ) * - 87 AS col0 FROM tab2 cor0 WHERE ( NULL NOT BETWEEN NULL AND - col2 )
----

query II rowsort
SELECT DISTINCT - 42 * + 26, - 28 * 34 AS col2 FROM tab0 AS cor0 WHERE ( NOT - + col0 IS NULL )
----
-1092
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT ALL 36 - + COUNT( * ) - + 74 FROM tab1 cor0
----
-41

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL 36 - + COUNT ( * ) - + 74 FROM tab1 cor0
----
-41

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT NULL < col2
----

query I rowsort
SELECT DISTINCT + - 47 - - col2 FROM tab1 AS cor0
----
12
21
49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6253
SELECT ALL 15 - CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6253
SELECT ALL 15 - CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * col2 * + col0 AS col2 FROM tab1
----
249696
426275
563108

query I rowsort
SELECT DISTINCT + col2 * + - col1 FROM tab1 cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6256
SELECT 8 FROM tab1 AS cor0 WHERE NOT CAST( - + col2 AS DECIMAL ) * - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6256
SELECT 8 FROM tab1 AS cor0 WHERE NOT CAST ( - + col2 AS REAL ) * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT DISTINCT - + COUNT( col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6257
SELECT DISTINCT - + COUNT ( col0 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL col0 * - + col2 AS col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT 46 AS col2 FROM tab1 cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT DISTINCT - 13 + - + ( - MIN( DISTINCT - col0 ) ) AS col0 FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-6260
SELECT DISTINCT - 13 + - + ( - MIN ( DISTINCT - col0 ) ) AS col0 FROM tab2 AS cor0
----
-88

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6262
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT DISTINCT 18 + + COUNT( * ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-6263
SELECT DISTINCT 18 + + COUNT ( * ) FROM tab0
----
21

query III rowsort
SELECT * FROM tab1 WHERE col2 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6265
SELECT ALL - MAX( + - col2 ), ( - 22 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
10
NULL

skipif mysql # not compatible
query II rowsort label-6265
SELECT ALL - MAX ( + - col2 ), ( - 22 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
10
NULL

query III rowsort
SELECT * FROM tab1 WHERE col0 <> + 30 - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE 93 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 55 col1 FROM tab2
----
106
122
132

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 < - col0 * + 75 * + 70
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6270
SELECT 12 DIV - 69 + - - col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-6270
SELECT 12 / - 69 + - - col0 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6271
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT IN ( + 66 + - col0 * + col1 )
----

skipif mysql # not compatible
query I rowsort label-6271
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT IN ( + 66 + - col0 * + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6272
SELECT DISTINCT + 80 + - - COUNT( col2 ) * CAST( + 23 AS SIGNED ) FROM tab2 AS cor0
----
149

skipif mysql # not compatible
query I rowsort label-6272
SELECT DISTINCT + 80 + - - COUNT ( col2 ) * CAST ( + 23 AS INTEGER ) FROM tab2 AS cor0
----
149

query I rowsort
SELECT ALL - 90 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

onlyif mysql # DIV for integer division: 
query II rowsort label-6274
SELECT ALL - - col0 DIV + col1 + - col0 + 50 * + col0 AS col0, col2 FROM tab1 AS cor0
----
2502
96
4182
59
4460
68

skipif mysql # not compatible
query II rowsort label-6274
SELECT ALL - - col0 / + col1 + - col0 + 50 * + col0 AS col0, col2 FROM tab1 AS cor0
----
2502
96
4182
59
4460
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT DISTINCT + MIN( col2 ) * + MIN( ALL - col0 ) FROM tab2 cor0
----
-1725

skipif mysql # not compatible
query I rowsort label-6275
SELECT DISTINCT + MIN ( col2 ) * + MIN ( ALL - col0 ) FROM tab2 cor0
----
-1725

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( - col0, col1, + + ( - + col0 ) * + 52 )
----

query I rowsort
SELECT - - ( + col0 ) + + + col0 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT COUNT( * ) * - 47 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6278
SELECT COUNT ( * ) * - 47 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - 69 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT - SUM( ALL + - 29 ) FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-6280
SELECT - SUM ( ALL + - 29 ) FROM tab2 AS cor0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col2, - col0 col1 FROM tab0
----
15
-15
87
-87
97
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-6282
SELECT ALL COUNT( * ) AS col0, - MIN( DISTINCT col1 ) FROM tab1
----
3
-5

skipif mysql # not compatible
query II rowsort label-6282
SELECT ALL COUNT ( * ) AS col0, - MIN ( DISTINCT col1 ) FROM tab1
----
3
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT DISTINCT + 53 * + COUNT( * ) FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-6283
SELECT DISTINCT + 53 * + COUNT ( * ) FROM tab2
----
159

query I rowsort
SELECT col0 FROM tab0 WHERE NOT NULL <= col0 * - col1
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT + 50 * - COUNT( * ) * 10 AS col1 FROM tab0 AS cor0
----
-1500

skipif mysql # not compatible
query I rowsort label-6286
SELECT + 50 * - COUNT ( * ) * 10 AS col1 FROM tab0 AS cor0
----
-1500

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT - COUNT( DISTINCT - col0 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6287
SELECT - COUNT ( DISTINCT - col0 ) AS col0 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6288
SELECT + + col2 FROM tab2 WHERE NOT - col1 <= + CAST( NULL AS SIGNED ) - col0
----

skipif mysql # not compatible
query I rowsort label-6288
SELECT + + col2 FROM tab2 WHERE NOT - col1 <= + CAST ( NULL AS INTEGER ) - col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 1 ) BETWEEN - col0 AND col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6290
SELECT MAX( CAST( NULL AS DECIMAL ) ) * COUNT( ALL col2 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6290
SELECT MAX ( CAST ( NULL AS REAL ) ) * COUNT ( ALL col2 ) AS col1 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - 62 * + + 20, + col0 FROM tab1 AS cor0
----
-1240
51
-1240
85
-1240
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6292
SELECT COUNT( * ) * 23 - - AVG ( ALL - - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6292
SELECT COUNT ( * ) * 23 - - AVG ( ALL - - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 * + 78 FROM tab2
----
3978
5226
6006

query I rowsort
SELECT DISTINCT col2 / + 66 FROM tab2 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 52 < + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE + 64 * - 98 * + col1 >= NULL
----

query I rowsort
SELECT + col1 - + 23 AS col2 FROM tab2 AS cor0
----
28
44
54

query I rowsort
SELECT col0 * - 26 + + - col2 - - col0 + 52 FROM tab1 AS cor0
----
-1319
-2132
-2291

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT ALL - SUM( - col1 ) * COUNT( * ) * 56 FROM tab2
----
32760

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL - SUM ( - col1 ) * COUNT ( * ) * 56 FROM tab2
----
32760

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( - + 38 ) * - col1 + 6 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT - + SUM( + col0 ) * - COUNT( * ) AS col2 FROM tab1 cor0
----
681

skipif mysql # not compatible
query I rowsort label-6301
SELECT - + SUM ( + col0 ) * - COUNT ( * ) AS col2 FROM tab1 cor0
----
681

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT + + COUNT( * ) * - + 34 AS col0 FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-6302
SELECT + + COUNT ( * ) * - + 34 AS col0 FROM tab1 AS cor0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT - - COUNT( ALL - - ( - - col0 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6303
SELECT - - COUNT ( ALL - - ( - - col0 ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL < col2 * - - col0 * + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT - + MIN( DISTINCT + - col0 ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-6305
SELECT - + MIN ( DISTINCT + - col0 ) FROM tab2 cor0
----
75

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col1 > - - col2 + + col2 - - - col0 / 45
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 20 AS col0, - col1 + + + 17 AS col2 FROM tab0
----
20
-4
20
-64
20
16

query I rowsort
SELECT DISTINCT - col1 * + 69 FROM tab2
----
-3519
-4623
-5313

query I rowsort
SELECT 86 - + col2 AS col0 FROM tab0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT 21 * + + col1 AS col0 FROM tab1
----
105
294
987

query II rowsort
SELECT DISTINCT col2, - col1 + + 15 AS col2 FROM tab1
----
59
10
68
-32
96
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT DISTINCT - MAX( ALL 24 ) * - 42 AS col1 FROM tab0
----
1008

skipif mysql # not compatible
query I rowsort label-6312
SELECT DISTINCT - MAX ( ALL 24 ) * - 42 AS col1 FROM tab0
----
1008

query I rowsort
SELECT - col1 * - + 26 FROM tab1
----
1222
130
364

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT + MAX( ALL - - col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-6314
SELECT + MAX ( ALL - - col0 ) FROM tab1
----
91

query I rowsort
SELECT 76 * + - col0 AS col0 FROM tab0
----
-1140
-6612
-7372

onlyif mysql # DIV for integer division: 
query I rowsort label-6316
SELECT ALL col1 * + col2 DIV ( - + col2 ) * - col1 FROM tab2
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL col1 * + col2 / ( - + col2 ) * - col1 FROM tab2
----
2601
4489
5929

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6317
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6317
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - + CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT - 95 * 65 * + col1 AS col0 FROM tab0 AS cor0
----
-129675
-500175
-6175

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT + COUNT( * ) * + + 46 * - - 84 AS col1 FROM tab2
----
11592

skipif mysql # not compatible
query I rowsort label-6319
SELECT + COUNT ( * ) * + + 46 * - - 84 AS col1 FROM tab2
----
11592

query II rowsort
SELECT DISTINCT 92 * - col2 AS col2, col0 AS col0 FROM tab0
----
-4324
15
-9108
97
-920
87

query II rowsort
SELECT col2 AS col1, - col1 AS col2 FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6322
SELECT COUNT( * ) AS col1, + COUNT( * ) AS col2, COUNT( * ) - - 37 DIV + 55 FROM tab0
----
3
3
3

skipif mysql # not compatible
query III rowsort label-6322
SELECT COUNT ( * ) AS col1, + COUNT ( * ) AS col2, COUNT ( * ) - - 37 / + 55 FROM tab0
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6323
SELECT DISTINCT CAST( 84 AS SIGNED ) DIV + col0 col1 FROM tab1
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6323
SELECT DISTINCT CAST ( 84 AS INTEGER ) / + col0 col1 FROM tab1
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6324
SELECT 70 DIV - col1 AS col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6324
SELECT 70 / - col1 AS col2 FROM tab2
----
-1
-1
0

query I rowsort
SELECT ALL + col0 * - col2 + col1 AS col1 FROM tab0 AS cor0
----
-624
-849
-9602

query I rowsort
SELECT ALL - ( 71 ) + + col1 * + 12 FROM tab2 AS cor0
----
541
733
853

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 33 * + - 48 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 92 + - - col2 col1 FROM tab2 AS cor0
----
-34
-52
-69

query I rowsort
SELECT + + ( 93 ) AS col0 FROM tab1 AS cor0
----
93
93
93

query I rowsort
SELECT ALL + col2 + 2 FROM tab2 cor0
----
25
42
60

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( - col1, 89 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6332
SELECT DISTINCT + ( + 99 ) FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6332
SELECT DISTINCT + ( + 99 ) FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 23 * - col2 FROM tab0 AS cor0 WHERE + col0 * - 76 IS NOT NULL
----
-1081
-2277
-230

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT ( - 22 ) + + + 15 FROM tab1
----
-7
-7
-7

query I rowsort
SELECT ALL - 73 - - col0 AS col0 FROM tab1
----
-22
12
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6337
SELECT + CAST( NULL AS SIGNED ) / + 48 + - col0 FROM tab1 WHERE ( NOT col0 * + + col2 IS NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6337
SELECT + CAST ( NULL AS INTEGER ) / + 48 + - col0 FROM tab1 WHERE ( NOT col0 * + + col2 IS NULL )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT DISTINCT MIN( + - 20 ) * 54 AS col0 FROM tab1
----
-1080

skipif mysql # not compatible
query I rowsort label-6338
SELECT DISTINCT MIN ( + - 20 ) * 54 AS col0 FROM tab1
----
-1080

query I rowsort
SELECT col1 + - 39 * + col1 - + 14 + 40 * + + col0 AS col0 FROM tab2
----
-112
-380
440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + + col1, + col2 col2 FROM tab1
----
110
96
115
68
64
59

query I rowsort
SELECT ( - + col0 ) * + col2 + - 40 FROM tab1
----
-4936
-5055
-6228

query III rowsort
SELECT * FROM tab1 WHERE + - col1 * - + 84 IS NULL
----

query I rowsort
SELECT ALL + col0 - ( - + 67 ) + col1 AS col0 FROM tab0 AS cor0
----
163
165
175

query I rowsort
SELECT 61 - + col1 AS col2 FROM tab2
----
-16
-6
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT COUNT( * ) * - + MAX( ALL - 63 ) * + + COUNT( * ) - + COUNT( * ) col0 FROM tab0
----
564

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6345
SELECT COUNT ( * ) * - + MAX ( ALL - 63 ) * + + COUNT ( * ) - + COUNT ( * ) col0 FROM tab0
----
564

query I rowsort
SELECT - 50 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 * - 84 * + - 23 IS NULL
----
-50
-50
-50

query II rowsort
SELECT DISTINCT - 18, col0 AS col0 FROM tab1 AS cor0
----
-18
51
-18
85
-18
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT ALL + COUNT( + + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6348
SELECT ALL + COUNT ( + + col0 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6349
SELECT + + ( + COUNT( * ) ) DIV - 56 + - - COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6349
SELECT + + ( + COUNT ( * ) ) / - 56 + - - COUNT ( * ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6350
SELECT + COUNT( * ), 19 AS col2 FROM tab1 AS cor0
----
3
19

skipif mysql # not compatible
query II rowsort label-6350
SELECT + COUNT ( * ), 19 AS col2 FROM tab1 AS cor0
----
3
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT ALL - COUNT( DISTINCT - 60 ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL - COUNT ( DISTINCT - 60 ) AS col0 FROM tab2
----
-1

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 >= + 7
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 32 * - col0 FROM tab2
----
-1472
-2048
-2400

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT - + COUNT( DISTINCT + + col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6355
SELECT - + COUNT ( DISTINCT + + col0 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * + - ( col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 15 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT DISTINCT 17 + + - COUNT( * ) * SUM( ALL - col0 ) FROM tab1
----
698

skipif mysql # not compatible
query I rowsort label-6358
SELECT DISTINCT 17 + + - COUNT ( * ) * SUM ( ALL - col0 ) FROM tab1
----
698

query I rowsort
SELECT 54 * + - 86 * - col0 + - - col2 FROM tab0
----
404038
450567
69707

query I rowsort
SELECT ALL col0 * + + col2 + 68 + - col2 - + col1 + - + col1 AS col2 FROM tab2 AS cor0
----
1001
2434
4226

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + ( + col0 ) ) col0 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 4 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 35 * + col1 FROM tab0 AS cor0
----
2835
35
735

query I rowsort
SELECT ALL - col2 + + 35 AS col1 FROM tab1 AS cor0
----
-24
-33
-61

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 > - 6 * - 96
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 / ( 6 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0 AS col2, 77 AS col2 FROM tab1
----
51
77
85
77
91
77

onlyif mysql # DIV for integer division: 
query II rowsort label-6368
SELECT DISTINCT 23 DIV + col0 AS col2, ( + 13 ) AS col1 FROM tab1
----
0
13

skipif mysql # not compatible
query II rowsort label-6368
SELECT DISTINCT 23 / + col0 AS col2, ( + 13 ) AS col1 FROM tab1
----
0
13

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6369
SELECT DISTINCT CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED ) * + - col0 + + + col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6369
SELECT DISTINCT CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ) * + - col0 + + + col0 FROM tab0
----
NULL

query I rowsort
SELECT - col0 + + - col0 * - - col1 AS col1 FROM tab1 WHERE NULL IS NULL
----
-4368
-510
-765

query I rowsort
SELECT - 7 - + + col1 + + col2 FROM tab0
----
-18
-41
91

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-6372
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col1 * + - CAST( NULL AS DECIMAL ) + + + col1 AS col1, col1 DIV + col0 FROM tab2
----
NULL
0
NULL
1

skipif mysql # not compatible
query II rowsort label-6372
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col1 * + - CAST ( NULL AS REAL ) + + + col1 AS col1, col1 / + col0 FROM tab2
----
NULL
0
NULL
1

query I rowsort
SELECT ( col2 ) + + 98 FROM tab1
----
157
166
194

query I rowsort
SELECT + col2 * col2 + - col1 AS col1 FROM tab1 AS cor0
----
3476
4577
9202

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT NULL NOT BETWEEN + + col1 / 13 + - 13 AND NULL )
----

query I rowsort
SELECT ALL + 43 - - - col0 + col2 - col2 + - col0 + - - col2 * - col0 FROM tab2 AS cor0
----
-1107
-2645
-4457

query I rowsort
SELECT ALL + col1 * - 58 + col1 AS col1 FROM tab0 AS cor0
----
-1197
-4617
-57

query II rowsort
SELECT + col0 * - + 78 * col2 AS col0, - ( + ( - - col2 ) ) FROM tab2 AS cor0
----
-199680
-40
-339300
-58
-82524
-23

query I rowsort
SELECT + - col0 FROM tab2 AS cor0 WHERE NOT NULL < 92
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 42 NOT BETWEEN col0 + - - col2 * + + col1 + - - col1 AND - - col1
----

query I rowsort
SELECT + + col2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
23
40
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 66 + col0 + + + 93 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 44 + + col2 * + col0 col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab0 WHERE 14 IS NULL
----

query I rowsort
SELECT + + col0 FROM tab2 WHERE NOT col0 IS NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + col1 * - 84 * - - col0 FROM tab2 WHERE NULL NOT IN ( col0 + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6387
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 41 * 95 col0, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6387
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 41 * 95 col0, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6388
SELECT col1 - - col0 DIV - 17 AS col1 FROM tab2 WHERE NOT 67 IS NULL
----
49
63
74

skipif mysql # not compatible
query I rowsort label-6388
SELECT col1 - - col0 / - 17 AS col1 FROM tab2 WHERE NOT 67 IS NULL
----
49
63
74

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = ( 70 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT ALL COUNT( * ) + COUNT( * ) * + 25 AS col2 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL COUNT ( * ) + COUNT ( * ) * + 25 AS col2 FROM tab2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT + MAX( DISTINCT + ( - col2 ) ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-6391
SELECT + MAX ( DISTINCT + ( - col2 ) ) AS col2 FROM tab2
----
-23

query III rowsort
SELECT * FROM tab1 WHERE NOT + 57 <> col2 + 5 * + col2
----

query I rowsort
SELECT col1 + col0 FROM tab2 WHERE NOT + col1 + col1 >= - col1
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 + col2 AND + col0 * + 64
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6395
SELECT + col2 DIV 98 + + col2 FROM tab0
----
10
100
47

skipif mysql # not compatible
query I rowsort label-6395
SELECT + col2 / 98 + + col2 FROM tab0
----
10
100
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT COUNT( * ) FROM tab2 WHERE ( NULL ) <= 66
----
0

skipif mysql # not compatible
query I rowsort label-6396
SELECT COUNT ( * ) FROM tab2 WHERE ( NULL ) <= 66
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( 85 * - col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6398
SELECT 27 DIV - MAX( ALL + col1 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6398
SELECT 27 / - MAX ( ALL + col1 ) AS col0 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6399
SELECT + col0 DIV col0 col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6399
SELECT + col0 / col0 col2 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6400
SELECT DISTINCT - CAST( NULL AS SIGNED ) - 98 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6400
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - 98 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE NOT + col0 * + col2 BETWEEN ( col2 * + 75 ) AND + col1
----
1
21
81

query I rowsort
SELECT col0 * - 41 + col0 FROM tab1 WHERE NOT 3 + + 68 < - col0 + col2 * col1
----

query I rowsort
SELECT col1 FROM tab2 WHERE NULL <= ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6404
SELECT + col0 * CAST( col1 * col2 AS SIGNED ) AS col0 FROM tab0
----
18270
57105
9603

skipif mysql # not compatible
query I rowsort label-6404
SELECT + col0 * CAST ( col1 * col2 AS INTEGER ) AS col0 FROM tab0
----
18270
57105
9603

query III rowsort
SELECT * FROM tab0 WHERE 36 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6406
SELECT ALL - col2 DIV - col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL - col2 / - col1 AS col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 col0 FROM tab1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT DISTINCT + COUNT( * ) + MIN( col2 - col0 ) FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-6408
SELECT DISTINCT + COUNT ( * ) + MIN ( col2 - col0 ) FROM tab0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT COUNT( * ) * + 45 FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-6409
SELECT COUNT ( * ) * + 45 FROM tab2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT COUNT( * ) * - 81 AS col1 FROM tab2 WHERE col1 IS NOT NULL
----
-243

skipif mysql # not compatible
query I rowsort label-6410
SELECT COUNT ( * ) * - 81 AS col1 FROM tab2 WHERE col1 IS NOT NULL
----
-243

onlyif mysql # DIV for integer division: 
query I rowsort label-6411
SELECT DISTINCT - 8 DIV - col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6411
SELECT DISTINCT - 8 / - col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6412
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-6412
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND ( - col2 )
----

query I rowsort
SELECT + ( 54 ) FROM tab0
----
54
54
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6414
SELECT ALL + 49 DIV - COUNT( * ) AS col1 FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL + 49 / - COUNT ( * ) AS col1 FROM tab2
----
-16

query I rowsort
SELECT DISTINCT + 77 * - col1 FROM tab1 WHERE NOT ( NULL ) IN ( 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT + SUM( DISTINCT 64 ) FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-6416
SELECT + SUM ( DISTINCT 64 ) FROM tab1
----
64

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6417
SELECT * FROM tab2 WHERE ( + CAST( NULL AS DECIMAL ) * col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6417
SELECT * FROM tab2 WHERE ( + CAST ( NULL AS REAL ) * col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT DISTINCT - SUM( - ( - 71 ) ) + 9 FROM tab0 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-6418
SELECT DISTINCT - SUM ( - ( - 71 ) ) + 9 FROM tab0 AS cor0
----
-204

onlyif mysql # DIV for integer division: 
query I rowsort label-6419
SELECT DISTINCT col1 DIV col2 + col1 AS col0 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6419
SELECT DISTINCT col1 / col2 + col1 AS col0 FROM tab1 cor0
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 * 67 + col2 * - col2 IN ( - col1 * 18 + - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 col1 FROM tab2 AS cor0
----
28
28
28

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - ( col0 ) ) NOT BETWEEN 68 * + col2 AND ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( - col2 ) * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 * - 4 AS col1 FROM tab2
----
-184
-256
-300

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * - 17 = NULL
----

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE NOT - col2 NOT BETWEEN NULL AND 73
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN - 88 + - col2 AND + 28
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 28 AS col2 FROM tab2 cor0 WHERE NOT + 34 NOT BETWEEN NULL AND 77
----

query I rowsort
SELECT + col1 + + 60 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
141
61
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6430
SELECT DISTINCT MAX( ALL col0 ) DIV 7 AS col0 FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-6430
SELECT DISTINCT MAX ( ALL col0 ) / 7 AS col0 FROM tab2 AS cor0
----
10

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 0 - + 34 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT + MAX( DISTINCT + + col1 ) col1 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6432
SELECT + MAX ( DISTINCT + + col1 ) col1 FROM tab2
----
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 IN ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6434
SELECT * FROM tab0 WHERE CAST( NULL AS SIGNED ) * 89 BETWEEN col2 AND NULL OR col2 / + col1 = col1 * col1
----

skipif mysql # not compatible
query III rowsort label-6434
SELECT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) * 89 BETWEEN col2 AND NULL OR col2 / + col1 = col1 * col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 33 ) BETWEEN - 73 + - col1 * - 67 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT ALL + COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6437
SELECT 38 DIV MAX( ALL - 3 ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-6437
SELECT 38 / MAX ( ALL - 3 ) FROM tab2
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6438
SELECT ALL - col2 * col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE - 94 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6438
SELECT ALL - col2 * col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE - 94 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * 98 * - col1 AS col1 FROM tab0
----
119070
179046
9506

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN ( 96 ) AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) = col0 + + 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT + COUNT( * ) + - - 78 AS col2 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6442
SELECT + COUNT ( * ) + - - 78 AS col2 FROM tab1 AS cor0
----
81

query I rowsort
SELECT + 75 * - col2 * - col0 * + col2 + 57 AS col2 FROM tab2
----
1825107
18922557
7680057

query III rowsort
SELECT * FROM tab1 WHERE ( NOT 60 >= NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NOT - col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - ( - 20 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, - col2 * + + col0 col2 FROM tab1 AS cor0
----
14
-4896
47
-6188
5
-5015

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 36 + - - 77 / col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 88 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT DISTINCT + MAX( + - 78 ) FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-6450
SELECT DISTINCT + MAX ( + - 78 ) FROM tab2 AS cor0
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-6451
SELECT DISTINCT + ( + col0 ) + - col0 DIV + 60 AS col0 FROM tab1 AS cor0
----
51
84
90

skipif mysql # not compatible
query I rowsort label-6451
SELECT DISTINCT + ( + col0 ) + - col0 / + 60 AS col0 FROM tab1 AS cor0
----
51
84
90

query I rowsort
SELECT ALL + + col2 FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND NULL
----

query II rowsort
SELECT - col0, col2 AS col0 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT ALL COUNT( * ) * - 33 + + 59 - - 29 AS col0 FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-6454
SELECT ALL COUNT ( * ) * - 33 + + 59 - - 29 AS col0 FROM tab2 AS cor0
----
-11

query I rowsort
SELECT DISTINCT - 11 * + + col2 + col2 AS col1 FROM tab1 AS cor0
----
-590
-680
-960

query I rowsort
SELECT DISTINCT - col1 - + - 28 FROM tab0 AS cor0
----
-53
27
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT ALL COUNT( * ) - - MAX( DISTINCT + col2 ) FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-6457
SELECT ALL COUNT ( * ) - - MAX ( DISTINCT + col2 ) FROM tab2 AS cor0
----
61

query I rowsort
SELECT ALL 82 + + + col2 * - - 12 AS col0 FROM tab0 AS cor0
----
1270
202
646

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN ( + 11 ) AND col2 AND NOT col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 * + col0 - - - col2 FROM tab1
----
4800
4956
6120

query III rowsort
SELECT * FROM tab0 WHERE NULL <= + col0 / - + 45
----

query I rowsort
SELECT DISTINCT 15 - + col2 AS col0 FROM tab0
----
-32
-84
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT ALL MAX( DISTINCT ( - - col1 ) ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-6463
SELECT ALL MAX ( DISTINCT ( - - col1 ) ) FROM tab2
----
77

query II rowsort
SELECT DISTINCT - col2 - - + col2, col2 + col0 * col1 AS col2 FROM tab0
----
0
1262
0
1837
0
196

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT MAX( DISTINCT + 44 ) AS col0 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-6466
SELECT MAX ( DISTINCT + 44 ) AS col0 FROM tab1
----
44

query I rowsort
SELECT ( - - ( - col1 ) ) FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT ALL - MAX( + - 34 ) * - COUNT( * ) + + + 52 AS col1 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL - MAX ( + - 34 ) * - COUNT ( * ) + + + 52 AS col1 FROM tab0 AS cor0
----
-50

query I rowsort
SELECT - 84 FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT ALL + 91 * COUNT( * ) col2 FROM tab2
----
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6470
SELECT ALL + 91 * COUNT ( * ) col2 FROM tab2
----
273

query II rowsort
SELECT + col2 AS col0, 88 AS col2 FROM tab2
----
23
88
40
88
58
88

query I rowsort
SELECT DISTINCT - col1 * - + col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab2 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT DISTINCT + 6 * - SUM( col1 ) FROM tab0 WHERE NULL <= NULL OR NOT + col0 * col2 NOT IN ( 97 * + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6474
SELECT DISTINCT + 6 * - SUM ( col1 ) FROM tab0 WHERE NULL <= NULL OR NOT + col0 * col2 NOT IN ( 97 * + col1 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - 44 ) col0 FROM tab2 AS cor0
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT ALL COUNT( ALL + + 15 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6476
SELECT ALL COUNT ( ALL + + 15 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6477
SELECT DISTINCT + - CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL = 41 * col0
----

skipif mysql # not compatible
query I rowsort label-6477
SELECT DISTINCT + - CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL = 41 * col0
----

query I rowsort
SELECT ALL - - 95 + - col1 * + ( + - col1 ) FROM tab0 cor0
----
536
6656
96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 + + - ( + col1 ) < NULL
----

query I rowsort
SELECT col0 + + 2 + - col1 + - - col1 * - col1 * - - 71 AS col1 FROM tab0
----
-31243
-465895
27

query I rowsort
SELECT 76 AS col0 FROM tab2 WHERE NOT col2 <= ( + + 63 )
----

query I rowsort
SELECT ALL col0 * + + 40 AS col1 FROM tab2
----
1840
2560
3000

query I rowsort
SELECT col2 + - - ( + - col0 ) AS col2 FROM tab1
----
-23
-26
45

query I rowsort
SELECT col0 + + + col0 - + + col0 FROM tab0
----
15
87
97

query I rowsort
SELECT - col2 + + + 84 + + col2 * col1 + - - 12 + 13 * - col0 FROM tab0 AS cor0
----
-1165
-835
3661

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT - SUM( ALL - + col2 ) * - 35 + + + ( 13 ) FROM tab2 AS cor0
----
-4222

skipif mysql # not compatible
query I rowsort label-6486
SELECT - SUM ( ALL - + col2 ) * - 35 + + + ( 13 ) FROM tab2 AS cor0
----
-4222

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT + ( - + MIN( ALL 11 ) ) FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-6488
SELECT + ( - + MIN ( ALL 11 ) ) FROM tab0
----
-11

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 * + 76 IN ( col2 ) AND ( NOT NULL IS NULL )
----

query I rowsort
SELECT + col2 - + col0 + - - col0 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6491
SELECT DISTINCT + col1 * - CAST( + col2 AS SIGNED ) FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-6491
SELECT DISTINCT + col1 * - CAST ( + col2 AS INTEGER ) FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) >= + 60 * - col0 + + 80
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6493
SELECT COUNT( * ) DIV + 61 + + - 35 AS col2 FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-6493
SELECT COUNT ( * ) / + 61 + + - 35 AS col2 FROM tab1 AS cor0
----
-35

query I rowsort
SELECT + + 52 + + ( + + col0 ) FROM tab2 AS cor0
----
116
127
98

query I rowsort
SELECT DISTINCT + 72 - col1 * col1 FROM tab0 AS cor0
----
-369
-6489
71

query I rowsort
SELECT ALL 39 + - 54 AS col2 FROM tab1
----
-15
-15
-15

query I rowsort
SELECT ALL col0 - 16 FROM tab0
----
-1
71
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT DISTINCT - 54 * + + COUNT( * ) AS col2 FROM tab2
----
-162

skipif mysql # not compatible
query I rowsort label-6498
SELECT DISTINCT - 54 * + + COUNT ( * ) AS col2 FROM tab2
----
-162

query II rowsort
SELECT DISTINCT - col1, 32 AS col0 FROM tab1
----
-14
32
-47
32
-5
32

query I rowsort
SELECT col0 * - col2 * + 92 FROM tab0
----
-64860
-80040
-883476

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT ALL + COUNT( * ) * 43 AS col1 FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-6501
SELECT ALL + COUNT ( * ) * 43 AS col1 FROM tab0
----
129

query II rowsort
SELECT ALL + - col1 AS col0, 84 * + + col2 AS col0 FROM tab1 AS cor0
----
-14
8064
-47
5712
-5
4956

onlyif mysql # aggregate syntax: 
query II rowsort label-6503
SELECT - 90 AS col0, - COUNT( * ) FROM tab1 cor0
----
-90
-3

skipif mysql # not compatible
query II rowsort label-6503
SELECT - 90 AS col0, - COUNT ( * ) FROM tab1 cor0
----
-90
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6504
SELECT + COUNT( * ) AS col1, + 89 AS col0 FROM tab2 AS cor0
----
3
89

skipif mysql # not compatible
query II rowsort label-6504
SELECT + COUNT ( * ) AS col1, + 89 AS col0 FROM tab2 AS cor0
----
3
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6505
SELECT SUM( - ( - - 35 ) ) - + + MIN( + CAST( - 75 AS SIGNED ) ) + - - 86 * COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
534

skipif mysql # not compatible
query I rowsort label-6505
SELECT SUM ( - ( - - 35 ) ) - + + MIN ( + CAST ( - 75 AS INTEGER ) ) + - - 86 * COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
534

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 JOIN tab1 AS cor1 ON NOT ( NULL ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT + 75 + + 15 AS col0 FROM tab0 AS cor0
----
90
90
90

onlyif mysql # DIV for integer division: 
query I rowsort label-6508
SELECT - 1 DIV + - col0 + - - col0 AS col1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-6508
SELECT - 1 / + - col0 + - - col0 AS col1 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT ALL MAX( - - col0 ) * COUNT( * ) col1 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6509
SELECT ALL MAX ( - - col0 ) * COUNT ( * ) col1 FROM tab0 AS cor0
----
291

query I rowsort
SELECT ALL col1 + - - col1 - - 11 FROM tab1 AS cor0
----
105
21
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6511
SELECT - + CAST( NULL AS SIGNED ) * - CAST( + MAX( ( + col1 ) ) AS SIGNED ) AS col1, - COUNT( * ) FROM tab2 cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-6511
SELECT - + CAST ( NULL AS INTEGER ) * - CAST ( + MAX ( ( + col1 ) ) AS INTEGER ) AS col1, - COUNT ( * ) FROM tab2 cor0
----
NULL
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT DISTINCT - - COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6512
SELECT DISTINCT - - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT COUNT( * ) * 91 * - MAX( DISTINCT - col2 ) FROM tab0 AS cor0
----
2730

skipif mysql # not compatible
query I rowsort label-6513
SELECT COUNT ( * ) * 91 * - MAX ( DISTINCT - col2 ) FROM tab0 AS cor0
----
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT - MAX( + - 55 ) FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-6514
SELECT - MAX ( + - 55 ) FROM tab2 AS cor0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6515
SELECT + col0 * + CAST( NULL AS SIGNED ) col1, - col1 AS col2 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-6515
SELECT + col0 * + CAST ( NULL AS INTEGER ) col1, - col1 AS col2 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-6516
SELECT + 49 DIV ( - col1 ) FROM tab0 AS cor0
----
-2
-49
0

skipif mysql # not compatible
query I rowsort label-6516
SELECT + 49 / ( - col1 ) FROM tab0 AS cor0
----
-2
-49
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT SUM( - + 21 ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-6517
SELECT SUM ( - + 21 ) FROM tab0
----
-63

query II rowsort
SELECT 8 AS col2, col1 AS col2 FROM tab0
----
8
1
8
21
8
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6519
SELECT - 85 DIV COUNT( * ) AS col2 FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-6519
SELECT - 85 / COUNT ( * ) AS col2 FROM tab0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6520
SELECT DISTINCT - + col2 * + - CAST( + col1 AS SIGNED ) + col1 FROM tab1 AS cor0
----
1358
300
3243

skipif mysql # not compatible
query I rowsort label-6520
SELECT DISTINCT - + col2 * + - CAST ( + col1 AS INTEGER ) + col1 FROM tab1 AS cor0
----
1358
300
3243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6521
SELECT ALL + CAST( + - COUNT( * ) AS SIGNED ) + - COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL + CAST ( + - COUNT ( * ) AS INTEGER ) + - COUNT ( * ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT DISTINCT + col0 + 1 FROM tab2 AS cor0
----
47
65
76

query I rowsort
SELECT col0 * + + col0 + - 44 * - - 80 + + col1 + + col2 + - col2 FROM tab1 AS cor0
----
-905
3710
4808

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT NULL <= NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6525
SELECT DISTINCT - 54 * + COUNT( * ) + + ( 96 ) AS col2, COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-390
9

skipif mysql # not compatible
query II rowsort label-6525
SELECT DISTINCT - 54 * + COUNT ( * ) + + ( 96 ) AS col2, COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-390
9

query II rowsort
SELECT + + col1, + col1 - - - col1 FROM tab0 AS cor0
----
1
0
21
0
81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT 65 - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-6527
SELECT 65 - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6528
SELECT - MAX( - + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ) FROM tab1 cor0 WHERE NULL NOT BETWEEN + 43 * - - ( ( + 99 ) ) AND + col1 * - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6528
SELECT - MAX ( - + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ) FROM tab1 cor0 WHERE NULL NOT BETWEEN + 43 * - - ( ( + 99 ) ) AND + col1 * - col2
----
NULL

query II rowsort
SELECT DISTINCT - - col2 AS col0, - col0 + + 39 FROM tab0 AS cor0
----
10
-48
47
24
99
-58

query II rowsort
SELECT DISTINCT + - 37, + col2 AS col2 FROM tab2 AS cor0
----
-37
23
-37
40
-37
58

query I rowsort
SELECT ALL + col2 * - + col1 FROM tab1 cor0
----
-1344
-295
-3196

query I rowsort
SELECT ( 90 ) * - col1 AS col2 FROM tab0 AS cor0
----
-1890
-7290
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-6533
SELECT - 85, COUNT( * ) AS col1 FROM tab2, tab2 AS cor0
----
-85
9

skipif mysql # not compatible
query II rowsort label-6533
SELECT - 85, COUNT ( * ) AS col1 FROM tab2, tab2 AS cor0
----
-85
9

query I rowsort
SELECT - + col2 AS col1 FROM tab1 WHERE NOT - + col0 BETWEEN + - col1 AND NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT MIN( 6 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-6535
SELECT MIN ( 6 ) FROM tab1
----
6

query II rowsort
SELECT DISTINCT + ( + col0 ) AS col2, col0 AS col2 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT DISTINCT SUM( ALL col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-6537
SELECT DISTINCT SUM ( ALL col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT - MIN( ALL + 0 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6538
SELECT - MIN ( ALL + 0 ) AS col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 27 AS col2, + 48 col0 FROM tab2 AS cor0
----
-27
48
-27
48
-27
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT + MAX( + 18 ) AS col0 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-6540
SELECT + MAX ( + 18 ) AS col0 FROM tab2 AS cor0
----
18

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 <> ( NULL )
----

query I rowsort
SELECT + col0 * - col1 * + col1 AS col0 FROM tab2 cor0
----
-119646
-336675
-379456

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 46 < - + 27
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + ( + 77 )
----

query I rowsort
SELECT ALL - 50 + 62 FROM tab0 AS cor0
----
12
12
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6546
SELECT ALL - + CAST( NULL AS SIGNED ) * SUM( + 40 ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL - + CAST ( NULL AS INTEGER ) * SUM ( + 40 ) FROM tab2 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 23 + - ( + 70 ) IS NOT NULL )
----

query II rowsort
SELECT ALL - - col0, - 78 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6549
SELECT ALL - ( + 8 ) + - col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6549
SELECT ALL - ( + 8 ) + - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - - ( 33 ) ) AS col1 FROM tab0
----
33
33
33

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col2 - col2 * - col0 * 64 NOT IN ( + + 56 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6552
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6552
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
NULL

query II rowsort
SELECT + col1 + 90 * + 69 * 22 AS col2, 12 FROM tab2
----
136671
12
136687
12
136697
12

onlyif mysql # DIV for integer division: 
query II rowsort label-6554
SELECT - col0 + col2 AS col2, col2 DIV 91 FROM tab0
----
-77
0
2
1
32
0

skipif mysql # not compatible
query II rowsort label-6554
SELECT - col0 + col2 AS col2, col2 / 91 FROM tab0
----
-77
0
2
1
32
0

query I rowsort
SELECT ALL + 9 + - - col1 FROM tab0
----
10
30
90

query I rowsort
SELECT DISTINCT + + 29 + - col1 - col1 + - - col1 * + col2 FROM tab2 AS cor0
----
1100
2955
3781

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 78 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 - 93 + - col2 FROM tab1 AS cor0
----
-114
-147
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6559
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
-3

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON NOT + 47 / - + 83 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT DISTINCT COUNT( * ) - + COUNT( - - ( + + col0 ) ) + - + ( + + 93 ) * COUNT( * ) AS col1 FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-6561
SELECT DISTINCT COUNT ( * ) - + COUNT ( - - ( + + col0 ) ) + - + ( + + 93 ) * COUNT ( * ) AS col1 FROM tab0
----
-279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6562
SELECT COUNT( * ) DIV - 90 FROM tab1, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6562
SELECT COUNT ( * ) / - 90 FROM tab1, tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - ( + - 96 ) + - col0 FROM tab1
----
11
45
5

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( ( NULL IS NOT NULL ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 87 * + col2 FROM tab1
----
-5133
-5916
-8352

query I rowsort
SELECT ALL - - 54 AS col1 FROM tab2 AS cor0
----
54
54
54

query I rowsort
SELECT - 25 * - - col0 FROM tab2 AS cor0
----
-1150
-1600
-1875

query I rowsort
SELECT ALL - - col1 * + 27 + - ( - - 24 ) AS col1 FROM tab1 AS cor0
----
111
1245
354

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * + + col0 + + col1 NOT IN ( + 18 / - 82, 48 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT ALL + COUNT( + ( + - col0 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL + COUNT ( + ( + - col0 ) ) FROM tab2
----
3

query II rowsort
SELECT col2, - 3 FROM tab0
----
10
-3
47
-3
99
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 * - 0 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + 1 * - + 45 + + col0 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL + 62, col0 FROM tab0
----
62
15
62
87
62
97

query I rowsort
SELECT - ( - 93 ) AS col0 FROM tab1
----
93
93
93

onlyif mysql # DIV for integer division: 
query I rowsort label-6576
SELECT 12 DIV - + 52 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6576
SELECT 12 / - + 52 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6577
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT DISTINCT + - 49 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-49

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 17 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT ALL COUNT( ALL ( - 99 ) ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6581
SELECT ALL COUNT ( ALL ( - 99 ) ) col2 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6582
SELECT + col2 + + CAST( NULL AS SIGNED ) + 95 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6582
SELECT + col2 + + CAST ( NULL AS INTEGER ) + 95 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 7 > - ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 * 73 + - col0 FROM tab1 AS cor0
----
-1073
-3522
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT + + COUNT( * ) FROM tab0 AS cor0 WHERE col1 + + col0 + + 9 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6585
SELECT + + COUNT ( * ) FROM tab0 AS cor0 WHERE col1 + + col0 + + 9 IS NOT NULL
----
3

query I rowsort
SELECT + ( + + 83 ) AS col0 FROM tab2
----
83
83
83

query I rowsort
SELECT DISTINCT - 3 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6588
SELECT CAST( ( - 66 ) AS SIGNED ) DIV - col2 - + col0 FROM tab0
----
-14
-81
-97

skipif mysql # not compatible
query I rowsort label-6588
SELECT CAST ( ( - 66 ) AS INTEGER ) / - col2 - + col0 FROM tab0
----
-14
-81
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT + COUNT( * ) FROM tab1 WHERE ( NOT + col1 IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-6589
SELECT + COUNT ( * ) FROM tab1 WHERE ( NOT + col1 IS NULL )
----
3

query I rowsort
SELECT + 67 + - ( + + col1 ) AS col0 FROM tab0 AS cor0
----
-14
46
66

query I rowsort
SELECT DISTINCT + 60 + - - ( + col0 ) + - + 93 FROM tab0 AS cor0
----
-18
54
64

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN col0 * col2 AND + - col0 * 25
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6593
SELECT + CAST( NULL AS SIGNED ) + - - 13 + + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6593
SELECT + CAST ( NULL AS INTEGER ) + - - 13 + + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL >= ( NULL )
----
NULL

query II rowsort
SELECT DISTINCT + ( + col1 ) AS col2, ( 33 ) FROM tab1 AS cor0
----
14
33
47
33
5
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT + - 54 * + 50 + COUNT( * ) col2 FROM tab2 AS cor0
----
-2697

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6595
SELECT + - 54 * + 50 + COUNT ( * ) col2 FROM tab2 AS cor0
----
-2697

query I rowsort
SELECT 72 * + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT ALL 9 * SUM( ALL + - col0 ) AS col2 FROM tab1
----
-2043

skipif mysql # not compatible
query I rowsort label-6597
SELECT ALL 9 * SUM ( ALL + - col0 ) AS col2 FROM tab1
----
-2043

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6598
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / + + col1 / - - col0 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT + CAST ( NULL AS REAL ) / + + col1 / - - col0 AS col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 57 col2 FROM tab2 cor0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6600
SELECT + 34 DIV - COUNT( * ) FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-6600
SELECT + 34 / - COUNT ( * ) FROM tab0 AS cor0
----
-11

query I rowsort
SELECT - col0 * - 23 AS col2 FROM tab2
----
1058
1472
1725

query I rowsort
SELECT DISTINCT 2 + col2 FROM tab2
----
25
42
60

query I rowsort
SELECT DISTINCT 63 + + + 34 AS col1 FROM tab0, tab0 AS cor0
----
97

query I rowsort
SELECT ALL - + ( + col1 ) * - + col0 + + + col2 FROM tab0 AS cor0
----
1262
1837
196

query II rowsort
SELECT - + col0 / col0 + - col2 * 44 + - + col0 + - col1 AS col1, col0 / 50 + - col1 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - 73
----

query I rowsort
SELECT ALL + col1 * - - col2 + - + col2 AS col2 FROM tab1 cor0
----
1248
236
3128

query I rowsort
SELECT DISTINCT - 40 AS col0 FROM tab2 AS cor0 WHERE col0 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT ALL 34 * 14 + + COUNT( * ) AS col1 FROM tab2 cor0
----
479

skipif mysql # not compatible
query I rowsort label-6608
SELECT ALL 34 * 14 + + COUNT ( * ) AS col1 FROM tab2 cor0
----
479

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6609
SELECT ALL 39 DIV + 41 - + + CAST( COUNT( * ) AS SIGNED ) * - 62 FROM tab1 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL 39 / + 41 - + + CAST ( COUNT ( * ) AS INTEGER ) * - 62 FROM tab1 AS cor0
----
186

query I rowsort
SELECT 26 / col0 AS col0 FROM tab1 AS cor0 WHERE - 51 - - 93 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 12 NOT IN ( - 63 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT ALL - MIN( - 3 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL - MIN ( - 3 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT + SUM( 65 ) + SUM( + col2 ) AS col0 FROM tab2
----
316

skipif mysql # not compatible
query I rowsort label-6613
SELECT + SUM ( 65 ) + SUM ( + col2 ) AS col0 FROM tab2
----
316

query I rowsort
SELECT 91 + + col0 * + 35 FROM tab1
----
1876
3066
3276

query I rowsort
SELECT 9 + + + col0 + 15 * - 44 AS col1 FROM tab2
----
-576
-587
-605

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6616
SELECT DISTINCT - 19 + col2 + - - 19 / - col2 * 83 FROM tab1 WHERE NOT NULL NOT BETWEEN + 91 / - CAST( NULL AS DECIMAL ) * + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6616
SELECT DISTINCT - 19 + col2 + - - 19 / - col2 * 83 FROM tab1 WHERE NOT NULL NOT BETWEEN + 91 / - CAST ( NULL AS REAL ) * + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT 40 * + - MIN( - col0 ) * - + COUNT( * ) FROM tab2
----
-9000

skipif mysql # not compatible
query I rowsort label-6617
SELECT 40 * + - MIN ( - col0 ) * - + COUNT ( * ) FROM tab2
----
-9000

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT 58 * MAX( ALL col2 ) FROM tab0
----
5742

skipif mysql # not compatible
query I rowsort label-6618
SELECT 58 * MAX ( ALL col2 ) FROM tab0
----
5742

query III rowsort
SELECT * FROM tab2 WHERE col2 * + col1 BETWEEN NULL AND + ( - + 20 ) * + + col1
----

query I rowsort
SELECT ALL + col1 - - + col1 FROM tab2 AS cor0
----
102
134
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6621
SELECT DISTINCT + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) + + MIN( - col0 ) + - + 7 AS col1 FROM tab2 cor0
----
-82

skipif mysql # not compatible
query I rowsort label-6621
SELECT DISTINCT + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + MIN ( - col0 ) + - + 7 AS col1 FROM tab2 cor0
----
-82

query I rowsort
SELECT DISTINCT - 54 * - + 2 AS col2 FROM tab2
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6623
SELECT ALL - 60 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6623
SELECT ALL - 60 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT DISTINCT MAX( DISTINCT col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6624
SELECT DISTINCT MAX ( DISTINCT col1 ) AS col1 FROM tab0
----
81

query I rowsort
SELECT ALL - col0 * - + 47 + col2 AS col0 FROM tab2 AS cor0
----
2185
3048
3583

query I rowsort
SELECT DISTINCT - + 97 * - col0 AS col1 FROM tab1 AS cor0
----
4947
8245
8827

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6627
SELECT - + 47 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6627
SELECT - + 47 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT DISTINCT + COUNT( ALL - + 88 ) col1 FROM tab0 AS cor0 WHERE NULL <> - col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6628
SELECT DISTINCT + COUNT ( ALL - + 88 ) col1 FROM tab0 AS cor0 WHERE NULL <> - col0
----
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 = col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6630
SELECT ALL - CAST( ( + COUNT( * ) ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL - CAST ( ( + COUNT ( * ) ) AS INTEGER ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT DISTINCT - SUM( ALL + 88 ) AS col1 FROM tab2
----
-264

skipif mysql # not compatible
query I rowsort label-6631
SELECT DISTINCT - SUM ( ALL + 88 ) AS col1 FROM tab2
----
-264

query I rowsort
SELECT ALL 39 * + 56 FROM tab2
----
2184
2184
2184

query I rowsort
SELECT ( - col2 ) * + col2 + col1 - col0 FROM tab2 AS cor0
----
-1587
-3372
-524

query I rowsort
SELECT DISTINCT col0 * 9 AS col0 FROM tab0 AS cor0
----
135
783
873

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6635
SELECT ALL - col2 * - CAST( NULL AS SIGNED ) / - + col0 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6635
SELECT ALL - col2 * - CAST ( NULL AS INTEGER ) / - + col0 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - col2 - + col1 FROM tab0 AS cor0
----
-113
-3
56

query I rowsort
SELECT DISTINCT + 53 * + 53 FROM tab2
----
2809

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6638
SELECT ALL CAST( NULL AS SIGNED ) AS col2, - COUNT( * ) FROM tab1
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-6638
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) FROM tab1
----
NULL
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 99 col2 FROM tab1
----
99
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6640
SELECT + CAST( NULL AS SIGNED ) + + 50 * - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6640
SELECT + CAST ( NULL AS INTEGER ) + + 50 * - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab2 WHERE NULL IS NULL
----
-23
-40
-58

query I rowsort
SELECT - col0 * + + 88 AS col1 FROM tab1 AS cor0
----
-4488
-7480
-8008

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6643
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) < - col0 - - + 95 * col1
----

skipif mysql # not compatible
query III rowsort label-6643
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) < - col0 - - + 95 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6644
SELECT ALL 81 DIV + 22 + 53 FROM tab2 AS cor0
----
56
56
56

skipif mysql # not compatible
query I rowsort label-6644
SELECT ALL 81 / + 22 + 53 FROM tab2 AS cor0
----
56
56
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6645
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE + 74 * + + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6645
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE + 74 * + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT ALL - COUNT( * ) + - - 63 AS col2 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-6646
SELECT ALL - COUNT ( * ) + - - 63 AS col2 FROM tab0 AS cor0
----
60

query II rowsort
SELECT - + 88 * - col1 * + + col0 AS col2, col1 * - col0 FROM tab1 AS cor0
----
37400
-425
376376
-4277
62832
-714

query I rowsort
SELECT ALL + 2 * + - col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - + 62 + - col0 FROM tab2 AS cor0
----
-108
-126
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT - MAX( - - ( + col2 ) ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-6650
SELECT - MAX ( - - ( + col2 ) ) FROM tab2 AS cor0
----
-58

query III rowsort
SELECT * FROM tab1 WHERE + 66 >= + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * + 50 + + col2 AS col1 FROM tab2
----
2573
3408
3890

query I rowsort
SELECT ALL - 83 * - 43 FROM tab0 AS cor0
----
3569
3569
3569

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 <> - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT DISTINCT - MAX( 10 ) AS col0 FROM tab2 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6655
SELECT DISTINCT - MAX ( 10 ) AS col0 FROM tab2 cor0
----
-10

query III rowsort
SELECT * FROM tab1 WHERE NOT 48 NOT BETWEEN - ( + + ( ( col1 ) ) ) AND - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT + COUNT( * ) + + + COUNT( * ) + - + COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6657
SELECT + COUNT ( * ) + + + COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT - - ( - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 86 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT ALL + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6660
SELECT ALL + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6661
SELECT - col1 FROM tab2 AS cor0 WHERE NOT ( col1 ) < - CAST( 51 AS DECIMAL )
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6661
SELECT - col1 FROM tab2 AS cor0 WHERE NOT ( col1 ) < - CAST ( 51 AS REAL )
----
-51
-67
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 65 NOT BETWEEN - 12 + - col2 * + col2 AND ( col2 - + 2 + - + col0 * 2 )
----
51
14
96

query I rowsort
SELECT ALL + + col1 * + col2 + + col1 AS col2 FROM tab0 AS cor0
----
100
231
3888

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT 9 IS NOT NULL
----

query II rowsort
SELECT ALL + col0, col0 + col2 * + + col1 FROM tab2
----
46
1219
64
3144
75
3961

query I rowsort
SELECT ALL 3 * + - 68 AS col1 FROM tab1
----
-204
-204
-204

query I rowsort
SELECT ALL + 20 * - col2 FROM tab1
----
-1180
-1360
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT ( - - COUNT( * ) ) + - + 83 + COUNT( * ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-6668
SELECT ( - - COUNT ( * ) ) + - + 83 + COUNT ( * ) FROM tab2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6669
SELECT ALL col1 * + ( + + CAST( + 51 AS SIGNED ) ) AS col1 FROM tab1
----
2397
255
714

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL col1 * + ( + + CAST ( + 51 AS INTEGER ) ) AS col1 FROM tab1
----
2397
255
714

query I rowsort
SELECT ALL col0 + - 14 * + - col2 AS col2 FROM tab0
----
1483
227
673

query I rowsort
SELECT + col2 + - 67 AS col0 FROM tab2
----
-27
-44
-9

query I rowsort
SELECT col2 * + 25 + + - 42 + - 89 AS col1 FROM tab1
----
1344
1569
2269

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 col1 FROM tab2
----
-31
-31
-31

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 34 * + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT DISTINCT + MIN( DISTINCT - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6675
SELECT DISTINCT + MIN ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ALL col2 + - + col0 AS col0 FROM tab0 cor0
----
-77
2
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT - COUNT( * ) + - - 57 AS col1 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-6678
SELECT - COUNT ( * ) + - - 57 AS col1 FROM tab1 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6679
SELECT col1 + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6679
SELECT col1 + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + 83 ) + - - col1 FROM tab0
----
104
164
84

query I rowsort
SELECT - 55 * + + col1 FROM tab2
----
-2805
-3685
-4235

query III rowsort
SELECT * FROM tab0 WHERE col1 * col1 * + - 41 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col2, + 14 FROM tab0
----
10
14
47
14
99
14

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * + 19 + + - col0 * + 62 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * col1 AS col0 FROM tab0 WHERE NOT col1 * - + col1 + 58 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT - SUM( ALL + ( + - col1 ) ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-6686
SELECT - SUM ( ALL + ( + - col1 ) ) AS col0 FROM tab1
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - 50 col0 FROM tab0
----
-35
37
47

query III rowsort
SELECT * FROM tab2 WHERE - - 87 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6689
SELECT + CAST( - - col1 AS SIGNED ) * + + 35 + + - 26 + + - col1 FROM tab2
----
1708
2252
2592

skipif mysql # not compatible
query I rowsort label-6689
SELECT + CAST ( - - col1 AS INTEGER ) * + + 35 + + - 26 + + - col1 FROM tab2
----
1708
2252
2592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col1, - ( - ( - col1 ) ) col1 FROM tab2
----
51
-51
67
-67
77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT DISTINCT + + MIN( 3 ) AS col0 FROM tab2 WHERE NOT - 94 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6691
SELECT DISTINCT + + MIN ( 3 ) AS col0 FROM tab2 WHERE NOT - 94 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT DISTINCT - + ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE - 2 * + + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6692
SELECT DISTINCT - + ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE - 2 * + + col2 IS NOT NULL
----
3

query II rowsort
SELECT ALL + col0, 94 + - 58 * 68 FROM tab2 AS cor0
----
46
-3850
64
-3850
75
-3850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6694
SELECT DISTINCT + 32 * col0 * + ( - + CAST( NULL AS SIGNED ) ) + + col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6694
SELECT DISTINCT + 32 * col0 * + ( - + CAST ( NULL AS INTEGER ) ) + + col0 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6695
SELECT + COUNT( * ), CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-6695
SELECT + COUNT ( * ), CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6696
SELECT COUNT( * ) col1, MIN( ALL col2 ) AS col1 FROM tab1 AS cor0
----
3
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6696
SELECT COUNT ( * ) col1, MIN ( ALL col2 ) AS col1 FROM tab1 AS cor0
----
3
59

query I rowsort
SELECT ALL + 3 * - - col0 * 45 * 5 FROM tab2 AS cor0
----
31050
43200
50625

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT - COUNT( ALL col2 ) FROM tab1 AS cor0 WHERE NOT ( + col0 IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-6698
SELECT - COUNT ( ALL col2 ) FROM tab1 AS cor0 WHERE NOT ( + col0 IS NULL )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6699
SELECT CAST( col2 AS SIGNED ) * 35 AS col1 FROM tab0 AS cor0
----
1645
3465
350

skipif mysql # not compatible
query I rowsort label-6699
SELECT CAST ( col2 AS INTEGER ) * 35 AS col1 FROM tab0 AS cor0
----
1645
3465
350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6700
SELECT 76 DIV 29 + + 73 + 12 + - COUNT( * ) FROM tab2 cor0
----
84

skipif mysql # not compatible
query I rowsort label-6700
SELECT 76 / 29 + + 73 + 12 + - COUNT ( * ) FROM tab2 cor0
----
84

query I rowsort
SELECT 90 * col2 AS col0 FROM tab0
----
4230
8910
900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 * col1 col1 FROM tab1
----
201019
2125
9996

query II rowsort
SELECT + col2 * + 98 AS col2, - 78 AS col0 FROM tab1
----
5782
-78
6664
-78
9408
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT ALL + MIN( ALL 96 ) * - + 19 FROM tab1
----
-1824

skipif mysql # not compatible
query I rowsort label-6704
SELECT ALL + MIN ( ALL 96 ) * - + 19 FROM tab1
----
-1824

query I rowsort
SELECT ALL 0 * 36 FROM tab0
----
0
0
0

query I rowsort
SELECT + - ( + 19 ) + + col0 AS col2 FROM tab2 AS cor0
----
27
45
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT + COUNT( * ) + - 65 AS col0 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-6707
SELECT + COUNT ( * ) + - 65 AS col0 FROM tab2 AS cor0
----
-62

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( - - col1, col2, col2 * + col2, - 87 )
----

query I rowsort
SELECT ALL - 38 * + + ( - col1 ) AS col0 FROM tab1 AS cor0
----
1786
190
532

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT MAX( ALL + 44 ) FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-6710
SELECT MAX ( ALL + 44 ) FROM tab2 AS cor0
----
44

query I rowsort
SELECT DISTINCT + + 1 + 39 + + ( col1 ) AS col0 FROM tab0 AS cor0
----
121
41
61

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT DISTINCT + SUM( + 76 ) - + + 16 AS col1 FROM tab1 AS cor0
----
212

skipif mysql # not compatible
query I rowsort label-6713
SELECT DISTINCT + SUM ( + 76 ) - + + 16 AS col1 FROM tab1 AS cor0
----
212

query I rowsort
SELECT + + ( col2 ) - - ( - 64 ) + - - 76 FROM tab1 AS cor0
----
108
71
80

query I rowsort
SELECT ALL - 15 + col1 + + col2 - + col2 FROM tab2 AS cor0
----
36
52
62

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * ( - + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col0 - + + 86 AS col0 FROM tab1 AS cor0
----
-1
-35
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6718
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 44 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6718
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 44 FROM tab1 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 - - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6720
SELECT + ( - col2 ) AS col1, col2 DIV col0 AS col1 FROM tab2
----
-23
0
-40
0
-58
0

skipif mysql # not compatible
query II rowsort label-6720
SELECT + ( - col2 ) AS col1, col2 / col0 AS col1 FROM tab2
----
-23
0
-40
0
-58
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT DISTINCT + COUNT( * ) * - - COUNT( * ) * COUNT( * ) FROM tab1 WHERE ( NULL ) IS NULL
----
27

skipif mysql # not compatible
query I rowsort label-6721
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) * COUNT ( * ) FROM tab1 WHERE ( NULL ) IS NULL
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 60 col1 FROM tab1
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT + MIN( 31 ) AS col1 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-6723
SELECT + MIN ( 31 ) AS col1 FROM tab1
----
31

query I rowsort
SELECT - col1 * + ( col0 ) AS col2 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-6725
SELECT ALL + 59 * - 5, MIN( DISTINCT - 10 ) col1 FROM tab2
----
-295
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6725
SELECT ALL + 59 * - 5, MIN ( DISTINCT - 10 ) col1 FROM tab2
----
-295
-10

query I rowsort
SELECT - - col1 * + - 75 AS col1 FROM tab1 AS cor0
----
-1050
-3525
-375

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + ( - col0 ) * - 9 = - + col0 * - 12
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 / - col1 * - 48 * - col1 / 68, + col2 + - col1 )
----

query I rowsort
SELECT DISTINCT + + 98 AS col2 FROM tab1 cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT DISTINCT + MIN( col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-6730
SELECT DISTINCT + MIN ( col2 ) AS col0 FROM tab2
----
23

query I rowsort
SELECT + 31 * + col1 * 46 + - col1 + - col1 - - + col2 * col2 FROM tab2
----
111248
73153
98772

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6732
SELECT 64 * + CAST( NULL AS DECIMAL ) + + CAST( + MAX( ALL col0 ) AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6732
SELECT 64 * + CAST ( NULL AS REAL ) + + CAST ( + MAX ( ALL col0 ) AS REAL ) FROM tab1
----
NULL

query II rowsort
SELECT ALL col2, ( col0 ) FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT ALL - MIN( DISTINCT col2 ) * + ( SUM( + col1 ) ) + + COUNT( * ) FROM tab2
----
-4482

skipif mysql # not compatible
query I rowsort label-6734
SELECT ALL - MIN ( DISTINCT col2 ) * + ( SUM ( + col1 ) ) + + COUNT ( * ) FROM tab2
----
-4482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6735
SELECT - - CAST( - col1 AS SIGNED ) * col0 + 79 FROM tab1 WHERE NULL <= + col2 * col0 + col1 - + 33
----

skipif mysql # not compatible
query I rowsort label-6735
SELECT - - CAST ( - col1 AS INTEGER ) * col0 + 79 FROM tab1 WHERE NULL <= + col2 * col0 + col1 - + 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT ALL COUNT( * ) + 68 AS col0 FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-6736
SELECT ALL COUNT ( * ) + 68 AS col0 FROM tab2
----
71

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 56 >= col2 * + ( - 84 )
----

query I rowsort
SELECT DISTINCT + ( + 91 ) FROM tab2 AS cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - - 5 col1 FROM tab1 AS cor0
----
101
64
73

query I rowsort
SELECT ALL - 50 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT 68 * - + 39 - + col1 + - - col0 FROM tab1
----
-2572
-2608
-2615

onlyif mysql # aggregate syntax: 
query II rowsort label-6742
SELECT COUNT( * ) - 41 AS col1, - 68 AS col1 FROM tab2
----
-38
-68

skipif mysql # not compatible
query II rowsort label-6742
SELECT COUNT ( * ) - 41 AS col1, - 68 AS col1 FROM tab2
----
-38
-68

query I rowsort
SELECT - + 62 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT col0 + - 98 * + 66 FROM tab0 AS cor0
----
-6371
-6381
-6453

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 * ( + + col1 ) - - - col2 col1 FROM tab2 cor0
----
-4154
-5485
-6277

query I rowsort
SELECT - col0 * + + ( col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * + - 94 - + col0 AS col2 FROM tab0 AS cor0
----
-191
-2061
-7629

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT DISTINCT + + SUM( DISTINCT + - 34 ) col0 FROM tab2 AS cor0 WHERE col0 * + + col0 + - + col2 BETWEEN - + col2 / - ( 52 ) - - col1 * - + col1 AND + + col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6748
SELECT DISTINCT + + SUM ( DISTINCT + - 34 ) col0 FROM tab2 AS cor0 WHERE col0 * + + col0 + - + col2 BETWEEN - + col2 / - ( 52 ) - - col1 * - + col1 AND + + col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6749
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6749
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 16 ) col2 FROM tab1 AS cor0
----
16
16
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6751
SELECT DISTINCT - CAST( - col2 AS SIGNED ) AS col2, col0 AS col0 FROM tab2 cor0
----
23
46
40
64
58
75

skipif mysql # not compatible
query II rowsort label-6751
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) AS col2, col0 AS col0 FROM tab2 cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT - MAX( col1 ) col1 FROM tab1
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6752
SELECT - MAX ( col1 ) col1 FROM tab1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6753
SELECT ALL ( - CAST( + 28 AS SIGNED ) ) AS col0, COUNT( * ) AS col2 FROM tab2
----
-28
3

skipif mysql # not compatible
query II rowsort label-6753
SELECT ALL ( - CAST ( + 28 AS INTEGER ) ) AS col0, COUNT ( * ) AS col2 FROM tab2
----
-28
3

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT - col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + + col1 < - col0 / ( - - col1 ) + - col2 + + col1 + - 21
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6756
SELECT ALL - CAST( - col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL - CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL < + 70 - - col0 + col1
----

query I rowsort
SELECT DISTINCT - + 43 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-43

query I rowsort
SELECT ALL 53 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to fede6033dee346dbd272085c05724fda

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - ( + col2 ), 25 col2 FROM tab2 cor0
----
23
25
40
25
58
25

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 91 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6762
SELECT + col2 * col0 * 7 DIV + 93 FROM tab1
----
368
377
465

skipif mysql # not compatible
query I rowsort label-6762
SELECT + col2 * col0 * 7 / + 93 FROM tab1
----
368
377
465

query I rowsort
SELECT - col2 - 71 AS col2 FROM tab0
----
-118
-170
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT + ( + COUNT( * ) ) * + - 65 - MAX( ALL col1 ) FROM tab2
----
-272

skipif mysql # not compatible
query I rowsort label-6764
SELECT + ( + COUNT ( * ) ) * + - 65 - MAX ( ALL col1 ) FROM tab2
----
-272

query I rowsort
SELECT + col1 + + - 54 FROM tab1 AS cor0
----
-40
-49
-7

query I rowsort
SELECT col1 + + + 95 AS col1 FROM tab2 AS cor0
----
146
162
172

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6767
SELECT * FROM tab1 AS cor0 WHERE col0 IN ( + - col2 + CAST( NULL AS SIGNED ), 59 * + - col0 * col2 * + col1 + - - 51, + 22 * - - col0 + 98 )
----

skipif mysql # not compatible
query III rowsort label-6767
SELECT * FROM tab1 AS cor0 WHERE col0 IN ( + - col2 + CAST ( NULL AS INTEGER ), 59 * + - col0 * col2 * + col1 + - - 51, + 22 * - - col0 + 98 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6768
SELECT - col2 + - col2 - - - 35 DIV col0 * - 50 AS col0 FROM tab0 AS cor0
----
-198
-20
6

skipif mysql # not compatible
query I rowsort label-6768
SELECT - col2 + - col2 - - - 35 / col0 * - 50 AS col0 FROM tab0 AS cor0
----
-198
-20
6

query I rowsort
SELECT 58 + + col1 FROM tab1
----
105
63
72

query I rowsort
SELECT ALL col2 - col0 * col0 FROM tab1
----
-2505
-7166
-8213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 * 45 col1 FROM tab0
----
31725
39150
432135

query II rowsort
SELECT + + col0, + col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query II rowsort
SELECT - col0 AS col0, - 66 AS col1 FROM tab2 AS cor0
----
-46
-66
-64
-66
-75
-66

query I rowsort
SELECT DISTINCT + 21 * 78 FROM tab2 AS cor0
----
1638

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT - 27 * - 9 + + 30 * - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT ALL COUNT( * ) * ( ( - 59 ) ) col0 FROM tab2
----
-177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6776
SELECT ALL COUNT ( * ) * ( ( - 59 ) ) col0 FROM tab2
----
-177

query II rowsort
SELECT + col0 * - - col1 AS col2, 6 FROM tab0 AS cor0
----
1215
6
1827
6
97
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6778
SELECT + CAST( - + MIN( CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0 FROM tab1 cor0 WHERE NOT + col1 >= - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6778
SELECT + CAST ( - + MIN ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab1 cor0 WHERE NOT + col1 >= - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT DISTINCT ( - - MIN( ALL + col0 ) ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-6779
SELECT DISTINCT ( - - MIN ( ALL + col0 ) ) AS col1 FROM tab1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-6780
SELECT + col1 DIV + col0 * + ( - 22 ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6780
SELECT + col1 / + col0 * + ( - 22 ) AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT 56 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6782
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST( - 24 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-6782
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST ( - 24 AS INTEGER ) <> NULL
----

query I rowsort
SELECT - 37 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

onlyif mysql # DIV for integer division: 
query I rowsort label-6784
SELECT + + 25 DIV - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6784
SELECT + + 25 / - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 43 FROM tab1 AS cor0 WHERE + 45 * col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6786
SELECT ALL - col0 DIV + - 88 + + col1, col2 AS col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

skipif mysql # not compatible
query II rowsort label-6786
SELECT ALL - col0 / + - 88 + + col1, col2 AS col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT DISTINCT - col0 * - - 96 + + col2 * col1 + - 42 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-8184
-9255
2325

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col2 ) * col2 + - - col2 + + col0 col2 FROM tab0 AS cor0
----
-2147
-3
-9605

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT DISTINCT - COUNT( - - col0 ) + + - COUNT( * ) AS col2 FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6789
SELECT DISTINCT - COUNT ( - - col0 ) + + - COUNT ( * ) AS col2 FROM tab2 cor0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6790
SELECT ALL 18 DIV + 59 * - - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6790
SELECT ALL 18 / + 59 * - - COUNT ( * ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT DISTINCT + COUNT( + col2 ) * + 75 AS col2 FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-6791
SELECT DISTINCT + COUNT ( + col2 ) * + 75 AS col2 FROM tab0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT - COUNT( * ) + - 9 AS col2 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-6792
SELECT - COUNT ( * ) + - 9 AS col2 FROM tab1
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-6793
SELECT ALL + 49 DIV col1 AS col0 FROM tab0
----
0
2
49

skipif mysql # not compatible
query I rowsort label-6793
SELECT ALL + 49 / col1 AS col0 FROM tab0
----
0
2
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT + MIN( + col0 ) + - - SUM( - col1 ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-6794
SELECT + MIN ( + col0 ) + - - SUM ( - col1 ) FROM tab1
----
-15

query I rowsort
SELECT col1 + 53 FROM tab0
----
134
54
74

query II rowsort
SELECT + 37 + - + col1, col2 FROM tab1
----
-10
68
23
96
32
59

query I rowsort
SELECT DISTINCT + 54 * + 3 FROM tab0 WHERE NOT NULL BETWEEN - col0 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT COUNT( - 46 ) + 35 AS col1 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-6798
SELECT COUNT ( - 46 ) + 35 AS col1 FROM tab2
----
38

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE + 50 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT MIN( - ( - col1 ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6800
SELECT MIN ( - ( - col1 ) ) FROM tab1
----
5

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE NOT - col2 * + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6802
SELECT + + 35 * - col0 - - - CAST( NULL AS SIGNED ) + - + col0 + col0 * - col0 col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6802
SELECT + + 35 * - col0 - - - CAST ( NULL AS INTEGER ) + - + col0 + col0 * - col0 col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 99 - col2 FROM tab0 cor0
----
0
52
89

query I rowsort
SELECT - col0 * + col0 * + + col1 * + - col2 * + col1 FROM tab2
----
126585468
1464536250
971407360

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT NULL >= NULL ) OR ( NULL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT DISTINCT + COUNT( ALL - - col1 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT + COUNT ( ALL - - col1 ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT - - ( - - COUNT( - - col1 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6807
SELECT - - ( - - COUNT ( - - col1 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT DISTINCT MIN( ALL - 59 ) FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-6808
SELECT DISTINCT MIN ( ALL - 59 ) FROM tab2 AS cor0
----
-59

query I rowsort
SELECT - 65 * - col1 AS col2 FROM tab2 AS cor0
----
3315
4355
5005

query I rowsort
SELECT ALL + + col1 * - ( - - col0 ) + + col1 AS col1 FROM tab2 AS cor0
----
-2295
-4851
-4958

onlyif mysql # DIV for integer division: 
query I rowsort label-6811
SELECT - ( ( - + col0 ) ) DIV + - col0 + + + 58 + - col1 * + 56 AS col0 FROM tab2 AS cor0
----
-2799
-3695
-4255

skipif mysql # not compatible
query I rowsort label-6811
SELECT - ( ( - + col0 ) ) / + - col0 + + + 58 + - col1 * + 56 AS col0 FROM tab2 AS cor0
----
-2799
-3695
-4255

onlyif mysql # DIV for integer division: 
query I rowsort label-6812
SELECT col1 DIV 44 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6812
SELECT col1 / 44 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT DISTINCT - COUNT( + - col0 ) FROM tab0 WHERE col0 / - ( + + 73 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6813
SELECT DISTINCT - COUNT ( + - col0 ) FROM tab0 WHERE col0 / - ( + + 73 ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6814
SELECT 14 DIV col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6814
SELECT 14 / col0 AS col1 FROM tab2
----
0
0
0

query II rowsort
SELECT col2, + 51 AS col1 FROM tab2
----
23
51
40
51
58
51

query I rowsort
SELECT DISTINCT + col1 * + + 37 AS col0 FROM tab2
----
1887
2479
2849

query II rowsort
SELECT DISTINCT + col2, + 55 AS col1 FROM tab1
----
59
55
68
55
96
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6818
SELECT + col0 + + + CAST( + col1 AS SIGNED ) FROM tab0 WHERE NOT NULL IN ( + col0 / - 57, + 63 )
----

skipif mysql # not compatible
query I rowsort label-6818
SELECT + col0 + + + CAST ( + col1 AS INTEGER ) FROM tab0 WHERE NOT NULL IN ( + col0 / - 57, + 63 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6819
SELECT * FROM tab2 WHERE NOT CAST( + col0 AS DECIMAL ) / + - CAST( NULL AS DECIMAL ) + + - 76 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6819
SELECT * FROM tab2 WHERE NOT CAST ( + col0 AS REAL ) / + - CAST ( NULL AS REAL ) + + - 76 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6820
SELECT DISTINCT - col0 DIV - - col2 FROM tab0
----
-8
0

skipif mysql # not compatible
query I rowsort label-6820
SELECT DISTINCT - col0 / - - col2 FROM tab0
----
-8
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * col1 <> - col0 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 60, - 76 AS col0 FROM tab0 AS cor0
----
60
-76

query I rowsort
SELECT - - col0 * + col2 + - col0 FROM tab0 AS cor0
----
690
783
9506

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT - 57 IS NOT NULL
----

query I rowsort
SELECT ALL - 99 + - + col1 + + - col1 + - col0 FROM tab2 AS cor0
----
-247
-308
-317

query I rowsort
SELECT DISTINCT 68 * - - col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 82 col0 FROM tab2 AS cor0
----
4182
5494
6314

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 47 col1, 33 + - 47 + - 21 FROM tab1
----
47
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + + 34 ) col0 FROM tab1
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-6830
SELECT ALL 37, MIN( DISTINCT - - col0 ) AS col1 FROM tab0
----
37
15

skipif mysql # not compatible
query II rowsort label-6830
SELECT ALL 37, MIN ( DISTINCT - - col0 ) AS col1 FROM tab0
----
37
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT + 65 + COUNT( * ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-6831
SELECT + 65 + COUNT ( * ) FROM tab1
----
68

query I rowsort
SELECT DISTINCT + ( 84 ) AS col0 FROM tab2
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-6833
SELECT - + MIN( + - col0 ) + COUNT( * ) col0, 12 AS col0 FROM tab2 cor0
----
78
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6833
SELECT - + MIN ( + - col0 ) + COUNT ( * ) col0, 12 AS col0 FROM tab2 cor0
----
78
12

query I rowsort
SELECT 98 + - 43 + + col0 - 3 * - - col0 FROM tab0 AS cor0
----
-119
-139
25

query I rowsort
SELECT 44 + - 20 + col0 + + + ( - col2 ) + + col0 * + 9 FROM tab1 AS cor0
----
438
815
866

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6836
SELECT + col0 + - - col1 + + CAST( NULL AS DECIMAL ) * - 56 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6836
SELECT + col0 + - - col1 + + CAST ( NULL AS REAL ) * - 56 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col1 * + - col0 + col0 - + - col1 FROM tab2 AS cor0
----
-2249
-4787
-4883

query II rowsort
SELECT DISTINCT 29, + ( + 66 ) AS col0 FROM tab1 AS cor0
----
29
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT DISTINCT ( MAX( DISTINCT col2 ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-6839
SELECT DISTINCT ( MAX ( DISTINCT col2 ) ) FROM tab1
----
96

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 <> 40
----

query I rowsort
SELECT + 88 + col2 AS col2 FROM tab1 WHERE ( 27 ) IN ( col1 / 87 + 32 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 WHERE - col2 / col1 - col2 * col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 WHERE - col2 / col1 - col2 * col0 IS NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( - 9 ) NOT IN ( + col1 * 32 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6844
SELECT - col2 col1 FROM tab0 WHERE NOT NULL IN ( 26 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6844
SELECT - col2 col1 FROM tab0 WHERE NOT NULL IN ( 26 + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 < NULL
----

query I rowsort
SELECT ALL col2 - 59 * + 72 FROM tab0
----
-4149
-4201
-4238

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 35 ) IS NOT NULL
----

query I rowsort
SELECT ALL ( - 6 ) AS col2 FROM tab1 WHERE 35 NOT IN ( col2 * + 70 )
----
-6
-6
-6

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 ) NOT IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 39 * + 41 + col2 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col0 * - 54 - + 43 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6852
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( col0 ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6852
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( col0 ) AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT - COUNT( DISTINCT - 76 ) col2 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6853
SELECT - COUNT ( DISTINCT - 76 ) col2 FROM tab0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 >= ( - col1 * col0 + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - ( col1 ) * + 26 - - 54 ) < NULL
----

query I rowsort
SELECT + col1 + + 6 FROM tab0
----
27
7
87

query I rowsort
SELECT DISTINCT - 29 FROM tab1 WHERE NULL IS NULL
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6859
SELECT DISTINCT 59 DIV - COUNT( * ) + + COUNT( * ) FROM tab0 cor0
----
-16

skipif mysql # not compatible
query I rowsort label-6859
SELECT DISTINCT 59 / - COUNT ( * ) + + COUNT ( * ) FROM tab0 cor0
----
-16

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 * - col1 ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) * - col1 col2 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + col2 ) IN ( col1 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT DISTINCT + COUNT( ALL + 87 ) * COUNT( DISTINCT + col0 ) AS col0 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-6863
SELECT DISTINCT + COUNT ( ALL + 87 ) * COUNT ( DISTINCT + col0 ) AS col0 FROM tab1 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT ALL COUNT( * ) + + ( 3 ) FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL COUNT ( * ) + + ( 3 ) FROM tab1 cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6865
SELECT - MAX( + CAST( NULL AS SIGNED ) ) * - 71 col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6865
SELECT - MAX ( + CAST ( NULL AS INTEGER ) ) * - 71 col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6866
SELECT DISTINCT * FROM tab0 WHERE NOT + 72 * + CAST( col0 / col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6866
SELECT DISTINCT * FROM tab0 WHERE NOT + 72 * + CAST ( col0 / col0 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT ALL - COUNT( * ) + - 7 FROM tab1 WHERE NOT ( - 66 ) IS NULL
----
-10

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL - COUNT ( * ) + - 7 FROM tab1 WHERE NOT ( - 66 ) IS NULL
----
-10

query I rowsort
SELECT 82 + 88 FROM tab1 AS cor0
----
170
170
170

query I rowsort
SELECT DISTINCT 14 * - 7 AS col1 FROM tab1 AS cor0
----
-98

query I rowsort
SELECT ALL + 2 + + col1 AS col1 FROM tab0 AS cor0
----
23
3
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT DISTINCT SUM( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN - col0 - 48 * - 71 AND + 88 * + 51
----
-156

skipif mysql # not compatible
query I rowsort label-6872
SELECT DISTINCT SUM ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN - col0 - 48 * - 71 AND + 88 * + 51
----
-156

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 NOT IN ( - 19 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6874
SELECT * FROM tab2 AS cor0 WHERE col2 BETWEEN ( CAST( + 46 AS SIGNED ) ) AND 18 + 61
----
75
67
58

skipif mysql # not compatible
query III rowsort label-6874
SELECT * FROM tab2 AS cor0 WHERE col2 BETWEEN ( CAST ( + 46 AS INTEGER ) ) AND 18 + 61
----
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6875
SELECT DISTINCT - + col2 * col0 + CAST( 17 AS SIGNED ) FROM tab2 AS cor0
----
-1041
-2543
-4333

skipif mysql # not compatible
query I rowsort label-6875
SELECT DISTINCT - + col2 * col0 + CAST ( 17 AS INTEGER ) FROM tab2 AS cor0
----
-1041
-2543
-4333

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT ( + COUNT( * ) ) - AVG ( col1 + col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6876
SELECT ( + COUNT ( * ) ) - AVG ( col1 + col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 18 - + col2 BETWEEN col0 AND ( col0 + + col1 / col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6878
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6878
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - col0 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 57 + + col2 AS col0 FROM tab2
----
115
80
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT + SUM( col2 ) * COUNT( * ) AS col1 FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-6880
SELECT + SUM ( col2 ) * COUNT ( * ) AS col1 FROM tab1
----
669

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6881
SELECT ALL + col1 - + CAST( NULL AS SIGNED ) + col2 * + ( + 67 ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL + col1 - + CAST ( NULL AS INTEGER ) + col2 * + ( + 67 ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - - col0 * + 35 FROM tab0
----
3395
42525
63945

query I rowsort
SELECT ALL + 6 * + col1 FROM tab1
----
282
30
84

query I rowsort
SELECT - col0 * col1 * - 84 FROM tab2
----
197064
413952
422100

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT - SUM( DISTINCT - + col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-6885
SELECT - SUM ( DISTINCT - + col0 ) AS col0 FROM tab0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6886
SELECT CAST( NULL AS SIGNED ) * + + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6886
SELECT CAST ( NULL AS INTEGER ) * + + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col1 * col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 91 * - + 75 FROM tab2
----
-6825
-6825
-6825

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT + MIN( ALL - ( - col0 ) ) FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6889
SELECT + MIN ( ALL - ( - col0 ) ) FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT - - COUNT( ALL - 94 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6890
SELECT - - COUNT ( ALL - 94 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT + + COUNT( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6891
SELECT + + COUNT ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT - COUNT( * ) AS col0 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-6892
SELECT - COUNT ( * ) AS col0 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
-9

query I rowsort
SELECT 24 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT DISTINCT 49 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - col2 < 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL < ( + 66 )
----
0

skipif mysql # not compatible
query I rowsort label-6896
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL < ( + 66 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT DISTINCT + 53 * + COUNT( * ) FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-6897
SELECT DISTINCT + 53 * + COUNT ( * ) FROM tab0 AS cor0
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6898
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / + 73 + + col1 + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6898
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / + 73 + + col1 + col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6899
SELECT ALL + col1 / col0 / 55 / CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL + col1 / col0 / 55 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * col2 - 31 FROM tab2 AS cor0 WHERE NOT 13 <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - 56 * + 39 / 37 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6901
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - 56 * + 39 / 37 IS NULL
----
3

query I rowsort
SELECT col2 + - col0 FROM tab2 AS cor0 WHERE NOT ( + col0 * - 19 / - col2 ) IS NULL
----
-17
-23
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6903
SELECT - col0 * + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6903
SELECT - col0 * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 48 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6905
SELECT + 62 DIV + col2 AS col1 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-6905
SELECT + 62 / + col2 AS col1 FROM tab2
----
1
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6906
SELECT - MIN( DISTINCT + CAST( col2 AS SIGNED ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-6906
SELECT - MIN ( DISTINCT + CAST ( col2 AS INTEGER ) ) FROM tab2
----
-23

query I rowsort
SELECT col1 FROM tab0 WHERE NOT - col1 >= ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT DISTINCT MAX( DISTINCT 46 ) FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-6908
SELECT DISTINCT MAX ( DISTINCT 46 ) FROM tab0
----
46

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT - col2 + + col2 * + col2 - + + 36 FROM tab0 AS cor0
----
2126
54
9666

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6912
SELECT ALL CAST( NULL AS SIGNED ) + + 83 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL CAST ( NULL AS INTEGER ) + + 83 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 54 FROM tab0 WHERE - + 85 = - 29
----

query I rowsort
SELECT col0 + - ( + - col0 ) FROM tab1
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT DISTINCT - - MAX( DISTINCT + + ( 44 ) ) AS col2 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT - - MAX ( DISTINCT + + ( 44 ) ) AS col2 FROM tab0 AS cor0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6916
SELECT DISTINCT - 59 + + - CAST( - - col1 AS SIGNED ) FROM tab2 AS cor0
----
-110
-126
-136

skipif mysql # not compatible
query I rowsort label-6916
SELECT DISTINCT - 59 + + - CAST ( - - col1 AS INTEGER ) FROM tab2 AS cor0
----
-110
-126
-136

query II rowsort
SELECT col1 AS col2, + 87 AS col2 FROM tab1 AS cor0
----
14
87
47
87
5
87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN - col1 + - 88 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT + + COUNT( * ) * + 32 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6919
SELECT + + COUNT ( * ) * + 32 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT + SUM( - 94 ) FROM tab0 cor0
----
-282

skipif mysql # not compatible
query I rowsort label-6920
SELECT + SUM ( - 94 ) FROM tab0 cor0
----
-282

onlyif mysql # DIV for integer division: 
query I rowsort label-6921
SELECT ALL - + ( 5 ) DIV - col1 + + - col1 col2 FROM tab1 AS cor0
----
-14
-4
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6921
SELECT ALL - + ( 5 ) / - col1 + + - col1 col2 FROM tab1 AS cor0
----
-14
-4
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6922
SELECT DISTINCT + col2 + 91 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - + CAST( NULL AS SIGNED ) AND - col2 AND + col2 + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6922
SELECT DISTINCT + col2 + 91 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - + CAST ( NULL AS INTEGER ) AND - col2 AND + col2 + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6923
SELECT DISTINCT - 41 DIV - col2 * col0 * + 2 * - col2 - - col1 + col2 FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-6923
SELECT DISTINCT - 41 / - col2 * col0 * + 2 * - col2 - - col1 + col2 FROM tab1
----
110
115
64

onlyif mysql # DIV for integer division: 
query I rowsort label-6924
SELECT ALL + col0 - col2 + - col2 DIV + col0 AS col2 FROM tab0
----
-3
-35
77

skipif mysql # not compatible
query I rowsort label-6924
SELECT ALL + col0 - col2 + - col2 / + col0 AS col2 FROM tab0
----
-3
-35
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6925
SELECT col2 AS col1, CAST( + + col2 AS SIGNED ) FROM tab0
----
10
10
47
47
99
99

skipif mysql # not compatible
query II rowsort label-6925
SELECT col2 AS col1, CAST ( + + col2 AS INTEGER ) FROM tab0
----
10
10
47
47
99
99

query II rowsort
SELECT 20, 39 AS col1 FROM tab2 AS cor0
----
20
39
20
39
20
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT - COUNT( * ) * + ( + SUM( ALL + col2 ) ) FROM tab0 AS cor0
----
-468

skipif mysql # not compatible
query I rowsort label-6927
SELECT - COUNT ( * ) * + ( + SUM ( ALL + col2 ) ) FROM tab0 AS cor0
----
-468

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + ( + - col1 ) )
----

query I rowsort
SELECT ALL - col2 * + - 98 FROM tab1 AS cor0
----
5782
6664
9408

onlyif mysql # DIV for integer division: 
query I rowsort label-6930
SELECT ALL - ( col2 ) DIV - ( - col2 ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL - ( col2 ) / - ( - col2 ) FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - + 2 FROM tab2 AS cor0 WHERE NOT ( NULL ) = 19
----

query I rowsort
SELECT ALL ( + 6 ) FROM tab0 AS cor0 WHERE NOT - 6 * 47 IN ( + 52 * col2, col1 )
----
6
6
6

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 > col0 * - 76 + - col2 - + col2 + - 51
----

query I rowsort
SELECT + col1 + + - 35 AS col1 FROM tab2
----
16
32
42

query I rowsort
SELECT - 27 + 51 AS col1 FROM tab1
----
24
24
24

query I rowsort
SELECT + col1 + + - 10 AS col1 FROM tab1
----
-5
37
4

query I rowsort
SELECT 26 * - col0 * + 32 * + col2 + + - 0 + - - col0 AS col2 FROM tab2 AS cor0
----
-2129856
-3619125
-880210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6938
SELECT ALL + - COUNT( DISTINCT - CAST( - ( - col0 ) AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6938
SELECT ALL + - COUNT ( DISTINCT - CAST ( - ( - col0 ) AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6939
SELECT * FROM tab1 WHERE + CAST( - 47 AS SIGNED ) / - CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-6939
SELECT * FROM tab1 WHERE + CAST ( - 47 AS INTEGER ) / - CAST ( NULL AS INTEGER ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT ALL MIN( + 28 ) - + COUNT( * ) FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL MIN ( + 28 ) - + COUNT ( * ) FROM tab1
----
25

query I rowsort
SELECT ALL - col0 * + col2 * + col2 + + col1 + + col1 * - col2 FROM tab1 AS cor0
----
-296175
-423933
-471346

query I rowsort
SELECT DISTINCT - + col0 + + + col2 * col0 * - col0 FROM tab0 AS cor0
----
-10590
-75777
-931588

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 66 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 + + - col1 AS col0 FROM tab1 AS cor0
----
-10
-28
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6945
SELECT ALL + CAST( + + 33 AS SIGNED ) - + col1 AS col1 FROM tab0 AS cor0
----
-48
12
32

skipif mysql # not compatible
query I rowsort label-6945
SELECT ALL + CAST ( + + 33 AS INTEGER ) - + col1 AS col1 FROM tab0 AS cor0
----
-48
12
32

query II rowsort
SELECT col1, + col1 * + col1 AS col0 FROM tab1
----
14
196
47
2209
5
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT DISTINCT - COUNT( + 8 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6947
SELECT DISTINCT - COUNT ( + 8 ) AS col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT + ( + + SUM( - col1 ) ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-6948
SELECT + ( + + SUM ( - col1 ) ) FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT COUNT( ALL 82 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6949
SELECT COUNT ( ALL 82 ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 24 NOT IN ( - - col2 * col2 / + + col2 * - + col1 * - 27 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT ALL - ( - 52 ) * - - SUM( - col1 ) FROM tab1
----
-3432

skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL - ( - 52 ) * - - SUM ( - col1 ) FROM tab1
----
-3432

query I rowsort
SELECT 97 * col2 FROM tab2
----
2231
3880
5626

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + + col1 NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT DISTINCT + MIN( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6954
SELECT DISTINCT + MIN ( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + + col2 col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query II rowsort label-6956
SELECT DISTINCT + COUNT( * ), - COUNT( * ) * + + SUM( col1 ) AS col2 FROM tab1 AS cor0
----
3
-198

skipif mysql # not compatible
query II rowsort label-6956
SELECT DISTINCT + COUNT ( * ), - COUNT ( * ) * + + SUM ( col1 ) AS col2 FROM tab1 AS cor0
----
3
-198

query I rowsort
SELECT DISTINCT + col0 * - col0 * + col0 AS col2 FROM tab0
----
-3375
-658503
-912673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 40 ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT ALL COUNT( * ) * - + 9 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL COUNT ( * ) * - + 9 FROM tab2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT ALL + 62 * MIN( - 24 ) * 34 - + 27 FROM tab0
----
-50619

skipif mysql # not compatible
query I rowsort label-6960
SELECT ALL + 62 * MIN ( - 24 ) * 34 - + 27 FROM tab0
----
-50619

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT ALL 90 * ( - - ( - COUNT( * ) ) ) AS col1 FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-6961
SELECT ALL 90 * ( - - ( - COUNT ( * ) ) ) AS col1 FROM tab1
----
-270

query II rowsort
SELECT DISTINCT + col0 AS col1, + col0 FROM tab1 cor0
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6963
SELECT ALL + ( ( + CAST( NULL AS SIGNED ) ) ) * - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6963
SELECT ALL + ( ( + CAST ( NULL AS INTEGER ) ) ) * - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6964
SELECT DISTINCT - 5 AS col1, + MIN( ALL - col2 ) col1 FROM tab1 WHERE NOT ( NOT ( 25 ) IS NOT NULL )
----
-5
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6964
SELECT DISTINCT - 5 AS col1, + MIN ( ALL - col2 ) col1 FROM tab1 WHERE NOT ( NOT ( 25 ) IS NOT NULL )
----
-5
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 * col1 col0 FROM tab1
----
1246
4183
445

query I rowsort
SELECT ALL ( - 20 ) * - + 47 AS col1 FROM tab1
----
940
940
940

query II rowsort
SELECT DISTINCT + 83 * + col0, + ( + col2 ) AS col0 FROM tab0
----
1245
47
7221
10
8051
99

query I rowsort
SELECT - col1 FROM tab1 WHERE ( ( NOT NULL NOT IN ( + 13, - col2 / col1 + + col2 + col0 * - + col2 ) ) )
----

query I rowsort
SELECT + + 51 FROM tab0 WHERE - - col1 IS NOT NULL
----
51
51
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6970
SELECT DISTINCT + col2 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6970
SELECT DISTINCT + col2 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 + - col2 - + + col2 FROM tab2 AS cor0
----
-3
-49
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT ALL COUNT( * ) + + 19 * - COUNT( * ) * + - COUNT( * ) * + 53 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-27186

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL COUNT ( * ) + + 19 * - COUNT ( * ) * + - COUNT ( * ) * + 53 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-27186

onlyif mysql # aggregate syntax: 
query II rowsort label-6973
SELECT - 92 + COUNT( * ) AS col2, + 73 FROM tab1 cor0
----
-89
73

skipif mysql # not compatible
query II rowsort label-6973
SELECT - 92 + COUNT ( * ) AS col2, + 73 FROM tab1 cor0
----
-89
73

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 / 23 < col1
----

query I rowsort
SELECT + 19 - + + 96 FROM tab1 AS cor0
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT DISTINCT MIN( ALL 39 ) AS col1 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-6976
SELECT DISTINCT MIN ( ALL 39 ) AS col1 FROM tab0 AS cor0
----
39

query I rowsort
SELECT - 5 FROM tab1 cor0 WHERE NOT ( NOT - - ( + col2 ) * + 25 * + ( - + 51 ) * + col2 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6978
SELECT - CAST( NULL AS SIGNED ), col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-6978
SELECT - CAST ( NULL AS INTEGER ), col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT ALL 13 * + col2 AS col0 FROM tab2
----
299
520
754

query II rowsort
SELECT DISTINCT - 56 * col2 AS col2, col0 AS col1 FROM tab2
----
-1288
46
-2240
64
-3248
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( - 56 ) + 11 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6982
SELECT ALL + col2 * + - col2 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) >= - 51
----

skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL + col2 * + - col2 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) >= - 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT 38 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6983
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 38 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT DISTINCT + COUNT( * ) * 57 AS col2 FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-6984
SELECT DISTINCT + COUNT ( * ) * 57 AS col2 FROM tab2 AS cor0
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6985
SELECT + CAST( NULL AS SIGNED ) * 64 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6985
SELECT + CAST ( NULL AS INTEGER ) * 64 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT - 82, col2 FROM tab0
----
-82
10
-82
47
-82
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT ALL ( - COUNT( * ) ) FROM tab2, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6987
SELECT ALL ( - COUNT ( * ) ) FROM tab2, tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-6988
SELECT - 89 AS col0, COUNT( * ) AS col1 FROM tab1
----
-89
3

skipif mysql # not compatible
query II rowsort label-6988
SELECT - 89 AS col0, COUNT ( * ) AS col1 FROM tab1
----
-89
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT DISTINCT + COUNT( * ) + - - 46 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-6989
SELECT DISTINCT + COUNT ( * ) + - - 46 FROM tab0 AS cor0
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 12 * - col1 col1 FROM tab0 AS cor0
----
-12
-252
-972

query I rowsort
SELECT DISTINCT + col2 * + 66 * col0 + + col2 AS col2 FROM tab1 cor0
----
323232
331049
408476

query I rowsort
SELECT ALL + + 64 + col2 FROM tab1 cor0
----
123
132
160

query I rowsort
SELECT ALL + col2 * + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-18270
-57105
-9603

query I rowsort
SELECT - 72 + + col0 * + col2 FROM tab1
----
4824
4943
6116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6995
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COUNT( * ) * - + ( COUNT( * ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6995
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - + ( COUNT ( * ) ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - 63 - 27 * 33 + - col1 NOT BETWEEN NULL AND + 71
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6997
SELECT 34 + - 60 - + CAST( + - col0 AS SIGNED ) + + col2 FROM tab1
----
118
121
133

skipif mysql # not compatible
query I rowsort label-6997
SELECT 34 + - 60 - + CAST ( + - col0 AS INTEGER ) + + col2 FROM tab1
----
118
121
133

onlyif mysql # DIV for integer division: 
query I rowsort label-6998
SELECT DISTINCT col2 DIV - + 58 AS col2 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-6998
SELECT DISTINCT col2 / - + 58 AS col2 FROM tab2
----
-1
0

query I rowsort
SELECT - col0 + 92 + 82 * + 26 / col2 + 62 + col0 / + 56 * 86 * col0 FROM tab2 WHERE - col2 IS NULL
----

query I rowsort
SELECT + 72 * - col2 * - col0 + - - 84 AS col1 FROM tab0
----
50844
62724
691500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7001
SELECT ALL COUNT( * ) DIV + - COUNT( * ) col1 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7001
SELECT ALL COUNT ( * ) / + - COUNT ( * ) col1 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT - col1 + + - 21 FROM tab0
----
-102
-22
-42

query I rowsort
SELECT 57 + + col1 + - col0 FROM tab2
----
49
62
70

query I rowsort
SELECT DISTINCT ( 6 ) AS col2 FROM tab1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7005
SELECT ( - + COUNT( * ) ) + - + AVG ( CAST( NULL AS SIGNED ) ) * + SUM( DISTINCT - col2 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7005
SELECT ( - + COUNT ( * ) ) + - + AVG ( CAST ( NULL AS INTEGER ) ) * + SUM ( DISTINCT - col2 ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7006
SELECT ( + + col1 ) * CAST( NULL AS DECIMAL ) + - col0, 43 + - col2 AS col0 FROM tab1
----
NULL
-16
NULL
-25
NULL
-53

skipif mysql # not compatible
query II rowsort label-7006
SELECT ( + + col1 ) * CAST ( NULL AS REAL ) + - col0, 43 + - col2 AS col0 FROM tab1
----
NULL
-16
NULL
-25
NULL
-53

query I rowsort
SELECT DISTINCT - - col1 + - - col1 FROM tab1 AS cor0
----
10
28
94

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 34 * col2 IS NOT NULL
----

query I rowsort
SELECT + ( + col1 ) - + col0 * + + 75 AS col2 FROM tab0 AS cor0
----
-1044
-6504
-7274

query I rowsort
SELECT + 39 - col0 + col0 FROM tab0
----
39
39
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7011
SELECT + CAST( + col2 AS SIGNED ) - + col0 + + 20 AS col2 FROM tab2
----
-3
-4
3

skipif mysql # not compatible
query I rowsort label-7011
SELECT + CAST ( + col2 AS INTEGER ) - + col0 + + 20 AS col2 FROM tab2
----
-3
-4
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7012
SELECT ALL - col0 DIV + col0 - - - col2 FROM tab2
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-7012
SELECT ALL - col0 / + col0 - - - col2 FROM tab2
----
-24
-41
-59

query I rowsort
SELECT + 85 + ( + - 86 ) FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 * + col1 + + col0 col2 FROM tab1
----
-36040
-36363
-389116

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT DISTINCT MAX( - col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7015
SELECT DISTINCT MAX ( - col0 ) AS col1 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7016
SELECT ALL - 64 DIV + 45, MIN( ALL - 45 ) AS col0 FROM tab1 AS cor0
----
-1
-45

skipif mysql # not compatible
query II rowsort label-7016
SELECT ALL - 64 / + 45, MIN ( ALL - 45 ) AS col0 FROM tab1 AS cor0
----
-1
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT ALL - ( - SUM( - 32 ) ) AS col2 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7017
SELECT ALL - ( - SUM ( - 32 ) ) AS col2 FROM tab0 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT + COUNT( - + ( + 13 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7018
SELECT + COUNT ( - + ( + 13 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT MIN( + 97 ) FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-7019
SELECT MIN ( + 97 ) FROM tab1
----
97

query II rowsort
SELECT 30 * col2, - col2 AS col2 FROM tab0 WHERE NOT - 2 * - - 58 - - 94 * + 9 IS NULL
----
1410
-47
2970
-99
300
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT + SUM( ALL - ( + 0 ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7021
SELECT + SUM ( ALL - ( + 0 ) ) FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> 38
----

query I rowsort
SELECT - col0 * + col1 * - ( - 80 ) AS col1 FROM tab2 AS cor0
----
-187680
-394240
-402000

query I rowsort
SELECT DISTINCT + - 86 AS col0 FROM tab2 WHERE col1 - + - 67 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT ALL COUNT( * ) + - 68 AS col0 FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-7025
SELECT ALL COUNT ( * ) + - 68 AS col0 FROM tab2
----
-65

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 AS cor0 WHERE ( NOT - col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT ALL - COUNT( - - 14 ) + + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7027
SELECT ALL - COUNT ( - - 14 ) + + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7028
SELECT + CAST( - - 34 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
34
34
34

skipif mysql # not compatible
query I rowsort label-7028
SELECT + CAST ( - - 34 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT DISTINCT SUM( ALL + 75 ) FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-7029
SELECT DISTINCT SUM ( ALL + 75 ) FROM tab1
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT + COUNT( * ) + MIN( - col2 ) FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-7030
SELECT + COUNT ( * ) + MIN ( - col2 ) FROM tab2
----
-55

query I rowsort
SELECT 34 + + - 56 AS col2 FROM tab1
----
-22
-22
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-7032
SELECT ALL - 98 DIV + col0 + - col2 * - - 14 FROM tab2 AS cor0
----
-324
-561
-813

skipif mysql # not compatible
query I rowsort label-7032
SELECT ALL - 98 / + col0 + - col2 * - - 14 FROM tab2 AS cor0
----
-324
-561
-813

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7033
SELECT - + 45 + CAST( + - ( - ( + col0 ) ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
40
46
6

skipif mysql # not compatible
query I rowsort label-7033
SELECT - + 45 + CAST ( + - ( - ( + col0 ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
40
46
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7034
SELECT * FROM tab0 AS cor0 WHERE - ( - + col0 ) < CAST( + 75 AS SIGNED ) + - col2 + col2 + + - col2
----
15
81
47

skipif mysql # not compatible
query III rowsort label-7034
SELECT * FROM tab0 AS cor0 WHERE - ( - + col0 ) < CAST ( + 75 AS INTEGER ) + - col2 + col2 + + - col2
----
15
81
47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 69 + - 45 IN ( 1 + - - col1, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7036
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL 2 * + col2 AS col2 FROM tab0
----
198
20
94

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> + col2 + col0
----

query I rowsort
SELECT DISTINCT - ( col1 ) * + col0 + + 47 FROM tab0 AS cor0
----
-1168
-1780
-50

query II rowsort
SELECT ALL 17 * - + col2 AS col1, 63 AS col0 FROM tab1 AS cor0
----
-1003
63
-1156
63
-1632
63

query I rowsort
SELECT DISTINCT - 46 * 61 AS col1 FROM tab0 AS cor0
----
-2806

query I rowsort
SELECT - 92 * - col2 + - - col1 FROM tab0 AS cor0
----
4405
9109
941

query I rowsort
SELECT DISTINCT col0 * col1 AS col0 FROM tab2 AS cor0 WHERE NOT 82 = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7044
SELECT DISTINCT + col0 DIV + col1 + 28 FROM tab2 AS cor0
----
28
29

skipif mysql # not compatible
query I rowsort label-7044
SELECT DISTINCT + col0 / + col1 + 28 FROM tab2 AS cor0
----
28
29

query I rowsort
SELECT - 5 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-5
-5
-5

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL OR NULL BETWEEN NULL AND NULL
----
-59
-68
-96

query I rowsort
SELECT ALL + 66 FROM tab2 WHERE NOT - 23 < + col1 + col2
----

query I rowsort
SELECT + col2 * + col0 + + 64 + col1 - - col2 + + 32 AS col1 FROM tab0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL + 5 * - col2 AS col0 FROM tab1
----
-295
-340
-480

onlyif mysql # DIV for integer division: 
query I rowsort label-7050
SELECT col0 * 50 DIV col2 AS col0 FROM tab1
----
26
66
72

skipif mysql # not compatible
query I rowsort label-7050
SELECT col0 * 50 / col2 AS col0 FROM tab1
----
26
66
72

query I rowsort
SELECT col0 + + 46 AS col0 FROM tab2
----
110
121
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT ALL + - 50 + - + MAX( DISTINCT 41 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL + - 50 + - + MAX ( DISTINCT 41 ) FROM tab1 AS cor0
----
-91

query II rowsort
SELECT DISTINCT + col1, + col2 * - col0 * + - col2 + + 44 AS col0 FROM tab2
----
51
24378
67
252344
77
102444

query I rowsort
SELECT ALL + 68 + - - col0 AS col0 FROM tab1
----
119
153
159

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> - 80
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND 30 * - 17
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col0 col1 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT 29 + - + 42 + + 16 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3
3
3

query I rowsort
SELECT ( + 81 ) * col2 * col0 + col2 FROM tab0 AS cor0
----
57152
70480
777942

query I rowsort
SELECT + col0 * col1 + + - ( - ( col0 ) ) AS col0 FROM tab1 AS cor0
----
4368
510
765

query I rowsort
SELECT col1 * col1 + + ( + 72 ) AS col0 FROM tab0
----
513
6633
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7062
SELECT ALL + col1 - + 64 + - CAST( NULL AS SIGNED ) * ( + + 93 ) * + col2 / + col2, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-7062
SELECT ALL + col1 - + 64 + - CAST ( NULL AS INTEGER ) * ( + + 93 ) * + col2 / + col2, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 73 * + + col2, col2 - - col0 * + + col1 col1 FROM tab2
----
1679
2369
2920
4968
4234
5083

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + - - 54 BETWEEN NULL AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7065
SELECT ALL - col2 + + col0 * 65 - col1 - CAST( NULL AS SIGNED ) + + 4 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL - col2 + + col0 * 65 - col1 - CAST ( NULL AS INTEGER ) + + 4 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 col2 FROM tab1 AS cor0
----
-70

query I rowsort
SELECT DISTINCT 58 * + - col0 AS col0 FROM tab2
----
-2668
-3712
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT + MAX( DISTINCT col2 ) * + 34 * + 12 AS col2 FROM tab0
----
40392

skipif mysql # not compatible
query I rowsort label-7068
SELECT + MAX ( DISTINCT col2 ) * + 34 * + 12 AS col2 FROM tab0
----
40392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 8 * + + col2 col2 FROM tab1
----
10752
2360
25568

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 + + col1 * - col1 IS NOT NULL
----

query I rowsort
SELECT + 25 AS col1 FROM tab0 WHERE NOT NULL BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT DISTINCT + COUNT( * ) * + + 93 FROM tab2 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-7072
SELECT DISTINCT + COUNT ( * ) * + + 93 FROM tab2 AS cor0
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT COUNT( + col0 ) AS col1 FROM tab0 cor0 WHERE NOT - col2 + ( - - col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7073
SELECT COUNT ( + col0 ) AS col1 FROM tab0 cor0 WHERE NOT - col2 + ( - - col1 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col0 IN ( + + col0 * + 3, + col1 / - - 40 )
----
3

skipif mysql # not compatible
query I rowsort label-7074
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col0 IN ( + + col0 * + 3, + col1 / - - 40 )
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 81 <> NULL
----

query I rowsort
SELECT - - col0 * col2 * - - col2 FROM tab2 AS cor0
----
102400
24334
252300

onlyif mysql # DIV for integer division: 
query I rowsort label-7077
SELECT ( 30 ) DIV + 88 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7077
SELECT ( 30 ) / + 88 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7078
SELECT + + col1 * 6 DIV - - col2 AS col0 FROM tab2 AS cor0
----
11
13
6

skipif mysql # not compatible
query I rowsort label-7078
SELECT + + col1 * 6 / - - col2 AS col0 FROM tab2 AS cor0
----
11
13
6

query II rowsort
SELECT DISTINCT - col2, + 41 - + 6 AS col0 FROM tab2 AS cor0
----
-23
35
-40
35
-58
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT DISTINCT COUNT( - col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7080
SELECT DISTINCT COUNT ( - col1 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + - 86 * col0 + + 8 * - - col1 AS col0 FROM tab0 AS cor0
----
-642
-7314
-8334

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT - SUM( ALL col0 ) FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-7082
SELECT - SUM ( ALL col0 ) FROM tab1 cor0
----
-227

query I rowsort
SELECT + 64 * - col0 AS col2 FROM tab2
----
-2944
-4096
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT - MAX( ALL + - col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7084
SELECT - MAX ( ALL + - col0 ) AS col0 FROM tab0
----
15

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( + + 4 ) * + - col2 < - + col0
----
87
21
10

query I rowsort
SELECT DISTINCT - 45 * 94 FROM tab0
----
-4230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7087
SELECT ALL + CAST( + + ( + 17 ) AS SIGNED ) + col2 + - col2 + - 67 * - col2 AS col2 FROM tab2 AS cor0
----
1558
2697
3903

skipif mysql # not compatible
query I rowsort label-7087
SELECT ALL + CAST ( + + ( + 17 ) AS INTEGER ) + col2 + - col2 + - 67 * - col2 AS col2 FROM tab2 AS cor0
----
1558
2697
3903

query II rowsort
SELECT - 80 AS col0, - col2 AS col2 FROM tab1 AS cor0
----
-80
-59
-80
-68
-80
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * + col0 + - 34 * - + ( + - col0 ) * col2 IS NULL
----

query I rowsort
SELECT - 0 + + 17 FROM tab1 cor0
----
17
17
17

query I rowsort
SELECT - + 87 + + col2 + + - col1 FROM tab0 AS cor0
----
-121
-98
11

query I rowsort
SELECT 83 + + col2 FROM tab2
----
106
123
141

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE col2 - 46 <> + col0 + + col0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT - COUNT( * ) FROM tab0 WHERE ( NOT NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7094
SELECT - COUNT ( * ) FROM tab0 WHERE ( NOT NULL IS NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 + col1 * col1 col2 FROM tab1
----
2258
245
74

query I rowsort
SELECT + 65 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 / + 89 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7098
SELECT DISTINCT - MAX( + 82 ) + + SUM( + + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7098
SELECT DISTINCT - MAX ( + 82 ) + + SUM ( + + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7099
SELECT DISTINCT + 96 - CAST( - - ( - 38 ) AS SIGNED ) FROM tab2 AS cor0
----
134

skipif mysql # not compatible
query I rowsort label-7099
SELECT DISTINCT + 96 - CAST ( - - ( - 38 ) AS INTEGER ) FROM tab2 AS cor0
----
134

query I rowsort
SELECT DISTINCT - 12 - + + col2 AS col0 FROM tab2
----
-35
-52
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col1, col2 - - col2 AS col0 FROM tab2
----
-23
46
-40
80
-58
116

query I rowsort
SELECT + col1 + col2 * col1 * - - col0 FROM tab0
----
18291
57186
9604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7103
SELECT + 41 + col1 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7103
SELECT + 41 + col1 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * + 13 FROM tab0
----
-1131
-1261
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT DISTINCT - - SUM( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-7105
SELECT DISTINCT - - SUM ( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, col1 AS col2 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT COUNT( DISTINCT - 24 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7107
SELECT COUNT ( DISTINCT - 24 ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT - COUNT( ALL - 34 ) * + + MAX( DISTINCT + 58 ) FROM tab0 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-7108
SELECT - COUNT ( ALL - 34 ) * + + MAX ( DISTINCT + 58 ) FROM tab0 AS cor0
----
-174

onlyif mysql # DIV for integer division: 
query I rowsort label-7109
SELECT + - col2 DIV + - 14 + - - col0 * - + col2 + - col1 AS col2 FROM tab2 cor0
----
-1108
-2635
-4413

skipif mysql # not compatible
query I rowsort label-7109
SELECT + - col2 / + - 14 + - - col0 * - + col2 + - col1 AS col2 FROM tab2 cor0
----
-1108
-2635
-4413

query I rowsort
SELECT ALL ( 9 ) AS col0 FROM tab0 cor0
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT - 13 * ( - ( MAX( + 48 ) ) ) AS col0 FROM tab0
----
624

skipif mysql # not compatible
query I rowsort label-7111
SELECT - 13 * ( - ( MAX ( + 48 ) ) ) AS col0 FROM tab0
----
624

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT COUNT( * ) * MAX( + + ( col2 ) ) FROM tab0 WHERE NOT + 20 = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7112
SELECT COUNT ( * ) * MAX ( + + ( col2 ) ) FROM tab0 WHERE NOT + 20 = ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT ALL 28 * + MIN( - col1 ) * 81 AS col0 FROM tab1
----
-106596

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL 28 * + MIN ( - col1 ) * 81 AS col0 FROM tab1
----
-106596

query I rowsort
SELECT col2 + + 8 * col2 FROM tab0
----
423
891
90

query I rowsort
SELECT - 60 * + ( + col2 ) + col0 AS col1 FROM tab1
----
-3455
-3989
-5709

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7116
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + - col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7116
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + - col0 AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 6 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 34 * - col0 + - - 44 * + + col1 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 19 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
19

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE NOT + ( + + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT DISTINCT - MIN( + col1 ) + 94 AS col0 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-7121
SELECT DISTINCT - MIN ( + col1 ) + 94 AS col0 FROM tab2 AS cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT ALL + + COUNT( * ) + + + COUNT( + col0 ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7122
SELECT ALL + + COUNT ( * ) + + + COUNT ( + col0 ) FROM tab1 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= col1 + + + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 13 >= + col0
----

query I rowsort
SELECT ALL + col0 - + - 74 FROM tab2 cor0
----
120
138
149

query I rowsort
SELECT DISTINCT + ( + + col1 ) + - col2 AS col0 FROM tab2 cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT ALL - COUNT( * ) - + + 98 AS col2 FROM tab0
----
-101

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL - COUNT ( * ) - + + 98 AS col2 FROM tab0
----
-101

query I rowsort
SELECT DISTINCT col2 + + - 25 AS col1 FROM tab0 WHERE NOT + + col1 >= NULL
----

query I rowsort
SELECT ALL 39 * + col1 - + ( col1 ) FROM tab0
----
3078
38
798

query I rowsort
SELECT DISTINCT - col1 - + 60 * - col0 FROM tab0
----
5199
5819
819

query III rowsort
SELECT * FROM tab0 WHERE NOT + 56 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7132
SELECT ALL + CAST( COUNT( ALL + col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7132
SELECT ALL + CAST ( COUNT ( ALL + col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT + 85 * COUNT( * ) FROM tab1 cor0
----
255

skipif mysql # not compatible
query I rowsort label-7133
SELECT + 85 * COUNT ( * ) FROM tab1 cor0
----
255

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE NOT + col1 NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT COUNT( - 89 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7135
SELECT COUNT ( - 89 ) AS col0 FROM tab1 AS cor0
----
3

query II rowsort
SELECT 94, 5 + 42 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 4b35d4d1547d43a532ff2bf85934192a

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT - MAX( DISTINCT + + col2 ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-7137
SELECT - MAX ( DISTINCT + + col2 ) AS col0 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 44 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7138
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 44 IS NULL
----
-9

query I rowsort
SELECT ALL + + 65 AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 48 IS NOT NULL
----

query I rowsort
SELECT - + col2 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-10
-47
-99

query II rowsort
SELECT ALL - col0 AS col0, - 0 FROM tab1 AS cor0
----
-51
0
-85
0
-91
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7143
SELECT - col2 DIV 50 DIV + - col1 AS col1 FROM tab1 AS cor0 WHERE NOT col0 * + col0 > 56 * col0
----
0

skipif mysql # not compatible
query I rowsort label-7143
SELECT - col2 / 50 / + - col1 AS col1 FROM tab1 AS cor0 WHERE NOT col0 * + col0 > 56 * col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7144
SELECT ALL + ( CAST( - col1 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7144
SELECT ALL + ( CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

query II rowsort
SELECT ALL 7 AS col0, col1 + - + col1 FROM tab1 cor0
----
7
0
7
0
7
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT ALL - MAX( DISTINCT + - col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL - MAX ( DISTINCT + - col0 ) FROM tab1 cor0
----
51

query I rowsort
SELECT + 1 * - col1 * - col2 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT 6 * - - col1 FROM tab2 AS cor0
----
306
402
462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7149
SELECT + COUNT( + col2 ) DIV ( 25 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7149
SELECT + COUNT ( + col2 ) / ( 25 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> col0 OR - + col0 IN ( + + 74 )
----

query II rowsort
SELECT col2 * col1, 16 AS col1 FROM tab2
----
1173
16
3080
16
3886
16

query I rowsort
SELECT DISTINCT - 18 * + col1 * - 91 FROM tab1
----
22932
76986
8190

onlyif mysql # DIV for integer division: 
query I rowsort label-7153
SELECT DISTINCT 76 DIV + - 79 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7153
SELECT DISTINCT 76 / + - 79 FROM tab2
----
0

query I rowsort
SELECT ALL - 61 + - + 12 FROM tab0
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT + - COUNT( * ) + + + 49 AS col0 FROM tab0 cor0
----
46

skipif mysql # not compatible
query I rowsort label-7155
SELECT + - COUNT ( * ) + + + 49 AS col0 FROM tab0 cor0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-7156
SELECT + + 30 * 40 * col2 DIV + col0 + - col2 AS col0 FROM tab2 AS cor0
----
577
710
870

skipif mysql # not compatible
query I rowsort label-7156
SELECT + + 30 * 40 * col2 / + col0 + - col2 AS col0 FROM tab2 AS cor0
----
577
710
870

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 > + col0 + + 0
----
15
81
47
97
1
99

query I rowsort
SELECT ALL + 13 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, col0 + - + 6 col2 FROM tab0
----
-1
91
-21
81
-81
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT ALL + + COUNT( ALL + - 1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7160
SELECT ALL + + COUNT ( ALL + - 1 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + 52 * + col0 + - - col1 AS col2 FROM tab2 AS cor0
----
2443
3405
3967

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT COUNT( * ) * - MIN( + - col2 ) AS col2 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-7162
SELECT COUNT ( * ) * - MIN ( + - col2 ) AS col2 FROM tab1 AS cor0
----
288

query I rowsort
SELECT - col0 - + + col0 AS col0 FROM tab2 AS cor0
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT ALL + - 26 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7164
SELECT ALL + - 26 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7165
SELECT MAX( ALL - 44 ) - + 49 DIV - + COUNT( * ) FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-7165
SELECT MAX ( ALL - 44 ) - + 49 / - + COUNT ( * ) FROM tab1 AS cor0
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-7166
SELECT - MAX( 64 ) - - 11 AS col0, 13 AS col2 FROM tab2 AS cor0
----
-53
13

skipif mysql # not compatible
query II rowsort label-7166
SELECT - MAX ( 64 ) - - 11 AS col0, 13 AS col2 FROM tab2 AS cor0
----
-53
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 37 - + col2 + - col2 - - col2 col0 FROM tab1 cor0
----
126
1671
422

query I rowsort
SELECT DISTINCT + 38 + 18 FROM tab1 AS cor0
----
56

query I rowsort
SELECT DISTINCT 8 - - 2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL - - col1 - - col2 AS col0 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT + col2 - 69 + - col1 * col2 FROM tab1 AS cor0
----
-1317
-305
-3197

query I rowsort
SELECT ALL - + col1 + + - col2 + - + 29 AS col2 FROM tab1 cor0
----
-139
-144
-93

query II rowsort
SELECT + col0, 87 FROM tab0 AS cor0
----
15
87
87
87
97
87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( + - col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NULL <= NULL
----

query II rowsort
SELECT DISTINCT col0, col0 * + + col2 AS col0 FROM tab2
----
46
1058
64
2560
75
4350

query I rowsort
SELECT ALL 61 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT ALL 31 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT ALL COUNT( * ) * 97 AS col2 FROM tab2
----
291

skipif mysql # not compatible
query I rowsort label-7179
SELECT ALL COUNT ( * ) * 97 AS col2 FROM tab2
----
291

query I rowsort
SELECT - + 32 * - - col1 FROM tab0 AS cor0
----
-2592
-32
-672

query I rowsort
SELECT ALL ( - 79 ) FROM tab1
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT - MAX( DISTINCT 21 ) FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-7182
SELECT - MAX ( DISTINCT 21 ) FROM tab1 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-7183
SELECT - ( - - COUNT( * ) ) AS col1, + 40 FROM tab2 AS cor0
----
-3
40

skipif mysql # not compatible
query II rowsort label-7183
SELECT - ( - - COUNT ( * ) ) AS col1, + 40 FROM tab2 AS cor0
----
-3
40

query I rowsort
SELECT DISTINCT + col2 + - col2 + - 84 * col0 AS col2 FROM tab0 AS cor0
----
-1260
-7308
-8148

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT + COUNT( * ) * - COUNT( * ) + COUNT( * ) + 44 AS col2 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-7185
SELECT + COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) + 44 AS col2 FROM tab0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-7186
SELECT col1 DIV + + 21 + col1 AS col0 FROM tab1
----
14
49
5

skipif mysql # not compatible
query I rowsort label-7186
SELECT col1 / + + 21 + col1 AS col0 FROM tab1
----
14
49
5

query II rowsort
SELECT ALL + col0 AS col0, - col0 + - + col1 + - col0 FROM tab0
----
15
-111
87
-195
97
-195

query III rowsort
SELECT * FROM tab1 WHERE + - col1 * col0 / - 53 IS NULL
----

query I rowsort
SELECT ALL ( 47 ) AS col2 FROM tab0
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT ALL + MAX( DISTINCT - 43 ) FROM tab0
----
-43

skipif mysql # not compatible
query I rowsort label-7190
SELECT ALL + MAX ( DISTINCT - 43 ) FROM tab0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT ALL - COUNT( * ) * + 97 * 23 + - 61 AS col2 FROM tab1
----
-6754

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL - COUNT ( * ) * + 97 * 23 + - 61 AS col2 FROM tab1
----
-6754

query II rowsort
SELECT + col0 AS col0, + col0 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT - - COUNT( - - col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7193
SELECT - - COUNT ( - - col0 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 - 7 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 82 AS col2, col1 + - - col0 AS col2 FROM tab1 AS cor0
----
82
138
82
65
82
90

query I rowsort
SELECT ALL + col2 + + + col2 FROM tab0 AS cor0
----
198
20
94

query II rowsort
SELECT - col2 - + col2, 48 - col1 + col0 AS col0 FROM tab1
----
-118
128
-136
92
-192
85

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > ( - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT ALL MAX( DISTINCT - 60 ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-7199
SELECT ALL MAX ( DISTINCT - 60 ) FROM tab2
----
-60

query I rowsort
SELECT DISTINCT + + col1 * - ( + col0 ) AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7201
SELECT DISTINCT - col0 + ( - CAST( + col0 AS SIGNED ) ) * + col2 * col0 + + - col0 * - ( + - col1 ), col0 FROM tab0 AS cor0
----
-11805
15
-77604
87
-931685
97

skipif mysql # not compatible
query II rowsort label-7201
SELECT DISTINCT - col0 + ( - CAST ( + col0 AS INTEGER ) ) * + col2 * col0 + + - col0 * - ( + - col1 ), col0 FROM tab0 AS cor0
----
-11805
15
-77604
87
-931685
97

query I rowsort
SELECT ALL - col2 * 46 FROM tab1 cor0
----
-2714
-3128
-4416

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 31 * + - 39 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7204
SELECT ALL - col2 DIV + 75 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7204
SELECT ALL - col2 / + 75 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT + + col2 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7206
SELECT - 22 AS col1, - COUNT( DISTINCT + + col0 ) FROM tab2
----
-22
-3

skipif mysql # not compatible
query II rowsort label-7206
SELECT - 22 AS col1, - COUNT ( DISTINCT + + col0 ) FROM tab2
----
-22
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT ALL - 67 * COUNT( * ) AS col2 FROM tab1
----
-201

skipif mysql # not compatible
query I rowsort label-7207
SELECT ALL - 67 * COUNT ( * ) AS col2 FROM tab1
----
-201

onlyif mysql # DIV for integer division: 
query I rowsort label-7208
SELECT DISTINCT col0 + - col0 - + - col2 + + col2 + + 75 DIV + 21 + + col0 + + - col0 * + + col1 FROM tab0 WHERE NOT + ( - - col0 ) * + + col1 + - col2 * + col2 IS NULL
----
-1103
-1717
201

skipif mysql # not compatible
query I rowsort label-7208
SELECT DISTINCT col0 + - col0 - + - col2 + + col2 + + 75 / + 21 + + col0 + + - col0 * + + col1 FROM tab0 WHERE NOT + ( - - col0 ) * + + col1 + - col2 * + col2 IS NULL
----
-1103
-1717
201

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) > - - col2 + + - col1 * 19 * col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + ( + - col0 ) * - ( + col2 ) * - + col0 <> + col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7211
SELECT ALL + CAST( ( - - 0 ) AS SIGNED ) DIV 93 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7211
SELECT ALL + CAST ( ( - - 0 ) AS INTEGER ) / 93 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7212
SELECT + ( + - COUNT( * ) ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7212
SELECT + ( + - COUNT ( * ) ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7213
SELECT DISTINCT 12 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7213
SELECT DISTINCT 12 * CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + + col0 + 77 AS col2 FROM tab1 AS cor0
----
128
162
168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7216
SELECT DISTINCT 64 AS col0, ( + SUM( ALL - 14 ) ) AS col1, - COUNT( * ) / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
64
-42
NULL

skipif mysql # not compatible
query III rowsort label-7216
SELECT DISTINCT 64 AS col0, ( + SUM ( ALL - 14 ) ) AS col1, - COUNT ( * ) / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
64
-42
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT SUM( ALL + col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7217
SELECT SUM ( ALL + col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - col2 * - col2 FROM tab1 cor0 WHERE - col2 > col0 + - 30 * - 0 * ( - + col0 )
----

query I rowsort
SELECT + + 42 * - col0 AS col0 FROM tab2 AS cor0
----
-1932
-2688
-3150

onlyif mysql # DIV for integer division: 
query I rowsort label-7220
SELECT + col0 DIV + 95 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7220
SELECT + col0 / + 95 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + - ( - + col2 ) FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL + ( - 71 ) + - col0 * - col2 FROM tab1 WHERE NOT ( col0 ) < - 62
----
4825
4944
6117

query I rowsort
SELECT DISTINCT - 80 * - + 69 AS col0 FROM tab2
----
5520

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7224
SELECT + 31 + - col1 AS col1, ( + CAST( NULL AS SIGNED ) ) * + - 54 AS col2 FROM tab2 AS cor0
----
-20
NULL
-36
NULL
-46
NULL

skipif mysql # not compatible
query II rowsort label-7224
SELECT + 31 + - col1 AS col1, ( + CAST ( NULL AS INTEGER ) ) * + - 54 AS col2 FROM tab2 AS cor0
----
-20
NULL
-36
NULL
-46
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT ALL + + COUNT( * ) + - 3 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL + + COUNT ( * ) + - 3 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col1 + 93 + + 69 FROM tab1 AS cor0
----
115
148
157

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT - 14 * COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7227
SELECT - 14 * COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + ( + 69 ) + - - col1 + + col0 AS col2 FROM tab0 AS cor0
----
165
167
177

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7229
SELECT + col2 AS col2, + CAST( ( + 18 ) AS SIGNED ) AS col0 FROM tab1
----
59
18
68
18
96
18

skipif mysql # not compatible
query II rowsort label-7229
SELECT + col2 AS col2, + CAST ( ( + 18 ) AS INTEGER ) AS col0 FROM tab1
----
59
18
68
18
96
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7230
SELECT ALL col2 - + + CAST( 19 AS SIGNED ) FROM tab0
----
-9
28
80

skipif mysql # not compatible
query I rowsort label-7230
SELECT ALL col2 - + + CAST ( 19 AS INTEGER ) FROM tab0
----
-9
28
80

query II rowsort
SELECT 6 * - - 18 * - col1 AS col1, col2 FROM tab1
----
-1512
96
-5076
68
-540
59

query I rowsort
SELECT 17 * - col2 + - col1 FROM tab2 AS cor0
----
-1053
-442
-757

onlyif mysql # aggregate syntax: 
query II rowsort label-7233
SELECT DISTINCT + COUNT( * ) col1, 61 AS col0 FROM tab2 AS cor0
----
3
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7233
SELECT DISTINCT + COUNT ( * ) col1, 61 AS col0 FROM tab2 AS cor0
----
3
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * - col1 col2 FROM tab1 AS cor0 WHERE NOT - 41 / + 99 IS NULL
----
425
4277
714

onlyif mysql # DIV for integer division: 
query II rowsort label-7235
SELECT ALL - col1 col0, col2 DIV - col1 FROM tab1 AS cor0
----
-14
-6
-47
-1
-5
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7235
SELECT ALL - col1 col0, col2 / - col1 FROM tab1 AS cor0
----
-14
-6
-47
-1
-5
-11

query II rowsort
SELECT + 59 * + col2 + + col1, col2 AS col1 FROM tab2 AS cor0
----
1408
23
2437
40
3489
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, - 1 FROM tab0 AS cor0
----
10
-1
47
-1
99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT ALL COUNT( * ) * + + 17 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-7238
SELECT ALL COUNT ( * ) * + + 17 FROM tab0
----
51

query I rowsort
SELECT - 36 * + - col2 AS col0 FROM tab2
----
1440
2088
828

query I rowsort
SELECT - ( ( + + col1 ) ) FROM tab2 WHERE NOT + 31 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT DISTINCT - SUM( ALL + + col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-7241
SELECT DISTINCT - SUM ( ALL + + col0 ) AS col2 FROM tab0 AS cor0
----
-199

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 33 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT DISTINCT - + MAX( + col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7243
SELECT DISTINCT - + MAX ( + col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT + COUNT( * ) * - 39 FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-7244
SELECT + COUNT ( * ) * - 39 FROM tab2 AS cor0
----
-117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 20 * col1 col2 FROM tab0 AS cor0
----
1620
20
420

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT ALL - MIN( ALL - 46 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
46

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL - MIN ( ALL - 46 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7247
SELECT - CAST( NULL AS SIGNED ) + + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7247
SELECT - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query II rowsort
SELECT 48 AS col0, + col1 FROM tab1
----
48
14
48
47
48
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 31 + - - col2 col0 FROM tab1 AS cor0
----
28
37
65

query I rowsort
SELECT col1 + + - col2 + + col2 AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7251
SELECT + 0 DIV - col2 + + - col1 + col2 AS col2 FROM tab2 AS cor0
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-7251
SELECT + 0 / - col2 + + - col1 + col2 AS col2 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT + ( - col2 ) * + col1 * col0 AS col2 FROM tab0
----
-18270
-57105
-9603

query II rowsort
SELECT - 27 * + col0, - col1 + - - col2 AS col2 FROM tab1
----
-1377
82
-2295
54
-2457
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7254
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7254
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( 70 ) * - col2 * 76 AS col0 FROM tab2 WHERE + - col0 + + 6 NOT IN ( - - col2, - 15, - 53, ( 97 ) )
----
-122360
-212800
-308560

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT - MAX( DISTINCT - 32 ) AS col0 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-7256
SELECT - MAX ( DISTINCT - 32 ) AS col0 FROM tab2 AS cor0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7257
SELECT ALL - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) * + - col1 - col2 * col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7257
SELECT ALL - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) * + - col1 - col2 * col2 FROM tab1 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + 40, col1 FROM tab2 cor0
----
40
51
40
67
40
77

query I rowsort
SELECT ALL + 46 + - + col1 AS col2 FROM tab0 AS cor0
----
-35
25
45

query I rowsort
SELECT ALL 58 * - - col0 - - 18 * + col1 * col2 + + + 90 FROM tab2
----
23872
59242
74388

query I rowsort
SELECT col0 * 71 + col2 FROM tab0 AS cor0
----
1112
6187
6986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7262
SELECT ALL + AVG ( + + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE NULL <= - 12 / + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL + AVG ( + + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NULL <= - 12 / + 72
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7263
SELECT DISTINCT col2 AS col1, col1 DIV + col1 FROM tab0
----
10
1
47
1
99
1

skipif mysql # not compatible
query II rowsort label-7263
SELECT DISTINCT col2 AS col1, col1 / + col1 FROM tab0
----
10
1
47
1
99
1

query I rowsort
SELECT ALL 85 * + col0 FROM tab2
----
3910
5440
6375

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT MAX( + + ( + col1 ) ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7265
SELECT MAX ( + + ( + col1 ) ) FROM tab1
----
47

query I rowsort
SELECT ALL - 13 * + col2 AS col2 FROM tab2
----
-299
-520
-754

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT - 12 * + - COUNT( * ) AS col1 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-7267
SELECT - 12 * + - COUNT ( * ) AS col1 FROM tab2
----
36

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 = - + 83
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 18 * col1 FROM tab1
----
252
846
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT ALL + COUNT( ALL + - col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL + COUNT ( ALL + - col0 ) AS col2 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7271
SELECT DISTINCT + 86 DIV + col1 FROM tab0
----
1
4
86

skipif mysql # not compatible
query I rowsort label-7271
SELECT DISTINCT + 86 / + col1 FROM tab0
----
1
4
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7272
SELECT + CAST( NULL AS SIGNED ) * - 46 * + ( + + col1 ) + - 37, + col2 FROM tab0 WHERE NOT col0 + - - 80 IS NULL
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-7272
SELECT + CAST ( NULL AS INTEGER ) * - 46 * + ( + + col1 ) + - 37, + col2 FROM tab0 WHERE NOT col0 + - - 80 IS NULL
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT DISTINCT col0 + + + col0 FROM tab2 cor0
----
128
150
92

query I rowsort
SELECT DISTINCT - - 72 AS col0 FROM tab1 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT DISTINCT COUNT( * ) * + + 4 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-7275
SELECT DISTINCT COUNT ( * ) * + + 4 FROM tab0 AS cor0
----
12

query I rowsort
SELECT + col0 * + + col0 * - col1 + - col2 FROM tab0 AS cor0
----
-158959
-18272
-9508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7277
SELECT ALL + CAST( NULL AS SIGNED ) * 23 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7277
SELECT ALL + CAST ( NULL AS INTEGER ) * 23 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT ALL + COUNT( * ) + COUNT( 15 ) * 29 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL + COUNT ( * ) + COUNT ( 15 ) * 29 FROM tab0
----
90

query I rowsort
SELECT + 35 * 20 FROM tab0
----
700
700
700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7281
SELECT CAST( col2 AS SIGNED ) * + 23 FROM tab1
----
1357
1564
2208

skipif mysql # not compatible
query I rowsort label-7281
SELECT CAST ( col2 AS INTEGER ) * + 23 FROM tab1
----
1357
1564
2208

query I rowsort
SELECT ALL - 33 * - ( 73 ) AS col2 FROM tab1
----
2409
2409
2409

query I rowsort
SELECT + col2 + 69 FROM tab1
----
128
137
165

query I rowsort
SELECT ALL + col1 + col2 FROM tab1 WHERE col1 NOT IN ( - col1 )
----
110
115
64

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 / + col2 - col1 <= col0 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT - COUNT( * ) - + 47 AS col0 FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-7286
SELECT - COUNT ( * ) - + 47 AS col0 FROM tab1
----
-50

query I rowsort
SELECT DISTINCT col0 * + ( col1 ) AS col0 FROM tab2
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7288
SELECT DISTINCT CAST( 21 AS SIGNED ) * + col2 AS col2 FROM tab0 WHERE NOT + col2 * col2 IS NULL
----
2079
210
987

skipif mysql # not compatible
query I rowsort label-7288
SELECT DISTINCT CAST ( 21 AS INTEGER ) * + col2 AS col2 FROM tab0 WHERE NOT + col2 * col2 IS NULL
----
2079
210
987

query I rowsort
SELECT DISTINCT - 7 + + col0 AS col2 FROM tab1 WHERE NOT ( - 9 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 62 <> + col0 * col1
----

query I rowsort
SELECT ALL col2 * + 29 FROM tab1
----
1711
1972
2784

query I rowsort
SELECT + AVG ( DISTINCT col1 ) * - 37 + - 98 FROM tab0 WHERE NOT col2 * - 52 NOT BETWEEN - 28 AND + col1 + - ( 87 )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - col1 * - col0 NOT BETWEEN ( NULL ) AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE col2 + - ( col2 + - 71 ) NOT BETWEEN NULL AND - col0 + - 68 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7295
SELECT DISTINCT CAST( col2 AS SIGNED ) * + col2 AS col1 FROM tab0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-7295
SELECT DISTINCT CAST ( col2 AS INTEGER ) * + col2 AS col1 FROM tab0
----
100
2209
9801

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( + 26 - + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7297
SELECT ( col1 ) DIV - 24 FROM tab2
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-7297
SELECT ( col1 ) / - 24 FROM tab2
----
-2
-2
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7298
SELECT DISTINCT - 71 DIV - COUNT( * ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7298
SELECT DISTINCT - 71 / - COUNT ( * ) FROM tab2
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7299
SELECT 60 DIV - COUNT( * ) AS col0 FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-7299
SELECT 60 / - COUNT ( * ) AS col0 FROM tab0
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-7300
SELECT col2 DIV + 18 AS col1 FROM tab1
----
3
3
5

skipif mysql # not compatible
query I rowsort label-7300
SELECT col2 / + 18 AS col1 FROM tab1
----
3
3
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 < ( + ( + col0 ) + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7302
SELECT col2 DIV - 51 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7302
SELECT col2 / - 51 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT DISTINCT - COUNT( * ) * 40 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7303
SELECT DISTINCT - COUNT ( * ) * 40 FROM tab1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7304
SELECT ALL + CAST( NULL AS SIGNED ) + 73 col0 FROM tab1 WHERE ( - col1 ) < ( 96 )
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7304
SELECT ALL + CAST ( NULL AS INTEGER ) + 73 col0 FROM tab1 WHERE ( - col1 ) < ( 96 )
----
NULL
NULL
NULL

query I rowsort
SELECT 90 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7306
SELECT CAST( NULL AS DECIMAL ) * AVG ( ALL - col0 * col1 ) + 40 AS col0 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7306
SELECT CAST ( NULL AS REAL ) * AVG ( ALL - col0 * col1 ) + 40 AS col0 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - 33 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT ALL MIN( + col2 ) col0 FROM tab2 WHERE col1 + + col1 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7308
SELECT ALL MIN ( + col2 ) col0 FROM tab2 WHERE col1 + + col1 BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7309
SELECT DISTINCT CAST( 79 AS SIGNED ) AS col0 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-7309
SELECT DISTINCT CAST ( 79 AS INTEGER ) AS col0 FROM tab0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT COUNT( * ) AS col0 FROM tab0 WHERE + 71 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7310
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE + 71 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT - COUNT( * ) * + 34 FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-7311
SELECT - COUNT ( * ) * + 34 FROM tab2
----
-102

query I rowsort
SELECT + 87 * - col2 FROM tab2
----
-2001
-3480
-5046

query I rowsort
SELECT - col1 * 21 AS col1 FROM tab1
----
-105
-294
-987

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7314
SELECT * FROM tab2 WHERE NOT ( NULL ) > ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7314
SELECT * FROM tab2 WHERE NOT ( NULL ) > ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT 77 * col1 FROM tab1
----
1078
3619
385

query I rowsort
SELECT - 88 * - col2 FROM tab0
----
4136
8712
880

query I rowsort
SELECT DISTINCT - col2 * col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 + ( + col1 ) col0 FROM tab0 AS cor0
----
-10
-70
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-7319
SELECT 57 DIV + 60 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7319
SELECT 57 / + 60 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 69 * - col0 AS col0 FROM tab1 AS cor0 WHERE NOT 82 BETWEEN col1 AND ( 76 )
----
3519
5865
6279

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 9 ) < 35 - + col1
----
15
81
47

query I rowsort
SELECT - 7 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 97 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( col1 ) + col1 * + col2 <> ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7325
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NOT CAST( - 92 AS SIGNED ) * - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7325
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NOT CAST ( - 92 AS INTEGER ) * - col0 IS NOT NULL
----
0

query I rowsort
SELECT + ( - 36 ) AS col2 FROM tab0 cor0 CROSS JOIN tab2
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query I rowsort
SELECT - col0 * + 38 FROM tab1
----
-1938
-3230
-3458

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + ( + col2 ) = ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * - 99 AS col2 FROM tab2 cor0
----
-5049
-6633
-7623

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT ALL + SUM( 36 ) AS col0 FROM tab1 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-7331
SELECT ALL + SUM ( 36 ) AS col0 FROM tab1 AS cor0
----
108

query I rowsort
SELECT ALL - ( + 8 ) AS col2 FROM tab2 AS cor0
----
-8
-8
-8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * + 93 + col0 NOT BETWEEN col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 * - + col0 AS col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT ALL + ( + - COUNT( * ) ) * - 94 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL + ( + - COUNT ( * ) ) * - 94 FROM tab1
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT - MAX( ALL - 13 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7336
SELECT - MAX ( ALL - 13 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7337
SELECT ALL + CAST( - 27 AS SIGNED ) * - 84 FROM tab0
----
2268
2268
2268

skipif mysql # not compatible
query I rowsort label-7337
SELECT ALL + CAST ( - 27 AS INTEGER ) * - 84 FROM tab0
----
2268
2268
2268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7338
SELECT CAST( NULL AS SIGNED ) + - - COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7338
SELECT CAST ( NULL AS INTEGER ) + - - COUNT ( * ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ( + - col1 ) + + col2 AS col2 FROM tab0
----
-11
-34
98

query I rowsort
SELECT - col1 * - - col2 + col2 AS col2 FROM tab1
----
-1248
-236
-3128

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + ( - col0 ) ) + col2 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
441
6561

query I rowsort
SELECT - col0 * + - 39 * col0 + col0 FROM tab1
----
101490
281860
323050

query I rowsort
SELECT col1 * + col0 + - 51 * - col1 AS col0 FROM tab0
----
148
2898
5346

query I rowsort
SELECT 73 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) <> - col1 + - 65
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7346
SELECT 69 * + col0 + 21 AS col0 FROM tab0 AS cor0 WHERE - ( CAST( NULL AS SIGNED ) ) < NULL
----

skipif mysql # not compatible
query I rowsort label-7346
SELECT 69 * + col0 + 21 AS col0 FROM tab0 AS cor0 WHERE - ( CAST ( NULL AS INTEGER ) ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7347
SELECT + SUM( DISTINCT CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7347
SELECT + SUM ( DISTINCT CAST ( NULL AS REAL ) ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT DISTINCT + 41 + - - MIN( ALL 55 ) + ( COUNT( * ) - 54 ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-7348
SELECT DISTINCT + 41 + - - MIN ( ALL 55 ) + ( COUNT ( * ) - 54 ) FROM tab2
----
45

query I rowsort
SELECT - - col2 + - - col2 FROM tab0 AS cor0
----
198
20
94

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT - MIN( + + 37 ) + - 83 - + ( MIN( + 60 ) ) * 60 FROM tab1 cor0
----
-3720

skipif mysql # not compatible
query I rowsort label-7351
SELECT - MIN ( + + 37 ) + - 83 - + ( MIN ( + 60 ) ) * 60 FROM tab1 cor0
----
-3720

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * - col2 + col1 * col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 70 + - + 85 * + col2 * col2 FROM tab0 AS cor0
----
-187695
-833015
-8430

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT DISTINCT + + 51 * COUNT( * ) + - ( - 1 ) - - 35 AS col1 FROM tab1 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-7354
SELECT DISTINCT + + 51 * COUNT ( * ) + - ( - 1 ) - - 35 AS col1 FROM tab1 AS cor0
----
189

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND + col0 * - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL OR + col1 * ( 52 ) + col2 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + col1 + - + 68 FROM tab1 AS cor0
----
-115
-73
-82

query I rowsort
SELECT ALL - ( ( + col2 ) ) + 21 AS col1 FROM tab1 AS cor0
----
-38
-47
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7359
SELECT * FROM tab1 WHERE - CAST( - col2 AS SIGNED ) NOT IN ( + 54 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7359
SELECT * FROM tab1 WHERE - CAST ( - col2 AS INTEGER ) NOT IN ( + 54 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 73 * col2 * col2 * + - col2 FROM tab0
----
-70831827
-73000
-7579079

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT - col0 * - col1 * - col0 FROM tab0
----
-158949
-18225
-9409

query I rowsort
SELECT DISTINCT + col1 * - col2 - col2 * + ( 5 ) + + 10 AS col2 FROM tab1
----
-1814
-3526
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT ( - - ( + - MIN( ALL + col0 ) ) ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-7364
SELECT ( - - ( + - MIN ( ALL + col0 ) ) ) FROM tab2 AS cor0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-7365
SELECT col0 DIV - + col2 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-7365
SELECT col0 / - + col2 FROM tab0 AS cor0
----
-8
0
0

query II rowsort
SELECT DISTINCT col0, col2 - + 18 AS col2 FROM tab0
----
15
29
87
-8
97
81

query I rowsort
SELECT DISTINCT + ( + + 6 ) + - 77 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-71

query I rowsort
SELECT ALL + col0 + 59 * + col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( - ( col1 ) * - + 60 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 92 IS NOT NULL AND NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7370
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT + 14 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 - col1 <> + + col0 - 69 + - 79 * 47
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7372
SELECT col0, col1 DIV - + col0 + + 97 AS col1 FROM tab0 AS cor0
----
15
92
87
97
97
97

skipif mysql # not compatible
query II rowsort label-7372
SELECT col0, col1 / - + col0 + + 97 AS col1 FROM tab0 AS cor0
----
15
92
87
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT - MAX( ALL - + 77 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7373
SELECT - MAX ( ALL - + 77 ) FROM tab2 AS cor0
----
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 - - - col1 + - - 36 / - col1 < ( + col2 + col0 / 51 )
----

query I rowsort
SELECT + 75 * + - 63 AS col0 FROM tab1 AS cor0
----
-4725
-4725
-4725

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7376
SELECT - 80 DIV + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-7376
SELECT - 80 / + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7377
SELECT * FROM tab1 cor0 WHERE NOT col1 - - - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-7377
SELECT * FROM tab1 cor0 WHERE NOT col1 - - - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 79 * + 11 * + col0 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( + col2, - col0 + - 58 )
----

query II rowsort
SELECT ALL - col1 AS col0, + col2 AS col1 FROM tab2
----
-51
23
-67
58
-77
40

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - - col2 * 22 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - - col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + + 98 + - 58 AS col0 FROM tab1 cor0
----
40
40
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7385
SELECT col2 + + CAST( - - 26 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
49
66
84

skipif mysql # not compatible
query I rowsort label-7385
SELECT col2 + + CAST ( - - 26 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
49
66
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7386
SELECT + - col1 * + - 76 + - + CAST( ( - col2 ) AS SIGNED ) + - ( col0 ) + - col0 * col2 AS col0 FROM tab1 AS cor0
----
-2639
-3787
-4661

skipif mysql # not compatible
query I rowsort label-7386
SELECT + - col1 * + - 76 + - + CAST ( ( - col2 ) AS INTEGER ) + - ( col0 ) + - col0 * col2 AS col0 FROM tab1 AS cor0
----
-2639
-3787
-4661

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( - - col0 )
----

query I rowsort
SELECT col2 * - - col2 FROM tab0 AS cor0 WHERE + col1 + - col1 IS NOT NULL
----
100
2209
9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 - - 95 + + 33 col1 FROM tab0 AS cor0
----
194
224
62

query I rowsort
SELECT col1 * - - col2 + - col1 + - col2 AS col1 FROM tab2 AS cor0
----
1099
2963
3761

query II rowsort
SELECT - - col2 AS col1, col2 FROM tab0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL ( + col0 ) + + col2 FROM tab1 AS cor0
----
144
147
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab0 AS cor0 WHERE - ( + - col0 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7394
SELECT ALL CAST( NULL AS SIGNED ) - + 43 / - col0 + - 56 * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7394
SELECT ALL CAST ( NULL AS INTEGER ) - + 43 / - col0 + - 56 * col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT DISTINCT MAX( - 1 ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT MAX ( - 1 ) AS col2 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT ALL COUNT( * ) * 69 AS col2 FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-7396
SELECT ALL COUNT ( * ) * 69 AS col2 FROM tab1
----
207

query I rowsort
SELECT DISTINCT - 8 * - - col1 FROM tab1
----
-112
-376
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7398
SELECT ALL + + 33 DIV + + MAX( ALL ( - ( col2 ) ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL + + 33 / + + MAX ( ALL ( - ( col2 ) ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT MAX( + - 10 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-7399
SELECT MAX ( + - 10 ) FROM tab0
----
-10

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( + - 89 + ( - col1 ) ) AND 7
----

query I rowsort
SELECT DISTINCT + 79 * - + 19 AS col0 FROM tab2
----
-1501

query I rowsort
SELECT - + 93 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT - - col0 * - 49 FROM tab0 AS cor0
----
-4263
-4753
-735

query I rowsort
SELECT + 83 * - + col0 FROM tab1 AS cor0
----
-4233
-7055
-7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 99 * - 48 + col1 col1, col2 FROM tab1
----
-4705
68
-4738
96
-4747
59

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 14 - - - col1 / - + col2 IN ( - - ( ( 63 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 5 ) < 46
----

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE - col1 <> ( + + ( + col2 ) )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT 33 + + COUNT( * ) col2 FROM tab0
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7409
SELECT 33 + + COUNT ( * ) col2 FROM tab0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT + ( + - ( + + 21 ) ) + + + COUNT( * ) AS col0 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-7410
SELECT + ( + - ( + + 21 ) ) + + + COUNT ( * ) AS col0 FROM tab2
----
-18

query I rowsort
SELECT - col0 + - - col0 AS col0 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7412
SELECT ALL + col1 FROM tab1 WHERE NOT + 3 * + ( + - col0 ) / + col1 + - - 44 IN ( - + CAST( NULL AS SIGNED ), col1 - - col2 * 87 )
----

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL + col1 FROM tab1 WHERE NOT + 3 * + ( + - col0 ) / + col1 + - - 44 IN ( - + CAST ( NULL AS INTEGER ), col1 - - col2 * 87 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 + + 69 col2 FROM tab1
----
119
119
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7414
SELECT 82 + - COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-7414
SELECT 82 + - COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
82

query I rowsort
SELECT + 68 + 2 * col1 FROM tab0
----
110
230
70

query I rowsort
SELECT - 16 * - - col2 * + 25 FROM tab1
----
-23600
-27200
-38400

query I rowsort
SELECT ( - 96 ) AS col0 FROM tab0
----
-96
-96
-96

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE NOT NULL < + 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT ALL + COUNT( * ) - + 3 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7419
SELECT ALL + COUNT ( * ) - + 3 AS col0 FROM tab0
----
0

query II rowsort
SELECT DISTINCT + col0 AS col1, 37 FROM tab0
----
15
37
87
37
97
37

query I rowsort
SELECT DISTINCT - ( + col1 ) AS col1 FROM tab2 WHERE NOT NULL <= ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7422
SELECT CAST( NULL AS SIGNED ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7422
SELECT CAST ( NULL AS INTEGER ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 ) / col1 + - col2 * - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7425
SELECT * FROM tab0 AS cor0 WHERE ( - col2 ) NOT BETWEEN - 7 AND CAST( NULL AS SIGNED ) * + 47 - - ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7425
SELECT * FROM tab0 AS cor0 WHERE ( - col2 ) NOT BETWEEN - 7 AND CAST ( NULL AS INTEGER ) * + 47 - - ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7426
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7426
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query II rowsort
SELECT + - col1, - col2 * - + 37 * + 17 AS col0 FROM tab1 AS cor0
----
-14
60384
-47
42772
-5
37111

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT MAX( DISTINCT + 5 ) - 98 AS col2 FROM tab0 AS cor0 WHERE NOT - 46 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7428
SELECT MAX ( DISTINCT + 5 ) - 98 AS col2 FROM tab0 AS cor0 WHERE NOT - 46 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT - MIN( DISTINCT + 68 ) FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-7429
SELECT - MIN ( DISTINCT + 68 ) FROM tab2
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7430
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-7430
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) < NULL
----

query I rowsort
SELECT 81 * - 9 * - 20 AS col2 FROM tab0
----
14580
14580
14580

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT + MIN( DISTINCT col2 ) FROM tab1 WHERE NOT - ( - 3 ) < + - col1
----
59

skipif mysql # not compatible
query I rowsort label-7432
SELECT + MIN ( DISTINCT col2 ) FROM tab1 WHERE NOT - ( - 3 ) < + - col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT ALL + ( COUNT( * ) ) * - 48 AS col1 FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-7433
SELECT ALL + ( COUNT ( * ) ) * - 48 AS col1 FROM tab1
----
-144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 77 ) col0 FROM tab0 AS cor0
----
77

query I rowsort
SELECT DISTINCT + + col1 * 42 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT 28 * + col0 FROM tab0 AS cor0
----
2436
2716
420

query I rowsort
SELECT + col0 * - - col0 AS col2 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7438
SELECT + CAST( - + 47 AS SIGNED ) FROM tab2 AS cor0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-7438
SELECT + CAST ( - + 47 AS INTEGER ) FROM tab2 AS cor0
----
-47
-47
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7439
SELECT ALL 99 DIV - COUNT( * ) FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-7439
SELECT ALL 99 / - COUNT ( * ) FROM tab0
----
-33

query I rowsort
SELECT DISTINCT - 41 * - + 40 AS col0 FROM tab1
----
1640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 col1 FROM tab0
----
77

query I rowsort
SELECT DISTINCT ( - 96 ) AS col2 FROM tab2
----
-96

query I rowsort
SELECT - col0 FROM tab1 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7444
SELECT ALL + COUNT( * ) DIV + 88 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL + COUNT ( * ) / + 88 AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL + col2 * + + col0 + - 20 AS col1 FROM tab0 WHERE NULL IS NULL
----
685
850
9583

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7446
SELECT + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( col1 ) NOT IN ( col1, ( + col1 ), - + col1, + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7446
SELECT + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( col1 ) NOT IN ( col1, ( + col1 ), - + col1, + CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT DISTINCT col0 + 0 + + 29 AS col1 FROM tab2 AS cor0
----
104
75
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7448
SELECT CAST( - col2 AS SIGNED ) + col0 + 94, col0 * + col1 AS col2 FROM tab0 AS cor0
----
171
1827
62
1215
92
97

skipif mysql # not compatible
query II rowsort label-7448
SELECT CAST ( - col2 AS INTEGER ) + col0 + 94, col0 * + col1 AS col2 FROM tab0 AS cor0
----
171
1827
62
1215
92
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 + + + col0 col0 FROM tab1 AS cor0
----
138
172
178

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT - - ( - - 84 ) + + COUNT( * ) FROM tab2 cor0
----
87

skipif mysql # not compatible
query I rowsort label-7450
SELECT - - ( - - 84 ) + + COUNT ( * ) FROM tab2 cor0
----
87

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7452
SELECT ALL COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7453
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

query II rowsort
SELECT ALL - col0 AS col0, 95 AS col1 FROM tab1 AS cor0
----
-51
95
-85
95
-91
95

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 62 - + 9 + - col1 * col1 NOT BETWEEN - col1 - - - col2 AND + col2
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7456
SELECT - + col1 col0, - CAST( + col0 AS SIGNED ) * - + col1 * - - col0 * - col2 - col1 - + col0 FROM tab0 AS cor0
----
-1
-931589
-21
-1589598
-81
-856671

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7456
SELECT - + col1 col0, - CAST ( + col0 AS INTEGER ) * - + col1 * - - col0 * - col2 - col1 - + col0 FROM tab0 AS cor0
----
-1
-931589
-21
-1589598
-81
-856671

query II rowsort
SELECT col2, - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 cor0 WHERE 89 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT ALL - MIN( DISTINCT 19 ) FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-7459
SELECT ALL - MIN ( DISTINCT 19 ) FROM tab2 AS cor0
----
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab2 AS cor0 WHERE NOT NULL <= + col2 / + + col2
----

query II rowsort
SELECT DISTINCT + - ( - col0 ) AS col0, + col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 92 - - col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 AS cor0 WHERE - col1 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT COUNT( DISTINCT + - 43 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7463
SELECT COUNT ( DISTINCT + - 43 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT DISTINCT - MAX( ( ( col1 ) ) ) * COUNT( * ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-7464
SELECT DISTINCT - MAX ( ( ( col1 ) ) ) * COUNT ( * ) FROM tab2
----
-231

query I rowsort
SELECT DISTINCT 5 * 35 * + - col2 FROM tab0
----
-17325
-1750
-8225

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT - MIN( DISTINCT - col0 ) * - 69 FROM tab1
----
-6279

skipif mysql # not compatible
query I rowsort label-7466
SELECT - MIN ( DISTINCT - col0 ) * - 69 FROM tab1
----
-6279

query I rowsort
SELECT DISTINCT 16 + + col2 * - 82 AS col0 FROM tab0 WHERE - col1 > - + col0
----
-804
-8102

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT - SUM( DISTINCT + 57 ) AS col2 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-7468
SELECT - SUM ( DISTINCT + 57 ) AS col2 FROM tab1
----
-57

query III rowsort
SELECT * FROM tab2 WHERE NOT - 5 + - 29 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col1 * + - ( col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( ( + col2 <> col2 ) )
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT + MIN( + 89 ) FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-7471
SELECT + MIN ( + 89 ) FROM tab0 AS cor0
----
89

query II rowsort
SELECT ALL - ( + + col1 ) AS col2, 69 AS col2 FROM tab2 AS cor0
----
-51
69
-67
69
-77
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 89 col1 FROM tab0 AS cor0
----
4183
8811
890

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col1 - 96 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 61 IN ( + col2 * + 85, 36 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 35 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT DISTINCT - MIN( - - ( col1 ) ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7477
SELECT DISTINCT - MIN ( - - ( col1 ) ) AS col0 FROM tab1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7478
SELECT ALL + 70 + - col0 - 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-7478
SELECT ALL + 70 + - col0 - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - col2 + ( col2 ) AS col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT - col1 + + - col1 AS col2 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT ALL - col0 + col2 + 5 FROM tab1 cor0
----
-18
-21
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT DISTINCT 10 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-7482
SELECT DISTINCT 10 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
30

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE + col2 <= - col0
----

query I rowsort
SELECT DISTINCT - col2 * 4 AS col1 FROM tab0 AS cor0
----
-188
-396
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-7485
SELECT DISTINCT 40 DIV - col1 + + - col1 FROM tab0 AS cor0
----
-22
-41
-81

skipif mysql # not compatible
query I rowsort label-7485
SELECT DISTINCT 40 / - col1 + + - col1 FROM tab0 AS cor0
----
-22
-41
-81

query III rowsort
SELECT * FROM tab1 WHERE ( + ( 43 ) ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7487
SELECT CAST( + - col0 AS SIGNED ) + - ( - 71 ) * - 13 FROM tab2
----
-969
-987
-998

skipif mysql # not compatible
query I rowsort label-7487
SELECT CAST ( + - col0 AS INTEGER ) + - ( - 71 ) * - 13 FROM tab2
----
-969
-987
-998

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7488
SELECT 12 * - 11 + - + MAX( + col2 ) DIV 61 AS col1 FROM tab2
----
-132

skipif mysql # not compatible
query I rowsort label-7488
SELECT 12 * - 11 + - + MAX ( + col2 ) / 61 AS col1 FROM tab2
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7489
SELECT DISTINCT CAST( - 85 AS SIGNED ) + CAST( + col1 AS SIGNED ) FROM tab2
----
-18
-34
-8

skipif mysql # not compatible
query I rowsort label-7489
SELECT DISTINCT CAST ( - 85 AS INTEGER ) + CAST ( + col1 AS INTEGER ) FROM tab2
----
-18
-34
-8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 93 * + col2 * - - col2 >= + 18
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT DISTINCT - + ( + - MIN( 18 ) ) AS col2 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-7491
SELECT DISTINCT - + ( + - MIN ( 18 ) ) AS col2 FROM tab0 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT DISTINCT 30 + - SUM( col0 ) + - - ( MIN( col1 ) ) FROM tab1 AS cor0 WHERE NOT ( NOT + ( col1 ) NOT BETWEEN col1 AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7492
SELECT DISTINCT 30 + - SUM ( col0 ) + - - ( MIN ( col1 ) ) FROM tab1 AS cor0 WHERE NOT ( NOT + ( col1 ) NOT BETWEEN col1 AND NULL )
----
NULL

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE NOT col0 + + 72 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 + - - 57 / - col1 FROM tab1 AS cor0 WHERE NOT NULL > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT MIN( ALL + - col2 ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-7495
SELECT MIN ( ALL + - col2 ) AS col1 FROM tab2 AS cor0
----
-58

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - 96 AND + col1 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT + MIN( DISTINCT - 19 ) AS col1 FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-7497
SELECT + MIN ( DISTINCT - 19 ) AS col1 FROM tab2
----
-19

query I rowsort
SELECT ALL 18 AS col1 FROM tab1 WHERE - + 96 IS NOT NULL
----
18
18
18

query II rowsort
SELECT + col1, ( + - col1 ) AS col0 FROM tab1
----
14
-14
47
-47
5
-5

query I rowsort
SELECT - + ( col2 ) * - + col2 FROM tab0 cor0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT + - 58 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-7501
SELECT + - 58 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-174

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7502
SELECT ALL + CAST( NULL AS DECIMAL ) AS col0, + 83 AS col0 FROM tab0 AS cor0
----
NULL
83
NULL
83
NULL
83

skipif mysql # not compatible
query II rowsort label-7502
SELECT ALL + CAST ( NULL AS REAL ) AS col0, + 83 AS col0 FROM tab0 AS cor0
----
NULL
83
NULL
83
NULL
83

query I rowsort
SELECT 0 + + col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT DISTINCT MIN( ALL - ( - 74 ) ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7504
SELECT DISTINCT MIN ( ALL - ( - 74 ) ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
74

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 + - 1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - col2 + - col1 AS col2 FROM tab1 WHERE ( NOT + col2 + + + ( col1 ) IS NULL )
----
21
54
82

query I rowsort
SELECT col0 * - - col2 * + col2 * - col1 + + 21 FROM tab1 AS cor0
----
-1479404
-19776827
-6580203

onlyif mysql # aggregate syntax: 
query II rowsort label-7508
SELECT COUNT( * ), 81 AS col1 FROM tab1 AS cor0
----
3
81

skipif mysql # not compatible
query II rowsort label-7508
SELECT COUNT ( * ), 81 AS col1 FROM tab1 AS cor0
----
3
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT ALL - + 47 + COUNT( * ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-7509
SELECT ALL - + 47 + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7510
SELECT ALL ( + 98 ) col1, - 68 * - col1, col2 + col0 * - col0 + + + col2 * + - col2 FROM tab0 AS cor0 WHERE ( NULL ) < ( - + CAST( + 46 AS SIGNED ) + + col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-7510
SELECT ALL ( + 98 ) col1, - 68 * - col1, col2 + col0 * - col0 + + + col2 * + - col2 FROM tab0 AS cor0 WHERE ( NULL ) < ( - + CAST ( + 46 AS INTEGER ) + + col1 )
----

query II rowsort
SELECT col2, - col1 * - ( col1 ) FROM tab2 AS cor0
----
23
2601
40
5929
58
4489

query I rowsort
SELECT ALL - + col1 + ( col1 ) AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 69 + + 1 * - col0 * - + col1 + + + col2 * + + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-2523
1686
67

query I rowsort
SELECT ALL + col0 * - col1 + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7515
SELECT + AVG ( + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7515
SELECT + AVG ( + CAST ( NULL AS REAL ) ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 - - + col2 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT DISTINCT + ( - MIN( - col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-7517
SELECT DISTINCT + ( - MIN ( - col0 ) ) FROM tab1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7518
SELECT 74 + col2 / + 63 + 77 + - CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7518
SELECT 74 + col2 / + 63 + 77 + - CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + + 6 FROM tab0
----
-81
-9
-91

query I rowsort
SELECT ALL 6 + - col1 AS col0 FROM tab2
----
-45
-61
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT - - MIN( DISTINCT + 50 ) FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-7521
SELECT - - MIN ( DISTINCT + 50 ) FROM tab0 AS cor0
----
50

query I rowsort
SELECT + 55 * - - col0 AS col0 FROM tab1 AS cor0
----
2805
4675
5005

query I rowsort
SELECT DISTINCT - col2 * 54 * - col1 AS col1 FROM tab0 AS cor0
----
11340
205578
5346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7524
SELECT - CAST( MIN( + 34 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-7524
SELECT - CAST ( MIN ( + 34 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-34

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * + col1 <= NULL
----

query II rowsort
SELECT - - ( + col1 ) * col2 + + col0 AS col0, col0 AS col2 FROM tab2 AS cor0
----
1219
46
3144
64
3961
75

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 * + ( + + col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + - col2 col0 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7529
SELECT + CAST( - 18 AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT 39 * + ( - 2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7529
SELECT + CAST ( - 18 AS REAL ) FROM tab2 AS cor0 WHERE NOT 39 * + ( - 2 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 65 + col1, col1 AS col0 FROM tab2 AS cor0 WHERE + 87 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7531
SELECT ALL ( + 43 ) col2, + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
43
NULL
43
NULL
43
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7531
SELECT ALL ( + 43 ) col2, + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
43
NULL
43
NULL
43
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7532
SELECT DISTINCT col0 / CAST( NULL AS DECIMAL ), 53 col1 FROM tab0
----
NULL
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7532
SELECT DISTINCT col0 / CAST ( NULL AS REAL ), 53 col1 FROM tab0
----
NULL
53

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7533
SELECT ALL * FROM tab1 WHERE 9 IN ( + col2 - - - ( col2 ), - ( + - CAST( - + col0 AS DECIMAL ) ) + - col2 + + 60, + 24 + + - col2, + col2, - col0, - ( - 47 ) + col1 )
----

skipif mysql # not compatible
query III rowsort label-7533
SELECT ALL * FROM tab1 WHERE 9 IN ( + col2 - - - ( col2 ), - ( + - CAST ( - + col0 AS REAL ) ) + - col2 + + 60, + 24 + + - col2, + col2, - col0, - ( - 47 ) + col1 )
----

query II rowsort
SELECT ALL col2, 55 AS col2 FROM tab2 WHERE ( col2 BETWEEN - col0 AND 44 )
----
23
55
40
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT - MIN( + 22 ) AS col1 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-7535
SELECT - MIN ( + 22 ) AS col1 FROM tab2
----
-22

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + + + col0 * + 40 = NULL
----

query II rowsort
SELECT 30 AS col1, 3 FROM tab1
----
30
3
30
3
30
3

query I rowsort
SELECT ALL - col0 + + col1 + + 61 * - - col2 AS col1 FROM tab2 AS cor0
----
1408
2453
3530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7539
SELECT DISTINCT + 85 + + + 29 * + ( + CAST( NULL AS SIGNED ) ) + CAST( - ( + + 62 ) AS SIGNED ) * + + 3 * - ( + + 30 ) * + - col2 + + col0 + + 68 + + col2 * + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7539
SELECT DISTINCT + 85 + + + 29 * + ( + CAST ( NULL AS INTEGER ) ) + CAST ( - ( + + 62 ) AS INTEGER ) * + + 3 * - ( + + 30 ) * + - col2 + + col0 + + 68 + + col2 * + col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - col0 + - - col2 + + - 95 * + col2 FROM tab2 AS cor0
----
-2208
-3824
-5527

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7541
SELECT DISTINCT 72 / col2 + + + CAST( NULL AS SIGNED ) + - ( + 64 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7541
SELECT DISTINCT 72 / col2 + + + CAST ( NULL AS INTEGER ) + - ( + 64 ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT DISTINCT 95 * + COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7542
SELECT DISTINCT 95 * + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col0 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7544
SELECT ALL + col0 DIV 38 + + + col1 * - - CAST( - col1 AS SIGNED ) + + col2 FROM tab0 AS cor0
----
-429
-6514
100

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL + col0 / 38 + + + col1 * - - CAST ( - col1 AS INTEGER ) + + col2 FROM tab0 AS cor0
----
-429
-6514
100

query I rowsort
SELECT col1 + ( - col0 ) * - col1 AS col1 FROM tab0 AS cor0
----
1296
1848
98

query II rowsort
SELECT ALL - col0, 69 FROM tab1 WHERE NOT NULL <> - ( 1 ) + - 18
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7547
SELECT SUM( + col2 ) DIV + + COUNT( * ) + 75, COUNT( * ) AS col2 FROM tab1
----
149
3

skipif mysql # not compatible
query II rowsort label-7547
SELECT SUM ( + col2 ) / + + COUNT ( * ) + 75, COUNT ( * ) AS col2 FROM tab1
----
149
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT ( - - SUM( + 9 ) ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-7548
SELECT ( - - SUM ( + 9 ) ) FROM tab2
----
27

query I rowsort
SELECT - ( - ( - + col2 ) ) FROM tab2
----
-23
-40
-58

query II rowsort
SELECT ALL - col1, - col2 * 45 AS col0 FROM tab0
----
-1
-4455
-21
-450
-81
-2115

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7551
SELECT ALL + 0 DIV + - col1 + + CAST( - 37 AS SIGNED ) + 42 AS col1 FROM tab2
----
5
5
5

skipif mysql # not compatible
query I rowsort label-7551
SELECT ALL + 0 / + - col1 + + CAST ( - 37 AS INTEGER ) + 42 AS col1 FROM tab2
----
5
5
5

query I rowsort
SELECT ALL 88 + - + ( col0 ) AS col2 FROM tab0
----
-9
1
73

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + 96 / - col1 * - - col0, col0 )
----

query I rowsort
SELECT + col1 - - - col1 + + ( col1 ) * - col0 AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE + - col2 * - col2 * 67 NOT IN ( col1 )
----
-23
-40
-58

query I rowsort
SELECT + 4 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7557
SELECT - ( - COUNT( DISTINCT - - col2 ) ) DIV + COUNT( * ) + + COUNT( ALL + + 68 ) FROM tab1 cor0
----
4

skipif mysql # not compatible
query I rowsort label-7557
SELECT - ( - COUNT ( DISTINCT - - col2 ) ) / + COUNT ( * ) + + COUNT ( ALL + + 68 ) FROM tab1 cor0
----
4

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7559
SELECT ALL - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7559
SELECT ALL - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col2 * - - 93 FROM tab0 AS cor0
----
4371
9207
930

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 NOT IN ( col1 )
----

query II rowsort
SELECT DISTINCT + col2 AS col2, 32 FROM tab1
----
59
32
68
32
96
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT - MAX( ALL + + col2 ) * - - AVG ( - col0 ) col1 FROM tab1 WHERE NOT col2 / col0 >= - + col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7563
SELECT - MAX ( ALL + + col2 ) * - - AVG ( - col0 ) col1 FROM tab1 WHERE NOT col2 / col0 >= - + col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 * + + 50 col2 FROM tab1
----
4800
4800
4800

query II rowsort
SELECT col1 AS col2, - col2 * - + ( + 16 ) FROM tab0
----
1
1584
21
160
81
752

query I rowsort
SELECT ALL ( 61 ) AS col2 FROM tab2
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT DISTINCT COUNT( - - 20 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7567
SELECT DISTINCT COUNT ( - - 20 ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col2 + - col2 NOT BETWEEN - 10 AND col2 + - ( + col2 ) * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT DISTINCT + + 85 + + + 89 + - 38 * + - COUNT( * ) FROM tab2 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-7569
SELECT DISTINCT + + 85 + + + 89 + - 38 * + - COUNT ( * ) FROM tab2 AS cor0
----
288

query I rowsort
SELECT - col1 * - col1 * col1 + + - col1 FROM tab0 AS cor0
----
0
531360
9240

query I rowsort
SELECT col1 + + + 71 AS col2 FROM tab1 AS cor0
----
118
76
85

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE - 96 = 63
----

query I rowsort
SELECT DISTINCT + 13 FROM tab1 WHERE NOT + 34 * + - col2 + - - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = + - ( - col2 )
----

query I rowsort
SELECT + col1 + col0 AS col2 FROM tab1 cor0 WHERE - col0 * 4 + + col1 IS NOT NULL
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT ALL - - COUNT( * ) + - 96 col2 FROM tab1 AS cor0 WHERE NOT - 63 <= - col2
----
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7576
SELECT ALL - - COUNT ( * ) + - 96 col2 FROM tab1 AS cor0 WHERE NOT - 63 <= - col2
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7577
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 NOT IN ( - col1 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7577
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 NOT IN ( - col1 + CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT DISTINCT 24 + - col0, 20 AS col0 FROM tab2 AS cor0
----
-22
20
-40
20
-51
20

query I rowsort
SELECT - + col2 * - + 3 * - col2 AS col1 FROM tab1 cor0
----
-10443
-13872
-27648

query I rowsort
SELECT ALL - col0 - + col1 * - col2 FROM tab1 AS cor0
----
1293
210
3105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 35 + - col0 col0, 51 AS col0 FROM tab0 AS cor0
----
-122
51
-132
51
-50
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 - 85 + + col0 col1, col0 FROM tab1
----
59
85
62
51
74
91

query I rowsort
SELECT ALL 80 - + col1 AS col1 FROM tab2
----
13
29
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 70 col0 FROM tab0
----
3290
6930
700

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT NULL NOT BETWEEN + col1 * + col2 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT - - COUNT( * ) * COUNT( * ) AS col1 FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-7586
SELECT - - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT - COUNT( ALL - ( + - 78 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7587
SELECT - COUNT ( ALL - ( + - 78 ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 53 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
53

query I rowsort
SELECT - + 61 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT col0 NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT col2 * + 66 * + + 24 * col0 FROM tab1 AS cor0
----
7755264
7943760
9801792

onlyif mysql # DIV for integer division: 
query II rowsort label-7592
SELECT ALL + col1 DIV - 79 AS col2, col2 + 87 FROM tab0 AS cor0
----
-1
134
0
186
0
97

skipif mysql # not compatible
query II rowsort label-7592
SELECT ALL + col1 / - 79 AS col2, col2 + 87 FROM tab0 AS cor0
----
-1
134
0
186
0
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - 83 NOT BETWEEN NULL AND + 88 )
----

query II rowsort
SELECT + 95 AS col0, col0 FROM tab1 AS cor0 WHERE NOT ( + col1 + col1 * col0 IS NULL )
----
95
51
95
85
95
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT + - SUM( DISTINCT + - col0 ) AS col0 FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-7595
SELECT + - SUM ( DISTINCT + - col0 ) AS col0 FROM tab0 cor0
----
199

query I rowsort
SELECT DISTINCT + ( - + col1 ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query II rowsort
SELECT 76 * - col1, - ( - 73 ) AS col2 FROM tab2 AS cor0
----
-3876
73
-5092
73
-5852
73

query II rowsort
SELECT DISTINCT col2 AS col0, + 24 FROM tab0 cor0
----
10
24
47
24
99
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + col2 ) * + - col1 col0 FROM tab2 cor0
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab2 WHERE NOT + + col2 NOT IN ( - col1 * + + col0, + col2 * + 60, - col1, + - 77 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - - col2 + - col0 * col1 ) = - col0 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 65 + - col2 AS col2 FROM tab2
----
25
42
7

onlyif mysql # aggregate syntax: 
query II rowsort label-7603
SELECT + - COUNT( * ), + COUNT( * ) AS col2 FROM tab0 WHERE NOT col1 * - col1 IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-7603
SELECT + - COUNT ( * ), + COUNT ( * ) AS col2 FROM tab0 WHERE NOT col1 * - col1 IS NOT NULL
----
0
0

query I rowsort
SELECT + col2 * col2 AS col1 FROM tab0 WHERE - col0 NOT BETWEEN NULL AND + 44 * + - ( 37 ) - + col1 + - + col0
----
100
2209
9801

query I rowsort
SELECT ALL ( - 76 ) * col1 * + 54 + - col2 FROM tab2
----
-209327
-275026
-316048

onlyif mysql # DIV for integer division: 
query I rowsort label-7606
SELECT DISTINCT 5 + - + 87 * col2 DIV - + 20 + - 11 AS col0 FROM tab1
----
250
289
411

skipif mysql # not compatible
query I rowsort label-7606
SELECT DISTINCT 5 + - + 87 * col2 / - + 20 + - 11 AS col0 FROM tab1
----
250
289
411

onlyif mysql # aggregate syntax: 
query II rowsort label-7607
SELECT ALL - COUNT( * ) * + COUNT( * ), + COUNT( * ) AS col1 FROM tab2
----
-9
3

skipif mysql # not compatible
query II rowsort label-7607
SELECT ALL - COUNT ( * ) * + COUNT ( * ), + COUNT ( * ) AS col1 FROM tab2
----
-9
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7608
SELECT DISTINCT 32 + + + CAST( NULL AS SIGNED ) + col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7608
SELECT DISTINCT 32 + + + CAST ( NULL AS INTEGER ) + col0 FROM tab0
----
NULL

query I rowsort
SELECT + ( + col0 ) AS col0 FROM tab0 cor0 WHERE ( + col1 ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL + + 14 + - - 28 + - 80 AS col1 FROM tab0 cor0
----
-38
-38
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7611
SELECT ALL + - col2 * - col1 + - - 41 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7611
SELECT ALL + - col2 * - col1 + - - 41 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7612
SELECT - 23 - + CAST( - col2 AS SIGNED ) - + 95 AS col2 FROM tab1
----
-22
-50
-59

skipif mysql # not compatible
query I rowsort label-7612
SELECT - 23 - + CAST ( - col2 AS INTEGER ) - + 95 AS col2 FROM tab1
----
-22
-50
-59

query I rowsort
SELECT col2 * ( + 0 ) * - col2 + + 77 + + + col2 * - col1 FROM tab1
----
-1267
-218
-3119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7614
SELECT + col2 + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7614
SELECT + col2 + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7615
SELECT DISTINCT - COUNT( * ) AS col1, 16 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
16

skipif mysql # not compatible
query II rowsort label-7615
SELECT DISTINCT - COUNT ( * ) AS col1, 16 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7616
SELECT ALL CAST( NULL AS DECIMAL ) * + COUNT( * ) + + AVG ( col2 ) + - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7616
SELECT ALL CAST ( NULL AS REAL ) * + COUNT ( * ) + + AVG ( col2 ) + - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 53 * + col0 AS col2 FROM tab2 AS cor0 WHERE col0 + + - col1 IS NOT NULL
----
2438
3392
3975

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT 85 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-7618
SELECT 85 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
88

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7620
SELECT DISTINCT - - col2 + - ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7620
SELECT DISTINCT - - col2 + - ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT - + 69, col1 AS col1 FROM tab1 AS cor0
----
-69
14
-69
47
-69
5

query I rowsort
SELECT DISTINCT - col1 - - - col0 AS col1 FROM tab2 AS cor0
----
-141
-142
-97

query II rowsort
SELECT DISTINCT col2 + ( - col1 ) - + + 98, ( - + col1 ) AS col1 FROM tab1
----
-16
-14
-44
-5
-77
-47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - ( + col0 ) NOT BETWEEN NULL AND + + 80 * + 9
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 66 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 WHERE NOT + col0 + + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT DISTINCT - SUM( + col0 ) FROM tab0 WHERE NOT NULL = - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7627
SELECT DISTINCT - SUM ( + col0 ) FROM tab0 WHERE NOT NULL = - col0
----
NULL

query I rowsort
SELECT - col1 * + - col2 * col0 FROM tab0 AS cor0
----
18270
57105
9603

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 88 * + 89 <= + 46 - col0 * - + col1 / + - 42
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - - col1 ) * 1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + col1 + - col2 FROM tab1 WHERE - + col0 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 3 * - col0 FROM tab1
----
153
255
273

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT DISTINCT - SUM( ALL + + col2 ) AS col0 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-7633
SELECT DISTINCT - SUM ( ALL + + col2 ) AS col0 FROM tab1
----
-223

onlyif mysql # DIV for integer division: 
query I rowsort label-7634
SELECT DISTINCT - + col0 DIV - 20 + - col1 AS col1 FROM tab0 cor0
----
-17
-81
3

skipif mysql # not compatible
query I rowsort label-7634
SELECT DISTINCT - + col0 / - 20 + - col1 AS col1 FROM tab0 cor0
----
-17
-81
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT ALL - - ( + COUNT( * ) ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7635
SELECT ALL - - ( + COUNT ( * ) ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT ALL COUNT( * ) * - - 96 + - - ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL COUNT ( * ) * - - 96 + - - ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
291

query I rowsort
SELECT ALL - 80 FROM tab2 AS cor0 WHERE NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT - 78 * MIN( ALL - + 94 ) AS col1 FROM tab0 AS cor0
----
7332

skipif mysql # not compatible
query I rowsort label-7639
SELECT - 78 * MIN ( ALL - + 94 ) AS col1 FROM tab0 AS cor0
----
7332

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7640
SELECT ALL + + 46 * ( + 4 ) * col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7640
SELECT ALL + + 46 * ( + 4 ) * col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + + col1 + - col2 + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( col2 * - + 69 ) BETWEEN ( col1 ) AND col1 / - 82
----
151
2232
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7642
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7642
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query II rowsort
SELECT + ( + col2 ) * + col0 AS col2, + ( - col2 ) FROM tab1 AS cor0
----
4896
-96
5015
-59
6188
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7644
SELECT COUNT( DISTINCT - col0 ) * + - 95 / - 98 + + CAST( NULL AS SIGNED ) + + + 75 - + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7644
SELECT COUNT ( DISTINCT - col0 ) * + - 95 / - 98 + + CAST ( NULL AS INTEGER ) + + + 75 - + COUNT ( * ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - col2 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE ( NOT 52 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( - col2 ) * - ( - 5 ) + - col1 <= - ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 41 * + col2 + col1 FROM tab0
----
2008
4060
431

query I rowsort
SELECT + + 53 * - col1 + - - col1 AS col0 FROM tab2 AS cor0
----
-2652
-3484
-4004

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT - 39 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-7650
SELECT - 39 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-7651
SELECT - col0 + col0 DIV col2 + col0 - + col1 AS col1 FROM tab0 AS cor0
----
-1
-13
-81

skipif mysql # not compatible
query I rowsort label-7651
SELECT - col0 + col0 / col2 + col0 - + col1 AS col1 FROM tab0 AS cor0
----
-1
-13
-81

query I rowsort
SELECT + + col0 + 21 FROM tab1 AS cor0
----
106
112
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT - MAX( ALL - col2 ) AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-7653
SELECT - MAX ( ALL - col2 ) AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + 22
----
NULL

query I rowsort
SELECT ALL + 30 + - col2 AS col1 FROM tab2 AS cor0
----
-10
-28
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7655
SELECT - - CAST( - 37 AS SIGNED ) + + col0 AS col1 FROM tab1 AS cor0
----
14
48
54

skipif mysql # not compatible
query I rowsort label-7655
SELECT - - CAST ( - 37 AS INTEGER ) + + col0 AS col1 FROM tab1 AS cor0
----
14
48
54

query I rowsort
SELECT DISTINCT 89 * + col1 + col0 + - ( + - 10 ) FROM tab2 AS cor0
----
4595
6048
6927

onlyif mysql # DIV for integer division: 
query I rowsort label-7657
SELECT + - ( - col1 ) DIV - col2 - col2 FROM tab0 AS cor0
----
-12
-48
-99

skipif mysql # not compatible
query I rowsort label-7657
SELECT + - ( - col1 ) / - col2 - col2 FROM tab0 AS cor0
----
-12
-48
-99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7658
SELECT + 89 - - COUNT( * ) / 57 * + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7658
SELECT + 89 - - COUNT ( * ) / 57 * + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 + + ( 77 ) FROM tab1 AS cor0
----
-14
-8
26

query III rowsort
SELECT ALL * FROM tab2 WHERE - 86 + col1 IS NULL
----

query I rowsort
SELECT ALL + - col0 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7662
SELECT - ( - - CAST( col1 AS SIGNED ) ) AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7662
SELECT - ( - - CAST ( col1 AS INTEGER ) ) AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-7663
SELECT DISTINCT COUNT( * ) AS col2, 0 + - 2 FROM tab0 AS cor0
----
3
-2

skipif mysql # not compatible
query II rowsort label-7663
SELECT DISTINCT COUNT ( * ) AS col2, 0 + - 2 FROM tab0 AS cor0
----
3
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-7664
SELECT + 11 DIV 17 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7664
SELECT + 11 / 17 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 52 + - ( - + 68 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9a76417a0e660b9e47db42d33f8268c3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7666
SELECT COUNT( * ) DIV + - 62 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7666
SELECT COUNT ( * ) / + - 62 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT DISTINCT + COUNT( col1 ) + 49 FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-7667
SELECT DISTINCT + COUNT ( col1 ) + 49 FROM tab2
----
52

query I rowsort
SELECT ( col1 ) * + + 87 AS col1 FROM tab0
----
1827
7047
87

query I rowsort
SELECT - + col2 * col2 * ( + + 71 ) FROM tab1 AS cor0
----
-247151
-328304
-654336

onlyif mysql # DIV for integer division: 
query I rowsort label-7670
SELECT DISTINCT - - 36 DIV - col0 + - - col1 * - col0 FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-7670
SELECT DISTINCT - - 36 / - col0 + - - col1 * - col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7671
SELECT ALL - + 10 DIV - + COUNT( * ) + 98 AS col0 FROM tab0 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL - + 10 / - + COUNT ( * ) + 98 AS col0 FROM tab0 AS cor0
----
101

query I rowsort
SELECT - 52 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT - 40 AS col0 FROM tab1 AS cor0 WHERE ( col1 ) IS NOT NULL
----
-40
-40
-40

query I rowsort
SELECT + + 47 + 52 * col2 AS col2 FROM tab1 AS cor0
----
3115
3583
5039

query I rowsort
SELECT DISTINCT + 13 AS col2 FROM tab1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT + col1 * - col1 + col2 * 66 + col2 FROM tab2
----
-1060
-3249
-603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7677
SELECT DISTINCT + col1 FROM tab0 WHERE NOT col1 * - 97 * ( CAST( - col0 AS SIGNED ) ) IS NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7677
SELECT DISTINCT + col1 FROM tab0 WHERE NOT col1 * - 97 * ( CAST ( - col0 AS INTEGER ) ) IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7678
SELECT col2 / + + col1 + - - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7678
SELECT col2 / + + col1 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 82, + ( - + 11 ) col0 FROM tab2
----
82
-11

query I rowsort
SELECT + ( col2 ) + - - col2 * col2 - col1 + - 35 AS col0 FROM tab2
----
1528
3320
466

query I rowsort
SELECT - 98 * + col2 + - col1 FROM tab2
----
-2305
-3997
-5751

onlyif mysql # DIV for integer division: 
query I rowsort label-7682
SELECT DISTINCT 57 DIV - - col0 + - col2 * - + 99 + col1 FROM tab1
----
5846
6779
9519

skipif mysql # not compatible
query I rowsort label-7682
SELECT DISTINCT 57 / - - col0 + - col2 * - + 99 + col1 FROM tab1
----
5846
6779
9519

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7683
SELECT - 97 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7683
SELECT - 97 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7684
SELECT ALL col2 AS col0, + 73 DIV - ( + col1 ) FROM tab1
----
59
-14
68
-1
96
-5

skipif mysql # not compatible
query II rowsort label-7684
SELECT ALL col2 AS col0, + 73 / - ( + col1 ) FROM tab1
----
59
-14
68
-1
96
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7685
SELECT DISTINCT - + 16 * + CAST( NULL AS SIGNED ) + col0 * - col0 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7685
SELECT DISTINCT - + 16 * + CAST ( NULL AS INTEGER ) + col0 * - col0 AS col2 FROM tab0 AS cor0
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) NOT BETWEEN 2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT DISTINCT COUNT( * ) - + + 76 col0 FROM tab2
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7687
SELECT DISTINCT COUNT ( * ) - + + 76 col0 FROM tab2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT ALL - SUM( ALL - 19 ) * + + 55 FROM tab0
----
3135

skipif mysql # not compatible
query I rowsort label-7688
SELECT ALL - SUM ( ALL - 19 ) * + + 55 FROM tab0
----
3135

query I rowsort
SELECT ALL - 44 - + + col1 FROM tab1
----
-49
-58
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-7690
SELECT - col2 DIV + 35 + col2 FROM tab0
----
10
46
97

skipif mysql # not compatible
query I rowsort label-7690
SELECT - col2 / + 35 + col2 FROM tab0
----
10
46
97

query I rowsort
SELECT DISTINCT ( + col2 ) * - - 58 * + 81 * - col1 FROM tab1
----
-1385910
-15014808
-6314112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 + - col2 * + col2 col2 FROM tab2
----
-1551
-3315
-480

query I rowsort
SELECT DISTINCT - + col0 * + - 17 * 31 FROM tab1 AS cor0
----
26877
44795
47957

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7694
SELECT DISTINCT - + 17 * - CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7694
SELECT DISTINCT - + 17 * - CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
51

query II rowsort
SELECT DISTINCT - 29 AS col1, - 53 AS col2 FROM tab2 cor0
----
-29
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT + ( - + SUM( - - col1 ) ) col1 FROM tab2
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7696
SELECT + ( - + SUM ( - - col1 ) ) col1 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT ALL COUNT( ALL 40 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7697
SELECT ALL COUNT ( ALL 40 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT + SUM( ALL + - 77 ) * - 71 col1 FROM tab2 AS cor0
----
16401

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7698
SELECT + SUM ( ALL + - 77 ) * - 71 col1 FROM tab2 AS cor0
----
16401

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT ALL - MIN( - 75 ) AS col1 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7699
SELECT ALL - MIN ( - 75 ) AS col1 FROM tab0 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 66 col2 FROM tab1 AS cor0
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT DISTINCT + COUNT( * ) + - - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= - col0
----
0

skipif mysql # not compatible
query I rowsort label-7701
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= - col0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * - 17 + + col2 + + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 + - + col1 FROM tab2 cor0
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7704
SELECT + CAST( - 75 AS SIGNED ) FROM tab0 AS cor0
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort label-7704
SELECT + CAST ( - 75 AS INTEGER ) FROM tab0 AS cor0
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT ALL SUM( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-7705
SELECT ALL SUM ( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
-227

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col1 AS col1, col1 AS col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, col2 AS col0 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT - - ( - 2 ) FROM tab1 AS cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7710
SELECT DISTINCT + + COUNT( * ) + MIN( - col2 ) DIV - - ( - COUNT( * ) ) + COUNT( * ) FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-7710
SELECT DISTINCT + + COUNT ( * ) + MIN ( - col2 ) / - - ( - COUNT ( * ) ) + COUNT ( * ) FROM tab0 AS cor0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-7711
SELECT col0 DIV col2 * - - col2 + col2 * + + ( + - col2 ) AS col1 FROM tab2
----
-1560
-3306
-483

skipif mysql # not compatible
query I rowsort label-7711
SELECT col0 / col2 * - - col2 + col2 * + + ( + - col2 ) AS col1 FROM tab2
----
-1560
-3306
-483

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE + - col1 / 88 >= + 52 * + 82
----

query I rowsort
SELECT col0 + + col2 + + col2 - + col2 FROM tab2 WHERE + + col0 = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7714
SELECT ALL + - 35 DIV - 36 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL + - 35 / - 36 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT ALL - COUNT( * ) AS col0 FROM tab2, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7715
SELECT ALL - COUNT ( * ) AS col0 FROM tab2, tab0 AS cor0
----
-9

query III rowsort
SELECT * FROM tab0 WHERE ( NULL < NULL )
----

query I rowsort
SELECT + - col2 - - - col2 / + col0 AS col0 FROM tab0 WHERE NOT NULL BETWEEN - - 12 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT + - 14 * COUNT( * ) FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-7718
SELECT + - 14 * COUNT ( * ) FROM tab0 AS cor0
----
-42

query I rowsort
SELECT ALL - 85 - + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 * - + col1 + - col1 IS NOT NULL
----

query I rowsort
SELECT + 80 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
80
80
80

onlyif mysql # DIV for integer division: 
query I rowsort label-7721
SELECT col2 DIV + 33 + - + col2 AS col2 FROM tab0 AS cor0
----
-10
-46
-96

skipif mysql # not compatible
query I rowsort label-7721
SELECT col2 / + 33 + - + col2 AS col2 FROM tab0 AS cor0
----
-10
-46
-96

query II rowsort
SELECT + - 66, + col1 AS col0 FROM tab1 cor0
----
-66
14
-66
47
-66
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 13 col1 FROM tab0 AS cor0
----
13
13
13

query I rowsort
SELECT ALL + 78 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 5 ) / + - col1 + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + ( - - 25 ) FROM tab1
----
25
25
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7727
SELECT ALL + 99 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7727
SELECT ALL + 99 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 54 col0 FROM tab2
----
1242
2160
3132

query II rowsort
SELECT 87 AS col0, - col1 AS col1 FROM tab2
----
87
-51
87
-67
87
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7730
SELECT DISTINCT - CAST( - SUM( + + CAST( - - col1 AS SIGNED ) ) AS SIGNED ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7730
SELECT DISTINCT - CAST ( - SUM ( + + CAST ( - - col1 AS INTEGER ) ) AS INTEGER ) FROM tab2
----
195

query II rowsort
SELECT col0, + 24 * - + col0 AS col2 FROM tab1
----
51
-1224
85
-2040
91
-2184

query I rowsort
SELECT DISTINCT col2 * + - 37 FROM tab1
----
-2183
-2516
-3552

query I rowsort
SELECT - col2 * + - 66 * 91 AS col1 FROM tab1 AS cor0
----
354354
408408
576576

query I rowsort
SELECT - AVG ( col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7735
SELECT - - CAST( 92 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

skipif mysql # not compatible
query I rowsort label-7735
SELECT - - CAST ( 92 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT 1 + - - col2 FROM tab0
----
100
11
48

query I rowsort
SELECT - 25 + + col1 AS col1 FROM tab0 AS cor0
----
-24
-4
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7738
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7738
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col2 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7739
SELECT + 9 * + 41 + + + CAST( NULL AS SIGNED ) - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7739
SELECT + 9 * + 41 + + + CAST ( NULL AS INTEGER ) - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 81 + - 45 + - - col2 * - 98 * + - col2 / - + 88 * - - 88 FROM tab1 AS cor0 WHERE NOT - col1 <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7741
SELECT * FROM tab1 AS cor0 WHERE CAST( + - 25 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7741
SELECT * FROM tab1 AS cor0 WHERE CAST ( + - 25 AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT DISTINCT - 4 - + COUNT( * ) + - COUNT( * ) * - COUNT( 32 ) * - MAX( - col0 ) AS col0 FROM tab0
----
128

skipif mysql # not compatible
query I rowsort label-7742
SELECT DISTINCT - 4 - + COUNT ( * ) + - COUNT ( * ) * - COUNT ( 32 ) * - MAX ( - col0 ) AS col0 FROM tab0
----
128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 76, col1 col0 FROM tab0
----
76
1
76
21
76
81

query III rowsort
SELECT * FROM tab2 WHERE ( NOT 68 = col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7745
SELECT COUNT( * ) * CAST( COUNT( * ) AS SIGNED ) * + COUNT( * ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-7745
SELECT COUNT ( * ) * CAST ( COUNT ( * ) AS INTEGER ) * + COUNT ( * ) FROM tab1
----
27

query II rowsort
SELECT col2 * ( - 62 ) AS col0, + col0 AS col2 FROM tab2
----
-1426
46
-2480
64
-3596
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7747
SELECT - 32 DIV - COUNT( * ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-7747
SELECT - 32 / - COUNT ( * ) AS col2 FROM tab0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, ( - - col2 ) col2 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT 34 + + col1 AS col1 FROM tab0 WHERE 43 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT ( + 54 ) * - col2 + + col0 IS NOT NULL ) OR - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 + col0 - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7752
SELECT col0 DIV + + CAST( + col2 AS SIGNED ) - - col1 AS col2 FROM tab2 AS cor0
----
53
68
78

skipif mysql # not compatible
query I rowsort label-7752
SELECT col0 / + + CAST ( + col2 AS INTEGER ) - - col1 AS col2 FROM tab2 AS cor0
----
53
68
78

query I rowsort
SELECT ALL - - 75 - - col1 * + 26 FROM tab2 AS cor0
----
1401
1817
2077

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT DISTINCT COUNT( ALL 37 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7754
SELECT DISTINCT COUNT ( ALL 37 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT - col2 + col0 * - col0 AS col2 FROM tab1
----
-2697
-7284
-8349

query I rowsort
SELECT ALL 49 + col1 FROM tab1
----
54
63
96

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN 27 + - 14 AND + col2 + - col2 * 33
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7758
SELECT DISTINCT CAST( + MIN( col2 ) AS SIGNED ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7758
SELECT DISTINCT CAST ( + MIN ( col2 ) AS INTEGER ) FROM tab2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-7759
SELECT - col2 * + 29 - + col0 DIV - col0 AS col0 FROM tab0
----
-1362
-2870
-289

skipif mysql # not compatible
query I rowsort label-7759
SELECT - col2 * + 29 - + col0 / - col0 AS col0 FROM tab0
----
-1362
-2870
-289

query I rowsort
SELECT ALL + ( + 56 ) + - col2 AS col0 FROM tab1 WHERE NOT 41 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 13 / col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT COUNT( * ) - 92 AS col0 FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-7762
SELECT COUNT ( * ) - 92 AS col0 FROM tab2
----
-89

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT NULL >= col0
----

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE + ( col1 ) * - 43 + - col1 * ( col2 * col0 ) <= NULL
----

query I rowsort
SELECT ALL 56 AS col1 FROM tab1 WHERE - col2 < NULL
----

query I rowsort
SELECT ALL 71 + - col0 * col2 FROM tab1
----
-4825
-4944
-6117

query III rowsort
SELECT ALL * FROM tab0 WHERE 18 - - 78 / - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7768
SELECT ALL * FROM tab2 WHERE CAST( NULL AS SIGNED ) * col0 BETWEEN 72 / col1 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7768
SELECT ALL * FROM tab2 WHERE CAST ( NULL AS INTEGER ) * col0 BETWEEN 72 / col1 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7769
SELECT ALL col1 * ( col0 ) + + 74 DIV col2 AS col1 FROM tab1
----
426
4278
714

skipif mysql # not compatible
query I rowsort label-7769
SELECT ALL col1 * ( col0 ) + + 74 / col2 AS col1 FROM tab1
----
426
4278
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7770
SELECT DISTINCT + CAST( - 46 AS SIGNED ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-7770
SELECT DISTINCT + CAST ( - 46 AS INTEGER ) FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7771
SELECT col2 * - col0 FROM tab1 WHERE NOT - col2 NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7771
SELECT col2 * - col0 FROM tab1 WHERE NOT - col2 NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7772
SELECT - COUNT( * ) + 17 DIV 76 AS col0 FROM tab0 WHERE ( NULL ) BETWEEN ( + col2 ) AND col2
----
0

skipif mysql # not compatible
query I rowsort label-7772
SELECT - COUNT ( * ) + 17 / 76 AS col0 FROM tab0 WHERE ( NULL ) BETWEEN ( + col2 ) AND col2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * - 20 BETWEEN ( - 44 - - col1 ) AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 50 * + col2 + col2 AS col1 FROM tab0
----
2397
5049
510

query III rowsort
SELECT * FROM tab1 WHERE - col2 + col0 < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT COUNT( * ) FROM tab1 WHERE NOT 53 >= - col2 + col2
----
0

skipif mysql # not compatible
query I rowsort label-7777
SELECT COUNT ( * ) FROM tab1 WHERE NOT 53 >= - col2 + col2
----
0

query I rowsort
SELECT ALL + 20 * col0 AS col1 FROM tab1
----
1020
1700
1820

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( - col2 - - col1 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT - COUNT( * ) + - 88 col0 FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7781
SELECT - COUNT ( * ) + - 88 col0 FROM tab0 AS cor0
----
-91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( 72 ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT + 76 + COUNT( * ) FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-7783
SELECT + 76 + COUNT ( * ) FROM tab0
----
79

query I rowsort
SELECT ALL - 53 * + 23 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1219
-1219
-1219

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE ( NULL ) NOT IN ( 73 )
----

query I rowsort
SELECT DISTINCT 25 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 79 ) col0 FROM tab0 cor0
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT - + MIN( ( col1 ) ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7788
SELECT - + MIN ( ( col1 ) ) FROM tab2 AS cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7790
SELECT - 85 DIV + col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-7790
SELECT - 85 / + col0 FROM tab0 AS cor0
----
-5
0
0

query I rowsort
SELECT ALL + 17 * col2 + + col0 AS col2 FROM tab1 AS cor0
----
1088
1247
1683

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT ALL - + COUNT( ALL col1 ) + 97 FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-7792
SELECT ALL - + COUNT ( ALL col1 ) + 97 FROM tab1 AS cor0
----
94

query I rowsort
SELECT ALL - 80 + col2 * - col2 FROM tab0 AS cor0
----
-180
-2289
-9881

query I rowsort
SELECT DISTINCT + ( - col1 ) + + col1 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 7 / + col2 + + 11 AND ( col0 )
----

query I rowsort
SELECT ALL + 10 + - 48 AS col1 FROM tab0 AS cor0
----
-38
-38
-38

query I rowsort
SELECT 57 FROM tab0 AS cor0 WHERE col2 BETWEEN ( - 0 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 47 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE + col1 BETWEEN + col2 * col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7800
SELECT ALL - 13 DIV COUNT( * ) FROM tab1 WHERE - col0 < col1 OR NOT col1 IS NULL
----
-4

skipif mysql # not compatible
query I rowsort label-7800
SELECT ALL - 13 / COUNT ( * ) FROM tab1 WHERE - col0 < col1 OR NOT col1 IS NULL
----
-4

query I rowsort
SELECT 67 + - col1 FROM tab0
----
-14
46
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7802
SELECT ALL col2 - + - CAST( 69 AS SIGNED ) AS col2 FROM tab1
----
128
137
165

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL col2 - + - CAST ( 69 AS INTEGER ) AS col2 FROM tab1
----
128
137
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7803
SELECT DISTINCT COUNT( * ) DIV - + 65 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7803
SELECT DISTINCT COUNT ( * ) / - + 65 FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( 43 ) AND + col1 / - 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT ALL COUNT( ALL + + col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL COUNT ( ALL + + col1 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT ALL 95 + - COUNT( * ) + + 65 AS col1 FROM tab0
----
157

skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL 95 + - COUNT ( * ) + + 65 AS col1 FROM tab0
----
157

onlyif mysql # DIV for integer division: 
query I rowsort label-7807
SELECT ALL + col0 + - 16 DIV col1 AS col1 FROM tab0 AS cor0
----
15
81
87

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL + col0 + - 16 / col1 AS col1 FROM tab0 AS cor0
----
15
81
87

query I rowsort
SELECT DISTINCT - col2 + col2 * - col1 FROM tab2 AS cor0
----
-1196
-3120
-3944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 col2 FROM tab1 cor0
----
91
91
91

query I rowsort
SELECT - 28 * 79 AS col2 FROM tab2 AS cor0
----
-2212
-2212
-2212

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) < col2 * - 13 + col0 * col1
----

query I rowsort
SELECT ALL - ( - 39 ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ALL 1 * - + 51 * col0 * - col0 FROM tab0
----
11475
386019
479859

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT - ( - 81 ) FROM tab1 AS cor0
----
81
81
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7816
SELECT + CAST( NULL AS DECIMAL ) * + - MIN( col2 ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7816
SELECT + CAST ( NULL AS REAL ) * + - MIN ( col2 ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT - MIN( DISTINCT - ( col1 ) ) AS col0 FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-7817
SELECT - MIN ( DISTINCT - ( col1 ) ) AS col0 FROM tab0 cor0
----
81

query II rowsort
SELECT ALL + col0, + 87 AS col1 FROM tab0 cor0
----
15
87
87
87
97
87

query II rowsort
SELECT DISTINCT + col1, 26 * - col2 FROM tab2 AS cor0
----
51
-598
67
-1508
77
-1040

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * - 42 * + col0 <> NULL
----

query I rowsort
SELECT ALL + - 56 * - col0 + col2 + 16 AS col1 FROM tab1 AS cor0
----
2968
4835
5180

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT NULL = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT DISTINCT + ( - MAX( 49 ) ) FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-7823
SELECT DISTINCT + ( - MAX ( 49 ) ) FROM tab2 AS cor0
----
-49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 79 * + 15 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * + col0 + - 8 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 / col1 + 25 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 39 FROM tab0 WHERE NOT ( + 98 + ( - 82 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT COUNT( DISTINCT + + col1 ) + COUNT( * ) * 97 FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-7828
SELECT COUNT ( DISTINCT + + col1 ) + COUNT ( * ) * 97 FROM tab0
----
294

query I rowsort
SELECT - col0 + - col1 * + - col2 + + 11 + col1 FROM tab2
----
1189
3104
3889

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT DISTINCT - 54 + - COUNT( * ) AS col2 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-7830
SELECT DISTINCT - 54 + - COUNT ( * ) AS col2 FROM tab1
----
-57

query I rowsort
SELECT 48 * 39 + col0 * - 79 FROM tab1
----
-2157
-4843
-5317

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT DISTINCT - COUNT( 79 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7832
SELECT DISTINCT - COUNT ( 79 ) AS col2 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7833
SELECT - col1 DIV + 82 + - - 45 FROM tab1
----
45
45
45

skipif mysql # not compatible
query I rowsort label-7833
SELECT - col1 / + 82 + - - 45 FROM tab1
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7834
SELECT ALL - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE 79 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE 79 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT DISTINCT - COUNT( * ) * - 60 + 34 * 96 AS col0 FROM tab2 AS cor0
----
3444

skipif mysql # not compatible
query I rowsort label-7835
SELECT DISTINCT - COUNT ( * ) * - 60 + 34 * 96 AS col0 FROM tab2 AS cor0
----
3444

query I rowsort
SELECT + - 47 * - col0 AS col1 FROM tab1 AS cor0
----
2397
3995
4277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1 WHERE ( - + 78 ) IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT DISTINCT - COUNT( + ( + col1 ) ) AS col1 FROM tab1 WHERE NOT col2 + - 58 + col1 < ( NULL ) OR NOT ( + col0 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7838
SELECT DISTINCT - COUNT ( + ( + col1 ) ) AS col1 FROM tab1 WHERE NOT col2 + - 58 + col1 < ( NULL ) OR NOT ( + col0 ) <= NULL
----
0

query I rowsort
SELECT DISTINCT - + ( 17 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-7840
SELECT ALL - 5 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL - 5 / col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 + - + 43 col1 FROM tab0 AS cor0
----
43
43
43

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 71
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7843
SELECT DISTINCT - CAST( + MIN( DISTINCT - + col2 ) AS SIGNED ) + SUM( ALL col0 ) + + MIN( col2 ) AS col1 FROM tab2 cor0
----
266

skipif mysql # not compatible
query I rowsort label-7843
SELECT DISTINCT - CAST ( + MIN ( DISTINCT - + col2 ) AS INTEGER ) + SUM ( ALL col0 ) + + MIN ( col2 ) AS col1 FROM tab2 cor0
----
266

query I rowsort
SELECT + + col1 FROM tab0 cor0 WHERE ( NULL ) BETWEEN ( - col0 ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 26 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 FROM tab2 WHERE ( col2 * col0 + + col1 ) BETWEEN col1 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 53 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE ( - 44 + col2 ) IN ( - col0 )
----

query I rowsort
SELECT - 25 - + col1 FROM tab2
----
-102
-76
-92

query I rowsort
SELECT + col1 - - 72 AS col1 FROM tab1
----
119
77
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT ALL + MAX( - 38 ) AS col0 FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL + MAX ( - 38 ) AS col0 FROM tab1 AS cor0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT COUNT( * ) * AVG ( ALL - col0 ) FROM tab0 AS cor0 WHERE NOT 16 NOT BETWEEN + + col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7852
SELECT COUNT ( * ) * AVG ( ALL - col0 ) FROM tab0 AS cor0 WHERE NOT 16 NOT BETWEEN + + col1 AND NULL
----
NULL

query I rowsort
SELECT ALL + 72 * - 47 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3384
-3384
-3384

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT - - 19 + + 82 * ( - + col1 ) + col1 IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + + 56 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7856
SELECT - MIN( ALL - 69 ) AS col2, - COUNT( * ) DIV - + 88 * - 4 AS col2 FROM tab2
----
69
0

skipif mysql # not compatible
query II rowsort label-7856
SELECT - MIN ( ALL - 69 ) AS col2, - COUNT ( * ) / - + 88 * - 4 AS col2 FROM tab2
----
69
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7857
SELECT - ( + CAST( - 76 AS SIGNED ) ) AS col1 FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN ( + 13 ) AND - col2 * col2
----
76
76
76

skipif mysql # not compatible
query I rowsort label-7857
SELECT - ( + CAST ( - 76 AS INTEGER ) ) AS col1 FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN ( + 13 ) AND - col2 * col2
----
76
76
76

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col1 AND ( + col0 + - - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7859
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( + - col1 AS SIGNED ) + + col0 BETWEEN col1 AND ( NULL )
----
15
81
47

skipif mysql # not compatible
query III rowsort label-7859
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( + - col1 AS INTEGER ) + + col0 BETWEEN col1 AND ( NULL )
----
15
81
47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col1 BETWEEN NULL AND ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT COUNT( col2 ) + - 44 AS col0 FROM tab2 AS cor0 WHERE NOT col2 * - col2 * + col1 BETWEEN col2 AND ( NULL )
----
-41

skipif mysql # not compatible
query I rowsort label-7861
SELECT COUNT ( col2 ) + - 44 AS col0 FROM tab2 AS cor0 WHERE NOT col2 * - col2 * + col1 BETWEEN col2 AND ( NULL )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT - + SUM( 78 ) AS col1 FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND 59
----
NULL

skipif mysql # not compatible
query I rowsort label-7862
SELECT - + SUM ( 78 ) AS col1 FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + 68 / + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7863
SELECT + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + 68 / + col0 IS NOT NULL
----
0

query I rowsort
SELECT - + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 99 AND + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( - 44 + - ( col2 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7866
SELECT - COUNT( * ) DIV + 91 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7866
SELECT - COUNT ( * ) / + 91 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT ( + MIN( - col1 ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7867
SELECT ( + MIN ( - col1 ) ) FROM tab0
----
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7868
SELECT ALL - + col0 AS col1 FROM tab1 WHERE NULL BETWEEN + - CAST( - col1 AS DECIMAL ) / + + col2 AND col0
----

skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL - + col0 AS col1 FROM tab1 WHERE NULL BETWEEN + - CAST ( - col1 AS REAL ) / + + col2 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT - COUNT( * ) col2 FROM tab0 WHERE ( + col1 * - col1 - + col0 / + col1 ) < ( col0 )
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7869
SELECT - COUNT ( * ) col2 FROM tab0 WHERE ( + col1 * - col1 - + col0 / + col1 ) < ( col0 )
----
-3

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE col2 - 68 IS NULL AND col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT 70 * - + COUNT( * ) * - - 63 * COUNT( * ) + + 93 AS col2 FROM tab1 AS cor0
----
-39597

skipif mysql # not compatible
query I rowsort label-7871
SELECT 70 * - + COUNT ( * ) * - - 63 * COUNT ( * ) + + 93 AS col2 FROM tab1 AS cor0
----
-39597

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7872
SELECT CAST( - MIN( col1 ) AS SIGNED ) + 56 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7872
SELECT CAST ( - MIN ( col1 ) AS INTEGER ) + 56 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT + 74 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
74

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - col0 + col2 * - - col1 FROM tab1 AS cor0
----
1293
210
3105

query I rowsort
SELECT ALL - - col0 + - - 19 FROM tab1 cor0
----
104
110
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT + + 11 - + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-7877
SELECT + + 11 - + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
14

query I rowsort
SELECT 5 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7879
SELECT ALL CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL - + col2 + - + col0, - col0 AS col0 FROM tab0 AS cor0
----
-196
-97
-62
-15
-97
-87

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 2 * + col1 IS NOT NULL
----

query I rowsort
SELECT - col1 - - col0 + + col0 AS col2 FROM tab2 AS cor0
----
41
51
83

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 49 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT + 83 + - MAX( - col0 ) FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-7884
SELECT + 83 + - MAX ( - col0 ) FROM tab0
----
98

query III rowsort
SELECT * FROM tab2 WHERE + + col0 * + + 47 * col1 / + - 96 + 24 * col0 * col0 + - col0 + col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7886
SELECT ALL + 60 * + + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL + 60 * + + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * + ( + - ( - + 14 ) ) AS col1 FROM tab1
----
1344
826
952

onlyif mysql # aggregate syntax: 
query II rowsort label-7888
SELECT ALL + 41 AS col1, + MIN( - 14 ) FROM tab1
----
41
-14

skipif mysql # not compatible
query II rowsort label-7888
SELECT ALL + 41 AS col1, + MIN ( - 14 ) FROM tab1
----
41
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7889
SELECT + - col1 FROM tab1 WHERE NOT NULL BETWEEN + CAST( NULL AS SIGNED ) * + + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-7889
SELECT + - col1 FROM tab1 WHERE NOT NULL BETWEEN + CAST ( NULL AS INTEGER ) * + + col0 AND NULL
----

query I rowsort
SELECT DISTINCT 88 * + col0 AS col2 FROM tab2
----
4048
5632
6600

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL <= NULL )
----

query I rowsort
SELECT ALL - 20 * - + 44 * - 33 AS col1 FROM tab0 AS cor0
----
-29040
-29040
-29040

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT ( col2 ) >= 46
----
-23
-40

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 35 <= ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 66 col1 FROM tab0 cor0
----
-66
-66
-66

query II rowsort
SELECT col0 AS col2, 75 * 27 FROM tab2 AS cor0
----
46
2025
64
2025
75
2025

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 14 AND - + 73
----

query II rowsort
SELECT - col1 AS col1, col2 FROM tab2 cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT col2 * - col1 * - 61 * + 77 AS col1 FROM tab0 AS cor0
----
17881479
465003
986370

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7901
SELECT MIN( - col0 ) * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7901
SELECT MIN ( - col0 ) * CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 40 AS col0, col1 col1 FROM tab0 AS cor0
----
40
1
40
21
40
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT ALL + + MIN( DISTINCT ( + - col2 ) ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7903
SELECT ALL + + MIN ( DISTINCT ( + - col2 ) ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 * + ( + - 74 ) <> + 63 * + + 75 / + col2
----

query II rowsort
SELECT DISTINCT - col0 AS col1, 55 FROM tab0 cor0
----
-15
55
-87
55
-97
55

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 46 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT + 28 + - COUNT( * ) AS col1 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-7907
SELECT + 28 + - COUNT ( * ) AS col1 FROM tab0
----
25

query II rowsort
SELECT DISTINCT ( - col2 ), + ( + col1 ) FROM tab0
----
-10
21
-47
81
-99
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 84 NOT BETWEEN - + 34 + - - col1 - - col2 * + - col2 / + col1 AND ( - - 46 * - + 60 * + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 25 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 + - col1 AS col2 FROM tab2 WHERE col0 * + col2 IS NOT NULL
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT DISTINCT + COUNT( * ) * - MIN( 14 ) + + COUNT( * ) FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-7912
SELECT DISTINCT + COUNT ( * ) * - MIN ( 14 ) + + COUNT ( * ) FROM tab1
----
-39

query I rowsort
SELECT DISTINCT + + col1 + 93 FROM tab1 AS cor0
----
107
140
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7914
SELECT DISTINCT - ( + 80 ) AS col2, - ( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-80
NULL

skipif mysql # not compatible
query II rowsort label-7914
SELECT DISTINCT - ( + 80 ) AS col2, - ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-80
NULL

query I rowsort
SELECT ALL - - 56 + 36 AS col0 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT ALL ( + - 99 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT + COUNT( ALL + 25 ) FROM tab0 AS cor0 WHERE ( 64 + 4 + + col1 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7917
SELECT + COUNT ( ALL + 25 ) FROM tab0 AS cor0 WHERE ( 64 + 4 + + col1 ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7918
SELECT + col1 col1, + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7918
SELECT + col1 col1, + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
51
NULL
67
NULL
77
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7919
SELECT + - col1 AS col0, col0 + + - col2 DIV 48 FROM tab1 AS cor0
----
-14
49
-47
90
-5
84

skipif mysql # not compatible
query II rowsort label-7919
SELECT + - col1 AS col0, col0 + + - col2 / 48 FROM tab1 AS cor0
----
-14
49
-47
90
-5
84

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 46 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7921
SELECT ALL - CAST( - - COUNT( * ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7921
SELECT ALL - CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab2
----
-3

query I rowsort
SELECT ALL col0 * 23 AS col1 FROM tab1
----
1173
1955
2093

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT DISTINCT ( + MAX( DISTINCT - 55 ) ) col0 FROM tab1
----
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7923
SELECT DISTINCT ( + MAX ( DISTINCT - 55 ) ) col0 FROM tab1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT + MIN( ALL ( - col0 ) ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-7924
SELECT + MIN ( ALL ( - col0 ) ) FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT DISTINCT COUNT( * ) * - COUNT( ALL - + 83 ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7925
SELECT DISTINCT COUNT ( * ) * - COUNT ( ALL - + 83 ) AS col2 FROM tab0
----
-9

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE 21 = + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7927
SELECT DISTINCT COUNT( * ) DIV - 64 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7927
SELECT DISTINCT COUNT ( * ) / - 64 AS col1 FROM tab2
----
0

query I rowsort
SELECT - col2 * + + 77 * - - col0 FROM tab1
----
-376992
-386155
-476476

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - 26 AND + col1 - + + 83
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7930
SELECT SUM( + col1 ) AS col1, + MIN( ALL 70 ) FROM tab0
----
103
70

skipif mysql # not compatible
query II rowsort label-7930
SELECT SUM ( + col1 ) AS col1, + MIN ( ALL 70 ) FROM tab0
----
103
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7931
SELECT DISTINCT col0 * + col0 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7931
SELECT DISTINCT col0 * + col0 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( + col0 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7933
SELECT ALL + col1 DIV + col1 AS col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7933
SELECT ALL + col1 / + col1 AS col2 FROM tab0 cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7934
SELECT ALL CAST( + - 30 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-30
-30
-30

skipif mysql # not compatible
query I rowsort label-7934
SELECT ALL CAST ( + - 30 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-30
-30
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-7935
SELECT + - ( + col2 ) DIV - col0 + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( - col1 ) DIV + col0 IS NULL
----
52
85
91

skipif mysql # not compatible
query I rowsort label-7935
SELECT + - ( + col2 ) / - col0 + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( - col1 ) / + col0 IS NULL
----
52
85
91

query I rowsort
SELECT - + col0 * + col1 * col0 FROM tab0 AS cor0
----
-158949
-18225
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT SUM( col1 ) col2 FROM tab1
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7937
SELECT SUM ( col1 ) col2 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT DISTINCT - COUNT( ALL + 78 ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT - COUNT ( ALL + 78 ) AS col1 FROM tab2 cor0
----
-3

query I rowsort
SELECT DISTINCT - col2 * + ( + + col0 ) + col2 + + ( 14 ) AS col2 FROM tab1 AS cor0
----
-4786
-4942
-6106

query I rowsort
SELECT DISTINCT - AVG ( - ( + col1 ) ) FROM tab1 AS cor0 WHERE + col0 * 2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 88 * 86 + - - 64 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
7632

query I rowsort
SELECT DISTINCT + col0 + - - col2 * - 14 FROM tab0 AS cor0
----
-1289
-53
-643

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * + col1 col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT col0 * + col0 + col0 * + col2 FROM tab2 AS cor0
----
3174
6656
9975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7945
SELECT DISTINCT - CAST( + + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7945
SELECT DISTINCT - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 90 col1 FROM tab1
----
-39
-5
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7947
SELECT DISTINCT - COUNT( * ) AS col1, 33 FROM tab0
----
-3
33

skipif mysql # not compatible
query II rowsort label-7947
SELECT DISTINCT - COUNT ( * ) AS col1, 33 FROM tab0
----
-3
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7948
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-7948
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT ALL 91 + + 13 FROM tab1
----
104
104
104

onlyif mysql # aggregate syntax: 
query II rowsort label-7950
SELECT ALL MAX( DISTINCT + + 94 ), 12 col0 FROM tab1
----
94
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7950
SELECT ALL MAX ( DISTINCT + + 94 ), 12 col0 FROM tab1
----
94
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT DISTINCT - COUNT( * ) * 20 + + + 67 + 75 AS col0 FROM tab2 cor0
----
82

skipif mysql # not compatible
query I rowsort label-7951
SELECT DISTINCT - COUNT ( * ) * 20 + + + 67 + 75 AS col0 FROM tab2 cor0
----
82

query I rowsort
SELECT + 45 + - 11 + + col1 FROM tab1 AS cor0
----
39
48
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 49 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7954
SELECT + + 13 DIV col0 + + col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7954
SELECT + + 13 / col0 + + col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL + 76 + col2 AS col1 FROM tab0 AS cor0
----
123
175
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7956
SELECT DISTINCT + col0 * - + col2 - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT DISTINCT + col0 * - + col2 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT + - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7957
SELECT + - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 col2 FROM tab0
----
19

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE ( + 67 ) >= NULL
----

query I rowsort
SELECT DISTINCT 24 - - col2 FROM tab0
----
123
34
71

query I rowsort
SELECT - col0 * + - col0 FROM tab0 cor0
----
225
7569
9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7962
SELECT - - 71 DIV - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7962
SELECT - - 71 / - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7963
SELECT - ( 40 ) DIV - MAX( DISTINCT - col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7963
SELECT - ( 40 ) / - MAX ( DISTINCT - col0 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT col1 * + 3 FROM tab2 AS cor0
----
153
201
231

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 - - ( + + col1 ) - + - 21 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT COUNT( * ) * - + ( + ( - 12 ) ) AS col1 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-7966
SELECT COUNT ( * ) * - + ( + ( - 12 ) ) AS col1 FROM tab2
----
36

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT ( - ( - - 74 ) IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7968
SELECT 70, - COUNT( * ) col1 FROM tab2
----
70
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7968
SELECT 70, - COUNT ( * ) col1 FROM tab2
----
70
-3

query I rowsort
SELECT ALL + 71 * 83 FROM tab0
----
5893
5893
5893

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7970
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7970
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - + col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * + col0 * - col1 + + col2 * - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7972
SELECT + col0 DIV + 31 FROM tab0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-7972
SELECT + col0 / + 31 FROM tab0
----
0
2
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7973
SELECT ALL + CAST( NULL AS SIGNED ) * COUNT( * ) + - - 70 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7973
SELECT ALL + CAST ( NULL AS INTEGER ) * COUNT ( * ) + - - 70 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 2 * + - ( - + 1 ) FROM tab0 AS cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7975
SELECT ALL - + 11 DIV ( + + col0 ) + 30 AS col0 FROM tab0 AS cor0
----
30
30
30

skipif mysql # not compatible
query I rowsort label-7975
SELECT ALL - + 11 / ( + + col0 ) + 30 AS col0 FROM tab0 AS cor0
----
30
30
30

query I rowsort
SELECT ALL - col2 * - ( + col2 ) + col2 FROM tab2 cor0
----
1640
3422
552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 90 + - 7, - 67 col1 FROM tab1 AS cor0
----
83
-67
83
-67
83
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT DISTINCT - - 91 * + SUM( + col0 ) col2 FROM tab1 AS cor0
----
20657

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7978
SELECT DISTINCT - - 91 * + SUM ( + col0 ) col2 FROM tab1 AS cor0
----
20657

query I rowsort
SELECT - 95 + + - col2 FROM tab0 AS cor0
----
-105
-142
-194

query I rowsort
SELECT col1 * - 73 + + col0 AS col1 FROM tab1 AS cor0
----
-280
-3340
-971

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 = + ( - ( - col0 ) ) * - 3 * + - col1
----

query I rowsort
SELECT ALL 73 * + 93 * - 57 FROM tab0 AS cor0
----
-386973
-386973
-386973

query I rowsort
SELECT DISTINCT - ( 4 ) * col0 AS col0 FROM tab0 AS cor0
----
-348
-388
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-7984
SELECT ALL col0 + + col1 + + 85 + + + 41 + + col0 DIV - 5 AS col2 FROM tab0 AS cor0
----
205
217
219

skipif mysql # not compatible
query I rowsort label-7984
SELECT ALL col0 + + col1 + + 85 + + + 41 + + col0 / - 5 AS col2 FROM tab0 AS cor0
----
205
217
219

query II rowsort
SELECT DISTINCT ( col1 ), col1 AS col2 FROM tab1 AS cor0
----
14
14
47
47
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 20 * - + col2 col0 FROM tab1
----
-1180
-1360
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT DISTINCT + COUNT( - - 81 ) + - 7 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-7987
SELECT DISTINCT + COUNT ( - - 81 ) + - 7 FROM tab2
----
-4

query I rowsort
SELECT - 48 * col2 FROM tab2
----
-1104
-1920
-2784

onlyif mysql # DIV for integer division: 
query I rowsort label-7989
SELECT col0 DIV + ( - col0 ) AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7989
SELECT col0 / + ( - col0 ) AS col0 FROM tab0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> col2 + + + 46 - 47
----

query I rowsort
SELECT - + col2 - 45 AS col0 FROM tab2 AS cor0
----
-103
-68
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-7992
SELECT - COUNT( * ) col1, + COUNT( * ) + - + ( - 17 ) FROM tab1 AS cor0
----
-3
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7992
SELECT - COUNT ( * ) col1, + COUNT ( * ) + - + ( - 17 ) FROM tab1 AS cor0
----
-3
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT DISTINCT + + ( - COUNT( * ) ) * - COUNT( * ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-7993
SELECT DISTINCT + + ( - COUNT ( * ) ) * - COUNT ( * ) FROM tab2 cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7994
SELECT ALL - col1 * - col0 FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND col2 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL - col1 * - col0 FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND col2 + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT + COUNT( ALL ( - + 54 ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7995
SELECT + COUNT ( ALL ( - + 54 ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

query II rowsort
SELECT col1 * - col0, col2 AS col1 FROM tab1
----
-425
59
-4277
68
-714
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT ALL MIN( DISTINCT col1 ) col2 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7997
SELECT ALL MIN ( DISTINCT col1 ) col2 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT DISTINCT COUNT( * ) + + 24 AS col0 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-7998
SELECT DISTINCT COUNT ( * ) + + 24 AS col0 FROM tab1 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT - - COUNT( * ) FROM tab1 cor0 WHERE NULL >= 22 + - col2
----
0

skipif mysql # not compatible
query I rowsort label-7999
SELECT - - COUNT ( * ) FROM tab1 cor0 WHERE NULL >= 22 + - col2
----
0

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 AS cor0 WHERE 72 * - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT DISTINCT + + 19 * - + MAX( DISTINCT + - 73 ) AS col2 FROM tab2 AS cor0
----
1387

skipif mysql # not compatible
query I rowsort label-8001
SELECT DISTINCT + + 19 * - + MAX ( DISTINCT + - 73 ) AS col2 FROM tab2 AS cor0
----
1387

query I rowsort
SELECT - 74 * col2 AS col0 FROM tab0 AS cor0
----
-3478
-7326
-740

query II rowsort
SELECT 57 AS col2, col2 * + 70 AS col2 FROM tab1 AS cor0
----
57
4130
57
4760
57
6720

query I rowsort
SELECT DISTINCT col2 + 86 FROM tab2 AS cor0
----
109
126
144

query I rowsort
SELECT DISTINCT 46 * col2 FROM tab1 AS cor0
----
2714
3128
4416

onlyif mysql # DIV for integer division: 
query I rowsort label-8006
SELECT 56 DIV + ( - col0 ) + + 39 FROM tab1
----
38
39
39

skipif mysql # not compatible
query I rowsort label-8006
SELECT 56 / + ( - col0 ) + + 39 FROM tab1
----
38
39
39

query I rowsort
SELECT - col1 + - 10 * + col0 AS col1 FROM tab0 AS cor0
----
-231
-891
-971

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT + 10 + - + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
1

skipif mysql # not compatible
query I rowsort label-8008
SELECT + 10 + - + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT DISTINCT ( - + SUM( 84 ) ) FROM tab0
----
-252

skipif mysql # not compatible
query I rowsort label-8009
SELECT DISTINCT ( - + SUM ( 84 ) ) FROM tab0
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT ALL MAX( ALL col0 ) * + + COUNT( * ) AS col1 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL MAX ( ALL col0 ) * + + COUNT ( * ) AS col1 FROM tab1
----
273

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT DISTINCT - 58 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-8012
SELECT DISTINCT - 58 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8014
SELECT 50 * + col0 * - CAST( NULL AS SIGNED ) * - col1 + + col1 + 40 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8014
SELECT 50 * + col0 * - CAST ( NULL AS INTEGER ) * - col1 + + col1 + 40 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8016
SELECT DISTINCT CAST( - 98 AS SIGNED ) FROM tab0
----
-98

skipif mysql # not compatible
query I rowsort label-8016
SELECT DISTINCT CAST ( - 98 AS INTEGER ) FROM tab0
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-8017
SELECT - MAX( - col2 ), + 89 col2 FROM tab1
----
59
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8017
SELECT - MAX ( - col2 ), + 89 col2 FROM tab1
----
59
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT - 82 * - 27 + ( - - COUNT( * ) ) FROM tab1 WHERE NOT 84 >= col1
----
2214

skipif mysql # not compatible
query I rowsort label-8018
SELECT - 82 * - 27 + ( - - COUNT ( * ) ) FROM tab1 WHERE NOT 84 >= col1
----
2214

query II rowsort
SELECT DISTINCT + 64, + 98 * - col0 AS col2 FROM tab0
----
64
-1470
64
-8526
64
-9506

query II rowsort
SELECT col2, col0 * 74 FROM tab1
----
59
6290
68
6734
96
3774

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT + MIN( + + ( - 77 ) ) AS col0 FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8021
SELECT + MIN ( + + ( - 77 ) ) AS col0 FROM tab1 AS cor0
----
-77

query I rowsort
SELECT DISTINCT - + col1 + + 24 FROM tab2 cor0
----
-27
-43
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-8023
SELECT - 92 * - COUNT( + - 32 ) AS col0, - SUM( 33 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
828
-297

skipif mysql # not compatible
query II rowsort label-8023
SELECT - 92 * - COUNT ( + - 32 ) AS col0, - SUM ( 33 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
828
-297

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * - col0 + + 31 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8025
SELECT - 40 / - CAST( NULL AS SIGNED ) * + col2 + + CAST( - + col0 AS SIGNED ) * - + 92 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8025
SELECT - 40 / - CAST ( NULL AS INTEGER ) * + col2 + + CAST ( - + col0 AS INTEGER ) * - + 92 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8026
SELECT - + col1 + - - 97 DIV + col1 FROM tab1 AS cor0
----
-45
-8
14

skipif mysql # not compatible
query I rowsort label-8026
SELECT - + col1 + - - 97 / + col1 FROM tab1 AS cor0
----
-45
-8
14

query I rowsort
SELECT DISTINCT + - col2 + 58 FROM tab1 cor0
----
-1
-10
-38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8028
SELECT * FROM tab1 AS cor0 WHERE - CAST( - ( - col2 ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8028
SELECT * FROM tab1 AS cor0 WHERE - CAST ( - ( - col2 ) AS INTEGER ) IS NULL
----

query II rowsort
SELECT col2, col0 FROM tab1 AS cor0 WHERE NULL IN ( 54, col1, + col1, - col0 + - col1 * 29 )
----

query I rowsort
SELECT + - 45 + - + 50 FROM tab0 AS cor0
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT DISTINCT MIN( DISTINCT 36 ) col0 FROM tab0
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8031
SELECT DISTINCT MIN ( DISTINCT 36 ) col0 FROM tab0
----
36

query I rowsort
SELECT col0 * col0 - + - 97 FROM tab1 WHERE - 0 + col1 IS NULL
----

query II rowsort
SELECT DISTINCT + col1, col0 + + col1 * - + ( - - 85 ) FROM tab0
----
1
12
21
-1698
81
-6870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 * - 7 col1 FROM tab0
----
-518
-518
-518

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT ALL - COUNT( - + col2 ) * - 92 * + - COUNT( * ) AS col1 FROM tab2
----
-828

skipif mysql # not compatible
query I rowsort label-8035
SELECT ALL - COUNT ( - + col2 ) * - 92 * + - COUNT ( * ) AS col1 FROM tab2
----
-828

query I rowsort
SELECT 73 * 41 AS col0 FROM tab1
----
2993
2993
2993

query I rowsort
SELECT - 40 * col2 * col0 AS col2 FROM tab1
----
-195840
-200600
-247520

query I rowsort
SELECT ALL + 13 * + - col0 FROM tab0 AS cor0
----
-1131
-1261
-195

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL >= + col2 + - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + + 39 * + 98 * + - 15 + + 54 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 26 * ( + col2 ) AS col2 FROM tab2
----
1040
1508
598

query I rowsort
SELECT ALL - - col1 * + + 82 FROM tab0 AS cor0
----
1722
6642
82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8043
SELECT - SUM( DISTINCT - ( + - col1 ) ) * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8043
SELECT - SUM ( DISTINCT - ( + - col1 ) ) * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 36 * + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT DISTINCT MAX( - col1 ) FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8045
SELECT DISTINCT MAX ( - col1 ) FROM tab2 cor0
----
-51

query II rowsort
SELECT DISTINCT col2 * col2, col0 FROM tab0 AS cor0
----
100
87
2209
15
9801
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8047
SELECT - col1 DIV + + col2 AS col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8047
SELECT - col1 / + + col2 AS col0 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT - - col1 * - 90 + - 92 FROM tab2 AS cor0
----
-4682
-6122
-7022

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN + 77 - - col1 - 32 * - - col2 + - col1 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT DISTINCT MAX( DISTINCT - col0 ) * COUNT( * ) AS col2 FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-8050
SELECT DISTINCT MAX ( DISTINCT - col0 ) * COUNT ( * ) AS col2 FROM tab1
----
-153

query I rowsort
SELECT DISTINCT + col1 + - - col1 - col1 * col0 + - - col1 * 65 - 71 * - col1 * col0 FROM tab0
----
129297
6857
90477

query I rowsort
SELECT ALL - 32 * 10 AS col0 FROM tab0
----
-320
-320
-320

query I rowsort
SELECT ALL + 89 FROM tab2 cor0 WHERE NOT NULL >= - col0 / col1 * + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT ALL - COUNT( * ) + - MIN( ALL - - col2 ) * - MIN( + col2 ) AS col2 FROM tab1
----
3478

skipif mysql # not compatible
query I rowsort label-8054
SELECT ALL - COUNT ( * ) + - MIN ( ALL - - col2 ) * - MIN ( + col2 ) AS col2 FROM tab1
----
3478

query II rowsort
SELECT DISTINCT - col1 AS col0, 70 FROM tab0
----
-1
70
-21
70
-81
70

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( 56 ) / col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT DISTINCT + COUNT( * ) + COUNT( DISTINCT + + col0 ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT + COUNT ( * ) + COUNT ( DISTINCT + + col0 ) AS col1 FROM tab0
----
6

query I rowsort
SELECT ALL - col2 * + col1 + + + col1 AS col2 FROM tab0 cor0
----
-189
-3726
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8059
SELECT + - 43 AS col2, + COUNT( + + col0 ) DIV - 12 * COUNT( * ) * MIN( 39 ) AS col0 FROM tab0 AS cor0
----
-43
0

skipif mysql # not compatible
query II rowsort label-8059
SELECT + - 43 AS col2, + COUNT ( + + col0 ) / - 12 * COUNT ( * ) * MIN ( 39 ) AS col0 FROM tab0 AS cor0
----
-43
0

query I rowsort
SELECT DISTINCT + + ( col0 ) + + col1 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT DISTINCT - col2 * + + col1 - - col0 AS col1 FROM tab1 AS cor0
----
-1293
-210
-3105

query I rowsort
SELECT + - col0 * + - 11 * col0 * - 6 - + - col0 * 11 AS col1 FROM tab0 AS cor0
----
-14685
-498597
-619927

onlyif mysql # DIV for integer division: 
query I rowsort label-8063
SELECT ALL - + 89 DIV - col1 + + + col0 FROM tab1 AS cor0
----
102
57
92

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL - + 89 / - col1 + + + col0 FROM tab1 AS cor0
----
102
57
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - ( col0 ) ) - + col1 * 69 col0 FROM tab0 AS cor0
----
-1536
-166
-5604

query I rowsort
SELECT DISTINCT - - col0 - + - col2 AS col2 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT - 50 + + ( - - 14 ) FROM tab1
----
-36
-36
-36

query I rowsort
SELECT ALL - 91 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col0 * + col0 * + 2 * - 95 FROM tab1
----
-1372750
-1573390
-494190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 91 col2 FROM tab0
----
-91

query I rowsort
SELECT col0 * - col1 + col2 FROM tab1
----
-366
-4209
-618

onlyif mysql # aggregate syntax: 
query II rowsort label-8071
SELECT DISTINCT - MIN( col1 ) AS col1, + 71 * - + MIN( ALL col1 ) FROM tab0
----
-1
-71

skipif mysql # not compatible
query II rowsort label-8071
SELECT DISTINCT - MIN ( col1 ) AS col1, + 71 * - + MIN ( ALL col1 ) FROM tab0
----
-1
-71

query I rowsort
SELECT ALL - + col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 50 * col2 AS col1 FROM tab0
----
2350
4950
500

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT - + MAX( - 85 ) AS col0 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-8074
SELECT - + MAX ( - 85 ) AS col0 FROM tab1 AS cor0
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 99 col1 FROM tab2 AS cor0
----
-2277
-3960
-5742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
100
2209
9801

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8077
SELECT - COUNT( * ) * - - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8077
SELECT - COUNT ( * ) * - - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 31 * - 8 AS col0 FROM tab1 AS cor0
----
-248
-248
-248

query I rowsort
SELECT + + 33 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT + - 25 + + 75 + + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
59

skipif mysql # not compatible
query I rowsort label-8080
SELECT + - 25 + + 75 + + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
59

query I rowsort
SELECT DISTINCT - 62 * - 63 FROM tab2 AS cor0
----
3906

onlyif mysql # DIV for integer division: 
query I rowsort label-8082
SELECT ALL + + col2 + 5 DIV - col0 + + + 29 + - col0 FROM tab1 AS cor0
----
3
6
74

skipif mysql # not compatible
query I rowsort label-8082
SELECT ALL + + col2 + 5 / - col0 + + + 29 + - col0 FROM tab1 AS cor0
----
3
6
74

query II rowsort
SELECT DISTINCT + - col1, col0 AS col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col2 + + 30 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + col1 * + 67
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8086
SELECT + CAST( NULL AS SIGNED ) + + ( + + col1 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8086
SELECT + CAST ( NULL AS INTEGER ) + + ( + + col1 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 27 * + col2 FROM tab0
----
1269
2673
270

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT ALL + COUNT( DISTINCT + col2 ) * + - MAX( ALL col0 ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL + COUNT ( DISTINCT + col2 ) * + - MAX ( ALL col0 ) FROM tab2
----
-225

query III rowsort
SELECT * FROM tab2 WHERE + - 62 IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8090
SELECT + 30 * col2 DIV + - col0 FROM tab1
----
-20
-22
-56

skipif mysql # not compatible
query I rowsort label-8090
SELECT + 30 * col2 / + - col0 FROM tab1
----
-20
-22
-56

query I rowsort
SELECT DISTINCT 7 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 16 * 95 FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 11 FROM tab0 AS cor0 WHERE NULL IS NULL
----
11
11
11

query I rowsort
SELECT ALL + ( - 8 ) FROM tab1
----
-8
-8
-8

query I rowsort
SELECT col0 + - 65 - - - 86 AS col0 FROM tab2
----
-105
-76
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT + COUNT( * ) + + 2 AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-8096
SELECT + COUNT ( * ) + + 2 AS col1 FROM tab1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8097
SELECT + col2 / + - ( - - col1 ) + + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8097
SELECT + col2 / + - ( - - col1 ) + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 60 + + col0 col1 FROM tab0 AS cor0
----
122
157
256

query I rowsort
SELECT col0 + + + 21 FROM tab2 AS cor0 WHERE - 80 > + col2 * - 54 + - col2
----
67
85
96

query I rowsort
SELECT DISTINCT 97 + + - 80 * - 95 FROM tab0 cor0
----
7697

query I rowsort
SELECT ALL + col1 - + 84 FROM tab2 AS cor0
----
-17
-33
-7

query I rowsort
SELECT DISTINCT + col0 + + - 77 + - + 73 + - col0 AS col1 FROM tab2 AS cor0
----
-150

query I rowsort
SELECT ALL - 56 * - ( - 71 ) - + + col1 FROM tab1 AS cor0
----
-3981
-3990
-4023

onlyif mysql # DIV for integer division: 
query II rowsort label-8104
SELECT col1 AS col1, col2 + + col2 DIV - col1 * - - 40 AS col1 FROM tab2
----
51
23
67
58
77
40

skipif mysql # not compatible
query II rowsort label-8104
SELECT col1 AS col1, col2 + + col2 / - col1 * - - 40 AS col1 FROM tab2
----
51
23
67
58
77
40

query II rowsort
SELECT ALL + 19 AS col2, col2 AS col2 FROM tab2
----
19
23
19
40
19
58

query II rowsort
SELECT col2 AS col0, - 91 FROM tab2
----
23
-91
40
-91
58
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT ALL COUNT( 48 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8107
SELECT ALL COUNT ( 48 ) col2 FROM tab1
----
3

query I rowsort
SELECT ALL + + col1 * 40 + - - 85 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
2125
2765
3165

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT DISTINCT + + ( - - COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT + + ( - - COUNT ( * ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT + - col2 FROM tab0 AS cor0 WHERE NOT col2 * + col0 >= col0 * + col1 - + + col1
----
-10
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-8111
SELECT DISTINCT + col2 DIV - + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8111
SELECT DISTINCT + col2 / - + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT ALL + COUNT( ALL col1 ) + + + 55 FROM tab0 cor0
----
58

skipif mysql # not compatible
query I rowsort label-8112
SELECT ALL + COUNT ( ALL col1 ) + + + 55 FROM tab0 cor0
----
58

query I rowsort
SELECT ALL col2 + - + 80 AS col0 FROM tab0 AS cor0
----
-33
-70
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8114
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + - MIN( DISTINCT + 78 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - MIN ( DISTINCT + 78 ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT col2 * + col0, + col1 * - - 71 AS col0 FROM tab1 AS cor0
----
4896
994
5015
355
6188
3337

query I rowsort
SELECT + 78 * - col2 FROM tab2 cor0
----
-1794
-3120
-4524

onlyif mysql # DIV for integer division: 
query I rowsort label-8117
SELECT + - col2 DIV + 23 + - col2 col0 FROM tab0 cor0
----
-10
-103
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8117
SELECT + - col2 / + 23 + - col2 col0 FROM tab0 cor0
----
-10
-103
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT + COUNT( ALL - col0 ) col1 FROM tab1 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-8118
SELECT + COUNT ( ALL - col0 ) col1 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
3

query I rowsort
SELECT col1 * - - 2 * - ( col0 ) FROM tab1 AS cor0
----
-1428
-850
-8554

query I rowsort
SELECT ALL 57 FROM tab2 WHERE NOT 65 * + col1 + - 93 IS NULL
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT ALL + 32 * - - COUNT( * ) AS col0 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-8121
SELECT ALL + 32 * - - COUNT ( * ) AS col0 FROM tab2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT DISTINCT 91 * - - COUNT( * ) FROM tab2
----
273

skipif mysql # not compatible
query I rowsort label-8122
SELECT DISTINCT 91 * - - COUNT ( * ) FROM tab2
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT ALL COUNT( * ) * + - 15 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-8123
SELECT ALL COUNT ( * ) * + - 15 FROM tab1
----
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, col2 col2 FROM tab1
----
14
96
47
68
5
59

query III rowsort
SELECT * FROM tab0 WHERE - ( - + col1 ) * + ( - 11 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * - + col0 - + col0 + + 4 AS col0 FROM tab2 AS cor0
----
-1100
-2620
-4421

query I rowsort
SELECT - col1 + - col0 + - 18 * + - 89 AS col1 FROM tab2 AS cor0
----
1460
1461
1505

query I rowsort
SELECT - 20 + + 0 FROM tab1 AS cor0
----
-20
-20
-20

query III rowsort
SELECT * FROM tab0 WHERE 98 + - col1 * col2 BETWEEN + - col0 AND NULL
----

query I rowsort
SELECT + + 9 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query II rowsort
SELECT + col1 - col2 AS col0, + 61 + 71 + - - col2 AS col1 FROM tab2
----
28
155
37
172
9
190

query I rowsort
SELECT - + 89 * + 1 * - + col1 - + col1 FROM tab1 AS cor0
----
1232
4136
440

query I rowsort
SELECT + + 27 - col0 + + - col1 FROM tab2 AS cor0
----
-114
-115
-70

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col1 <= - 45
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0 - + + 90, col0 AS col2 FROM tab1 cor0
----
-39
51
-5
85
1
91

query I rowsort
SELECT DISTINCT + + col0 * - + col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 52 <= - col2
----

query II rowsort
SELECT ALL + col1, + col0 FROM tab2
----
51
46
67
75
77
64

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col0 / + col1 <= 48 + + - col0
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT DISTINCT SUM( ALL - 9 ) AS col1 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT SUM ( ALL - 9 ) AS col1 FROM tab1
----
-27

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 63 < NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL <= + 6 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8144
SELECT DISTINCT SUM( ALL CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8144
SELECT DISTINCT SUM ( ALL CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < 9 + + 30
----

query I rowsort
SELECT col1 + + ( + 77 ) + + - col1 + + 80 AS col2 FROM tab0 cor0
----
157
157
157

query I rowsort
SELECT 42 + - col2 AS col1 FROM tab1 AS cor0
----
-17
-26
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT DISTINCT + COUNT( * ) + + + 8 + COUNT( - + 45 ) FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-8148
SELECT DISTINCT + COUNT ( * ) + + + 8 + COUNT ( - + 45 ) FROM tab1 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT DISTINCT + - 30 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-8149
SELECT DISTINCT + - 30 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT ALL - MIN( 72 ) AS col0 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL - MIN ( 72 ) AS col0 FROM tab1 AS cor0
----
-72

query I rowsort
SELECT - ( col1 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 * + + ( + col1 ) FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT ALL col0 + 12 AS col0 FROM tab1
----
103
63
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8154
SELECT DISTINCT col0 * + ( ( + - CAST( - - 24 AS SIGNED ) ) ) AS col2 FROM tab0
----
-2088
-2328
-360

skipif mysql # not compatible
query I rowsort label-8154
SELECT DISTINCT col0 * + ( ( + - CAST ( - - 24 AS INTEGER ) ) ) AS col2 FROM tab0
----
-2088
-2328
-360

query I rowsort
SELECT col1 + 96 * - - col2 AS col1 FROM tab0
----
4593
9505
981

query I rowsort
SELECT ALL col0 + + + col1 * - col2 AS col2 FROM tab0
----
-123
-2
-3792

onlyif mysql # DIV for integer division: 
query I rowsort label-8157
SELECT + 82 DIV col1 FROM tab0
----
1
3
82

skipif mysql # not compatible
query I rowsort label-8157
SELECT + 82 / col1 FROM tab0
----
1
3
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT ALL 35 + COUNT( * ) AS col2 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL 35 + COUNT ( * ) AS col2 FROM tab2
----
38

query II rowsort
SELECT ALL - - col2 - - col1 * - + ( - col1 ) * - ( + ( - col0 ) ) AS col1, - col0 + - - col2 AS col0 FROM tab0 cor0
----
196
2
38377
-77
98462
32

query I rowsort
SELECT + 55 + + + col0 AS col0 FROM tab2
----
101
119
130

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8161
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> col0 + + CAST( + 4 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8161
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> col0 + + CAST ( + 4 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 <> + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col1, - col0 * - col2 AS col0 FROM tab2 AS cor0
----
-51
1058
-67
4350
-77
2560

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT + + 4 * + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
12

skipif mysql # not compatible
query I rowsort label-8164
SELECT + + 4 * + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT DISTINCT MIN( - col0 ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT MIN ( - col0 ) AS col0 FROM tab2
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 4 col1 FROM tab1
----
-4
-4
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8167
SELECT DISTINCT + ( COUNT( * ) ) AS col2 FROM tab1 WHERE - 37 >= 20 + - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8167
SELECT DISTINCT + ( COUNT ( * ) ) AS col2 FROM tab1 WHERE - 37 >= 20 + - CAST ( NULL AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT DISTINCT + COUNT( * ) * + MIN( - - col2 ) + + COUNT( DISTINCT col1 ) + + 65 * - + 72 AS col1 FROM tab2 AS cor0
----
-4608

skipif mysql # not compatible
query I rowsort label-8168
SELECT DISTINCT + COUNT ( * ) * + MIN ( - - col2 ) + + COUNT ( DISTINCT col1 ) + + 65 * - + 72 AS col1 FROM tab2 AS cor0
----
-4608

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT NULL >= - col2
----

query I rowsort
SELECT - col2 * - col1 * + + col1 AS col2 FROM tab0 AS cor0
----
308367
4410
99

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col1 > + col1
----

query I rowsort
SELECT DISTINCT - + 70 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-70

query I rowsort
SELECT DISTINCT - col1 + ( + + col1 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - - 82 * - + col2 FROM tab1 cor0
----
-4838
-5576
-7872

query II rowsort
SELECT + - 12 * - col1 - + col2, col2 FROM tab2 AS cor0
----
589
23
746
58
884
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT 2 * + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8176
SELECT 2 * + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
6

query I rowsort
SELECT col2 * + - col2 + + col0 AS col0 FROM tab0
----
-13
-2194
-9704

query I rowsort
SELECT + col2 + + - 45 FROM tab0
----
-35
2
54

query III rowsort
SELECT * FROM tab1 WHERE + col2 > + 84
----
51
14
96

query II rowsort
SELECT 17, 46 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - 15 * - col1 + 87 * - col1 + + col1 * col0 AS col2 FROM tab0 AS cor0
----
-4617
25
315

query I rowsort
SELECT ALL + + col0 + - - ( + 38 ) FROM tab2 AS cor0
----
102
113
84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8183
SELECT ALL + 74 - + col1 + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL + 74 - + col1 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 97 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8185
SELECT ALL + + ( - + col0 ) AS col0, ( + 26 ) * + col1 * - - CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-15
98982
-87
5460
-97
2574

skipif mysql # not compatible
query II rowsort label-8185
SELECT ALL + + ( - + col0 ) AS col0, ( + 26 ) * + col1 * - - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-15
98982
-87
5460
-97
2574

query I rowsort
SELECT 91 AS col1 FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( col1, 54, + col0 + - ( col0 ) * - + col1, - 32, + + col1 )
----
91
91
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8187
SELECT COUNT( * ), MAX( ALL - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8187
SELECT COUNT ( * ), MAX ( ALL - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + - col0 / + col1 * - 70 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 57 * - 98 AS col1 FROM tab0
----
-5586
-5586
-5586

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 = + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= ( - + 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT ALL - ( + - COUNT( ( + 38 ) ) ) AS col0 FROM tab1 WHERE - - 47 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8192
SELECT ALL - ( + - COUNT ( ( + 38 ) ) ) AS col0 FROM tab1 WHERE - - 47 IS NOT NULL
----
3

query I rowsort
SELECT ALL + col1 * - + 99 AS col1 FROM tab1
----
-1386
-4653
-495

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8194
SELECT ALL - col1 FROM tab0 WHERE NOT NULL NOT BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-8194
SELECT ALL - col1 FROM tab0 WHERE NOT NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT col2, 45 * - + 37 - + 35 AS col2, + col2 AS col2 FROM tab0 cor0
----
9 values hashing to 81c84f86ec843fd22b1f173f0144a2cb

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT - ( MAX( ALL + + col1 ) ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8196
SELECT - ( MAX ( ALL + + col1 ) ) AS col1 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT col0 * - 75 FROM tab1 AS cor0
----
-3825
-6375
-6825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8198
SELECT + CAST( CAST( col1 AS SIGNED ) AS SIGNED ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8198
SELECT + CAST ( CAST ( col1 AS INTEGER ) AS INTEGER ) FROM tab0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) >= ( 89 )
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT 16 IS NOT NULL
----

query I rowsort
SELECT ALL - 67 - 3 FROM tab2
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT ALL + COUNT( * ) * 16 AS col0 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-8202
SELECT ALL + COUNT ( * ) * 16 AS col0 FROM tab2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-8203
SELECT col1 DIV - 85 - ( 73 ) FROM tab0
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-8203
SELECT col1 / - 85 - ( 73 ) FROM tab0
----
-73
-73
-73

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 ) NOT BETWEEN - col0 AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 / col0 >= NULL
----

query I rowsort
SELECT ALL col0 + - 16 AS col1 FROM tab0
----
-1
71
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 / 29 col0 FROM tab0 WHERE + ( - col2 ) + col0 BETWEEN NULL AND - 1 * col0
----

query I rowsort
SELECT ALL 9 FROM tab0 WHERE 99 <> + col0
----
9
9
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 67 col1 FROM tab1
----
3953
4556
6432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8210
SELECT - CAST( NULL AS SIGNED ) + 75 / ( col1 ) FROM tab1 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-8210
SELECT - CAST ( NULL AS INTEGER ) + 75 / ( col1 ) FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT + col0 * 42 AS col1 FROM tab0
----
3654
4074
630

query I rowsort
SELECT - 53 AS col1 FROM tab0 WHERE NOT col0 = 84
----
-53
-53
-53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8213
SELECT + COUNT( DISTINCT CAST( + 48 AS DECIMAL ) ) * + ( - 10 ) AS col0 FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-8213
SELECT + COUNT ( DISTINCT CAST ( + 48 AS REAL ) ) * + ( - 10 ) AS col0 FROM tab2
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8214
SELECT ALL + CAST( NULL AS SIGNED ) * + 90 AS col2 FROM tab2 WHERE col1 <> NULL
----

skipif mysql # not compatible
query I rowsort label-8214
SELECT ALL + CAST ( NULL AS INTEGER ) * + 90 AS col2 FROM tab2 WHERE col1 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8215
SELECT - MIN( - ( + col1 ) ) * COUNT( CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8215
SELECT - MIN ( - ( + col1 ) ) * COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT 74 * + col1 FROM tab2
----
3774
4958
5698

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 BETWEEN ( col2 ) AND 9
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8218
SELECT 5 DIV col0 - - 84 FROM tab2
----
84
84
84

skipif mysql # not compatible
query I rowsort label-8218
SELECT 5 / col0 - - 84 FROM tab2
----
84
84
84

query I rowsort
SELECT DISTINCT - ( col1 ) AS col2 FROM tab1 WHERE NOT ( NULL ) > col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8220
SELECT COUNT( * ) DIV - 15 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8220
SELECT COUNT ( * ) / - 15 AS col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8221
SELECT col0 DIV ( + 44 ) AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8221
SELECT col0 / ( + 44 ) AS col0 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT ALL + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 > col0
----
3

skipif mysql # not compatible
query I rowsort label-8222
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 > col0
----
3

query I rowsort
SELECT 94 - col2 AS col0 FROM tab0 AS cor0
----
-5
47
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8224
SELECT ALL col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 * - col0 AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 * - col0 AND ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col2 + + ( + col0 ) * - col2 AS col1 FROM tab0 AS cor0
----
-658
-860
-9504

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col2 * 60 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 < + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE + 93 <= + 16 / - ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT DISTINCT - COUNT( DISTINCT + col1 ) AS col0 FROM tab1 WHERE NOT 19 * - col1 <= ( - ( ( col2 ) ) * + ( - col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8229
SELECT DISTINCT - COUNT ( DISTINCT + col1 ) AS col0 FROM tab1 WHERE NOT 19 * - col1 <= ( - ( ( col2 ) ) * + ( - col2 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT ALL - + COUNT( col2 ) * 37 AS col0 FROM tab0 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL - + COUNT ( col2 ) * 37 AS col0 FROM tab0 AS cor0
----
-111

query I rowsort
SELECT ALL + ( 71 ) AS col2 FROM tab1 AS cor0
----
71
71
71

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 63 + + col1 * col1 < col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 59 FROM tab2 AS cor0 WHERE NOT col0 + - col2 * 41 <> NULL
----

query I rowsort
SELECT DISTINCT 87 * - col1 AS col2 FROM tab2 cor0
----
-4437
-5829
-6699

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 ) >= + 92
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND col2 + 96 * + col1 OR NOT ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE + 4 + col1 * + 36 IN ( 39 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * + col1 - + col0 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * - + 91 FROM tab2
----
-2093
-3640
-5278

onlyif mysql # DIV for integer division: 
query I rowsort label-8240
SELECT ALL - 1 * - col1 DIV - 1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL - 1 * - col1 / - 1 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( 24 ) ) IN ( col1 / col0 + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8242
SELECT ALL - CAST( NULL AS SIGNED ) * + - COUNT( * ) + - 14 / - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8242
SELECT ALL - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) + - 14 / - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 49 + - col0 FROM tab2 AS cor0
----
-15
-26
3

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 16 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT 33 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT + 98 NOT IN ( col1 * 89 )
----

query I rowsort
SELECT DISTINCT - 77 * + 87 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-6699

query I rowsort
SELECT ALL + col0 * - col0 - col0 * col1 + + 31 AS col0 FROM tab0 AS cor0
----
-1409
-9365
-9475

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( + col2 + - col0 ) = NULL
----

query I rowsort
SELECT 46 - + 15 FROM tab1 cor0
----
31
31
31

query I rowsort
SELECT DISTINCT - col0 + + col2 * 28 AS col1 FROM tab0 AS cor0
----
1301
193
2675

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8252
SELECT DISTINCT - MIN( DISTINCT - col2 ) + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8252
SELECT DISTINCT - MIN ( DISTINCT - col2 ) + + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 75 - - - col1 FROM tab2 AS cor0
----
-2
24
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8254
SELECT col0 DIV + 66 - - col2 * col2 col1 FROM tab0 AS cor0
----
101
2209
9802

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8254
SELECT col0 / + 66 - - col2 * col2 col1 FROM tab0 AS cor0
----
101
2209
9802

query I rowsort
SELECT DISTINCT 64 * + - col1 - - 52 + + col2 FROM tab2 cor0
----
-3189
-4178
-4836

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - col1 + + col2 col1 FROM tab1
----
123
183
206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8257
SELECT CAST( NULL AS SIGNED ) + + + 97 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8257
SELECT CAST ( NULL AS INTEGER ) + + + 97 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= - 30 AND NOT NULL IN ( 77 )
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE NOT ( - col0 + + - col1 ) IN ( 55 )
----
59
68
96

query I rowsort
SELECT + + col0 * + 8 * - col1 FROM tab2 AS cor0
----
-18768
-39424
-40200

query I rowsort
SELECT DISTINCT + 69 * - col0 AS col0 FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN - 56 AND ( - 4 )
----

query I rowsort
SELECT ( - + 42 ) FROM tab2 cor0
----
-42
-42
-42

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( NULL ) <= col2 / 60 + - 41 * + col1 )
----

query I rowsort
SELECT DISTINCT + 91 * - + 73 AS col0 FROM tab1
----
-6643

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT ALL COUNT( * ) FROM tab0 WHERE NULL < ( - 32 )
----
0

skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL COUNT ( * ) FROM tab0 WHERE NULL < ( - 32 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT ALL - MIN( ALL col1 ) AS col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL - MIN ( ALL col1 ) AS col2 FROM tab0 cor0
----
-1

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col0 * col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8268
SELECT CAST( AVG ( DISTINCT + 69 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-8268
SELECT CAST ( AVG ( DISTINCT + 69 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
69

query I rowsort
SELECT - col0 * - col1 * - col2 AS col0 FROM tab2 AS cor0
----
-197120
-291450
-53958

query I rowsort
SELECT ALL - - col0 * - 74 AS col1 FROM tab1 AS cor0
----
-3774
-6290
-6734

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 23 NOT BETWEEN + col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - ( + 99 ) * - + col2 * - - 76 / col2 ) <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
98

query I rowsort
SELECT ALL - 54 AS col2 FROM tab0 cor0
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT DISTINCT - COUNT( * ) * - 88 AS col2 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-8275
SELECT DISTINCT - COUNT ( * ) * - 88 AS col2 FROM tab2
----
264

query I rowsort
SELECT - - col0 AS col2 FROM tab1 WHERE NOT - col2 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8277
SELECT ALL - 91 DIV + COUNT( * ) AS col1 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-8277
SELECT ALL - 91 / + COUNT ( * ) AS col1 FROM tab1
----
-30

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) <> 54 / - col0 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8279
SELECT - col2 AS col2, col2 + - CAST( NULL AS SIGNED ) * + + col2 AS col1 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-8279
SELECT - col2 AS col2, col2 + - CAST ( NULL AS INTEGER ) * + + col2 AS col1 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 * col1 IN ( + + 79 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * + col1 <= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( 61 ) <= ( + + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8283
SELECT DISTINCT col2 DIV - + 34 AS col1 FROM tab1
----
-1
-2

skipif mysql # not compatible
query I rowsort label-8283
SELECT DISTINCT col2 / - + 34 AS col1 FROM tab1
----
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT SUM( - ( - - col0 ) ) + - 32 FROM tab0
----
-231

skipif mysql # not compatible
query I rowsort label-8284
SELECT SUM ( - ( - - col0 ) ) + - 32 FROM tab0
----
-231

query II rowsort
SELECT ALL + 56 + 20, col1 FROM tab1
----
76
14
76
47
76
5

query I rowsort
SELECT + 82 + - 45 AS col2 FROM tab2 AS cor0
----
37
37
37

query I rowsort
SELECT DISTINCT + col1 + + 63 FROM tab1 cor0
----
110
68
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 IN ( + col0 )
----

query I rowsort
SELECT ALL 36 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col1 + + 49 + + - 21 * + 48 FROM tab0 AS cor0
----
-878
-938
-958

query I rowsort
SELECT 97 * - - 74 * + + col2 * + col0 AS col1 FROM tab2
----
18375680
31224300
7594324

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 - + col1 col2 FROM tab1
----
37
70
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8293
SELECT - 3 * + - CAST( - col0 AS SIGNED ) AS col2 FROM tab1
----
-153
-255
-273

skipif mysql # not compatible
query I rowsort label-8293
SELECT - 3 * + - CAST ( - col0 AS INTEGER ) AS col2 FROM tab1
----
-153
-255
-273

query I rowsort
SELECT 38 - - col0 FROM tab2
----
102
113
84

query I rowsort
SELECT - col2 * - 59 - - + col1 AS col2 FROM tab2
----
1408
2437
3489

query I rowsort
SELECT - col2 * - 64 * + - col1 - ( + col0 ) AS col2 FROM tab2
----
-197184
-248779
-75118

query I rowsort
SELECT 46 * - - col2 AS col1 FROM tab1
----
2714
3128
4416

query II rowsort
SELECT DISTINCT 11, - ( col2 ) AS col1 FROM tab0
----
11
-10
11
-47
11
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 21 IS NOT NULL
----

query I rowsort
SELECT + col0 + col2 FROM tab1 AS cor0 WHERE NOT col2 <> + + 75 * - col2 / + 83 + - ( - col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8301
SELECT DISTINCT - 11 DIV 97 * - 78 * - COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8301
SELECT DISTINCT - 11 / 97 * - 78 * - COUNT ( * ) FROM tab0 cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - + col1 AND + + col0
----

query I rowsort
SELECT - + 37 * + + col2 FROM tab1 AS cor0
----
-2183
-2516
-3552

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 / + - 31 * + col1 + + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 64 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-64

query I rowsort
SELECT DISTINCT + + 53 AS col2 FROM tab2 AS cor0
----
53

query I rowsort
SELECT - 27 FROM tab1 AS cor0 WHERE NOT + col1 < ( 34 * - 25 )
----
-27
-27
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 - + col0 col0 FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 * col1 AND + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8310
SELECT col2 DIV - 32 FROM tab1
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-8310
SELECT col2 / - 32 FROM tab1
----
-1
-2
-3

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE - + 79 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 * col2 + + col0 IS NULL
----

query I rowsort
SELECT ALL - ( - 65 ) AS col2 FROM tab1 WHERE 62 * + + 61 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - + col0 < - col1 + 53 / + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col2 + col0 * - col0 AS col0, col1 FROM tab2 AS cor0
----
-2093
51
-4056
77
-5567
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8316
SELECT + CAST( NULL AS SIGNED ) + COUNT( * ) * + 79 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8316
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) * + 79 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT ALL + SUM( - col1 ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL + SUM ( - col1 ) AS col2 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT - + 78 + + 43 FROM tab1 AS cor0
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT ALL - COUNT( * ) + - 71 AS col2 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL - COUNT ( * ) + - 71 AS col2 FROM tab1 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT + + COUNT( * ) + MIN( - 28 ) AS col0 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-8320
SELECT + + COUNT ( * ) + MIN ( - 28 ) AS col0 FROM tab2 AS cor0
----
-25

query I rowsort
SELECT ALL - 99 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT DISTINCT + 27 * - col0 * + 65 FROM tab1 AS cor0
----
-149175
-159705
-89505

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT - - COUNT( col2 ) - + COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8323
SELECT - - COUNT ( col2 ) - + COUNT ( * ) FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8324
SELECT CAST( NULL AS SIGNED ) - + 62 + - col2 * 48 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-8324
SELECT CAST ( NULL AS INTEGER ) - + 62 + - col2 * 48 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 43 + 91 AS col0 FROM tab2 AS cor0
----
48
48
48

query I rowsort
SELECT - 11 + + - col1 AS col2 FROM tab0 AS cor0
----
-12
-32
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-8327
SELECT DISTINCT - col0 DIV + col2 col2 FROM tab1
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8327
SELECT DISTINCT - col0 / + col2 col2 FROM tab1
----
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8328
SELECT DISTINCT + MIN( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8328
SELECT DISTINCT + MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT DISTINCT - 85 * + COUNT( * ) AS col1 FROM tab2
----
-255

skipif mysql # not compatible
query I rowsort label-8329
SELECT DISTINCT - 85 * + COUNT ( * ) AS col1 FROM tab2
----
-255

onlyif mysql # aggregate syntax: 
query II rowsort label-8330
SELECT - MIN( col2 ) col1, + SUM( + 22 ) FROM tab2
----
-23
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8330
SELECT - MIN ( col2 ) col1, + SUM ( + 22 ) FROM tab2
----
-23
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT DISTINCT - 23 * - + COUNT( * ) FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-8331
SELECT DISTINCT - 23 * - + COUNT ( * ) FROM tab0
----
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( 73 / + - col0 ) AND - 48 + + - 44 * - 5
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8333
SELECT - - col1 DIV - col2 * - col2 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8333
SELECT - - col1 / - col2 * - col2 AS col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8334
SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( col1 ) <> + col0 + + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8334
SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( col1 ) <> + col0 + + CAST ( + CAST ( NULL AS REAL ) AS INTEGER )
----

query I rowsort
SELECT ALL 72 AS col2 FROM tab1 WHERE - col1 NOT BETWEEN + 97 AND - 86 + + col0
----
72
72
72

query II rowsort
SELECT DISTINCT + col2, + ( col2 ) FROM tab0
----
10
10
47
47
99
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 96 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT 27 * + COUNT( * ) FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8338
SELECT 27 * + COUNT ( * ) FROM tab2 AS cor0
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8339
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) * - col2 * + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8339
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) * - col2 * + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + - - 77 FROM tab0 AS cor0
----
158
78
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT DISTINCT - COUNT( ALL + + 19 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8341
SELECT DISTINCT - COUNT ( ALL + + 19 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT col1 + - 50 AS col1 FROM tab0
----
-29
-49
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8343
SELECT DISTINCT 82 + + col2 * + CAST( NULL AS SIGNED ) * - - 42 * - - col1 col0, - col0 * + col1 FROM tab2 WHERE 61 / - + col1 IS NOT NULL
----
NULL
-2346
NULL
-4928
NULL
-5025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8343
SELECT DISTINCT 82 + + col2 * + CAST ( NULL AS INTEGER ) * - - 42 * - - col1 col0, - col0 * + col1 FROM tab2 WHERE 61 / - + col1 IS NOT NULL
----
NULL
-2346
NULL
-4928
NULL
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT DISTINCT - 90 + - COUNT( * ) * 44 FROM tab2
----
-222

skipif mysql # not compatible
query I rowsort label-8344
SELECT DISTINCT - 90 + - COUNT ( * ) * 44 FROM tab2
----
-222

query I rowsort
SELECT ALL - 57 + + + col0 AS col1 FROM tab1
----
-6
28
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8346
SELECT DISTINCT - COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-8346
SELECT DISTINCT - COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-1

query I rowsort
SELECT - - col2 + - + col2 FROM tab2 AS cor0 WHERE 80 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8348
SELECT * FROM tab2 WHERE ( NOT + col1 * - CAST( - col0 AS DECIMAL ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8348
SELECT * FROM tab2 WHERE ( NOT + col1 * - CAST ( - col0 AS REAL ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE - col2 < - + 73
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT ALL SUM( + 6 ) AS col0 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-8350
SELECT ALL SUM ( + 6 ) AS col0 FROM tab2
----
18

query I rowsort
SELECT + 25 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8352
SELECT - col1 + - CAST( NULL AS SIGNED ) + - col0 + + 36 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8352
SELECT - col1 + - CAST ( NULL AS INTEGER ) + - col0 + + 36 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT ALL - 11 + + COUNT( * ) FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-8353
SELECT ALL - 11 + + COUNT ( * ) FROM tab2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT ALL - COUNT( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL - COUNT ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8355
SELECT 7 DIV col1 DIV + col2 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8355
SELECT 7 / col1 / + col2 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + ( col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 * + - col2 + - 67 AND + + col0 + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 col2 FROM tab2 cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT DISTINCT - ( - - COUNT( ALL - col0 ) ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8359
SELECT DISTINCT - ( - - COUNT ( ALL - col0 ) ) col0 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 98 col2 FROM tab1 WHERE NULL IS NULL
----
-98

query I rowsort
SELECT DISTINCT + col2 * - 21 * - col1 FROM tab0
----
2079
4410
79947

query II rowsort
SELECT - col0 AS col0, col1 * - col0 AS col1 FROM tab0
----
-15
-1215
-87
-1827
-97
-97

query I rowsort
SELECT DISTINCT + 83 * + col0 AS col1 FROM tab2
----
3818
5312
6225

query II rowsort
SELECT ( - col0 ) AS col1, col1 FROM tab1
----
-51
14
-85
5
-91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT DISTINCT - 62 * - 52 * - MAX( - col2 ) FROM tab2
----
74152

skipif mysql # not compatible
query I rowsort label-8365
SELECT DISTINCT - 62 * - 52 * - MAX ( - col2 ) FROM tab2
----
74152

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT ALL - 57 * + MIN( col2 ) AS col1 FROM tab1
----
-3363

skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL - 57 * + MIN ( col2 ) AS col1 FROM tab1
----
-3363

query I rowsort
SELECT + col2 * 12 + + + 92 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT COUNT( ALL + col0 ) * - MAX( ALL - + 84 ) AS col1 FROM tab2 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-8368
SELECT COUNT ( ALL + col0 ) * - MAX ( ALL - + 84 ) AS col1 FROM tab2 AS cor0
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT + + COUNT( * ) * - COUNT( * ) FROM tab1 cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8369
SELECT + + COUNT ( * ) * - COUNT ( * ) FROM tab1 cor0 WHERE col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT col0 + 57 AS col2 FROM tab2 AS cor0
----
103
121
132

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8371
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8371
SELECT DISTINCT CAST ( NULL AS REAL ) * - - COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT - col2 + + - 72 FROM tab0
----
-119
-171
-82

query I rowsort
SELECT DISTINCT - col0 * - 95 FROM tab2
----
4370
6080
7125

query I rowsort
SELECT DISTINCT - + col1 AS col0 FROM tab0 WHERE ( 99 - 43 IS NOT NULL )
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT ALL 35 + + COUNT( * ) FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL 35 + + COUNT ( * ) FROM tab2 AS cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT 58 + MIN( + - col0 ) AS col1 FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-8376
SELECT 58 + MIN ( + - col0 ) AS col1 FROM tab2 AS cor0
----
-17

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8378
SELECT ALL + + AVG ( ALL + + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8378
SELECT ALL + + AVG ( ALL + + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT ALL - + SUM( + col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL - + SUM ( + col0 ) AS col0 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT + - 32 FROM tab0 AS cor0 WHERE NOT - col0 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN - - 47 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 62 + - col2 NOT BETWEEN NULL AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 15 col0 FROM tab2 WHERE NOT NULL = NULL OR NOT 18 + + - 35 - + col1 IS NULL
----
15
15
15

query I rowsort
SELECT DISTINCT - col0 * + - 61 FROM tab1
----
3111
5185
5551

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8385
SELECT * FROM tab0 WHERE NOT NULL > ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8385
SELECT * FROM tab0 WHERE NOT NULL > ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8386
SELECT - ( CAST( NULL AS SIGNED ) ) * + col2 / + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8386
SELECT - ( CAST ( NULL AS INTEGER ) ) * + col2 / + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 7 * 19 FROM tab0
----
-133
-133
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT + SUM( ALL - + 16 ) AS col0 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-8388
SELECT + SUM ( ALL - + 16 ) AS col0 FROM tab1
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-8389
SELECT ALL col1 DIV + + col0 AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8389
SELECT ALL col1 / + + col0 AS col0 FROM tab2
----
0
1
1

query I rowsort
SELECT - ( col1 ) * col0 * - ( col1 ) + - ( + col2 ) FROM tab1 AS cor0
----
200951
2066
9900

query I rowsort
SELECT ALL + 20 FROM tab0 cor0 WHERE NOT 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT + COUNT( * ) * - COUNT( * ) col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8392
SELECT + COUNT ( * ) * - COUNT ( * ) col1 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - + ( 34 ) * - col1 AS col0 FROM tab1 AS cor0
----
1598
170
476

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 * + - col1 / + col0 / + + 30 AND NULL
----

query I rowsort
SELECT + + 81 FROM tab1 AS cor0 WHERE NOT ( 63 ) * + 82 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + + col2 col0 FROM tab0
----
100
2209
9801

onlyif mysql # DIV for integer division: 
query II rowsort label-8397
SELECT - col2, + 31 - + col0 + - - col2 DIV - - col0 AS col0 FROM tab2
----
-23
-15
-40
-33
-58
-44

skipif mysql # not compatible
query II rowsort label-8397
SELECT - col2, + 31 - + col0 + - - col2 / - - col0 AS col0 FROM tab2
----
-23
-15
-40
-33
-58
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT ALL COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8398
SELECT ALL COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT - - 25 * col2 + + col1 FROM tab2 AS cor0
----
1077
1517
626

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 1 col0 FROM tab2 AS cor0
----
-50
-66
-76

query I rowsort
SELECT - col1 - ( + 76 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 + + col0 + - col0 AS col2 FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT DISTINCT - - COUNT( DISTINCT + col1 ) + - COUNT( * ) + - MAX( ALL col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8403
SELECT DISTINCT - - COUNT ( DISTINCT + col1 ) + - COUNT ( * ) + - MAX ( ALL col0 ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT - col2 + + + col0 + + + 93 AS col1 FROM tab1 AS cor0 WHERE ( + + col2 ) + + + col1 <> + col2
----
116
119
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8405
SELECT ALL + col0 FROM tab2 AS cor0 WHERE col1 + - CAST( - 91 AS SIGNED ) * + - 53 * + - col1 IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8405
SELECT ALL + col0 FROM tab2 AS cor0 WHERE col1 + - CAST ( - 91 AS INTEGER ) * + - 53 * + - col1 IS NOT NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 + - + col0 col1 FROM tab2
----
-141
-159
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT ALL - MIN( + col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL - MIN ( + col0 ) FROM tab0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-8408
SELECT col0 DIV + 81 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8408
SELECT col0 / + 81 AS col1 FROM tab1
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8409
SELECT + 44 DIV - col0 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8409
SELECT + 44 / - col0 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT 36 * + col0 * + + col1 AS col2 FROM tab1
----
15300
153972
25704

query I rowsort
SELECT - ( - 30 ) AS col0 FROM tab1
----
30
30
30

query I rowsort
SELECT 77 * - 4 * 17 AS col2 FROM tab1
----
-5236
-5236
-5236

query I rowsort
SELECT ALL - + col0 + - col0 * + col1 FROM tab1 AS cor0
----
-4368
-510
-765

query I rowsort
SELECT + col1 + - 52 AS col0 FROM tab0
----
-31
-51
29

query III rowsort
SELECT ALL * FROM tab2 WHERE - 5 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT - COUNT( 60 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8416
SELECT - COUNT ( 60 ) AS col0 FROM tab1
----
-3

query II rowsort
SELECT DISTINCT - 1 AS col0, + col0 + - - 29 FROM tab1 AS cor0
----
-1
114
-1
120
-1
80

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( + ( 30 ) ) >= col0 + + ( - col2 )
----
87
21
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * + + col0 = + col0
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT COUNT( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8420
SELECT COUNT ( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 20, + 30 col2 FROM tab1 AS cor0
----
20
30

query I rowsort
SELECT ALL + + ( + + 73 ) AS col2 FROM tab2 AS cor0
----
73
73
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 0 col1, ( - col0 ) * - col0 + 44 AS col0 FROM tab1 AS cor0
----
0
2645
0
7269
0
8325

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT DISTINCT + SUM( 65 ) * COUNT( * ) FROM tab1
----
585

skipif mysql # not compatible
query I rowsort label-8424
SELECT DISTINCT + SUM ( 65 ) * COUNT ( * ) FROM tab1
----
585

query I rowsort
SELECT ALL + 60 * - 90 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to fa267ac295745fdbd2b5c9b18f522d6a

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8426
SELECT ALL AVG ( DISTINCT - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8426
SELECT ALL AVG ( DISTINCT - CAST ( NULL AS REAL ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT ALL - COUNT( * ) AS col2 FROM tab0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 WHERE NULL <> NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8428
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - col1 / + - col2 + + - col1 AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8428
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - col1 / + - col2 + + - col1 AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8429
SELECT - + COUNT( * ) + - CAST( NULL AS SIGNED ) * - - 68 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8429
SELECT - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * - - 68 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col1 + - 42 FROM tab1
----
-28
-37
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8431
SELECT DISTINCT - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * - CAST( NULL AS SIGNED ) + + + 74 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8431
SELECT DISTINCT - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) + + + 74 AS col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 55 * - 96 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT DISTINCT + MIN( ALL - - col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8433
SELECT DISTINCT + MIN ( ALL - - col2 ) AS col0 FROM tab2
----
23

query I rowsort
SELECT ALL - - 86 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query II rowsort
SELECT - col1, - 93 + + - col1 * + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-1
-190
-21
-1920
-81
-1308

query I rowsort
SELECT ALL + col0 + + - 97 FROM tab2 AS cor0
----
-22
-33
-51

query I rowsort
SELECT DISTINCT + + col1 * + - col0 + col0 FROM tab1 cor0
----
-340
-4186
-663

onlyif mysql # DIV for integer division: 
query II rowsort label-8438
SELECT + ( + col0 ) - + + col0 DIV - ( + ( 67 ) ) AS col0, 6 AS col0 FROM tab1 AS cor0
----
51
6
86
6
92
6

skipif mysql # not compatible
query II rowsort label-8438
SELECT + ( + col0 ) - + + col0 / - ( + ( 67 ) ) AS col0, 6 AS col0 FROM tab1 AS cor0
----
51
6
86
6
92
6

query I rowsort
SELECT - + 87 + col2 + - col1 AS col1 FROM tab1 AS cor0 WHERE 88 + + col2 = NULL
----

query I rowsort
SELECT DISTINCT - 64 + 51 FROM tab1 AS cor0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT + 20 - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8441
SELECT + 20 - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
23

query I rowsort
SELECT DISTINCT col2 + - - col0 + + col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL IS NOT NULL ) )
----
184
293
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT DISTINCT 35 - + MIN( col0 ) FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-8443
SELECT DISTINCT 35 - + MIN ( col0 ) FROM tab2
----
-11

query II rowsort
SELECT DISTINCT 67 AS col2, col0 FROM tab1
----
67
51
67
85
67
91

query II rowsort
SELECT - 56 AS col0, col0 AS col0 FROM tab0 WHERE - - 28 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT DISTINCT MIN( DISTINCT + col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8446
SELECT DISTINCT MIN ( DISTINCT + col0 ) AS col2 FROM tab1
----
51

query III rowsort
SELECT * FROM tab0 WHERE + 40 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= col2 OR NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8449
SELECT ALL + 41 AS col1, CAST( - + col2 AS SIGNED ) + - - CAST( - + 61 AS SIGNED ) FROM tab2
----
41
-101
41
-119
41
-84

skipif mysql # not compatible
query II rowsort label-8449
SELECT ALL + 41 AS col1, CAST ( - + col2 AS INTEGER ) + - - CAST ( - + 61 AS INTEGER ) FROM tab2
----
41
-101
41
-119
41
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-8450
SELECT - col1 DIV col1 + + - col1 AS col2 FROM tab0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-8450
SELECT - col1 / col1 + + - col1 AS col2 FROM tab0
----
-2
-22
-82

query I rowsort
SELECT DISTINCT ( - 17 ) * + - 95 * - col1 FROM tab2 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT - - 89 * + col0 + + col0 + 21 AS col2 FROM tab2 AS cor0
----
4161
5781
6771

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, 82 FROM tab1 AS cor0
----
59
82
68
82
96
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8454
SELECT - COUNT( * ) * + AVG ( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8454
SELECT - COUNT ( * ) * + AVG ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 - + ( 46 ) > + 8 + - + 83
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * col0 + 19 FROM tab1 AS cor0
----
2620
7244
8300

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT DISTINCT + SUM( ALL + 51 ) AS col0 FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-8457
SELECT DISTINCT + SUM ( ALL + 51 ) AS col0 FROM tab0 AS cor0
----
153

query I rowsort
SELECT - col2 * + - 48 FROM tab0 AS cor0
----
2256
4752
480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8459
SELECT CAST( - 52 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
2652
3484
4004

skipif mysql # not compatible
query I rowsort label-8459
SELECT CAST ( - 52 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
2652
3484
4004

query II rowsort
SELECT ALL 86 AS col2, + ( - 70 ) FROM tab0
----
86
-70
86
-70
86
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-8461
SELECT + 47 AS col2, + COUNT( * ) AS col2 FROM tab1
----
47
3

skipif mysql # not compatible
query II rowsort label-8461
SELECT + 47 AS col2, + COUNT ( * ) AS col2 FROM tab1
----
47
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT + SUM( ALL col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8462
SELECT + SUM ( ALL col0 ) AS col1 FROM tab2
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, - col2 AS col1 FROM tab2 WHERE - + col0 + - - col0 + - col1 IS NOT NULL
----
46
-23
64
-40
75
-58

query II rowsort
SELECT 12 AS col1, - col2 FROM tab2 cor0
----
12
-23
12
-40
12
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-8465
SELECT - 67 AS col0, - 58 + - + COUNT( * ) col0 FROM tab0 AS cor0
----
-67
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8465
SELECT - 67 AS col0, - 58 + - + COUNT ( * ) col0 FROM tab0 AS cor0
----
-67
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 99 + - col0 col2 FROM tab2 cor0
----
5003
6558
7559

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 81 AND - - 25 * col2 + + - col0
----

query I rowsort
SELECT - col2 + 8 + - 35 * - 62 + - col2 + + - col0 * 57 AS col1 FROM tab0
----
-2801
-3549
1229

query I rowsort
SELECT col2 + - col2 + - col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT 22 FROM tab2 cor0 WHERE NOT col0 IS NULL
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8471
SELECT ALL - 70 * + col0 * - - CAST( col0 AS SIGNED ) - - + col0 AS col2 FROM tab2 AS cor0
----
-148074
-286656
-393675

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL - 70 * + col0 * - - CAST ( col0 AS INTEGER ) - - + col0 AS col2 FROM tab2 AS cor0
----
-148074
-286656
-393675

query I rowsort
SELECT ALL + - 58 + + - col2 FROM tab1 AS cor0
----
-117
-126
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT DISTINCT + + 60 + - MAX( DISTINCT col1 ) - - 38 AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8473
SELECT DISTINCT + + 60 + - MAX ( DISTINCT col1 ) - - 38 AS col2 FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8474
SELECT DISTINCT MIN( DISTINCT - CAST( + col1 AS SIGNED ) ) AS col2 FROM tab0 cor0 WHERE - col2 > + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8474
SELECT DISTINCT MIN ( DISTINCT - CAST ( + col1 AS INTEGER ) ) AS col2 FROM tab0 cor0 WHERE - col2 > + + col1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * + 42 IS NULL
----

query II rowsort
SELECT - 31 + + + 79 AS col1, 15 AS col2 FROM tab0 AS cor0
----
48
15
48
15
48
15

query I rowsort
SELECT DISTINCT - - col2 + ( col1 ) FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT ALL - ( + MAX( + col1 ) ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8478
SELECT ALL - ( + MAX ( + col1 ) ) FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8479
SELECT DISTINCT - COUNT( * ) - MAX( ALL + + CAST( NULL AS SIGNED ) ) * + COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8479
SELECT DISTINCT - COUNT ( * ) - MAX ( ALL + + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8480
SELECT + CAST( NULL AS SIGNED ), + col0 DIV col1 AS col2 FROM tab2
----
NULL
0
NULL
0
NULL
1

skipif mysql # not compatible
query II rowsort label-8480
SELECT + CAST ( NULL AS INTEGER ), + col0 / col1 AS col2 FROM tab2
----
NULL
0
NULL
0
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8481
SELECT CAST( NULL AS SIGNED ) - - - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8481
SELECT CAST ( NULL AS INTEGER ) - - - COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT DISTINCT - COUNT( * ) * + + ( - 36 ) AS col2 FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-8482
SELECT DISTINCT - COUNT ( * ) * + + ( - 36 ) AS col2 FROM tab0
----
108

query II rowsort
SELECT ALL + 85 + ( + - col2 ) AS col0, col1 FROM tab0
----
-14
1
38
81
75
21

query I rowsort
SELECT DISTINCT 18 * + - 14 AS col0 FROM tab0
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT ALL SUM( ALL 85 ) AS col0 FROM tab1 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL SUM ( ALL 85 ) AS col0 FROM tab1 AS cor0
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT - MIN( - 7 ) AS col0 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-8486
SELECT - MIN ( - 7 ) AS col0 FROM tab2 AS cor0
----
7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < + - 3
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT - - ( - COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8489
SELECT - - ( - COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8490
SELECT 62 / + + CAST( NULL AS SIGNED ) * + + 61 * + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8490
SELECT 62 / + + CAST ( NULL AS INTEGER ) * + + 61 * + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8491
SELECT DISTINCT + COUNT( * ) DIV COUNT( * ) AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8491
SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) AS col0 FROM tab0 cor0
----
1

query I rowsort
SELECT - 1 * - + col0 AS col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8493
SELECT ALL - CAST( + 2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL - CAST ( + 2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-2
-2
-2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + 18 ) - - 14 * + 18 * - 37 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 24 * 81 - - 59 FROM tab1 AS cor0
----
2003
2003
2003

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT SUM( + + col1 ) * - COUNT( * ) + MIN( - + 86 ) - + + 72 col0 FROM tab2
----
-743

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8496
SELECT SUM ( + + col1 ) * - COUNT ( * ) + MIN ( - + 86 ) - + + 72 col0 FROM tab2
----
-743

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT ALL 9 + - + MAX( + 68 ) AS col2 FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL 9 + - + MAX ( + 68 ) AS col2 FROM tab2
----
-59

query I rowsort
SELECT + col0 FROM tab0 WHERE NULL < - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT DISTINCT 42 + + 58 + + COUNT( * ) + 50 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-8499
SELECT DISTINCT 42 + + 58 + + COUNT ( * ) + 50 FROM tab1 AS cor0
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8500
SELECT - COUNT( * ) + - 40 - + - CAST( + - 8 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8500
SELECT - COUNT ( * ) + - 40 - + - CAST ( + - 8 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT 35 + - MIN( DISTINCT + 69 ) AS col1 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-8501
SELECT 35 + - MIN ( DISTINCT + 69 ) AS col1 FROM tab0 AS cor0
----
-34

query I rowsort
SELECT + 95 * 90 * - 66 + 91 AS col2 FROM tab2 AS cor0
----
-564209
-564209
-564209

query I rowsort
SELECT DISTINCT + + ( + 24 ) AS col0 FROM tab0 AS cor0
----
24

query III rowsort
SELECT * FROM tab2 WHERE - 48 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8505
SELECT + - COUNT( * ) AS col0, - 86 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8505
SELECT + - COUNT ( * ) AS col0, - 86 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
-86

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( 7 + 3 ) IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8507
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 <= ( col2 / 19 / - 86 - - CAST( + col2 AS DECIMAL ) + + col0 )
----
15
81
47

skipif mysql # not compatible
query III rowsort label-8507
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 <= ( col2 / 19 / - 86 - - CAST ( + col2 AS REAL ) + + col0 )
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 19 + col1 * - col2 + col0 * + - ( + 8 ) col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( + 97 - + + col0 ) AND + col1 + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8509
SELECT ALL - 40 + + col1 DIV 44 FROM tab0 AS cor0
----
-39
-40
-40

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL - 40 + + col1 / 44 FROM tab0 AS cor0
----
-39
-40
-40

query I rowsort
SELECT DISTINCT + 64 * - col0 * - ( - - col0 ) - col0 AS col1 FROM tab0 AS cor0
----
14385
484329
602079

onlyif mysql # DIV for integer division: 
query I rowsort label-8511
SELECT ALL + 70 + + col0 DIV - col0 col0 FROM tab0 AS cor0
----
69
69
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8511
SELECT ALL + 70 + + col0 / - col0 col0 FROM tab0 AS cor0
----
69
69
69

query I rowsort
SELECT DISTINCT + + col0 * col2 - + col1 AS col0 FROM tab2 AS cor0
----
1007
2483
4283

query I rowsort
SELECT 37 * col0 + - - col0 FROM tab2
----
1748
2432
2850

onlyif mysql # DIV for integer division: 
query I rowsort label-8514
SELECT + 98 DIV - 46 + col1 DIV ( col2 ) AS col0 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8514
SELECT + 98 / - 46 + col1 / ( col2 ) AS col0 FROM tab0
----
-1
-2
0

query I rowsort
SELECT ALL 28 - + col0 AS col2 FROM tab1
----
-23
-57
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT ALL COUNT( * ) * - + 8 AS col1 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-8516
SELECT ALL COUNT ( * ) * - + 8 AS col1 FROM tab2
----
-24

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 83 IS NOT NULL
----

query I rowsort
SELECT - col0 * + ( - 32 ) AS col2 FROM tab1 AS cor0
----
1632
2720
2912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8519
SELECT DISTINCT + ( + + CAST( COUNT( * ) AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8519
SELECT DISTINCT + ( + + CAST ( COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 12 FROM tab0 AS cor0 WHERE 37 * - - 1 IS NOT NULL
----
12

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 8 <> NULL
----

query II rowsort
SELECT ALL + - ( col2 ) * + col2 AS col0, col0 AS col2 FROM tab2 AS cor0
----
-1600
64
-3364
75
-529
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8523
SELECT DISTINCT - MIN( DISTINCT + + col1 ) DIV 24 + - 75 * - 67 + + 57 - 88 FROM tab2 AS cor0
----
4992

skipif mysql # not compatible
query I rowsort label-8523
SELECT DISTINCT - MIN ( DISTINCT + + col1 ) / 24 + - 75 * - 67 + + 57 - 88 FROM tab2 AS cor0
----
4992

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8524
SELECT ALL * FROM tab1 AS cor0 WHERE 62 * - 13 + col1 + - col1 + - CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8524
SELECT ALL * FROM tab1 AS cor0 WHERE 62 * - 13 + col1 + - col1 + - CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8525
SELECT - col0 DIV - + col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8525
SELECT - col0 / - + col2 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8526
SELECT + 67 * MIN( ALL - col1 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8526
SELECT + 67 * MIN ( ALL - col1 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - + 52 + col2 + + col1 FROM tab1 AS cor0
----
12
58
63

query I rowsort
SELECT DISTINCT + - 53 AS col2 FROM tab1 AS cor0
----
-53

query I rowsort
SELECT + col1 + - - 80 FROM tab2
----
131
147
157

query II rowsort
SELECT 39, - col0 AS col2 FROM tab2
----
39
-46
39
-64
39
-75

query I rowsort
SELECT DISTINCT col2 * + 34 + 69 FROM tab0
----
1667
3435
409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8532
SELECT + CAST( NULL AS SIGNED ) + + - 44 * + + COUNT( * ) AS col2 FROM tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8532
SELECT + CAST ( NULL AS INTEGER ) + + - 44 * + + COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 * - col2 + + - 34 FROM tab0
----
2175
66
9767

query I rowsort
SELECT 36 * col1 - - col1 FROM tab0 AS cor0
----
2997
37
777

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT ALL - COUNT( * ) + + - 59 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL - COUNT ( * ) + + - 59 FROM tab2 AS cor0
----
-62

query I rowsort
SELECT ALL + - col0 + + - ( + + 63 ) FROM tab2 cor0
----
-109
-127
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8537
SELECT DISTINCT + - col0 + CAST( - + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-8537
SELECT DISTINCT + - col0 + CAST ( - + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT ALL - col2 * - + 92 + col1 FROM tab0 AS cor0
----
4405
9109
941

query I rowsort
SELECT col1 + + ( + + 40 ) AS col0 FROM tab2
----
107
117
91

query I rowsort
SELECT 92 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8541
SELECT ALL + COUNT( * ) DIV + COUNT( ALL - col1 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8541
SELECT ALL + COUNT ( * ) / + COUNT ( ALL - col1 ) FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8542
SELECT + CAST( NULL AS SIGNED ) + + + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8542
SELECT + CAST ( NULL AS INTEGER ) + + + col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 / col1 IS NOT NULL
----

query I rowsort
SELECT + col0 + 69 AS col1 FROM tab2 cor0
----
115
133
144

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT DISTINCT + COUNT( * ) - - ( + 86 ) FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-8545
SELECT DISTINCT + COUNT ( * ) - - ( + 86 ) FROM tab1 AS cor0
----
89

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 - - col2 + + 41 AS col1 FROM tab1 cor0
----
159
177
233

query I rowsort
SELECT ALL - - ( + + col0 ) + col0 - + 98 + col0 + - col2 * 92 / + + 21 AS col2 FROM tab1 AS cor0 WHERE + 34 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 59 * col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT COUNT( ALL ( - 84 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8550
SELECT COUNT ( ALL ( - 84 ) ) FROM tab2
----
3

query I rowsort
SELECT + 72 * + 7 FROM tab2
----
504
504
504

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE + col0 - - col1 IS NULL
----

query I rowsort
SELECT - col1 * + ( + + col2 ) FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT - 73 FROM tab0 WHERE + 17 = NULL
----

query I rowsort
SELECT DISTINCT col1 * - 19 FROM tab0
----
-1539
-19
-399

onlyif mysql # aggregate syntax: 
query II rowsort label-8556
SELECT COUNT( * ) AS col0, 34 AS col1 FROM tab2
----
3
34

skipif mysql # not compatible
query II rowsort label-8556
SELECT COUNT ( * ) AS col0, 34 AS col1 FROM tab2
----
3
34

query I rowsort
SELECT ALL - + ( + 30 ) AS col0 FROM tab2 cor0
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-8558
SELECT DISTINCT - 30, MAX( DISTINCT + + col1 ) * - + ( - + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-30
141

skipif mysql # not compatible
query II rowsort label-8558
SELECT DISTINCT - 30, MAX ( DISTINCT + + col1 ) * - + ( - + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-30
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + col2 * + - col1 col1 FROM tab1 AS cor0
----
-129024
-17405
-217328

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT + MIN( ALL + 89 ) FROM tab0 AS cor0 WHERE NOT 83 > - col1 + + col0
----
89

skipif mysql # not compatible
query I rowsort label-8560
SELECT + MIN ( ALL + 89 ) FROM tab0 AS cor0 WHERE NOT 83 > - col1 + + col0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8561
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8561
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT DISTINCT MIN( ALL + 28 ) FROM tab2, tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-8563
SELECT DISTINCT MIN ( ALL + 28 ) FROM tab2, tab0 AS cor0
----
28

query I rowsort
SELECT + ( + 46 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT - - COUNT( * ) * + - 61 FROM tab2 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-8565
SELECT - - COUNT ( * ) * + - 61 FROM tab2 AS cor0
----
-183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 * + + 79 * - - col2 col0 FROM tab0 AS cor0
----
133668
281556
28440

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 68 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 3 * - 0 + - - 60 FROM tab1 AS cor0
----
60
60
60

query I rowsort
SELECT DISTINCT ( + col1 ) * - col0 AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL - 35 * 9 FROM tab2 AS cor0
----
-315
-315
-315

query I rowsort
SELECT - col0 + - ( 16 ) * 15 * col1 + + 79 FROM tab2
----
-12207
-16076
-18465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8572
SELECT DISTINCT + COUNT( * ) / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8572
SELECT DISTINCT + COUNT ( * ) / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT + col2 + + + col2 FROM tab2
----
116
46
80

query I rowsort
SELECT + 16 + + - 62 AS col1 FROM tab0 AS cor0
----
-46
-46
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-8575
SELECT ALL col1 DIV - - col2 * + + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL col1 / - - col2 * + + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * - - col0 + - - col2 - + 16 AS col0 FROM tab0 AS cor0
----
1246
180
1821

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8577
SELECT ALL col1 - CAST( NULL AS SIGNED ) + + 33 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8577
SELECT ALL col1 - CAST ( NULL AS INTEGER ) + + 33 col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 25 + + - col0 AS col0 FROM tab1 AS cor0
----
-110
-116
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 60 AS col2, - 93 col1 FROM tab1 AS cor0
----
-60
-93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8580
SELECT - + CAST( NULL AS DECIMAL ) / + - col1 / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT - + CAST ( NULL AS REAL ) / + - col1 / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8581
SELECT ALL CAST( - col0 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL CAST ( - col0 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-8582
SELECT ALL - 70 DIV + 8 AS col2 FROM tab2 AS cor0
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL - 70 / + 8 AS col2 FROM tab2 AS cor0
----
-8
-8
-8

query I rowsort
SELECT DISTINCT - 31 * + 33 FROM tab0 AS cor0
----
-1023

query II rowsort
SELECT + 3 AS col2, + col1 FROM tab1 AS cor0
----
3
14
3
47
3
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8585
SELECT - COUNT( * ) AS col1, - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-8585
SELECT - COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT DISTINCT - COUNT( ALL - - 74 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8586
SELECT DISTINCT - COUNT ( ALL - - 74 ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN + col0 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT DISTINCT + ( MAX( - ( + col1 ) ) ) * - + SUM( col1 ) FROM tab2 AS cor0
----
9945

skipif mysql # not compatible
query I rowsort label-8588
SELECT DISTINCT + ( MAX ( - ( + col1 ) ) ) * - + SUM ( col1 ) FROM tab2 AS cor0
----
9945

query I rowsort
SELECT ALL - col0 * - 8 + + col0 AS col1 FROM tab0 cor0
----
135
783
873

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT - SUM( - 53 ) AS col1 FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-8590
SELECT - SUM ( - 53 ) AS col1 FROM tab1
----
159

query I rowsort
SELECT + ( 67 ) FROM tab0
----
67
67
67

query I rowsort
SELECT + + col1 + - ( + + col2 ) FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8593
SELECT DISTINCT - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + 61 * - + col0 + + - col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8593
SELECT DISTINCT - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + 61 * - + col0 + + - col1 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT DISTINCT + COUNT( ALL - + col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8594
SELECT DISTINCT + COUNT ( ALL - + col2 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 26 + + 48 FROM tab0 AS cor0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8596
SELECT ALL + - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL BETWEEN - - col0 AND + col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8596
SELECT ALL + - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL BETWEEN - - col0 AND + col0 )
----

query II rowsort
SELECT DISTINCT - col0 AS col1, ( 73 ) * + ( + - col0 ) FROM tab2 AS cor0
----
-46
-3358
-64
-4672
-75
-5475

query I rowsort
SELECT + col0 * - - col1 * - col2 AS col0 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT DISTINCT + + COUNT( * ) FROM tab2 WHERE NOT - - 78 + col1 * + 61 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8599
SELECT DISTINCT + + COUNT ( * ) FROM tab2 WHERE NOT - - 78 + col1 * + 61 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT ALL - SUM( + 76 ) FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL - SUM ( + 76 ) FROM tab2
----
-228

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8601
SELECT ( COUNT( * ) ) DIV + 92 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8601
SELECT ( COUNT ( * ) ) / + 92 FROM tab1
----
0

query I rowsort
SELECT - 78 * - col1 * + col0 FROM tab2
----
182988
384384
391950

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT DISTINCT ( - SUM( - col2 ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
156

skipif mysql # not compatible
query I rowsort label-8603
SELECT DISTINCT ( - SUM ( - col2 ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8604
SELECT - + CAST( + ( - - col2 ) AS SIGNED ) col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8604
SELECT - + CAST ( + ( - - col2 ) AS INTEGER ) col1 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT DISTINCT + 48 - - + COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-8605
SELECT DISTINCT + 48 - - + COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT - COUNT( * ) * - 74 + + COUNT( * ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-8606
SELECT - COUNT ( * ) * - 74 + + COUNT ( * ) FROM tab2
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8607
SELECT ALL CAST( NULL AS SIGNED ) - AVG ( - - col1 ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8607
SELECT ALL CAST ( NULL AS INTEGER ) - AVG ( - - col1 ) col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT ALL - + ( + MAX( - 13 ) ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL - + ( + MAX ( - 13 ) ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT DISTINCT - 13 * 81 - - - MAX( - col1 ) FROM tab2 AS cor0
----
-1002

skipif mysql # not compatible
query I rowsort label-8609
SELECT DISTINCT - 13 * 81 - - - MAX ( - col1 ) FROM tab2 AS cor0
----
-1002

query II rowsort
SELECT DISTINCT - col1 AS col2, + ( - col2 ) + + col1 + + col2 - col1 + - col2 * + 47 AS col2 FROM tab0 AS cor0
----
-1
-4653
-21
-470
-81
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT ALL - MAX( DISTINCT - 35 ) FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL - MAX ( DISTINCT - 35 ) FROM tab2
----
35

query I rowsort
SELECT DISTINCT ( ( - col1 ) ) AS col2 FROM tab1
----
-14
-47
-5

query II rowsort
SELECT ALL - 44 AS col1, col1 * 52 AS col1 FROM tab2
----
-44
2652
-44
3484
-44
4004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 66 col2, - col1 col2 FROM tab2
----
-66
-51
-66
-67
-66
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-8615
SELECT ALL + - col0 + - col1, + 6 * + col2 + + - 22 + col1 DIV + 5 AS col0 FROM tab0 WHERE - + 0 * + + 0 * + col1 + col2 * col2 IS NOT NULL
----
-108
42
-96
276
-98
572

skipif mysql # not compatible
query II rowsort label-8615
SELECT ALL + - col0 + - col1, + 6 * + col2 + + - 22 + col1 / + 5 AS col0 FROM tab0 WHERE - + 0 * + + 0 * + col1 + col2 * col2 IS NOT NULL
----
-108
42
-96
276
-98
572

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT ALL + SUM( ALL col0 ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-8616
SELECT ALL + SUM ( ALL col0 ) FROM tab1 cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT ALL COUNT( + + col2 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL COUNT ( + + col2 ) AS col2 FROM tab0 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col2 col1 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8619
SELECT ALL + 49 DIV + - 50 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8619
SELECT ALL + 49 / + - 50 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 + - - col2 FROM tab1 cor0
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT DISTINCT - SUM( - col1 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8621
SELECT DISTINCT - SUM ( - col1 ) AS col1 FROM tab1
----
66

query I rowsort
SELECT + 86 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 = + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT DISTINCT 95 + + 99 * - ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-202

skipif mysql # not compatible
query I rowsort label-8624
SELECT DISTINCT 95 + + 99 * - ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-202

query II rowsort
SELECT ALL + + col2 + col2 * col2 + - + col2 - - + col0 AS col2, + 85 FROM tab1 cor0
----
3566
85
4715
85
9267
85

query I rowsort
SELECT ( + - 7 ) AS col1 FROM tab0 AS cor0
----
-7
-7
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8627
SELECT 47 + + col0 + + CAST( NULL AS SIGNED ) - + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8627
SELECT 47 + + col0 + + CAST ( NULL AS INTEGER ) - + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8628
SELECT col2 * - + col2 / + col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8628
SELECT col2 * - + col2 / + col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT col1 >= + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT COUNT( * ) + - + COUNT( * ) + - - COUNT( ALL + - col2 ) * 13 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-8630
SELECT COUNT ( * ) + - + COUNT ( * ) + - - COUNT ( ALL + - col2 ) * 13 FROM tab2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT ALL MIN( ALL - 64 ) AS col2 FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL MIN ( ALL - 64 ) AS col2 FROM tab2
----
-64

query III rowsort
SELECT * FROM tab1 WHERE 56 <> - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + 99 + + - col1 + - 85 AS col0, - 11 AS col1 FROM tab0 AS cor0
----
-185
-11
-205
-11
-265
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT DISTINCT + COUNT( * ) + - + COUNT( + - col0 ) + 44 col0 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8634
SELECT DISTINCT + COUNT ( * ) + - + COUNT ( + - col0 ) + 44 col0 FROM tab1 AS cor0
----
44

query I rowsort
SELECT DISTINCT 28 + + 76 AS col0 FROM tab1 AS cor0
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8636
SELECT + + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE ( col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8636
SELECT + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE ( col2 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT + COUNT( * ) + 72 col2 FROM tab1
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8637
SELECT + COUNT ( * ) + 72 col2 FROM tab1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8638
SELECT - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8638
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( 11 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8640
SELECT - 51 + + 4 DIV - COUNT( * ) FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-8640
SELECT - 51 + + 4 / - COUNT ( * ) FROM tab1
----
-52

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8641
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) + 97 * - CAST( 15 AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS REAL ) + 97 * - CAST ( 15 AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - 56 FROM tab1
----
12
3
40

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE col1 * - ( + col1 ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE ( col0 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 ) - 95 NOT BETWEEN col2 + + col1 AND col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 32 / col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) col0 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT DISTINCT - COUNT( ALL 55 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8648
SELECT DISTINCT - COUNT ( ALL 55 ) FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + 47 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE 58 BETWEEN NULL AND col2 + col0 * - 75
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8651
SELECT col0 AS col0 FROM tab1 WHERE NOT ( + col0 * + ( CAST( NULL AS SIGNED ) ) ) > + ( CAST( 42 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8651
SELECT col0 AS col0 FROM tab1 WHERE NOT ( + col0 * + ( CAST ( NULL AS INTEGER ) ) ) > + ( CAST ( 42 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 + 41 ) <= ( 36 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8653
SELECT DISTINCT CAST( + 54 AS SIGNED ) + + col2 FROM tab1
----
113
122
150

skipif mysql # not compatible
query I rowsort label-8653
SELECT DISTINCT CAST ( + 54 AS INTEGER ) + + col2 FROM tab1
----
113
122
150

query I rowsort
SELECT + 57 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) IN ( - 51 )
----

query I rowsort
SELECT ( + 80 ) + 57 FROM tab1
----
137
137
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8657
SELECT + CAST( COUNT( * ) AS SIGNED ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8657
SELECT + CAST ( COUNT ( * ) AS INTEGER ) col0 FROM tab0 cor0
----
3

query I rowsort
SELECT 59 * - col1 AS col1 FROM tab2 AS cor0 WHERE NOT col1 IN ( 52 )
----
-3009
-3953
-4543

query I rowsort
SELECT - 27 * - col0 FROM tab1 AS cor0
----
1377
2295
2457

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8660
SELECT ALL col2 + - CAST( + col1 AS SIGNED ) * - col2 AS col0 FROM tab1 AS cor0
----
1440
3264
354

skipif mysql # not compatible
query I rowsort label-8660
SELECT ALL col2 + - CAST ( + col1 AS INTEGER ) * - col2 AS col0 FROM tab1 AS cor0
----
1440
3264
354

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( col0 + col0 )
----

query I rowsort
SELECT 76 * - col1 + col2 FROM tab2
----
-3853
-5034
-5812

onlyif mysql # DIV for integer division: 
query I rowsort label-8663
SELECT + 34 + + 85 DIV 78 AS col0 FROM tab0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-8663
SELECT + 34 + + 85 / 78 AS col0 FROM tab0
----
35
35
35

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 + col2 * + 13 col1 FROM tab0 AS cor0
----
1352
195
676

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8667
SELECT * FROM tab2 AS cor0 WHERE + col1 * CAST( col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8667
SELECT * FROM tab2 AS cor0 WHERE + col1 * CAST ( col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8668
SELECT ALL col0 + col0 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
15
83

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL col0 + col0 / - col1 AS col2 FROM tab0 AS cor0
----
0
15
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 + + col2 col2 FROM tab2 AS cor0
----
-2578
-4431
-5889

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8670
SELECT + 97 + 86 DIV - COUNT( * ) FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-8670
SELECT + 97 + 86 / - COUNT ( * ) FROM tab1 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT ALL + - COUNT( * ) * COUNT( * ) + SUM( DISTINCT col0 - col0 ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8671
SELECT ALL + - COUNT ( * ) * COUNT ( * ) + SUM ( DISTINCT col0 - col0 ) FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8672
SELECT * FROM tab2 AS cor0 WHERE CAST( + col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8672
SELECT * FROM tab2 AS cor0 WHERE CAST ( + col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8673
SELECT + - col1 * 93 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8673
SELECT + - col1 * 93 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 78 IN ( 78 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT DISTINCT - 19 - + 0 * COUNT( * ) AS col0 FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT - 19 - + 0 * COUNT ( * ) AS col0 FROM tab2
----
-19

query I rowsort
SELECT ALL + 61 * + 10 AS col0 FROM tab2 WHERE ( NULL ) < NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 * - col2 ) <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col2 + + 2 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 * col0 IS NULL OR col2 >= NULL
----

query I rowsort
SELECT + 80 - - 80 FROM tab2
----
160
160
160

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT 71 - COUNT( * ) * ( 41 ) FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-8681
SELECT 71 - COUNT ( * ) * ( 41 ) FROM tab2
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8682
SELECT DISTINCT col0 - col1 AS col1 FROM tab2 WHERE NOT + CAST( - ( - col2 ) AS SIGNED ) * - 76 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8682
SELECT DISTINCT col0 - col1 AS col1 FROM tab2 WHERE NOT + CAST ( - ( - col2 ) AS INTEGER ) * - 76 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * - + 58 FROM tab2
----
-2668
-3712
-4350

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col2 * + col2 + + 88 )
----

query II rowsort
SELECT col2, 89 FROM tab1
----
59
89
68
89
96
89

query I rowsort
SELECT + col1 / - col0 FROM tab2 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT - 82 * - col2 AS col1 FROM tab2
----
1886
3280
4756

query I rowsort
SELECT col1 * + ( - - col1 ) * col1 AS col0 FROM tab2
----
132651
300763
456533

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 45 NOT IN ( 96 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + + col0 * col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * 27 FROM tab0
----
2349
2619
405

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 < - - 85
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8693
SELECT ALL - col2, + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-8693
SELECT ALL - col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

query I rowsort
SELECT - col1 AS col2 FROM tab0 cor0 WHERE NOT + col0 - - col2 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * col0 FROM tab0 cor0 WHERE NOT + col2 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT - COUNT( * ) * - ( + - MIN( ALL 28 ) ) AS col0 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-8696
SELECT - COUNT ( * ) * - ( + - MIN ( ALL 28 ) ) AS col0 FROM tab1
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-8697
SELECT - col0 DIV col2 * + col2 FROM tab0
----
-80
0
0

skipif mysql # not compatible
query I rowsort label-8697
SELECT - col0 / col2 * + col2 FROM tab0
----
-80
0
0

query I rowsort
SELECT ALL col0 * - ( - 76 ) FROM tab0
----
1140
6612
7372

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 29 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * - col2 + col1 * + ( - 53 ) FROM tab2
----
-3232
-5681
-6915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8701
SELECT 41 / COUNT( * ) * - 63 * - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8701
SELECT 41 / COUNT ( * ) * - 63 * - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col1 ) = - 47 * - ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8703
SELECT ALL + 76 + + 4 + + - col0 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL + 76 + + 4 + + - col0 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 + + 51 IN ( - col1 * - 29 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col1 + + 61 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8706
SELECT + + 51 DIV + + col2 + - col2 + + - col2 FROM tab1 AS cor0
----
-118
-136
-192

skipif mysql # not compatible
query I rowsort label-8706
SELECT + + 51 / + + col2 + - col2 + + - col2 FROM tab1 AS cor0
----
-118
-136
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT + ( + COUNT( * ) ) + - 11 AS col1 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-8707
SELECT + ( + COUNT ( * ) ) + - 11 AS col1 FROM tab0 AS cor0
----
-8

query I rowsort
SELECT ALL - 95 * ( - col1 ) * - - col0 - + col1 AS col0 FROM tab1 AS cor0
----
40370
406268
67816

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - - col0 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT DISTINCT COUNT( * ) + - + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8710
SELECT DISTINCT COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT + - ( - + col1 ) AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8712
SELECT - - 15 DIV col0 - ( col1 ) * 63 FROM tab1 AS cor0
----
-2961
-315
-882

skipif mysql # not compatible
query I rowsort label-8712
SELECT - - 15 / col0 - ( col1 ) * 63 FROM tab1 AS cor0
----
-2961
-315
-882

onlyif mysql # DIV for integer division: 
query I rowsort label-8713
SELECT - + col2 * col0 - + ( - col2 ) DIV col0 AS col1 FROM tab1 AS cor0
----
-4895
-5015
-6188

skipif mysql # not compatible
query I rowsort label-8713
SELECT - + col2 * col0 - + ( - col2 ) / col0 AS col1 FROM tab1 AS cor0
----
-4895
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8714
SELECT + CAST( - col2 AS SIGNED ) - + col1 FROM tab0 AS cor0
----
-100
-128
-31

skipif mysql # not compatible
query I rowsort label-8714
SELECT + CAST ( - col2 AS INTEGER ) - + col1 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT ALL - COUNT( * ) + - + 96 AS col2 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL - COUNT ( * ) + - + 96 AS col2 FROM tab2 AS cor0
----
-99

query I rowsort
SELECT DISTINCT col0 * + - col1 + ( + 57 ) FROM tab1 AS cor0
----
-368
-4220
-657

query I rowsort
SELECT - + col2 - - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + col1 * + + col0 ) <= 58 / + - col1 + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8719
SELECT + col2 DIV - ( col2 ) + + 91 + 61 * + 20 * 3 FROM tab0 AS cor0
----
3750
3750
3750

skipif mysql # not compatible
query I rowsort label-8719
SELECT + col2 / - ( col2 ) + + 91 + 61 * + 20 * 3 FROM tab0 AS cor0
----
3750
3750
3750

query I rowsort
SELECT + 22 + + - col2 AS col0 FROM tab0 AS cor0
----
-25
-77
12

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 88 + + col1 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col1 IN ( + + col2 + col2 - + + col0 - + 74 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8723
SELECT + - 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-8723
SELECT + - CAST ( NULL AS INTEGER ), col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query III rowsort
SELECT col0 AS col1, + col0 * - 10 * col0, col0 FROM tab1 AS cor0
----
9 values hashing to b6975d2b5f8c5e149b754d9582a18445

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-8725
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT - CAST( 95 AS DECIMAL ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

skipif mysql # not compatible
query IIIIII rowsort label-8725
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT - CAST ( 95 AS REAL ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT DISTINCT COUNT( * ) * - + 78 AS col2 FROM tab2
----
-234

skipif mysql # not compatible
query I rowsort label-8726
SELECT DISTINCT COUNT ( * ) * - + 78 AS col2 FROM tab2
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT - 89 + - SUM( + col1 ) AS col0 FROM tab1 cor0 WHERE NOT 23 * - col0 / - 25 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8727
SELECT - 89 + - SUM ( + col1 ) AS col0 FROM tab1 cor0 WHERE NOT 23 * - col0 / - 25 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 57 col0 FROM tab2 AS cor0
----
57
57
57

query I rowsort
SELECT - col0 * col2 * 5 * - - col0 * - - col1 FROM tab1 AS cor0
----
-10656875
-132330380
-17478720

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT ( + 1 ) * - COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8730
SELECT ( + 1 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 44 / + - col2 <= + col0 + - - 65
----

query I rowsort
SELECT - 46 + - col2 AS col2 FROM tab0 AS cor0
----
-145
-56
-93

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - - col0 + - - col1 ) >= + col1
----

query I rowsort
SELECT + col0 + + 11 AS col1 FROM tab0
----
108
26
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8735
SELECT - 88 DIV + + col2 FROM tab0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-8735
SELECT - 88 / + + col2 FROM tab0
----
-1
-8
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8736
SELECT * FROM tab2 WHERE NOT NULL IN ( - CAST( + - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8736
SELECT * FROM tab2 WHERE NOT NULL IN ( - CAST ( + - col1 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT ALL - - MIN( + col0 ) * COUNT( * ) AS col0 FROM tab0 WHERE + 32 NOT IN ( + 87, - ( ( + 49 ) ) )
----
45

skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL - - MIN ( + col0 ) * COUNT ( * ) AS col0 FROM tab0 WHERE + 32 NOT IN ( + 87, - ( ( + 49 ) ) )
----
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8738
SELECT + col1 * - - CAST( col2 AS DECIMAL ) + - col0 AS col0 FROM tab1 WHERE NOT col1 * ( + + 10 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8738
SELECT + col1 * - - CAST ( col2 AS REAL ) + - col0 AS col0 FROM tab1 WHERE NOT col1 * ( + + 10 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8739
SELECT DISTINCT - col0 DIV - + 97 AS col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-8739
SELECT DISTINCT - col0 / - + 97 AS col0 FROM tab0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT ( + COUNT( * ) ) * - 38 FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-8740
SELECT ( + COUNT ( * ) ) * - 38 FROM tab0
----
-114

onlyif mysql # DIV for integer division: 
query II rowsort label-8741
SELECT DISTINCT 34 + col2 DIV - col1 AS col2, col0 FROM tab1
----
23
85
28
51
33
91

skipif mysql # not compatible
query II rowsort label-8741
SELECT DISTINCT 34 + col2 / - col1 AS col2, col0 FROM tab1
----
23
85
28
51
33
91

query II rowsort
SELECT ALL + + 33 + + ( + col0 ), - col2 AS col2 FROM tab1 AS cor0
----
118
-59
124
-68
84
-96

query III rowsort
SELECT * FROM tab1 WHERE + 17 / + - col1 - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8744
SELECT - col0 + - col0 DIV + 5 FROM tab1
----
-102
-109
-61

skipif mysql # not compatible
query I rowsort label-8744
SELECT - col0 + - col0 / + 5 FROM tab1
----
-102
-109
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-8745
SELECT ALL 73 DIV + col2 AS col1 FROM tab2
----
1
1
3

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL 73 / + col2 AS col1 FROM tab2
----
1
1
3

query I rowsort
SELECT ALL + 17 - 59 AS col0 FROM tab1 AS cor0
----
-42
-42
-42

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 10 < col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 + + - col0 col0 FROM tab0 AS cor0
----
0
1200
1740

query I rowsort
SELECT ALL 22 - + + col2 * - 57 + - col0 FROM tab1
----
3300
3807
5443

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT ALL SUM( DISTINCT + ( - 9 ) ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL SUM ( DISTINCT + ( - 9 ) ) FROM tab0
----
-9

query I rowsort
SELECT + ( 62 ) * - col1 FROM tab2
----
-3162
-4154
-4774

query II rowsort
SELECT DISTINCT + 60 AS col2, - 81 AS col0 FROM tab2 WHERE - ( - - col2 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > - 98
----

query I rowsort
SELECT ALL ( - 33 ) FROM tab1
----
-33
-33
-33

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( - + col1 )
----

query I rowsort
SELECT - + 45 * col1 * ( - + col1 ) * + - col1 FROM tab0 cor0
----
-23914845
-416745
-45

query I rowsort
SELECT ALL - col2 + 20 + - col1 FROM tab1 AS cor0
----
-44
-90
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8758
SELECT ALL + + CAST( - col2 AS SIGNED ) + + col2 + - col2 FROM tab0 AS cor0 WHERE NOT + col2 + + 80 > NULL
----

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL + + CAST ( - col2 AS INTEGER ) + + col2 + - col2 FROM tab0 AS cor0 WHERE NOT + col2 + + 80 > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 ) BETWEEN NULL AND + 34
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8760
SELECT - CAST( NULL AS SIGNED ), 35 + + col2 * - col0 * + - 48 - + ( col0 ) AS col2 FROM tab0 AS cor0
----
NULL
33860
NULL
41708
NULL
460882

skipif mysql # not compatible
query II rowsort label-8760
SELECT - CAST ( NULL AS INTEGER ), 35 + + col2 * - col0 * + - 48 - + ( col0 ) AS col2 FROM tab0 AS cor0
----
NULL
33860
NULL
41708
NULL
460882

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT ALL - - MAX( ALL col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL - - MAX ( ALL col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8762
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) * - MAX( - 6 ) col2 FROM tab1
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8762
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) * - MAX ( - 6 ) col2 FROM tab1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT ALL MAX( DISTINCT - + 84 ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL MAX ( DISTINCT - + 84 ) FROM tab0
----
-84

query I rowsort
SELECT DISTINCT 13 * 34 AS col1 FROM tab1
----
442

query I rowsort
SELECT 85 * col1 AS col0 FROM tab1
----
1190
3995
425

query I rowsort
SELECT ALL 94 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 72 + col2 col2 FROM tab0
----
134
169
268

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 WHERE ( NOT NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8768
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 WHERE ( NOT NULL IS NULL )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8769
SELECT DISTINCT col2 + + - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 WHERE NOT ( - 40 + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8769
SELECT DISTINCT col2 + + - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 WHERE NOT ( - 40 + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8770
SELECT ALL + + COUNT( * ) + MAX( DISTINCT ( 19 ) ) * + 70 - - - SUM( - + ( 44 ) ) + + 2 + + + 38 DIV - COUNT( * ) AS col1 FROM tab0 AS cor0
----
1455

skipif mysql # not compatible
query I rowsort label-8770
SELECT ALL + + COUNT ( * ) + MAX ( DISTINCT ( 19 ) ) * + 70 - - - SUM ( - + ( 44 ) ) + + 2 + + + 38 / - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
1455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8771
SELECT ALL CAST( NULL AS SIGNED ) AS col1, MIN( - col2 ) FROM tab1 AS cor0
----
NULL
-96

skipif mysql # not compatible
query II rowsort label-8771
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, MIN ( - col2 ) FROM tab1 AS cor0
----
NULL
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-8772
SELECT DISTINCT 69 DIV - ( - - ( 70 ) ) + col0 FROM tab1 AS cor0 WHERE NOT 31 + 99 IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8772
SELECT DISTINCT 69 / - ( - - ( 70 ) ) + col0 FROM tab1 AS cor0 WHERE NOT 31 + 99 IS NULL
----
51
85
91

query II rowsort
SELECT DISTINCT - 85 + - - col0 + - 13 AS col2, - 38 FROM tab0 cor0
----
-1
-38
-11
-38
-83
-38

query I rowsort
SELECT - 97 - + ( ( - 61 ) ) + col2 AS col0 FROM tab1 AS cor0
----
23
32
60

query I rowsort
SELECT ALL - col2 + + - 42 AS col0 FROM tab2 AS cor0
----
-100
-65
-82

query I rowsort
SELECT + + col0 + + 50 AS col2 FROM tab0 AS cor0
----
137
147
65

query I rowsort
SELECT ALL col1 - + + ( + col0 ) FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8778
SELECT ALL 87 DIV - + COUNT( * ) FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL 87 / - + COUNT ( * ) FROM tab0 AS cor0
----
-29

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 - - 19 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 28 + + 13 FROM tab0 WHERE NOT + + 14 + - col1 IS NULL
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT ALL - 81 * COUNT( * ) FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-8781
SELECT ALL - 81 * COUNT ( * ) FROM tab0
----
-243

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( col1 / 90 - - col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT + 48 * + 94 FROM tab2
----
4512

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 99 col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT MAX( DISTINCT - + col0 ) AS col2 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8785
SELECT MAX ( DISTINCT - + col0 ) AS col2 FROM tab0 cor0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-8786
SELECT - MAX( col1 ) AS col1, COUNT( * ) FROM tab1 AS cor0
----
-47
3

skipif mysql # not compatible
query II rowsort label-8786
SELECT - MAX ( col1 ) AS col1, COUNT ( * ) FROM tab1 AS cor0
----
-47
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8787
SELECT + col2 DIV + 45 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8787
SELECT + col2 / + 45 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT - 93 + + 12 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8789
SELECT DISTINCT - 41 + - - MIN( - + CAST( NULL AS SIGNED ) ) * + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8789
SELECT DISTINCT - 41 + - - MIN ( - + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT ALL - - MAX( - col2 ) + COUNT( * ) FROM tab0 AS cor0 WHERE - 57 IS NOT NULL
----
-7

skipif mysql # not compatible
query I rowsort label-8790
SELECT ALL - - MAX ( - col2 ) + COUNT ( * ) FROM tab0 AS cor0 WHERE - 57 IS NOT NULL
----
-7

query I rowsort
SELECT + col0 + col0 * + + col1 FROM tab0 AS cor0
----
1230
1914
194

query I rowsort
SELECT - - col2 + + - 15 + 93 FROM tab1 AS cor0
----
137
146
174

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE 24 * - - 29 BETWEEN + 27 - ( + - col0 ) * - col2 AND col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 + + col2 + - - col0 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT - MIN( ALL col1 ) + COUNT( * ) + - 59 * 70 AS col2 FROM tab0 AS cor0
----
-4128

skipif mysql # not compatible
query I rowsort label-8795
SELECT - MIN ( ALL col1 ) + COUNT ( * ) + - 59 * 70 AS col2 FROM tab0 AS cor0
----
-4128

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 + col1 BETWEEN - 73 / - col2 AND NULL
----

query III rowsort
SELECT ALL - col0 AS col1, 4 * - - col0 AS col2, col2 FROM tab2 AS cor0
----
9 values hashing to 390cbb6315d689621e593c014f04836c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8798
SELECT CAST( NULL AS SIGNED ) / - ( col1 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8798
SELECT CAST ( NULL AS INTEGER ) / - ( col1 ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 76 AS col1, + 32 * - + col2 + + col0 col1 FROM tab2
----
76
-1216
76
-1781
76
-690

onlyif mysql # DIV for integer division: 
query I rowsort label-8800
SELECT ALL + 15 + + - col1 DIV - col0 FROM tab1
----
15
15
15

skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL + 15 + + - col1 / - col0 FROM tab1
----
15
15
15

query I rowsort
SELECT 94 * + col1 AS col1 FROM tab0 AS cor0
----
1974
7614
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT ( + COUNT( * ) ) / + + ( SUM( DISTINCT - col2 ) ) / - - COUNT( * ) FROM tab2 cor0 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8802
SELECT ( + COUNT ( * ) ) / + + ( SUM ( DISTINCT - col2 ) ) / - - COUNT ( * ) FROM tab2 cor0 WHERE col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8803
SELECT + ( - 47 ) * + + CAST( + + 47 AS SIGNED ) + + 57 AS col0, COUNT( * ) AS col2 FROM tab1
----
-2152
3

skipif mysql # not compatible
query II rowsort label-8803
SELECT + ( - 47 ) * + + CAST ( + + 47 AS INTEGER ) + + 57 AS col0, COUNT ( * ) AS col2 FROM tab1
----
-2152
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT + MAX( ALL - - ( + col2 ) ) + + 45 FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-8804
SELECT + MAX ( ALL - - ( + col2 ) ) + + 45 FROM tab0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT 87 * ( + COUNT( * ) ) col1 FROM tab0 cor0
----
261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8805
SELECT 87 * ( + COUNT ( * ) ) col1 FROM tab0 cor0
----
261

query I rowsort
SELECT DISTINCT 94 * - + ( + - 28 ) AS col2 FROM tab1 cor0
----
2632

query II rowsort
SELECT ALL + col1 * - col0, + 24 + - col1 * col1 AS col2 FROM tab1 AS cor0
----
-425
-1
-4277
-2185
-714
-172

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 16 + - col0 + - 76 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + - ( + 28 ), - col1 AS col2 FROM tab1 AS cor0
----
-28
-14
-28
-47
-28
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8810
SELECT ALL - + MAX( CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL - + MAX ( CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL

query II rowsort
SELECT 25 AS col2, - col1 AS col2 FROM tab2
----
25
-51
25
-67
25
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-8812
SELECT 62 AS col0, + COUNT( * ) AS col2 FROM tab2
----
62
3

skipif mysql # not compatible
query II rowsort label-8812
SELECT 62 AS col0, + COUNT ( * ) AS col2 FROM tab2
----
62
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8813
SELECT DISTINCT + ( CAST( col2 AS SIGNED ) ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8813
SELECT DISTINCT + ( CAST ( col2 AS INTEGER ) ) FROM tab2
----
23
40
58

query I rowsort
SELECT 75 * + - 95 * + col0 * - col0 AS col2 FROM tab1
----
18532125
51478125
59002125

query I rowsort
SELECT ALL col2 * - 95 AS col2 FROM tab2
----
-2185
-3800
-5510

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT ( NOT 82 IS NULL )
----

query II rowsort
SELECT - col2 AS col1, + col0 * ( - col1 ) AS col2 FROM tab0 AS cor0
----
-10
-1827
-47
-1215
-99
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 89 * - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 53 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 * - col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8821
SELECT ALL + col2 * - col0 / + - ( - - col0 ) * + + 92 + + col1 + - + col1 + + 99 * + CAST( NULL AS SIGNED ) AS col1, + col1 * + col2 FROM tab1 AS cor0
----
NULL
1344
NULL
295
NULL
3196

skipif mysql # not compatible
query II rowsort label-8821
SELECT ALL + col2 * - col0 / + - ( - - col0 ) * + + 92 + + col1 + - + col1 + + 99 * + CAST ( NULL AS INTEGER ) AS col1, + col1 * + col2 FROM tab1 AS cor0
----
NULL
1344
NULL
295
NULL
3196

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 95 * - + 90 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * 97 * - 63 IS NULL
----

query I rowsort
SELECT DISTINCT - 35 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - + ( - 98 ) AND NULL
----

query I rowsort
SELECT ALL + - col0 + + 3 AS col0 FROM tab2 AS cor0
----
-43
-61
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT + MIN( + ( + 13 ) ) FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-8826
SELECT + MIN ( + ( + 13 ) ) FROM tab1 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-8827
SELECT - 51 * + 30, COUNT( * ) AS col2 FROM tab2 cor0
----
-1530
3

skipif mysql # not compatible
query II rowsort label-8827
SELECT - 51 * + 30, COUNT ( * ) AS col2 FROM tab2 cor0
----
-1530
3

query I rowsort
SELECT col0 + - col2 FROM tab0 AS cor0 WHERE ( ( NULL = NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT ALL MAX( DISTINCT - + 29 ) FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-8829
SELECT ALL MAX ( DISTINCT - + 29 ) FROM tab2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8830
SELECT * FROM tab2 WHERE col2 - + 36 BETWEEN - col2 * - + 71 AND - col1 * + 49 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8830
SELECT * FROM tab2 WHERE col2 - + 36 BETWEEN - col2 * - + 71 AND - col1 * + 49 + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

query II rowsort
SELECT ALL ( - col0 ), + 82 - + col0 AS col0 FROM tab0 WHERE NOT ( 46 ) = 62
----
-15
67
-87
-5
-97
-15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8833
SELECT DISTINCT + col2 DIV + CAST( + col2 AS SIGNED ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8833
SELECT DISTINCT + col2 / + CAST ( + col2 AS INTEGER ) FROM tab2
----
1

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 * 49 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 66 + - col1 + - col1 AS col0 FROM tab1 AS cor0
----
-160
-76
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-8836
SELECT COUNT( * ) AS col2, - COUNT( * ) + - ( - + 98 ) * - 86 AS col2 FROM tab2 AS cor0 WHERE ( col0 ) IS NULL
----
0
-8428

skipif mysql # not compatible
query II rowsort label-8836
SELECT COUNT ( * ) AS col2, - COUNT ( * ) + - ( - + 98 ) * - 86 AS col2 FROM tab2 AS cor0 WHERE ( col0 ) IS NULL
----
0
-8428

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 58 * col0 * + col1 = - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8838
SELECT + + SUM( ALL + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8838
SELECT + + SUM ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( - 38 IS NULL )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT 62 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT DISTINCT - MIN( + - col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8842
SELECT DISTINCT - MIN ( + - col1 ) FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-8843
SELECT ALL - 4, - ( - COUNT( ALL + + ( - col2 ) ) ) * + 70 AS col2 FROM tab2 AS cor0
----
-4
210

skipif mysql # not compatible
query II rowsort label-8843
SELECT ALL - 4, - ( - COUNT ( ALL + + ( - col2 ) ) ) * + 70 AS col2 FROM tab2 AS cor0
----
-4
210

query II rowsort
SELECT DISTINCT + col1, + 29 FROM tab2 AS cor0
----
51
29
67
29
77
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT ALL - COUNT( * ) * + 0 col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8845
SELECT ALL - COUNT ( * ) * + 0 col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - ( - 15 ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 87 AS col2, ( + + col2 ) col0 FROM tab0 AS cor0
----
87
10
87
47
87
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 7 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8849
SELECT ALL - 55 AS col0, col0 - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-55
NULL
-55
NULL
-55
NULL

skipif mysql # not compatible
query II rowsort label-8849
SELECT ALL - 55 AS col0, col0 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-55
NULL
-55
NULL
-55
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-8850
SELECT + - COUNT( * ), MIN( ( - - col1 ) ) AS col1, - 30 + - 33 AS col1 FROM tab2 cor0
----
-3
51
-63

skipif mysql # not compatible
query III rowsort label-8850
SELECT + - COUNT ( * ), MIN ( ( - - col1 ) ) AS col1, - 30 + - 33 AS col1 FROM tab2 cor0
----
-3
51
-63

query I rowsort
SELECT + 52 * - + col0 AS col2 FROM tab2 AS cor0
----
-2392
-3328
-3900

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8852
SELECT DISTINCT + col2, col1 + + CAST( NULL AS SIGNED ) - - 93 + - col2 * col2 * + col2 FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-8852
SELECT DISTINCT + col2, col1 + + CAST ( NULL AS INTEGER ) - - 93 + - col2 * col2 * + col2 FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT DISTINCT 23 * + 29 FROM tab1
----
667

query I rowsort
SELECT col0 * - + 75 FROM tab2
----
-3450
-4800
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT - COUNT( DISTINCT 85 ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8855
SELECT - COUNT ( DISTINCT 85 ) AS col2 FROM tab1
----
-1

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8857
SELECT ALL col2 * col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8857
SELECT ALL col2 * col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8858
SELECT - 54 + + ( + CAST( + - 95 AS SIGNED ) ) FROM tab0 AS cor0
----
-149
-149
-149

skipif mysql # not compatible
query I rowsort label-8858
SELECT - 54 + + ( + CAST ( + - 95 AS INTEGER ) ) FROM tab0 AS cor0
----
-149
-149
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT DISTINCT - 18 * ( - COUNT( * ) ) + SUM( DISTINCT + 34 ) FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-8859
SELECT DISTINCT - 18 * ( - COUNT ( * ) ) + SUM ( DISTINCT + 34 ) FROM tab2 AS cor0
----
88

query I rowsort
SELECT ALL + 18 + 98 FROM tab1 AS cor0
----
116
116
116

query I rowsort
SELECT + 29 * + 82 + ( + col1 ) FROM tab0 cor0
----
2379
2399
2459

query I rowsort
SELECT DISTINCT col1 * + 44 + - col1 * + 6 - col0 FROM tab2 AS cor0
----
1892
2471
2862

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + col0 - + - 60 * 56 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 16 * col1 * - col1 AS col2 FROM tab1
----
3136
35344
400

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-8865
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
3

query I rowsort
SELECT ALL + - col1 * 24 FROM tab0 WHERE NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 - - col1, - col2 col1 FROM tab0
----
-66
-10
-96
-99
66
-47

query II rowsort
SELECT - 9 AS col1, - col0 AS col2 FROM tab1 AS cor0 WHERE ( 21 ) IS NOT NULL
----
-9
-51
-9
-85
-9
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8869
SELECT ( + - 14 ) DIV + MAX( ALL + col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8869
SELECT ( + - 14 ) / + MAX ( ALL + col2 ) FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8870
SELECT col2 DIV 83 * - - ( + - 60 ) FROM tab1
----
-60
0
0

skipif mysql # not compatible
query I rowsort label-8870
SELECT col2 / 83 * - - ( + - 60 ) FROM tab1
----
-60
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + - col2 * + 21 + + col0 BETWEEN ( - 35 ) AND ( NULL ) )
----

query I rowsort
SELECT DISTINCT + 27 + + 46 + - + 13 * - col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 37 * + col2 * - 72 FROM tab0
----
-125208
-263736
-26640

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT ALL COUNT( * ) * 45 FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-8874
SELECT ALL COUNT ( * ) * 45 FROM tab2
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8875
SELECT + 87 AS col1 FROM tab1 WHERE NOT + col2 + - col0 NOT IN ( + - 32, CAST( - + 12 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8875
SELECT + 87 AS col1 FROM tab1 WHERE NOT + col2 + - col0 NOT IN ( + - 32, CAST ( - + 12 AS INTEGER ) )
----

query I rowsort
SELECT ALL - + col0 AS col2 FROM tab1 WHERE - - col2 IS NOT NULL
----
-51
-85
-91

query II rowsort
SELECT 10 AS col2, col1 * - - 79 FROM tab2
----
10
4029
10
5293
10
6083

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8878
SELECT DISTINCT * FROM tab0 WHERE - + 95 + - - CAST( + 49 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8878
SELECT DISTINCT * FROM tab0 WHERE - + 95 + - - CAST ( + 49 AS INTEGER ) IS NULL
----

query I rowsort
SELECT + + col2 AS col2 FROM tab0 WHERE NOT + - col0 * - - 39 / col0 * 54 - - - col2 - + - 17 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8880
SELECT ALL + COUNT( * ) AS col2, 35 FROM tab0
----
3
35

skipif mysql # not compatible
query II rowsort label-8880
SELECT ALL + COUNT ( * ) AS col2, 35 FROM tab0
----
3
35

query II rowsort
SELECT + col0 + + col0 AS col1, col0 FROM tab0 AS cor0
----
174
87
194
97
30
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8882
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT 21 * col1 * CAST( + col0 AS SIGNED ) BETWEEN - col0 AND ( col1 * + col1 )
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT 21 * col1 * CAST ( + col0 AS INTEGER ) BETWEEN - col0 AND ( col1 * + col1 )
----
59
68
96

query I rowsort
SELECT DISTINCT - + 17 * col2 FROM tab1 AS cor0
----
-1003
-1156
-1632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8884
SELECT ALL col2 * - CAST( + col2 AS SIGNED ) FROM tab0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL col2 * - CAST ( + col2 AS INTEGER ) FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT - - 31 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT DISTINCT + 98 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT DISTINCT - 75 + - MAX( 12 ) AS col2 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-8887
SELECT DISTINCT - 75 + - MAX ( 12 ) AS col2 FROM tab2 AS cor0
----
-87

query I rowsort
SELECT DISTINCT - col0 + - + 51 + 7 FROM tab2 AS cor0
----
-108
-119
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8889
SELECT - CAST( NULL AS SIGNED ) - - - col1 * + 76 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8889
SELECT - CAST ( NULL AS INTEGER ) - - - col1 * + 76 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8890
SELECT + CAST( NULL AS SIGNED ) - - ( + col1 ) + - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8890
SELECT + CAST ( NULL AS INTEGER ) - - ( + col1 ) + - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 23 * + 38 + col1 + col2 FROM tab0 AS cor0
----
-746
-774
-843

onlyif mysql # DIV for integer division: 
query I rowsort label-8892
SELECT ALL + - col0 DIV col0 * col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8892
SELECT ALL + - col0 / col0 * col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 WHERE ( + + 94 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT DISTINCT - SUM( + 43 ) AS col1 FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-8894
SELECT DISTINCT - SUM ( + 43 ) AS col1 FROM tab1
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8895
SELECT * FROM tab1 WHERE + ( - CAST( col2 AS SIGNED ) ) + - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8895
SELECT * FROM tab1 WHERE + ( - CAST ( col2 AS INTEGER ) ) + - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 79 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 54 >= NULL
----

query I rowsort
SELECT DISTINCT + ( + 15 ) FROM tab0 AS cor0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8899
SELECT ALL 39 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8899
SELECT ALL 39 / + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT ALL MIN( ALL + 49 ) FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-8900
SELECT ALL MIN ( ALL + 49 ) FROM tab0
----
49

query I rowsort
SELECT DISTINCT 17 * col2 * col2 AS col2 FROM tab2 AS cor0
----
27200
57188
8993

query I rowsort
SELECT - col1 * + col2 * + - ( col0 ) * col2 AS col2 FROM tab1 AS cor0
----
1479425
19776848
6580224

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8903
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < - CAST( col2 AS DECIMAL ) * + col0
----

skipif mysql # not compatible
query III rowsort label-8903
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < - CAST ( col2 AS REAL ) * + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 col2 FROM tab1 AS cor0
----
58
58
58

query I rowsort
SELECT + 97 * ( ( + - ( + + col1 ) ) ) FROM tab2
----
-4947
-6499
-7469

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT + MIN( DISTINCT + col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8906
SELECT + MIN ( DISTINCT + col2 ) AS col0 FROM tab2
----
23

query I rowsort
SELECT + ( - 4 ) FROM tab0
----
-4
-4
-4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8908
SELECT ALL * FROM tab0 WHERE ( NOT ( NOT col2 + - CAST( NULL AS SIGNED ) IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8908
SELECT ALL * FROM tab0 WHERE ( NOT ( NOT col2 + - CAST ( NULL AS INTEGER ) IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8909
SELECT DISTINCT CAST( - ( - col0 ) AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8909
SELECT DISTINCT CAST ( - ( - col0 ) AS INTEGER ) FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT 22 * - COUNT( - ( + + 55 ) ) FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8910
SELECT 22 * - COUNT ( - ( + + 55 ) ) FROM tab0 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8911
SELECT - CAST( - + 42 AS SIGNED ) * + - col1 FROM tab0 AS cor0
----
-3402
-42
-882

skipif mysql # not compatible
query I rowsort label-8911
SELECT - CAST ( - + 42 AS INTEGER ) * + - col1 FROM tab0 AS cor0
----
-3402
-42
-882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8912
SELECT - SUM( - + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8912
SELECT - SUM ( - + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 59 * - - col1 + + 50 * col2 col0 FROM tab1 AS cor0
----
3245
5626
6173

query III rowsort
SELECT * FROM tab0 WHERE - 89 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + - - 88 * + col0 FROM tab1
----
4539
7565
8099

onlyif mysql # DIV for integer division: 
query I rowsort label-8916
SELECT + col1 + + - col1 + + + col0 DIV col0 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8916
SELECT + col1 + + - col1 + + + col0 / col0 AS col2 FROM tab2 AS cor0
----
1
1
1

query II rowsort
SELECT - - col2 + 60, col1 * col0 AS col2 FROM tab1 AS cor0
----
119
425
128
4277
156
714

query II rowsort
SELECT ALL + - col0 + + - 55 AS col1, - ( - col2 ) FROM tab0 AS cor0
----
-142
10
-152
99
-70
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT DISTINCT MIN( - 45 ) + + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-8919
SELECT DISTINCT MIN ( - 45 ) + + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-42

query I rowsort
SELECT ALL col1 - + 45 FROM tab2 AS cor0
----
22
32
6

query I rowsort
SELECT DISTINCT + 69 - + col2 FROM tab1 AS cor0
----
-27
1
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8922
SELECT + 50 FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
50
50
50

skipif mysql # not compatible
query I rowsort label-8922
SELECT + 50 FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT DISTINCT + COUNT( * ) - COUNT( * ) + + 88 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT + COUNT ( * ) - COUNT ( * ) + + 88 FROM tab1 AS cor0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8924
SELECT DISTINCT + col0 + + CAST( + + col0 AS SIGNED ) FROM tab1 cor0
----
102
170
182

skipif mysql # not compatible
query I rowsort label-8924
SELECT DISTINCT + col0 + + CAST ( + + col0 AS INTEGER ) FROM tab1 cor0
----
102
170
182

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 + - + col0 + + - 61 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT ALL SUM( - 70 ) * - 81 - + + 1 FROM tab1
----
17009

skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL SUM ( - 70 ) * - 81 - + + 1 FROM tab1
----
17009

onlyif mysql # aggregate syntax: 
query II rowsort label-8927
SELECT ALL + COUNT( * ) * - 22, COUNT( * ) + + COUNT( * ) AS col2 FROM tab0
----
-66
6

skipif mysql # not compatible
query II rowsort label-8927
SELECT ALL + COUNT ( * ) * - 22, COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0
----
-66
6

query I rowsort
SELECT + ( col1 ) - + 6 + 79 + + 91 FROM tab1
----
169
178
211

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8929
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 51 * - - CAST( NULL AS DECIMAL ) >= - col1
----

skipif mysql # not compatible
query III rowsort label-8929
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 51 * - - CAST ( NULL AS REAL ) >= - col1
----

query I rowsort
SELECT ALL + - col2 * + + col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT 50 FROM tab0, tab1 cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT 73 * - + ( col0 ) - - - col0 - - 76 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + ( + col1 ) + col2 * + 2 + - col1 * - col0 * - - col0
----

query I rowsort
SELECT + col1 FROM tab0 cor0 WHERE NOT col2 + + 77 / + col0 IS NOT NULL
----

query II rowsort
SELECT ALL - col0, col0 * - col2 AS col1 FROM tab1 AS cor0
----
-51
-4896
-85
-5015
-91
-6188

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 31 > + 0
----

query I rowsort
SELECT + col0 * + - 33 + col2 FROM tab1 AS cor0
----
-1587
-2746
-2935

query II rowsort
SELECT ALL + col0 AS col2, + 47 FROM tab2 AS cor0
----
46
47
64
47
75
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 90 col2 FROM tab0 AS cor0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8939
SELECT ALL MAX( ALL + + ( - CAST( NULL AS SIGNED ) ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL MAX ( ALL + + ( - CAST ( NULL AS INTEGER ) ) ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8940
SELECT + ( + 8 ) DIV + - 39 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8940
SELECT + ( + 8 ) / + - 39 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8941
SELECT ALL - col2 FROM tab1 WHERE NULL BETWEEN CAST( col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-8941
SELECT ALL - col2 FROM tab1 WHERE NULL BETWEEN CAST ( col2 AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT DISTINCT SUM( ALL + 97 ) AS col1 FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-8942
SELECT DISTINCT SUM ( ALL + 97 ) AS col1 FROM tab1
----
291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8943
SELECT ALL col1 + + + CAST( - + CAST( ( - + col1 ) AS SIGNED ) AS SIGNED ) AS col1 FROM tab0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-8943
SELECT ALL col1 + + + CAST ( - + CAST ( ( - + col1 ) AS INTEGER ) AS INTEGER ) AS col1 FROM tab0
----
162
2
42

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 26 col1 FROM tab2
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT DISTINCT - 55 + - - COUNT( DISTINCT + 31 ) FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-8946
SELECT DISTINCT - 55 + - - COUNT ( DISTINCT + 31 ) FROM tab0 AS cor0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8947
SELECT + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE + 82 * - + col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8947
SELECT + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE + 82 * - + col0 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT + MIN( - 96 ) * + 58 FROM tab0
----
-5568

skipif mysql # not compatible
query I rowsort label-8948
SELECT + MIN ( - 96 ) * + 58 FROM tab0
----
-5568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + - col0 col1 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 3 * 24 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT DISTINCT 87 + + SUM( - + col1 ) + - COUNT( * ) * 89 * 3 FROM tab2 cor0
----
-909

skipif mysql # not compatible
query I rowsort label-8951
SELECT DISTINCT 87 + + SUM ( - + col1 ) + - COUNT ( * ) * 89 * 3 FROM tab2 cor0
----
-909

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT ALL - + 78 * - + COUNT( * ) + - MAX( + + 60 ) FROM tab1 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL - + 78 * - + COUNT ( * ) + - MAX ( + + 60 ) FROM tab1 AS cor0
----
174

query I rowsort
SELECT DISTINCT - - col1 - - 6 AS col0 FROM tab0 cor0
----
27
7
87

query I rowsort
SELECT ALL + col0 - + col1 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT - 64 * - col2 + - 24 + + + col1 FROM tab2 AS cor0
----
1499
2613
3755

query I rowsort
SELECT ALL 17 * + 94 - col2 + - - col1 FROM tab2 AS cor0
----
1607
1626
1635

onlyif mysql # DIV for integer division: 
query I rowsort label-8957
SELECT - + 9 DIV 92 + - 11 * 3 + + 41 * - col2 col0 FROM tab0 AS cor0
----
-1960
-4092
-443

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8957
SELECT - + 9 / 92 + - 11 * 3 + + 41 * - col2 col0 FROM tab0 AS cor0
----
-1960
-4092
-443

query I rowsort
SELECT DISTINCT + - 46 * + + col2 - - col1 AS col2 FROM tab2 AS cor0
----
-1007
-1763
-2601

query I rowsort
SELECT 19 + - col0 FROM tab2 AS cor0
----
-27
-45
-56

query I rowsort
SELECT DISTINCT col2 * + 10 AS col1 FROM tab0
----
100
470
990

onlyif mysql # DIV for integer division: 
query I rowsort label-8961
SELECT col1 * + col1 DIV col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8961
SELECT col1 * + col1 / col1 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT + COUNT( * ) * - 39 FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-8962
SELECT + COUNT ( * ) * - 39 FROM tab0 AS cor0
----
-117

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 AND - 20 * + col1
----

query II rowsort
SELECT - col2, ( + - col2 ) AS col1 FROM tab2 cor0
----
-23
-23
-40
-40
-58
-58

query I rowsort
SELECT DISTINCT 92 * - col1 AS col2 FROM tab1
----
-1288
-4324
-460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8966
SELECT COUNT( * ) DIV + 42 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8966
SELECT COUNT ( * ) / + 42 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 BETWEEN + 43 AND + + col1 / - + col0 * - 28 - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8968
SELECT ALL + col1 / + - CAST( - col2 AS SIGNED ) + - 76 + + CAST( NULL AS DECIMAL ) / - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL + col1 / + - CAST ( - col2 AS INTEGER ) + - 76 + + CAST ( NULL AS REAL ) / - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 67 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + - + col0 AS col0 FROM tab2 AS cor0
----
-141
-142
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 33 * + col1 + + col1 * col1 - - col1 col0, 79 FROM tab1 AS cor0
----
-135
79
-252
79
705
79

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL = col1 * + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT ALL - 55 * - + 47 * + COUNT( * ) FROM tab0 AS cor0
----
7755

skipif mysql # not compatible
query I rowsort label-8973
SELECT ALL - 55 * - + 47 * + COUNT ( * ) FROM tab0 AS cor0
----
7755

query III rowsort
SELECT * FROM tab2 WHERE - col2 * col2 + - col1 * col0 <= ( + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1, 92 FROM tab2
----
51
92
67
92
77
92

query I rowsort
SELECT - - col0 * - col2 + col0 + - 80 FROM tab1 WHERE - ( + col2 ) * + - col0 + - 35 / + 9 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT DISTINCT - + COUNT( * ) FROM tab0 WHERE 88 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8977
SELECT DISTINCT - + COUNT ( * ) FROM tab0 WHERE 88 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT - - 71 * col2 FROM tab1 cor0
----
4189
4828
6816

onlyif mysql # DIV for integer division: 
query I rowsort label-8979
SELECT ALL + + 75 * col0 * 37 + + - col0 DIV - 69 FROM tab0 AS cor0
----
241426
269176
41625

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL + + 75 * col0 * 37 + + - col0 / - 69 FROM tab0 AS cor0
----
241426
269176
41625

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( 95 ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8980
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( 95 ) <> NULL
----
0

query II rowsort
SELECT ALL + col2, 27 FROM tab2
----
23
27
40
27
58
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT DISTINCT + 33 * - COUNT( * ) FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-8982
SELECT DISTINCT + 33 * - COUNT ( * ) FROM tab1
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8983
SELECT ALL + ( - col0 ) * col2 * - - CAST( + - 5 AS SIGNED ) + + - 27 * + CAST( - col0 AS SIGNED ) FROM tab0
----
3930
50634
6699

skipif mysql # not compatible
query I rowsort label-8983
SELECT ALL + ( - col0 ) * col2 * - - CAST ( + - 5 AS INTEGER ) + + - 27 * + CAST ( - col0 AS INTEGER ) FROM tab0
----
3930
50634
6699

onlyif mysql # DIV for integer division: 
query I rowsort label-8984
SELECT DISTINCT 8 DIV + col1 FROM tab0 WHERE NOT + 68 NOT BETWEEN + - col0 + - col0 AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-8984
SELECT DISTINCT 8 / + col1 FROM tab0 WHERE NOT + 68 NOT BETWEEN + - col0 + - col0 AND + col1
----
0

query I rowsort
SELECT DISTINCT col0 * - 72 * - col1 AS col0 FROM tab1
----
30600
307944
51408

query II rowsort
SELECT ALL + col0 AS col1, col1 + col0 FROM tab1 WHERE + 7 * col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT SUM( - 42 ) FROM tab1
----
-126

skipif mysql # not compatible
query I rowsort label-8987
SELECT SUM ( - 42 ) FROM tab1
----
-126

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 / - + 33 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * col0 FROM tab2 WHERE NOT - col1 + - - 0 IS NOT NULL
----

query II rowsort
SELECT ALL - col0 AS col1, col0 AS col1 FROM tab0 cor0
----
-15
15
-87
87
-97
97

onlyif mysql # DIV for integer division: 
query II rowsort label-8991
SELECT DISTINCT col0 DIV 53, 28 DIV - + col0 + + ( - col2 ) + + + 51 * - - col2 col0 FROM tab1
----
0
4800
1
2950
1
3400

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8991
SELECT DISTINCT col0 / 53, 28 / - + col0 + + ( - col2 ) + + + 51 * - - col2 col0 FROM tab1
----
0
4800
1
2950
1
3400

query I rowsort
SELECT + col2 * + col1 - col0 AS col2 FROM tab2 cor0 WHERE NOT 90 <= - col0
----
1127
3016
3811

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + ( + 90 ) NOT BETWEEN NULL AND - + col2
----

query I rowsort
SELECT ALL - + ( 22 ) + + - col0 AS col1 FROM tab1 AS cor0
----
-107
-113
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 * ( + col2 ) col1 FROM tab1 cor0
----
472
544
768

query I rowsort
SELECT col1 * - 21 * col1 FROM tab1 AS cor0
----
-4116
-46389
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT ALL + 37 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-8997
SELECT ALL + 37 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8998
SELECT + col1 * - - CAST( ( - + CAST( NULL AS SIGNED ) ) AS SIGNED ) col2, - col2 AS col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8998
SELECT + col1 * - - CAST ( ( - + CAST ( NULL AS INTEGER ) ) AS INTEGER ) col2, - col2 AS col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8999
SELECT + - 97 DIV + MIN( - col2 ) * - ( + 67 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8999
SELECT + - 97 / + MIN ( - col2 ) * - ( + 67 ) AS col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 1 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT - MAX( DISTINCT - 32 ) + - COUNT( * ) FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-9001
SELECT - MAX ( DISTINCT - 32 ) + - COUNT ( * ) FROM tab1
----
29

query I rowsort
SELECT + + AVG ( DISTINCT + col2 ) FROM tab1 WHERE - 30 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 <> + ( + + 28 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 + + col1 - + 82 FROM tab2 AS cor0
----
-45
-54
-73

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT SUM( ALL 38 ) FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-9006
SELECT SUM ( ALL 38 ) FROM tab1 AS cor0
----
114

query I rowsort
SELECT + 72 - - ( - 1 ) FROM tab2
----
71
71
71

query I rowsort
SELECT + 39 FROM tab1 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9009
SELECT CAST( NULL AS SIGNED ) - - 84 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9009
SELECT CAST ( NULL AS INTEGER ) - - 84 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 + + col0 + 2 col0 FROM tab0 AS cor0 WHERE ( NOT 83 < - - 68 )
----
161
171
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT - COUNT( * ) * ( - 34 ) FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-9011
SELECT - COUNT ( * ) * ( - 34 ) FROM tab1 AS cor0
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-9012
SELECT 87 AS col0, COUNT( * ) FROM tab1 AS cor0
----
87
3

skipif mysql # not compatible
query II rowsort label-9012
SELECT 87 AS col0, COUNT ( * ) FROM tab1 AS cor0
----
87
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT ALL - MIN( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL - MIN ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 91 AND NULL
----

query I rowsort
SELECT ALL - + col1 AS col0 FROM tab1 AS cor0 WHERE + 17 * col0 IS NOT NULL
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9016
SELECT 48 DIV - col2 FROM tab0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-9016
SELECT 48 / - col2 FROM tab0
----
-1
-4
0

query I rowsort
SELECT - AVG ( - col2 ) AS col0 FROM tab0 WHERE NOT + 2 + - col2 + - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT + col1 * - + 38 AS col1 FROM tab1
----
-1786
-190
-532

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT - + ( - - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9019
SELECT - + ( - - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT + + COUNT( * ) FROM tab2 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9020
SELECT + + COUNT ( * ) FROM tab2 WHERE NOT + col0 IS NOT NULL
----
0

query I rowsort
SELECT + - col2 * + 4 + 61 * col1 + + + col1 FROM tab1 cor0
----
2642
484
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 88 + col1 col1 FROM tab0 AS cor0
----
-67
-7
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-9023
SELECT 24 DIV - - col1 + + col1 AS col2, - col0 FROM tab0 AS cor0
----
22
-87
25
-97
81
-15

skipif mysql # not compatible
query II rowsort label-9023
SELECT 24 / - - col1 + + col1 AS col2, - col0 FROM tab0 AS cor0
----
22
-87
25
-97
81
-15

query I rowsort
SELECT ALL - 49 + col1 FROM tab0 AS cor0
----
-28
-48
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * + col2 col1 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT - 13 + - + COUNT( * ) FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-9026
SELECT - 13 + - + COUNT ( * ) FROM tab0 AS cor0
----
-16

query I rowsort
SELECT - col2 AS col2 FROM tab2 cor0 WHERE NULL = - 7
----

query I rowsort
SELECT DISTINCT col2 * + col1 + - - col2 FROM tab2
----
1196
3120
3944

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT ALL MAX( ALL - 74 ) FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-9029
SELECT ALL MAX ( ALL - 74 ) FROM tab0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9030
SELECT ALL + 38 + + SUM( - - CAST( col1 AS SIGNED ) ) col1 FROM tab2
----
233

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9030
SELECT ALL + 38 + + SUM ( - - CAST ( col1 AS INTEGER ) ) col1 FROM tab2
----
233

query I rowsort
SELECT DISTINCT + 89 + + col1 - - col2 AS col1 FROM tab1 AS cor0
----
153
199
204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + 16 col2 FROM tab0 AS cor0
----
-71
-81
1

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NULL <= ( + + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + 22 AND + col1 + + - ( - col0 ) - + - col1 + + 29 + + + col2
----

query I rowsort
SELECT ALL - col2 * - ( + col1 ) + col1 AS col1 FROM tab2 AS cor0
----
1224
3157
3953

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 87 * + col1 + - + col1 <> NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT ( ( NULL ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT + COUNT( * ) FROM tab2 WHERE NOT ( NOT ( NOT col2 + - col1 * + - col1 * col2 BETWEEN + 35 AND NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-9038
SELECT + COUNT ( * ) FROM tab2 WHERE NOT ( NOT ( NOT col2 + - col1 * + - col1 * col2 BETWEEN + 35 AND NULL ) )
----
0

query I rowsort
SELECT 2 * - - col0 FROM tab0
----
174
194
30

query II rowsort
SELECT + 48 * + 44 AS col2, + 4 FROM tab2, tab0 AS cor0
----
18 values hashing to ab8834fd254eeb0672b2ed45dc3631c7

onlyif mysql # DIV for integer division: 
query II rowsort label-9041
SELECT + col0 AS col0, ( + + col2 ) DIV - col0 + - col0 AS col1 FROM tab0
----
15
-18
87
-87
97
-98

skipif mysql # not compatible
query II rowsort label-9041
SELECT + col0 AS col0, ( + + col2 ) / - col0 + - col0 AS col1 FROM tab0
----
15
-18
87
-87
97
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT DISTINCT COUNT( ALL + + 10 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9042
SELECT DISTINCT COUNT ( ALL + + 10 ) FROM tab0
----
3

query I rowsort
SELECT ( + + 83 ) FROM tab0
----
83
83
83

query I rowsort
SELECT + - 3 + + - col1 * - + 33 AS col2 FROM tab2 AS cor0
----
1680
2208
2538

query I rowsort
SELECT + col2 - 23 AS col1 FROM tab1
----
36
45
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT SUM( 73 ) AS col1 FROM tab0
----
219

skipif mysql # not compatible
query I rowsort label-9046
SELECT SUM ( 73 ) AS col1 FROM tab0
----
219

query I rowsort
SELECT - ( 70 ) FROM tab1
----
-70
-70
-70

query I rowsort
SELECT + 55 + + 23 FROM tab2
----
78
78
78

query I rowsort
SELECT + col2 + + 26 AS col0 FROM tab1
----
122
85
94

query III rowsort
SELECT ALL * FROM tab1 WHERE - 23 / 80 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + col1 AS col1 FROM tab0 WHERE NOT col0 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( - col2 )
----

query I rowsort
SELECT DISTINCT 18 * + 16 AS col2 FROM tab1
----
288

query I rowsort
SELECT ALL col1 * 7 AS col2 FROM tab1 WHERE NOT col2 IN ( - col1 + col0 )
----
329
35
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9055
SELECT DISTINCT COUNT( ALL 36 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9055
SELECT DISTINCT COUNT ( ALL 36 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 < col2
----

query I rowsort
SELECT col1 FROM tab1 WHERE - col2 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + col0 * ( + col1 ) - col0 FROM tab2 WHERE NOT - 4 + - col2 IS NULL
----
2300
4864
4950

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 * + 59 <= ( - 20 )
----

query I rowsort
SELECT DISTINCT col2 + + col0 * - col0 AS col2 FROM tab2
----
-2093
-4056
-5567

query I rowsort
SELECT DISTINCT - col2 * + 43 - - col1 AS col1 FROM tab2
----
-1643
-2427
-938

query I rowsort
SELECT col0 * + 52 FROM tab0
----
4524
5044
780

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 * - col0 NOT BETWEEN - col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT col0 + ( col0 ) AS col1 FROM tab0
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9066
SELECT ALL 66 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9066
SELECT ALL 66 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 - col0 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + 23 AS col1 FROM tab0
----
-2001
-2231
-345

query I rowsort
SELECT ALL 27 + 24 * col2 FROM tab0 AS cor0
----
1155
2403
267

query I rowsort
SELECT + col1 * + col1 FROM tab1 AS cor0 WHERE ( col2 ) > col1
----
196
2209
25

onlyif mysql # DIV for integer division: 
query I rowsort label-9072
SELECT + 32 DIV + 14 AS col1 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9072
SELECT + 32 / + 14 AS col1 FROM tab1 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT ALL + 82 + COUNT( * ) FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-9073
SELECT ALL + 82 + COUNT ( * ) FROM tab1 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE col0 + ( col2 ) / + ( + 20 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9074
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE col0 + ( col2 ) / + ( + 20 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT ALL 12 - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9075
SELECT ALL 12 - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col2 - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 + + 10 IN ( col1 + 67 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9078
SELECT ALL - CAST( NULL AS SIGNED ) - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9078
SELECT ALL - CAST ( NULL AS INTEGER ) - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT ( - COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9079
SELECT ( - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2
----
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 + col1 * + col2 ) BETWEEN ( + col0 ) AND ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-9081
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9082
SELECT ALL - CAST( 73 AS SIGNED ) + col0 FROM tab0 WHERE NOT + 31 = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9082
SELECT ALL - CAST ( 73 AS INTEGER ) + col0 FROM tab0 WHERE NOT + 31 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT 83 * + COUNT( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-9083
SELECT 83 * + COUNT ( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT MIN( DISTINCT + 65 ) FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-9084
SELECT MIN ( DISTINCT + 65 ) FROM tab2 AS cor0
----
65

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col2 * - col0 ) > col0
----

query I rowsort
SELECT + 98 * 44 AS col1 FROM tab0 AS cor0
----
4312
4312
4312

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 * + 15 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + - 23 * 67 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT + 78 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
78
78
78

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 76 ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9091
SELECT + col1 DIV + 77 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9091
SELECT + col1 / + 77 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9092
SELECT - 31 / - + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9092
SELECT - 31 / - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + 64 * + col1 FROM tab1
----
18880
204544
86016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9094
SELECT - SUM( ALL + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9094
SELECT - SUM ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 IN ( col2 + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + + col1 * col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col2 + col1 ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = ( + col0 )
----

query I rowsort
SELECT + col2 + - col0 - + - col0 + col2 * col0 AS col1 FROM tab1
----
4992
5074
6256

onlyif mysql # DIV for integer division: 
query I rowsort label-9100
SELECT DISTINCT - col0 + col1 DIV + col1 AS col0 FROM tab0 AS cor0 WHERE NOT 52 = - + 34
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-9100
SELECT DISTINCT - col0 + col1 / + col1 AS col0 FROM tab0 AS cor0 WHERE NOT 52 = - + 34
----
-14
-86
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT ALL COUNT( * ) + + COUNT( * ) * + COUNT( * ) col2 FROM tab2 cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9101
SELECT ALL COUNT ( * ) + + COUNT ( * ) * + COUNT ( * ) col2 FROM tab2 cor0
----
12

query I rowsort
SELECT + - col0 + + ( - + 46 ) AS col2 FROM tab2 AS cor0
----
-110
-121
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 97 AS col0, + 85 col1 FROM tab0 AS cor0
----
-97
85
-97
85
-97
85

query I rowsort
SELECT DISTINCT + ( - col1 ) + + col1 FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT 72 * col2 - + 23 FROM tab2
----
1633
2857
4153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9106
SELECT ALL + col2 + col1 / - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT - - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL + col2 + col1 / - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT - - col1 IS NOT NULL
----

query I rowsort
SELECT + col0 * + col0 * - + col1 AS col0 FROM tab0
----
-158949
-18225
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-9108
SELECT DISTINCT col0 - + col2 + - 16 + 49 DIV - col1 FROM tab2
----
1
7
8

skipif mysql # not compatible
query I rowsort label-9108
SELECT DISTINCT col0 - + col2 + - 16 + 49 / - col1 FROM tab2
----
1
7
8

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + ( col1 ) BETWEEN NULL AND ( - 40 )
----
15
81
47
87
21
10

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 + - col0 ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9111
SELECT ALL + 59 + + col1 AS col0 FROM tab0 WHERE NOT + 61 * - 36 + CAST( + 89 AS SIGNED ) / + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9111
SELECT ALL + 59 + + col1 AS col0 FROM tab0 WHERE NOT + 61 * - 36 + CAST ( + 89 AS INTEGER ) / + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col2 = - col2
----

query I rowsort
SELECT + 76 - - - col2 AS col2 FROM tab1
----
-20
17
8

query I rowsort
SELECT DISTINCT - 67 * + 2 AS col0 FROM tab2
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT + COUNT( * ) - 9 * - COUNT( * ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-9115
SELECT + COUNT ( * ) - 9 * - COUNT ( * ) FROM tab1
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 1 col0 FROM tab2
----
23
40
58

query I rowsort
SELECT + col1 - - - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col1 + + col0 + - col1 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT SUM( DISTINCT + 83 ) - - COUNT( * ) AS col0 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-9119
SELECT SUM ( DISTINCT + 83 ) - - COUNT ( * ) AS col0 FROM tab2
----
86

query I rowsort
SELECT DISTINCT ( - col1 ) + - + 70 FROM tab0 AS cor0
----
-151
-71
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( NOT ( NULL ) BETWEEN + col0 AND NULL ) )
----

query I rowsort
SELECT DISTINCT - ( 63 ) * 88 FROM tab1 AS cor0 WHERE NOT ( NOT col0 * - col2 IN ( 15 ) )
----

query I rowsort
SELECT ALL 24 * + ( ( + 99 ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5411084274f506f042578d0557756a2a

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 > ( + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9125
SELECT + col2 * - + CAST( NULL AS SIGNED ) / - col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND - col2
----

skipif mysql # not compatible
query I rowsort label-9125
SELECT + col2 * - + CAST ( NULL AS INTEGER ) / - col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT MAX( ( + col0 ) ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-9126
SELECT MAX ( ( + col0 ) ) AS col0 FROM tab2
----
75

query II rowsort
SELECT - + 93 AS col2, - col2 - + ( col1 ) * + ( 21 ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9128
SELECT ALL + - CAST( NULL AS SIGNED ) / + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL + - CAST ( NULL AS INTEGER ) / + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 * 52 col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL - 53, 56 AS col2 FROM tab0 cor0
----
-53
56
-53
56
-53
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( 55 ) NOT BETWEEN + col2 AND + col1
----
-1

skipif mysql # not compatible
query I rowsort label-9131
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( 55 ) NOT BETWEEN + col2 AND + col1
----
-1

query II rowsort
SELECT col2 AS col1, - col1 FROM tab0
----
10
-21
47
-81
99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT ALL 1 * + - COUNT( * ) * + COUNT( DISTINCT + col1 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL 1 * + - COUNT ( * ) * + COUNT ( DISTINCT + col1 ) FROM tab1
----
-9

query II rowsort
SELECT ALL 10 * col1 AS col2, col1 + 92 AS col0 FROM tab0
----
10
93
210
113
810
173

query I rowsort
SELECT DISTINCT 28 * col2 AS col0 FROM tab0
----
1316
2772
280

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT 9 * - SUM( - + 3 ) col0 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9136
SELECT 9 * - SUM ( - + 3 ) col0 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT SUM( DISTINCT + 70 ) FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-9137
SELECT SUM ( DISTINCT + 70 ) FROM tab1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT DISTINCT ( - + MIN( + + col1 ) ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9138
SELECT DISTINCT ( - + MIN ( + + col1 ) ) AS col1 FROM tab1
----
-5

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9140
SELECT + 44 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) * 97 * + 28 * - col1 + - 48 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9140
SELECT + 44 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) * 97 * + 28 * - col1 + - 48 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT DISTINCT + - 97 * - 75 + + SUM( - col1 ) + 3 FROM tab2 AS cor0
----
7083

skipif mysql # not compatible
query I rowsort label-9141
SELECT DISTINCT + - 97 * - 75 + + SUM ( - col1 ) + 3 FROM tab2 AS cor0
----
7083

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + 12 )
----

query I rowsort
SELECT DISTINCT - 56 AS col0 FROM tab1 AS cor0 WHERE NOT col1 + + 42 BETWEEN + col0 + col2 AND NULL
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9144
SELECT + 68 + COUNT( * ) DIV + SUM( 84 ) AS col0 FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-9144
SELECT + 68 + COUNT ( * ) / + SUM ( 84 ) AS col0 FROM tab2 AS cor0
----
68

query II rowsort
SELECT ALL 69 AS col2, + col0 FROM tab2 AS cor0
----
69
46
69
64
69
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 78 col1 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
78
78
78

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( - + 89 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT - 37 - - COUNT( + - col2 ) * - COUNT( * ) FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9148
SELECT - 37 - - COUNT ( + - col2 ) * - COUNT ( * ) FROM tab0 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT DISTINCT COUNT( * ) + - COUNT( * ) + + 87 AS col0 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-9149
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) + + 87 AS col0 FROM tab2 AS cor0
----
87

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9150
SELECT * FROM tab2 AS cor0 WHERE - CAST( - + CAST( + 25 AS SIGNED ) AS DECIMAL ) < col2
----
64
77
40
75
67
58

skipif mysql # not compatible
query III rowsort label-9150
SELECT * FROM tab2 AS cor0 WHERE - CAST ( - + CAST ( + 25 AS INTEGER ) AS REAL ) < col2
----
64
77
40
75
67
58

query I rowsort
SELECT ALL + + 55 + - + col1 + + col1 AS col0 FROM tab1 AS cor0
----
55
55
55

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 ) + + col1 BETWEEN ( ( + col1 ) ) AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT 83 + - - MIN( ALL 25 ) FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-9153
SELECT 83 + - - MIN ( ALL 25 ) FROM tab2
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9154
SELECT ALL + + col2 col1 FROM tab0 WHERE NULL >= + col0 + - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9154
SELECT ALL + + col2 col1 FROM tab0 WHERE NULL >= + col0 + - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 36 + + col0 + 9 * + + col2 AS col0 FROM tab1
----
580
667
879

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT DISTINCT + COUNT( * ) * - + 78 FROM tab1
----
-234

skipif mysql # not compatible
query I rowsort label-9156
SELECT DISTINCT + COUNT ( * ) * - + 78 FROM tab1
----
-234

query I rowsort
SELECT DISTINCT col2 - + ( + col1 ) FROM tab1
----
21
54
82

query I rowsort
SELECT ALL col1 + + + col1 / col1 AS col0 FROM tab1 WHERE NOT 64 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE NOT - - col2 NOT BETWEEN ( - 50 ) AND col0 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-9159
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE NOT - - col2 NOT BETWEEN ( - 50 ) AND col0 * - col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col0, + col1 * + col2 + - - col0 col1 FROM tab2
----
46
1219
64
3144
75
3961

onlyif mysql # aggregate syntax: 
query II rowsort label-9161
SELECT - COUNT( * ) AS col1, 57 AS col2 FROM tab0 AS cor0
----
-3
57

skipif mysql # not compatible
query II rowsort label-9161
SELECT - COUNT ( * ) AS col1, 57 AS col2 FROM tab0 AS cor0
----
-3
57

onlyif mysql # aggregate syntax: 
query II rowsort label-9162
SELECT + + 34, + COUNT( * ) AS col0 FROM tab0 AS cor0
----
34
3

skipif mysql # not compatible
query II rowsort label-9162
SELECT + + 34, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
34
3

query I rowsort
SELECT - - ( + 71 ) FROM tab0 AS cor0
----
71
71
71

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 / - col0 NOT IN ( + + col1 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 51 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 79 IS NOT NULL
----

query I rowsort
SELECT + + 98 FROM tab1 WHERE NOT NULL IS NOT NULL
----
98
98
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9168
SELECT + col2 * + CAST( NULL AS DECIMAL ) * - + 1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9168
SELECT + col2 * + CAST ( NULL AS REAL ) * - + 1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9169
SELECT - - col1 * + CAST( NULL AS SIGNED ) * 6 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9169
SELECT - - col1 * + CAST ( NULL AS INTEGER ) * 6 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 6 + + col2 FROM tab2 cor0
----
29
46
64

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( + + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9172
SELECT + col2 DIV + + col0 + col0 FROM tab0 AS cor0
----
18
87
98

skipif mysql # not compatible
query I rowsort label-9172
SELECT + col2 / + + col0 + col0 FROM tab0 AS cor0
----
18
87
98

query I rowsort
SELECT ALL + - 85 FROM tab2 WHERE NOT 29 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9174
SELECT ALL COUNT( * ) DIV 79 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL COUNT ( * ) / 79 AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9175
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9176
SELECT 71 DIV 17 AS col2 FROM tab2
----
4
4
4

skipif mysql # not compatible
query I rowsort label-9176
SELECT 71 / 17 AS col2 FROM tab2
----
4
4
4

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE - col0 / + - ( + col1 ) IS NULL
----

query I rowsort
SELECT 79 * + + col2 * + ( + 74 ) FROM tab0
----
274762
578754
58460

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9179
SELECT * FROM tab2 WHERE NULL IN ( 21 * col2 * + col0 + 43, + CAST( NULL AS SIGNED ) + - col2 )
----

skipif mysql # not compatible
query III rowsort label-9179
SELECT * FROM tab2 WHERE NULL IN ( 21 * col2 * + col0 + 43, + CAST ( NULL AS INTEGER ) + - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9180
SELECT ALL COUNT( * ) col1, - 61 * + MAX( DISTINCT + col2 ) col0 FROM tab2
----
3
-3538

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9180
SELECT ALL COUNT ( * ) col1, - 61 * + MAX ( DISTINCT + col2 ) col0 FROM tab2
----
3
-3538

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT ALL + + COUNT( * ) + - 58 * 94 FROM tab0 AS cor0
----
-5449

skipif mysql # not compatible
query I rowsort label-9181
SELECT ALL + + COUNT ( * ) + - 58 * 94 FROM tab0 AS cor0
----
-5449

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT - SUM( 85 ) AS col0 FROM tab0 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-9182
SELECT - SUM ( 85 ) AS col0 FROM tab0 AS cor0
----
-255

query I rowsort
SELECT DISTINCT - col1 * - col2 * + - col0 FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9184
SELECT ALL CAST( 71 AS SIGNED ) + + - MIN( ALL 8 ) FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-9184
SELECT ALL CAST ( 71 AS INTEGER ) + + - MIN ( ALL 8 ) FROM tab2 AS cor0
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9185
SELECT ALL 99 DIV COUNT( * ) FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL 99 / COUNT ( * ) FROM tab2
----
33

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 65 IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9187
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) = - CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9187
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) = - CAST ( - col0 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 41 col0, + col2 * col0 FROM tab2 AS cor0
----
41
1058
41
2560
41
4350

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT ALL + MAX( ALL - 10 ) FROM tab2 AS cor0 WHERE + ( - col0 ) + + 82 * + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9190
SELECT ALL + MAX ( ALL - 10 ) FROM tab2 AS cor0 WHERE + ( - col0 ) + + 82 * + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT DISTINCT 80 * - COUNT( 9 ) - + COUNT( * ) FROM tab1 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-9191
SELECT DISTINCT 80 * - COUNT ( 9 ) - + COUNT ( * ) FROM tab1 AS cor0
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT ALL + COUNT( - 99 ) - + - 77 AS col0 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL + COUNT ( - 99 ) - + - 77 AS col0 FROM tab1 AS cor0
----
80

query I rowsort
SELECT 52 * - col1 * - + col2 AS col1 FROM tab2
----
160160
202072
60996

onlyif mysql # DIV for integer division: 
query II rowsort label-9194
SELECT ALL + 99 DIV col1 AS col2, - col1 AS col1 FROM tab0
----
1
-81
4
-21
99
-1

skipif mysql # not compatible
query II rowsort label-9194
SELECT ALL + 99 / col1 AS col2, - col1 AS col1 FROM tab0
----
1
-81
4
-21
99
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9195
SELECT DISTINCT + COUNT( DISTINCT - col1 ) AS col1, + 56 FROM tab2
----
3
56

skipif mysql # not compatible
query II rowsort label-9195
SELECT DISTINCT + COUNT ( DISTINCT - col1 ) AS col1, + 56 FROM tab2
----
3
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9196
SELECT + col0 / - col2 AS col1 FROM tab1 WHERE NOT ( CAST( NULL AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query I rowsort label-9196
SELECT + col0 / - col2 AS col1 FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) IS NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9197
SELECT ALL col0 DIV col2, col2 FROM tab0
----
0
47
0
99
8
10

skipif mysql # not compatible
query II rowsort label-9197
SELECT ALL col0 / col2, col2 FROM tab0
----
0
47
0
99
8
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT DISTINCT - MIN( DISTINCT ( - - 92 ) ) FROM tab2 cor0
----
-92

skipif mysql # not compatible
query I rowsort label-9198
SELECT DISTINCT - MIN ( DISTINCT ( - - 92 ) ) FROM tab2 cor0
----
-92

query I rowsort
SELECT ALL - col1 * + - 17 AS col0 FROM tab1
----
238
799
85

query II rowsort
SELECT + col1 AS col2, 78 AS col0 FROM tab1
----
14
78
47
78
5
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - 29 ) col0, + 58 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE + 66 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 87 col0 FROM tab1
----
5133
5916
8352

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 24 = NULL
----

query II rowsort
SELECT - 75 AS col0, - 86 FROM tab1 AS cor0
----
-75
-86
-75
-86
-75
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( - + 81 )
----
0

skipif mysql # not compatible
query I rowsort label-9205
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( - + 81 )
----
0

query I rowsort
SELECT DISTINCT col1 * 7 AS col1 FROM tab2 AS cor0
----
357
469
539

query I rowsort
SELECT ALL + col1 + + + col2 * ( + col1 ) FROM tab2 AS cor0
----
1224
3157
3953

query I rowsort
SELECT + col0 * col0 * + col2 AS col2 FROM tab1 AS cor0
----
249696
426275
563108

query I rowsort
SELECT ALL - ( - 52 ) AS col2 FROM tab0 AS cor0
----
52
52
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9210
SELECT + - col2 * CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-9210
SELECT + - col2 * CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9211
SELECT - CAST( + 76 AS SIGNED ), ( - 69 ) * + col1 + 50 + - col1 FROM tab2 WHERE - + col0 + - + CAST( + col1 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-9211
SELECT - CAST ( + 76 AS INTEGER ), ( - 69 ) * + col1 + 50 + - col1 FROM tab2 WHERE - + col0 + - + CAST ( + col1 AS REAL ) IS NULL
----

query I rowsort
SELECT + col0 * - 22 AS col0 FROM tab2
----
-1012
-1408
-1650

query I rowsort
SELECT + 69 + + + col1 * + col2 FROM tab2
----
1242
3149
3955

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9214
SELECT DISTINCT + 47 FROM tab0 WHERE NULL NOT IN ( - CAST( NULL AS SIGNED ), + col2, + - CAST( NULL AS SIGNED ) * - + col0 )
----

skipif mysql # not compatible
query I rowsort label-9214
SELECT DISTINCT + 47 FROM tab0 WHERE NULL NOT IN ( - CAST ( NULL AS INTEGER ), + col2, + - CAST ( NULL AS INTEGER ) * - + col0 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE 39 >= col2 + + col2 / + 87
----
46
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT ALL COUNT( * ) * + - 48 * + - 45 FROM tab0, tab2 AS cor0
----
19440

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL COUNT ( * ) * + - 48 * + - 45 FROM tab0, tab2 AS cor0
----
19440

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9217
SELECT ALL + CAST( NULL AS DECIMAL ) + col0 * col1 / + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL + CAST ( NULL AS REAL ) + col0 * col1 / + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - 7 FROM tab2 AS cor0
----
39
57
68

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 19 NOT IN ( ( - 90 ) + col2 - + 53 * col1, col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab0 AS cor0 WHERE + 88 < + - col2
----

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL OR NOT + col2 * + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, 42 col1 FROM tab1 AS cor0
----
-51
42
-85
42
-91
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT ALL - - SUM( DISTINCT - col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL - - SUM ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT DISTINCT + col0 + 88 FROM tab1 WHERE NOT - + col2 IS NULL
----
139
173
179

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9225
SELECT - AVG ( DISTINCT - - CAST( NULL AS DECIMAL ) ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9225
SELECT - AVG ( DISTINCT - - CAST ( NULL AS REAL ) ) col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT ( + + col2 ) - + + col2 AS col1 FROM tab2 WHERE NOT 57 * - + 0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9227
SELECT + CAST( + col1 AS SIGNED ) DIV + + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9227
SELECT + CAST ( + col1 AS INTEGER ) / + + col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 7 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT 0 * - 2 * - COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9229
SELECT 0 * - 2 * - COUNT ( * ) FROM tab0 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9230
SELECT + 9 DIV - ( + 43 ) AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9230
SELECT + 9 / - ( + 43 ) AS col1 FROM tab0 cor0
----
0
0
0

query II rowsort
SELECT col0 * + - col2 * + - 79 AS col1, 81 AS col1 FROM tab0
----
55695
81
68730
81
758637
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9232
SELECT DISTINCT + 7 DIV COUNT( * ) * - 60 DIV - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-9232
SELECT DISTINCT + 7 / COUNT ( * ) * - 60 / - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 45 + - 9 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9234
SELECT ALL col0 + - 39 * - - col1 + - + CAST( NULL AS DECIMAL ) + + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9234
SELECT ALL col0 + - 39 * - - col1 + - + CAST ( NULL AS REAL ) + + col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 = + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + - + col1 - - col1 AS col0 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + col2 + + + col0 * + - 86 AS col2 FROM tab1 AS cor0
----
-4290
-7251
-7758

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9238
SELECT - - ( - 1 ) + + CAST( col2 AS SIGNED ) FROM tab1 cor0
----
58
67
95

skipif mysql # not compatible
query I rowsort label-9238
SELECT - - ( - 1 ) + + CAST ( col2 AS INTEGER ) FROM tab1 cor0
----
58
67
95

query II rowsort
SELECT ALL - col1 * - 81 AS col2, - 59 AS col2 FROM tab0 AS cor0
----
1701
-59
6561
-59
81
-59

query I rowsort
SELECT ALL - ( - + ( - ( - col0 ) ) ) FROM tab2 cor0
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9241
SELECT ALL - 25 DIV - 91, COUNT( * ) AS col0 FROM tab1, tab0 AS cor0
----
0
9

skipif mysql # not compatible
query II rowsort label-9241
SELECT ALL - 25 / - 91, COUNT ( * ) AS col0 FROM tab1, tab0 AS cor0
----
0
9

query I rowsort
SELECT DISTINCT col0 + + col0 * - - 87 * - 52 AS col1 FROM tab2
----
-208058
-289472
-339225

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9243
SELECT - COUNT( * ) DIV + 29 * - COUNT( * ) AS col2, + COUNT( ALL + 68 ) FROM tab1
----
0
3

skipif mysql # not compatible
query II rowsort label-9243
SELECT - COUNT ( * ) / + 29 * - COUNT ( * ) AS col2, + COUNT ( ALL + 68 ) FROM tab1
----
0
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9244
SELECT col2 AS col1, col0 + - CAST( NULL AS SIGNED ) + - col2 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-9244
SELECT col2 AS col1, col0 + - CAST ( NULL AS INTEGER ) + - col2 FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT + 31 FROM tab0 AS cor0 WHERE NULL IS NULL
----
31
31
31

query II rowsort
SELECT DISTINCT - 33 - + - col1, col0 * - col2 + - 72 * col1 AS col0 FROM tab1
----
-19
-5904
-28
-5375
14
-9572

query I rowsort
SELECT ALL + ( + - col0 ) AS col0 FROM tab0
----
-15
-87
-97

query II rowsort
SELECT - 51 * 26 AS col1, col0 FROM tab0
----
-1326
15
-1326
87
-1326
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9249
SELECT col2 DIV - col1 AS col0 FROM tab0 cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-9249
SELECT col2 / - col1 AS col0 FROM tab0 cor0
----
-99
0
0

query I rowsort
SELECT ( col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 >= + ( - - col1 ) * col0 * - col1
----
97

query I rowsort
SELECT ALL + - 90 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL = - 11 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9252
SELECT DISTINCT + - 16 DIV + COUNT( * ) AS col0 FROM tab0 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9252
SELECT DISTINCT + - 16 / + COUNT ( * ) AS col0 FROM tab0 cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9253
SELECT ALL + col2 DIV - col0 + - CAST( - - 41 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-41
-42
-44

skipif mysql # not compatible
query I rowsort label-9253
SELECT ALL + col2 / - col0 + - CAST ( - - 41 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-41
-42
-44

query I rowsort
SELECT ALL 86 AS col0 FROM tab2 AS cor0 WHERE - col2 > - 38 * - - col0
----
86
86
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9255
SELECT - col0 - 50 * + CAST( + 38 AS SIGNED ), - col0 + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT 63 * + - 53 IS NULL
----
-1951
-37
-1985
-80
-1991
-44

skipif mysql # not compatible
query II rowsort label-9255
SELECT - col0 - 50 * + CAST ( + 38 AS INTEGER ), - col0 + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT 63 * + - 53 IS NULL
----
-1951
-37
-1985
-80
-1991
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 col1 FROM tab1 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9257
SELECT ALL + CAST( - ( + col2 ) AS SIGNED ) AS col0 FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9257
SELECT ALL + CAST ( - ( + col2 ) AS INTEGER ) AS col0 FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT - COUNT( * ) * + 33 AS col1 FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-9258
SELECT - COUNT ( * ) * + 33 AS col1 FROM tab2
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-9259
SELECT - 55 * + - 63 AS col1, COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col1
----
3465
0

skipif mysql # not compatible
query II rowsort label-9259
SELECT - 55 * + - 63 AS col1, COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col1
----
3465
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT ALL COUNT( - - col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL COUNT ( - - col2 ) AS col2 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 46 IS NULL
----

query I rowsort
SELECT DISTINCT + 71 * - 21 FROM tab0
----
-1491

query I rowsort
SELECT DISTINCT 76 * + col1 AS col2 FROM tab0
----
1596
6156
76

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 12 * - 2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 3 AS col1 FROM tab0 cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT DISTINCT - + COUNT( * ) col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9266
SELECT DISTINCT - + COUNT ( * ) col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9267
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( 36 * + ( ( + col1 ) ) * - col0 + - 53, - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-9267
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( 36 * + ( ( + col1 ) ) * - col0 + - 53, - CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> - - col0 * + + col1
----

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) >= - 37
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9270
SELECT col0 * + CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9270
SELECT col0 * + CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9271
SELECT - col1 + - CAST( - 50 AS SIGNED ) + - + 70 * - col0 AS col1 FROM tab0 AS cor0
----
1019
6119
6839

skipif mysql # not compatible
query I rowsort label-9271
SELECT - col1 + - CAST ( - 50 AS INTEGER ) + - + 70 * - col0 AS col1 FROM tab0 AS cor0
----
1019
6119
6839

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT 35 + + - ( COUNT( * ) ) FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-9272
SELECT 35 + + - ( COUNT ( * ) ) FROM tab1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9273
SELECT 14 + - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9273
SELECT 14 + - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - ( col2 ), ( + 6 ) FROM tab0 WHERE NOT NULL >= col0 * + - ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9275
SELECT DISTINCT 10 + + + CAST( NULL AS SIGNED ) + + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT 10 + + + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE 89 + - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 - + col0 * + + col0 AS col2 FROM tab0
----
-210
-7482
-9312

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 45 - - 60 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 69 * col2 * - 71 AS col2, col1 + + + col2 - + col1 AS col2 FROM tab0
----
-230253
47
-485001
99
-48990
10

query I rowsort
SELECT + 53 * - col1 * - col1 FROM tab2 AS cor0
----
137853
237917
314237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, + col0 col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT + col0 * + - 47 FROM tab0 cor0
----
-4089
-4559
-705

query II rowsort
SELECT ALL + col2 * + col0 AS col2, 61 - - col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1058
107
2560
125
4350
136

query I rowsort
SELECT + 0 AS col2 FROM tab2 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 NOT BETWEEN - col2 * - - col1 - col2 + + 9 + - col1 * + + 56 AND 90 - - ( + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE - - col1 * - col1 IS NOT NULL
----
-51
-85
-91

query II rowsort
SELECT ( - + col2 ) AS col0, + col2 FROM tab1
----
-59
59
-68
68
-96
96

query I rowsort
SELECT DISTINCT ( - 84 ) FROM tab0 AS cor0
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-9289
SELECT 87 DIV - + 96 * + col1 - - + col0 + - + col2 FROM tab1 AS cor0
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-9289
SELECT 87 / - + 96 * + col1 - - + col0 + - + col2 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9290
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) * + + col0 >= NULL
----

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * + + col0 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9291
SELECT ALL - COUNT( * ) * + 14 DIV ( - + 65 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL - COUNT ( * ) * + 14 / ( - + 65 ) AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL 6 * + - col0 AS col2 FROM tab1
----
-306
-510
-546

query I rowsort
SELECT DISTINCT col1 + - - 95 AS col2 FROM tab2
----
146
162
172

query II rowsort
SELECT DISTINCT - col0 AS col2, col1 FROM tab0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT COUNT( * ) + - + MAX( DISTINCT - 25 ) * 30 AS col2 FROM tab0 AS cor0
----
753

skipif mysql # not compatible
query I rowsort label-9295
SELECT COUNT ( * ) + - + MAX ( DISTINCT - 25 ) * 30 AS col2 FROM tab0 AS cor0
----
753

query I rowsort
SELECT ALL + col0 + + 85 + - - col2 * + col0 * - + col0 + col2 FROM tab0 AS cor0
----
-10428
-75508
-931210

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT + + ( + - COUNT( * ) ) + + 97 AS col0 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-9297
SELECT + + ( + - COUNT ( * ) ) + + 97 AS col0 FROM tab2 AS cor0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9298
SELECT DISTINCT - 86 + col1 + col2 * CAST( - - col0 AS SIGNED ) FROM tab0 AS cor0
----
700
805
9518

skipif mysql # not compatible
query I rowsort label-9298
SELECT DISTINCT - 86 + col1 + col2 * CAST ( - - col0 AS INTEGER ) FROM tab0 AS cor0
----
700
805
9518

query I rowsort
SELECT ALL + - 57 + + col1 FROM tab0 AS cor0
----
-36
-56
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT DISTINCT + - 62 + + ( - SUM( - col2 ) ) FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9300
SELECT DISTINCT + - 62 + + ( - SUM ( - col2 ) ) FROM tab2 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT DISTINCT - COUNT( * ) - - - COUNT( * ) AS col0 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-9301
SELECT DISTINCT - COUNT ( * ) - - - COUNT ( * ) AS col0 FROM tab0
----
-6

query II rowsort
SELECT col0 * 4, + 65 AS col2 FROM tab2
----
184
65
256
65
300
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9303
SELECT CAST( - + 49 AS SIGNED ) - - - col1 FROM tab0 WHERE NULL BETWEEN - ( + col2 ) * + col1 - - col0 AND + + col2
----

skipif mysql # not compatible
query I rowsort label-9303
SELECT CAST ( - + 49 AS INTEGER ) - - - col1 FROM tab0 WHERE NULL BETWEEN - ( + col2 ) * + col1 - - col0 AND + + col2
----

query I rowsort
SELECT ALL col1 + - 2 AS col0 FROM tab1
----
12
3
45

query I rowsort
SELECT col2 - - 39 AS col1 FROM tab1
----
107
135
98

query I rowsort
SELECT - ( - + ( - 50 ) ) - - + col1 AS col2 FROM tab2
----
1
17
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9307
SELECT - - MAX( - - col1 ) DIV 14 * SUM( - 86 ) - COUNT( * ) FROM tab1 AS cor0
----
-777

skipif mysql # not compatible
query I rowsort label-9307
SELECT - - MAX ( - - col1 ) / 14 * SUM ( - 86 ) - COUNT ( * ) FROM tab1 AS cor0
----
-777

query I rowsort
SELECT - col1 + - 67 - - + col0 FROM tab2 AS cor0
----
-59
-72
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9310
SELECT CAST( 76 AS SIGNED ) FROM tab2
----
76
76
76

skipif mysql # not compatible
query I rowsort label-9310
SELECT CAST ( 76 AS INTEGER ) FROM tab2
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT - COUNT( ( + col0 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9311
SELECT - COUNT ( ( + col0 ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) * - - 40 * - COUNT( * ) FROM tab2
----
1080

skipif mysql # not compatible
query I rowsort label-9312
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) * - - 40 * - COUNT ( * ) FROM tab2
----
1080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9313
SELECT - CAST( + MAX( + ( + + col0 ) ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9313
SELECT - CAST ( + MAX ( + ( + + col0 ) ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT - - 17 * - col2 FROM tab1 AS cor0
----
-1003
-1156
-1632

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT MAX( DISTINCT - - 40 ) AS col0 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-9315
SELECT MAX ( DISTINCT - - 40 ) AS col0 FROM tab0 AS cor0
----
40

query I rowsort
SELECT DISTINCT 26 * - col0 * + 7 FROM tab2 AS cor0
----
-11648
-13650
-8372

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT ALL MAX( ALL + + 95 ) FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL MAX ( ALL + + 95 ) FROM tab2
----
95

query II rowsort
SELECT col2 AS col0, + 76 FROM tab2
----
23
76
40
76
58
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT MAX( + 63 ) AS col2 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-9319
SELECT MAX ( + 63 ) AS col2 FROM tab1
----
63

query II rowsort
SELECT ALL + col0, - col1 * - - 42 AS col1 FROM tab2
----
46
-2142
64
-3234
75
-2814

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> 44
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9322
SELECT DISTINCT col0 + + col0 - + - col2 - - 65 DIV + col0 FROM tab0
----
184
293
81

skipif mysql # not compatible
query I rowsort label-9322
SELECT DISTINCT col0 + + col0 - + - col2 - - 65 / + col0 FROM tab0
----
184
293
81

query I rowsort
SELECT ALL - 0 * - - 35 AS col1 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + col2 <> NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9325
SELECT ALL + 50 DIV - 79 + + col2 AS col1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9325
SELECT ALL + 50 / - 79 + + col2 AS col1 FROM tab0 AS cor0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 53 col1 FROM tab2 AS cor0
----
-5
13
30

query I rowsort
SELECT ALL - col2 * + - col2 * + col0 AS col1 FROM tab1 AS cor0
----
295885
420784
470016

query I rowsort
SELECT - 31 * - + col2 FROM tab2
----
1240
1798
713

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 8 >= NULL
----

query I rowsort
SELECT + 94 - + + col2 * - - col0 FROM tab0 AS cor0
----
-611
-776
-9509

query I rowsort
SELECT ALL + 14 * - col0 * + 11 + 11 AS col0 FROM tab1 AS cor0
----
-13079
-14003
-7843

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT ALL + - SUM( DISTINCT - col2 ) - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL + - SUM ( DISTINCT - col2 ) - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
159

query I rowsort
SELECT + - col2 + + + ( + 73 ) AS col1 FROM tab0 AS cor0
----
-26
26
63

query I rowsort
SELECT ALL + col2 + + col1 * - 23 FROM tab0 AS cor0
----
-1816
-473
76

onlyif mysql # aggregate syntax: 
query II rowsort label-9335
SELECT DISTINCT COUNT( * ), 82 col0 FROM tab0
----
3
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9335
SELECT DISTINCT COUNT ( * ), 82 col0 FROM tab0
----
3
82

query I rowsort
SELECT ALL 35 - - col0 + - col0 * 20 FROM tab1
----
-1580
-1694
-934

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9337
SELECT ALL CAST( CAST( + col0 AS SIGNED ) AS SIGNED ) col0, + 7 - - 59 FROM tab2
----
46
66
64
66
75
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9337
SELECT ALL CAST ( CAST ( + col0 AS INTEGER ) AS INTEGER ) col0, + 7 - - 59 FROM tab2
----
46
66
64
66
75
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9338
SELECT + 69 * - + CAST( NULL AS SIGNED ) - 51 + - + col0 * - + col0 + 11 * - col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9338
SELECT + 69 * - + CAST ( NULL AS INTEGER ) - 51 + - + col0 * - + col0 + 11 * - col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * 57 AS col0 FROM tab1 AS cor0
----
2907
4845
5187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9340
SELECT CAST( NULL AS SIGNED ) AS col1, COUNT( * ) * - COUNT( * ) col1 FROM tab2 AS cor0
----
NULL
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9340
SELECT CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * - COUNT ( * ) col1 FROM tab2 AS cor0
----
NULL
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9341
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) <= - col0
----

skipif mysql # not compatible
query III rowsort label-9341
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) <= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE + col2 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9342
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE + col2 BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9343
SELECT + CAST( - AVG ( - 44 ) AS SIGNED ) FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-9343
SELECT + CAST ( - AVG ( - 44 ) AS INTEGER ) FROM tab2
----
44

query I rowsort
SELECT DISTINCT - 88 * col2 * + col2 FROM tab0
----
-194392
-862488
-8800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9345
SELECT MIN( - + col0 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9345
SELECT MIN ( - + col0 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 49 * col0 * + col0 AS col1 FROM tab2 AS cor0
----
103684
200704
275625

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT + MIN( DISTINCT 44 ) * + + COUNT( * ) FROM tab0 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-9347
SELECT + MIN ( DISTINCT 44 ) * + + COUNT ( * ) FROM tab0 AS cor0
----
132

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 72 * - - 21 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - - col1 > NULL )
----

query II rowsort
SELECT col0 * - 93, - 2 AS col2 FROM tab0 AS cor0
----
-1395
-2
-8091
-2
-9021
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 + + 34 + col2 col2 FROM tab1
----
173
182
210

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 34 + col0 < + - 27
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9353
SELECT * FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) NOT IN ( - - ( - 47 ) )
----

skipif mysql # not compatible
query III rowsort label-9353
SELECT * FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) NOT IN ( - - ( - 47 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9354
SELECT - col2 DIV + + col0 - + col2 AS col2 FROM tab1 AS cor0
----
-59
-68
-97

skipif mysql # not compatible
query I rowsort label-9354
SELECT - col2 / + + col0 - + col2 AS col2 FROM tab1 AS cor0
----
-59
-68
-97

query I rowsort
SELECT ALL - 87 + + 52 AS col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9356
SELECT DISTINCT * FROM tab2 WHERE + - 50 + + CAST( + 40 AS DECIMAL ) + - 7 IN ( - 24 * - - col1 + col0 + + - col0 + col1 + - col2 * - 9 - - col2, - col0 * - col1 + CAST( NULL AS SIGNED ), col1 + - col1 - + 26 * + 38, - 29 * + + col2 * + col0 )
----

skipif mysql # not compatible
query III rowsort label-9356
SELECT DISTINCT * FROM tab2 WHERE + - 50 + + CAST ( + 40 AS REAL ) + - 7 IN ( - 24 * - - col1 + col0 + + - col0 + col1 + - col2 * - 9 - - col2, - col0 * - col1 + CAST ( NULL AS INTEGER ), col1 + - col1 - + 26 * + 38, - 29 * + + col2 * + col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= - col1
----

query I rowsort
SELECT DISTINCT + col0 + - + 87 AS col1 FROM tab0 AS cor0
----
-72
0
10

onlyif mysql # DIV for integer division: 
query I rowsort label-9359
SELECT DISTINCT + col2 DIV - col0 * - col2 + - 24 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-9359
SELECT DISTINCT + col2 / - col0 * - col2 + - 24 FROM tab2 AS cor0
----
-24

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <> + - col1
----

query I rowsort
SELECT ALL + - ( - 19 ) * - col1 + + col0 FROM tab1 AS cor0
----
-10
-215
-802

query I rowsort
SELECT ALL + + 52 AS col1 FROM tab0 cor0
----
52
52
52

query I rowsort
SELECT col1 - + + col0 * col1 * + + col2 * col1 FROM tab0
----
-383649
-4625424
-9602

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9364
SELECT ( ( - col2 ) ) - - CAST( NULL AS SIGNED ) col2, + col0 DIV + col2 AS col2 FROM tab0
----
NULL
0
NULL
0
NULL
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9364
SELECT ( ( - col2 ) ) - - CAST ( NULL AS INTEGER ) col2, + col0 / + col2 AS col2 FROM tab0
----
NULL
0
NULL
0
NULL
8

query I rowsort
SELECT DISTINCT col2 - - ( + + col2 ) + + col1 AS col2 FROM tab2
----
157
183
97

query I rowsort
SELECT + 80 * col1 * + col0 - - 52 AS col2 FROM tab2
----
187732
394292
402052

query II rowsort
SELECT ALL ( - 91 ) - col1 * - 41 AS col1, col0 AS col2 FROM tab1
----
114
85
1836
91
483
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT ALL ( + + 78 ) * + COUNT( * ) FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-9368
SELECT ALL ( + + 78 ) * + COUNT ( * ) FROM tab0
----
234

query I rowsort
SELECT + 36 * + col2 * + 72 AS col1 FROM tab0 AS cor0
----
121824
256608
25920

query II rowsort
SELECT DISTINCT - 21, ( - + 76 ) + - col0 * + col2 AS col1 FROM tab0
----
-21
-781
-21
-946
-21
-9679

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 NOT IN ( - col0, - col0, + col0 )
----

query I rowsort
SELECT + 73 * - - 98 FROM tab2 AS cor0
----
7154
7154
7154

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT - COUNT( ALL + + 6 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9374
SELECT - COUNT ( ALL + + 6 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9375
SELECT 37 * + col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9375
SELECT 37 * + col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - - 82 ) AS col2 FROM tab0
----
-82
-82
-82

query II rowsort
SELECT 5 AS col1, col2 * + col0 AS col0 FROM tab1
----
5
4896
5
5015
5
6188

query I rowsort
SELECT - col1 + 22 AS col1 FROM tab0
----
-59
1
21

query III rowsort
SELECT * FROM tab0 WHERE - - col2 <> col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT DISTINCT COUNT( DISTINCT + - col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9380
SELECT DISTINCT COUNT ( DISTINCT + - col2 ) AS col0 FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( - col1 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 2 + - col1 - + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9383
SELECT DISTINCT 26 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9383
SELECT DISTINCT 26 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9384
SELECT - 46 col0, - COUNT( * ) FROM tab1 AS cor0
----
-46
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9384
SELECT - 46 col0, - COUNT ( * ) FROM tab1 AS cor0
----
-46
-3

query I rowsort
SELECT 71 * - 10 AS col0 FROM tab1
----
-710
-710
-710

query I rowsort
SELECT DISTINCT - ( + col2 ) * - col0 + + 46 + + col2 FROM tab0 AS cor0
----
798
926
9748

onlyif mysql # DIV for integer division: 
query II rowsort label-9387
SELECT + 68 + - 34 AS col0, 22 - - - col0 DIV + col0 + - col0 + - col0 * + 28 AS col1 FROM tab2 AS cor0
----
34
-1313
34
-1835
34
-2154

skipif mysql # not compatible
query II rowsort label-9387
SELECT + 68 + - 34 AS col0, 22 - - - col0 / + col0 + - col0 + - col0 * + 28 AS col1 FROM tab2 AS cor0
----
34
-1313
34
-1835
34
-2154

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL = + col1 )
----

query I rowsort
SELECT + col1 + col2 + - 57 AS col2 FROM tab2 AS cor0
----
17
60
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9390
SELECT 81 + - - 55 DIV 76 * + col1 FROM tab2 AS cor0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-9390
SELECT 81 + - - 55 / 76 * + col1 FROM tab2 AS cor0
----
81
81
81

query I rowsort
SELECT DISTINCT + col1 - + 21 * - col0 AS col0 FROM tab2 AS cor0
----
1017
1421
1642

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9392
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( - col1 AS SIGNED ) + - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9392
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( - col1 AS INTEGER ) + - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9393
SELECT - - 41 + + + ( + MAX( - col2 ) ) DIV + 78 AS col0 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-9393
SELECT - - 41 + + + ( + MAX ( - col2 ) ) / + 78 AS col0 FROM tab2 AS cor0
----
41

query I rowsort
SELECT DISTINCT + col2 + - - ( - 13 ) FROM tab2 AS cor0
----
10
27
45

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9396
SELECT ALL - MAX( DISTINCT + - col0 ), 23 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
15
20

skipif mysql # not compatible
query II rowsort label-9396
SELECT ALL - MAX ( DISTINCT + - col0 ), 23 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
15
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT ALL + 51 - MAX( + 77 ) + 10 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL + 51 - MAX ( + 77 ) + 10 FROM tab1 AS cor0
----
-16

query II rowsort
SELECT DISTINCT + 99, + col2 * + col2 AS col2 FROM tab1
----
99
3481
99
4624
99
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT SUM( 76 ) FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-9399
SELECT SUM ( 76 ) FROM tab0
----
228

query I rowsort
SELECT DISTINCT - ( 95 ) * + col1 * + + 48 FROM tab0
----
-369360
-4560
-95760

query I rowsort
SELECT ALL - 30 * - - col2 FROM tab2
----
-1200
-1740
-690

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT ALL - MIN( col2 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL - MIN ( col2 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59

query I rowsort
SELECT + 30 * col2 AS col2 FROM tab1
----
1770
2040
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT ( - - COUNT( * ) ) + - 52 AS col1 FROM tab0 WHERE NOT col1 IS NOT NULL
----
-52

skipif mysql # not compatible
query I rowsort label-9404
SELECT ( - - COUNT ( * ) ) + - 52 AS col1 FROM tab0 WHERE NOT col1 IS NOT NULL
----
-52

query I rowsort
SELECT - + col1 * + col2 + + col0 FROM tab1 AS cor0
----
-1293
-210
-3105

onlyif mysql # DIV for integer division: 
query II rowsort label-9406
SELECT DISTINCT + 29, 43 DIV + + 61 AS col0 FROM tab0 AS cor0
----
29
0

skipif mysql # not compatible
query II rowsort label-9406
SELECT DISTINCT + 29, 43 / + + 61 AS col0 FROM tab0 AS cor0
----
29
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9407
SELECT ALL - CAST( - MIN( + - 26 ) AS SIGNED ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL - CAST ( - MIN ( + - 26 ) AS INTEGER ) FROM tab2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9408
SELECT + + 83 * - CAST( NULL AS SIGNED ) + - col1 - + 90 / - - ( + 99 ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9408
SELECT + + 83 * - CAST ( NULL AS INTEGER ) + - col1 - + 90 / - - ( + 99 ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 25 col2 FROM tab1 AS cor0
----
110
116
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 + ( + col2 ) col1 FROM tab2 AS cor0
----
62
79
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT DISTINCT ( + + MIN( - col1 ) ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9411
SELECT DISTINCT ( + + MIN ( - col1 ) ) FROM tab1 cor0
----
-47

query I rowsort
SELECT + AVG ( + - col2 ) FROM tab2 AS cor0 WHERE + col0 <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT + COUNT( * ) * - MIN( ALL + + col2 ) * + 89 FROM tab0
----
-2670

skipif mysql # not compatible
query I rowsort label-9413
SELECT + COUNT ( * ) * - MIN ( ALL + + col2 ) * + 89 FROM tab0
----
-2670

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT DISTINCT - MIN( ALL - col1 ) + - 34 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-9414
SELECT DISTINCT - MIN ( ALL - col1 ) + - 34 FROM tab0
----
47

query I rowsort
SELECT ALL - 1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( + 35 ) AS col0 FROM tab1
----
35
35
35

query I rowsort
SELECT ALL - 46 + - - col2 FROM tab2 AS cor0
----
-23
-6
12

query I rowsort
SELECT DISTINCT + 53 * - 93 + - col1 AS col0 FROM tab1 AS cor0
----
-4934
-4943
-4976

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT DISTINCT - + SUM( DISTINCT + col1 ) col0 FROM tab2 cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9419
SELECT DISTINCT - + SUM ( DISTINCT + col1 ) col0 FROM tab2 cor0
----
-195

query I rowsort
SELECT col0 + - - 5 FROM tab1 cor0
----
56
90
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9421
SELECT - CAST( NULL AS SIGNED ) * - col2 + + + col0 + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9421
SELECT - CAST ( NULL AS INTEGER ) * - col2 + + + col0 + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT 40 + + + ( + COUNT( * ) ) - + COUNT( * ) FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-9422
SELECT 40 + + + ( + COUNT ( * ) ) - + COUNT ( * ) FROM tab1
----
40

query I rowsort
SELECT 89 * - col1 AS col2 FROM tab0
----
-1869
-7209
-89

query I rowsort
SELECT - 4 + - + col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND + + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * + - 60 + 87 * + + 44 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 + + col1 >= NULL
----

query III rowsort
SELECT - 25 AS col2, + 28, - col1 AS col2 FROM tab1 AS cor0
----
9 values hashing to f022dfe1da9fe6032657e82988e2ad1f

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE col2 <= + col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9429
SELECT ALL + + 3 + + col1 + - CAST( col2 AS SIGNED ) DIV - col2 + - 98 + - + col1 * 47 col1 FROM tab2 AS cor0
----
-2440
-3176
-3636

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9429
SELECT ALL + + 3 + + col1 + - CAST ( col2 AS INTEGER ) / - col2 + - 98 + - + col1 * 47 col1 FROM tab2 AS cor0
----
-2440
-3176
-3636

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + - col2 * + 90 / + ( - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 <> col0 + + col2 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT MIN( DISTINCT 68 ) FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-9433
SELECT MIN ( DISTINCT 68 ) FROM tab0
----
68

query II rowsort
SELECT col2 * col1 AS col1, + col2 AS col2 FROM tab0
----
210
10
3807
47
99
99

query I rowsort
SELECT 75 * col0 * - col2 FROM tab0
----
-52875
-65250
-720225

query II rowsort
SELECT ALL - col1 * - 43 AS col0, - col2 FROM tab1 AS cor0
----
2021
-68
215
-59
602
-96

query I rowsort
SELECT - col1 AS col1 FROM tab2 cor0 WHERE NOT + col0 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT ALL - MIN( ALL + + 46 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9438
SELECT ALL - MIN ( ALL + + 46 ) FROM tab2 AS cor0
----
-46

query II rowsort
SELECT + - ( + col2 ) AS col1, + col0 AS col2 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query II rowsort
SELECT col0 AS col2, + 58 FROM tab1
----
51
58
85
58
91
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT SUM( DISTINCT + 24 ) FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-9441
SELECT SUM ( DISTINCT + 24 ) FROM tab1
----
24

query I rowsort
SELECT ALL + col1 * - + col2 AS col1 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT + + ( + col0 ) + col2 AS col2 FROM tab2 cor0
----
104
133
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 65 + - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN ( - col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT - 0 + + - 26 AS col1 FROM tab0 AS cor0
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9447
SELECT ALL COUNT( DISTINCT - col0 ) + SUM( + col2 ) DIV - 1 FROM tab2 AS cor0
----
-118

skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL COUNT ( DISTINCT - col0 ) + SUM ( + col2 ) / - 1 FROM tab2 AS cor0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT - 18 * - COUNT( * ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-9448
SELECT - 18 * - COUNT ( * ) FROM tab2 AS cor0
----
54

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT ( NOT - 56 >= NULL )
----

query II rowsort
SELECT DISTINCT - + 88 AS col2, 58 * - 42 * + 82 AS col2 FROM tab2 AS cor0
----
-88
-199752

onlyif mysql # DIV for integer division: 
query I rowsort label-9451
SELECT - col0 + - 34 DIV - 36 AS col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9451
SELECT - col0 + - 34 / - 36 AS col2 FROM tab0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 76 col2 FROM tab0
----
76

query I rowsort
SELECT 26 + + 90 * + col2 FROM tab0
----
4256
8936
926

query I rowsort
SELECT + 79 + + - 26 FROM tab1
----
53
53
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9455
SELECT - 11 + + SUM( ALL - CAST( NULL AS SIGNED ) ) - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9455
SELECT - 11 + + SUM ( ALL - CAST ( NULL AS INTEGER ) ) - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > - col0 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT COUNT( * ) FROM tab2 WHERE + ( - + col1 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9457
SELECT COUNT ( * ) FROM tab2 WHERE + ( - + col1 ) IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 + - col1 * + + 13 col1 FROM tab2
----
-586
-794
-924

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 IN ( + col1 * + col0 - + col1, + col0 / + + col2 )
----

query I rowsort
SELECT DISTINCT + - 58 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col1 * - 77 + - col1 * - + 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT ALL - + 25 * COUNT( * ) + + 14 col1 FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9461
SELECT ALL - + 25 * COUNT ( * ) + + 14 col1 FROM tab1 AS cor0
----
-61

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 cor0 WHERE - 91 IS NOT NULL
----
-15
-87
-97

query II rowsort
SELECT DISTINCT 49, col0 AS col0 FROM tab2
----
49
46
49
64
49
75

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT + col2 - - + col2 + - + col0 * + + col1 FROM tab1
----
-307
-4141
-522

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) < - 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT DISTINCT SUM( ALL - 94 ) FROM tab2 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-9467
SELECT DISTINCT SUM ( ALL - 94 ) FROM tab2 AS cor0
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT - MIN( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9468
SELECT - MIN ( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ALL + ( + - 8 ) AS col1 FROM tab1 AS cor0
----
-8
-8
-8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + 27 * - 40 < + ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT MAX( DISTINCT + 52 ) FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-9471
SELECT MAX ( DISTINCT + 52 ) FROM tab2 AS cor0
----
52

onlyif mysql # DIV for integer division: 
query II rowsort label-9472
SELECT - col0 * - - col0 DIV col0, + col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

skipif mysql # not compatible
query II rowsort label-9472
SELECT - col0 * - - col0 / col0, + col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9473
SELECT - - col1 DIV + 40 + + col1 AS col2 FROM tab1 AS cor0
----
14
48
5

skipif mysql # not compatible
query I rowsort label-9473
SELECT - - col1 / + 40 + + col1 AS col2 FROM tab1 AS cor0
----
14
48
5

query I rowsort
SELECT DISTINCT - ( - 87 ) FROM tab0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9475
SELECT ALL col2, CAST( NULL AS SIGNED ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-9475
SELECT ALL col2, CAST ( NULL AS INTEGER ) FROM tab2
----
23
NULL
40
NULL
58
NULL

query II rowsort
SELECT ALL col0, - 62 FROM tab2
----
46
-62
64
-62
75
-62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9477
SELECT DISTINCT col2 col2, CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9477
SELECT DISTINCT col2 col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT DISTINCT + + ( 29 ) AS col1 FROM tab2 AS cor0
----
29

query II rowsort
SELECT DISTINCT col1 AS col2, ( + col1 ) * + col2 + + 44 FROM tab2 AS cor0
----
51
1217
67
3930
77
3124

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT ALL - 7 * + COUNT( * ) AS col2 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-9480
SELECT ALL - 7 * + COUNT ( * ) AS col2 FROM tab1
----
-21

query I rowsort
SELECT ALL - - 76 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT 97 FROM tab0 WHERE NOT + col0 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 83 col2 FROM tab2
----
-83
-83
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9484
SELECT MIN( + col0 ), 35 * - 0 / + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
51
NULL

skipif mysql # not compatible
query II rowsort label-9484
SELECT MIN ( + col0 ), 35 * - 0 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
51
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col0 > + col2 * + ( + 53 )
----

query I rowsort
SELECT DISTINCT + 17 * col2 + + col0 FROM tab2 AS cor0
----
1061
437
744

query I rowsort
SELECT ALL 97 * - - 18 + - - ( col0 ) FROM tab1 AS cor0
----
1797
1831
1837

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = 68 / + col0 / + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT - - ( - COUNT( * ) ) * - + 19 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-9489
SELECT - - ( - COUNT ( * ) ) * - + 19 FROM tab2 AS cor0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9490
SELECT ALL COUNT( * ) DIV + MIN( ALL - + col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9490
SELECT ALL COUNT ( * ) / + MIN ( ALL - + col0 ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9492
SELECT DISTINCT - CAST( - col0 AS SIGNED ) DIV - col2 + + + 65 * - col0 AS col1 FROM tab2
----
-2992
-4161
-4876

skipif mysql # not compatible
query I rowsort label-9492
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) / - col2 + + + 65 * - col0 AS col1 FROM tab2
----
-2992
-4161
-4876

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 col1 FROM tab1
----
-86
-86
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9494
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - COUNT( * ) * - AVG ( + col1 ) + - 85 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - AVG ( + col1 ) + - 85 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - + col1 + - col1 * - col2 * - 70 * + - col0 FROM tab0 AS cor0
----
1278879
3997269
672209

query I rowsort
SELECT DISTINCT + 28 + - col0 AS col1 FROM tab2 cor0
----
-18
-36
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT + MAX( ALL + 92 ) * + 48 AS col0 FROM tab1
----
4416

skipif mysql # not compatible
query I rowsort label-9497
SELECT + MAX ( ALL + 92 ) * + 48 AS col0 FROM tab1
----
4416

query I rowsort
SELECT + ( col1 ) - col2 AS col2 FROM tab1
----
-21
-54
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 col2 FROM tab0
----
-69

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 < col1
----

query I rowsort
SELECT + ( 22 ) FROM tab2
----
22
22
22

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - 4 AND - ( - col2 ) + 93
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 84 + + col1 * - col1 col1 FROM tab1
----
-112
-2125
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 * 34 + + col2 col0 FROM tab0 WHERE col2 NOT BETWEEN ( col0 ) AND ( NULL )
----
2934

query I rowsort
SELECT DISTINCT - 71 - 78 FROM tab2
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT DISTINCT ( ( COUNT( * ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9506
SELECT DISTINCT ( ( COUNT ( * ) ) ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE ( NULL ) NOT IN ( + 38 * - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9508
SELECT DISTINCT CAST( 10 AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
10

skipif mysql # not compatible
query I rowsort label-9508
SELECT DISTINCT CAST ( 10 AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
10

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) <> + 83
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT ( + col0 + + col0 ) = ( 43 ) * 12
----
51
85
91

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT NULL >= + col2 + + col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 47 IN ( - 46 - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT - COUNT( * ) * 97 - + COUNT( * ) FROM tab0
----
-294

skipif mysql # not compatible
query I rowsort label-9513
SELECT - COUNT ( * ) * 97 - + COUNT ( * ) FROM tab0
----
-294

query I rowsort
SELECT DISTINCT ( - col0 ) / - 88 AS col2 FROM tab2 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN ( col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT 74 * + col0 + col2 AS col0 FROM tab2 cor0
----
3427
4776
5608

onlyif mysql # DIV for integer division: 
query I rowsort label-9516
SELECT col1 DIV + col0 AS col1 FROM tab0 cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-9516
SELECT col1 / + col0 AS col1 FROM tab0 cor0
----
0
0
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9517
SELECT - 85 * SUM( ( CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9517
SELECT - 85 * SUM ( ( CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 + 76 FROM tab0 cor0
----
-5
55
75

query I rowsort
SELECT ALL col1 + - col0 * 43 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT DISTINCT COUNT( * ) + + 86 AS col0 FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-9520
SELECT DISTINCT COUNT ( * ) + + 86 AS col0 FROM tab0 AS cor0
----
89

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col1 ) NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE col2 + col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col0 * - 79 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN ( col1 * + 12 + col1 ) AND ( NULL ) OR ( ( - 55 ) * - 21 ) NOT BETWEEN col2 + col0 * col2 AND NULL
----
97
1
99

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( 36 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9526
SELECT * FROM tab1 WHERE NOT ( NULL ) IS NULL OR col1 BETWEEN + 89 AND ( - ( - col1 ) ) / ( col0 + + CAST( NULL AS SIGNED ) ) + 97 / + col0
----

skipif mysql # not compatible
query III rowsort label-9526
SELECT * FROM tab1 WHERE NOT ( NULL ) IS NULL OR col1 BETWEEN + 89 AND ( - ( - col1 ) ) / ( col0 + + CAST ( NULL AS INTEGER ) ) + 97 / + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT ALL SUM( - col1 ) FROM tab1 WHERE NOT ( ( col0 ) ) IS NULL
----
-66

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL SUM ( - col1 ) FROM tab1 WHERE NOT ( ( col0 ) ) IS NULL
----
-66

query I rowsort
SELECT DISTINCT col1 * + col1 * 57 AS col2 FROM tab1
----
11172
125913
1425

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT DISTINCT + SUM( - 82 ) FROM tab2
----
-246

skipif mysql # not compatible
query I rowsort label-9529
SELECT DISTINCT + SUM ( - 82 ) FROM tab2
----
-246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9530
SELECT ALL ( + col0 ) + - col1 FROM tab0 WHERE 29 NOT BETWEEN + col0 * + CAST( NULL AS SIGNED ) + + 46 AND ( + 14 * - col0 ) OR ( 94 ) IN ( 52 )
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-9530
SELECT ALL ( + col0 ) + - col1 FROM tab0 WHERE 29 NOT BETWEEN + col0 * + CAST ( NULL AS INTEGER ) + + 46 AND ( + 14 * - col0 ) OR ( 94 ) IN ( 52 )
----
-66
66
96

query I rowsort
SELECT 39 * - col2 * col0 + + col2 AS col1 FROM tab2
----
-169592
-41239
-99800

query I rowsort
SELECT 46 + col2 FROM tab1 WHERE NULL <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 col0 FROM tab2 AS cor0 WHERE NULL IN ( col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9534
SELECT ALL - 50 + - - COUNT( * ) DIV SUM( DISTINCT col1 * + 49 ) col0 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9534
SELECT ALL - 50 + - - COUNT ( * ) / SUM ( DISTINCT col1 * + 49 ) col0 FROM tab1 AS cor0
----
-50

query I rowsort
SELECT - 18 * + + 28 * col1 FROM tab2 AS cor0
----
-25704
-33768
-38808

query I rowsort
SELECT DISTINCT - + 72 + - col0 + - col0 * - col2 AS col2 FROM tab0 AS cor0
----
618
711
9434

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( 18 * col1 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT DISTINCT 98 * + + COUNT( * ) FROM tab0 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-9538
SELECT DISTINCT 98 * + + COUNT ( * ) FROM tab0 AS cor0
----
294

query I rowsort
SELECT col1 / - col1 - - col0 * 4 FROM tab0 AS cor0 WHERE NOT ( 66 + - ( - 43 + col2 ) * - col1 ) NOT IN ( + col0 - ( 43 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT DISTINCT + - MAX( + col0 ) * - MAX( + ( - col1 ) ) FROM tab1 AS cor0
----
-455

skipif mysql # not compatible
query I rowsort label-9540
SELECT DISTINCT + - MAX ( + col0 ) * - MAX ( + ( - col1 ) ) FROM tab1 AS cor0
----
-455

query I rowsort
SELECT ALL + ( - - col0 ) AS col0 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT DISTINCT MAX( - - 87 ) col1 FROM tab0
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9542
SELECT DISTINCT MAX ( - - 87 ) col1 FROM tab0
----
87

query I rowsort
SELECT DISTINCT 31 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
31

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 0 + + 0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT ALL - 19 * COUNT( * ) AS col1 FROM tab1 WHERE NOT ( - 91 + - col0 * + col2 = ( NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-9545
SELECT ALL - 19 * COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( - 91 + - col0 * + col2 = ( NULL ) )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9546
SELECT * FROM tab0 AS cor0 WHERE NOT + 50 BETWEEN + CAST( NULL AS DECIMAL ) AND 8
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9546
SELECT * FROM tab0 AS cor0 WHERE NOT + 50 BETWEEN + CAST ( NULL AS REAL ) AND 8
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( - 90 ) AS col1 FROM tab0 AS cor0
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT COUNT( * ) * + MAX( ALL col2 / 95 ) FROM tab2 AS cor0 WHERE NOT 35 * col1 NOT IN ( col0 * + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9548
SELECT COUNT ( * ) * + MAX ( ALL col2 / 95 ) FROM tab2 AS cor0 WHERE NOT 35 * col1 NOT IN ( col0 * + col0 )
----
NULL

query I rowsort
SELECT - ( 11 ) * col0 AS col0 FROM tab1 AS cor0
----
-1001
-561
-935

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 26 BETWEEN NULL AND NULL
----

query II rowsort
SELECT - col1 AS col2, + 53 AS col1 FROM tab0 AS cor0
----
-1
53
-21
53
-81
53

query I rowsort
SELECT - ( + col0 ) FROM tab2 AS cor0 WHERE NOT ( - 66 + - - 83 * col1 ) IS NULL
----
-46
-64
-75

query I rowsort
SELECT - - ( 17 ) AS col1 FROM tab1 AS cor0
----
17
17
17

query I rowsort
SELECT ALL col2 * 72 AS col1 FROM tab1 AS cor0
----
4248
4896
6912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9555
SELECT DISTINCT - COUNT( * ) DIV 30 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9555
SELECT DISTINCT - COUNT ( * ) / 30 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9556
SELECT ALL COUNT( * ) + + COUNT( ALL - col0 ) FROM tab0 WHERE col2 * + CAST( ( + 6 ) AS SIGNED ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL COUNT ( * ) + + COUNT ( ALL - col0 ) FROM tab0 WHERE col2 * + CAST ( ( + 6 ) AS INTEGER ) <> NULL
----
0

query II rowsort
SELECT ALL col2 * - 74 AS col1, + col2 FROM tab0
----
-3478
47
-7326
99
-740
10

query I rowsort
SELECT + 44 * col0 * col0 FROM tab0
----
333036
413996
9900

query I rowsort
SELECT ALL - ( - + 18 ) * + 13 AS col1 FROM tab2
----
234
234
234

query I rowsort
SELECT col1 FROM tab2 WHERE NOT ( - col2 ) < + 36 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9561
SELECT + 7 + ( - col2 + - col1 ) * col1 AS col1 FROM tab2 AS cor0 WHERE NOT 46 * col0 NOT BETWEEN - + CAST( - 32 AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9561
SELECT + 7 + ( - col2 + - col1 ) * col1 AS col1 FROM tab2 AS cor0 WHERE NOT 46 * col0 NOT BETWEEN - + CAST ( - 32 AS INTEGER ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT + - 52 * + + 47 + + + COUNT( * ) FROM tab1 AS cor0
----
-2441

skipif mysql # not compatible
query I rowsort label-9562
SELECT + - 52 * + + 47 + + + COUNT ( * ) FROM tab1 AS cor0
----
-2441

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 52 col0 FROM tab0 AS cor0
----
52

query I rowsort
SELECT + col1 * + col0 + + 87 FROM tab0
----
1302
184
1914

query I rowsort
SELECT DISTINCT - + col0 * col2 + + col0 * + col1 + col0 FROM tab2 WHERE NULL IS NULL
----
1334
2432
750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9566
SELECT DISTINCT CAST( - col1 AS SIGNED ) + - col0 + - col1 AS col2 FROM tab0 AS cor0
----
-129
-177
-99

skipif mysql # not compatible
query I rowsort label-9566
SELECT DISTINCT CAST ( - col1 AS INTEGER ) + - col0 + - col1 AS col2 FROM tab0 AS cor0
----
-129
-177
-99

query I rowsort
SELECT ALL - 92 + - col2 AS col2 FROM tab1 AS cor0
----
-151
-160
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT COUNT( * ) FROM tab2 cor0 WHERE 84 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9568
SELECT COUNT ( * ) FROM tab2 cor0 WHERE 84 IS NOT NULL
----
3

query I rowsort
SELECT ALL col1 * - ( 66 ) * 68 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT MAX( ALL + + 3 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9570
SELECT MAX ( ALL + + 3 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9571
SELECT DISTINCT col0 * + 1 + col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9571
SELECT DISTINCT col0 * + 1 + col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT DISTINCT - COUNT( * ) * - + 87 AS col1 FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-9572
SELECT DISTINCT - COUNT ( * ) * - + 87 AS col1 FROM tab0
----
261

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 23 = ( col1 + - - 54 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + - col2 ) - + - col2 FROM tab2
----
116
46
80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 58 <= ( - 7 )
----

query I rowsort
SELECT 18 - 92 * col2 AS col2 FROM tab1
----
-5410
-6238
-8814

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) - - 85 col0 FROM tab2
----
131
149
160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, col1 col2 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9579
SELECT ALL col2, - col1 + + CAST( - col0 AS SIGNED ) FROM tab2 cor0
----
23
-97
40
-141
58
-142

skipif mysql # not compatible
query II rowsort label-9579
SELECT ALL col2, - col1 + + CAST ( - col0 AS INTEGER ) FROM tab2 cor0
----
23
-97
40
-141
58
-142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9580
SELECT ALL - 19 FROM tab2 AS cor0 WHERE NOT + col2 / - 46 BETWEEN col2 + - + CAST( + + col0 AS SIGNED ) + col0 AND NULL
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL - 19 FROM tab2 AS cor0 WHERE NOT + col2 / - 46 BETWEEN col2 + - + CAST ( + + col0 AS INTEGER ) + col0 AND NULL
----
-19
-19
-19

query II rowsort
SELECT - col2 AS col2, + 63 + 46 AS col0 FROM tab0 AS cor0
----
-10
109
-47
109
-99
109

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > - col0 / col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT ALL - - ( - - SUM( ALL + + col0 ) ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL - - ( - - SUM ( ALL + + col0 ) ) AS col2 FROM tab1 AS cor0
----
227

query I rowsort
SELECT 52 + col2 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 * col0 / + - col0 / 14 * + 20 IS NULL
----
151
62
99

query I rowsort
SELECT 41 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT ALL - + 48 - + 14 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-62
-62
-62

query I rowsort
SELECT + col2 AS col2 FROM tab2 cor0 WHERE NOT - ( - col0 ) * - + col2 - + col1 IN ( col2 )
----
23
40
58

query II rowsort
SELECT DISTINCT + + col0 * + 94 + + col2 AS col1, + 5 * + col2 + ( + 81 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 38 + + - 20 >= + + col0 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 67 AS col2 FROM tab2 AS cor0 WHERE NOT 41 IS NULL
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT ALL 17 * - SUM( ALL + - 44 ) + - MIN( - col2 ) * + 23 FROM tab1 AS cor0
----
4452

skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL 17 * - SUM ( ALL + - 44 ) + - MIN ( - col2 ) * + 23 FROM tab1 AS cor0
----
4452

onlyif mysql # DIV for integer division: 
query I rowsort label-9592
SELECT - + ( - + col1 ) DIV col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9592
SELECT - + ( - + col1 ) / col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - - 64 * 28 AS col2 FROM tab0 cor0
----
1792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9594
SELECT - col2 / - CAST( NULL AS SIGNED ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9594
SELECT - col2 / - CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - - ( + col2 ) AS col2, col1 FROM tab1 cor0
----
59
5
68
47
96
14

query I rowsort
SELECT - col0 * + 16 AS col1 FROM tab1
----
-1360
-1456
-816

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9597
SELECT * FROM tab1 WHERE NOT - - CAST( - ( - 14 ) AS SIGNED ) < ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9597
SELECT * FROM tab1 WHERE NOT - - CAST ( - ( - 14 ) AS INTEGER ) < ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT DISTINCT ( - COUNT( DISTINCT + col2 ) ) * + + COUNT( * ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT ( - COUNT ( DISTINCT + col2 ) ) * + + COUNT ( * ) AS col1 FROM tab2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9599
SELECT + AVG ( + col1 ) + CAST( NULL AS DECIMAL ) + - - 37 * COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9599
SELECT + AVG ( + col1 ) + CAST ( NULL AS REAL ) + - - 37 * COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT 82 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( - + col1, col2 + + col0, - - col1 + + + 57 + + 30 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9601
SELECT ALL 20 DIV - 31 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL 20 / - 31 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT DISTINCT - MIN( - - 92 ) FROM tab1 cor0
----
-92

skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT - MIN ( - - 92 ) FROM tab1 cor0
----
-92

query I rowsort
SELECT DISTINCT col2 * - + col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT ALL - + col0 * - + col0 AS col0 FROM tab2 AS cor0
----
2116
4096
5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, + col0 col2 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT - 88 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query I rowsort
SELECT - 29 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 35 + - + 37 FROM tab2 AS cor0
----
-72

query I rowsort
SELECT + 62 * col0 + 3 FROM tab0 AS cor0
----
5397
6017
933

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + 6 IS NULL
----

query I rowsort
SELECT ALL - 6 - + + 33 AS col1 FROM tab1 AS cor0
----
-39
-39
-39

query I rowsort
SELECT - col0 * - + ( col1 ) + col1 FROM tab2 AS cor0
----
2397
5005
5092

query I rowsort
SELECT col2 + + 81 * 46 FROM tab1 AS cor0
----
3785
3794
3822

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 2 >= NULL
----

query I rowsort
SELECT - - 62 + - + 45 * 75 FROM tab2 AS cor0
----
-3313
-3313
-3313

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) - - - 33 col2 FROM tab2
----
-108
-79
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT - ( + 11 ) + + COUNT( * ) * + + 26 + - 48 * + - COUNT( * ) AS col1 FROM tab1
----
211

skipif mysql # not compatible
query I rowsort label-9617
SELECT - ( + 11 ) + + COUNT ( * ) * + + 26 + - 48 * + - COUNT ( * ) AS col1 FROM tab1
----
211

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT - 25 * - ( + SUM( DISTINCT - + col0 ) ) AS col1 FROM tab1
----
-5675

skipif mysql # not compatible
query I rowsort label-9618
SELECT - 25 * - ( + SUM ( DISTINCT - + col0 ) ) AS col1 FROM tab1
----
-5675

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT COUNT( DISTINCT col0 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9619
SELECT COUNT ( DISTINCT col0 ) col0 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 23 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * - - col1 AS col2 FROM tab2 WHERE NOT + 32 IS NULL
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab1 WHERE NOT 34 * + col0 + + col2 + - + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + + 59 FROM tab1 AS cor0 WHERE NOT - 90 * col0 * - col0 * + + col1 IS NOT NULL
----

query I rowsort
SELECT col1 * col0 * + - col2 AS col1 FROM tab1 AS cor0
----
-25075
-290836
-68544

query II rowsort
SELECT ALL - col1, - 44 AS col1 FROM tab1 AS cor0
----
-14
-44
-47
-44
-5
-44

query I rowsort
SELECT ALL ( - + 59 ) AS col1 FROM tab1
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT DISTINCT MAX( ALL - col2 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9627
SELECT DISTINCT MAX ( ALL - col2 ) AS col0 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT DISTINCT 11 * + - COUNT( * ) AS col2 FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-9628
SELECT DISTINCT 11 * + - COUNT ( * ) AS col2 FROM tab2
----
-33

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9630
SELECT - - 21 col1, + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
21
NULL
21
NULL
21
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9630
SELECT - - 21 col1, + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
21
NULL
21
NULL
21
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT - 72 + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-69

skipif mysql # not compatible
query I rowsort label-9631
SELECT - 72 + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-69

query I rowsort
SELECT col1 * + 72 AS col0 FROM tab0 AS cor0
----
1512
5832
72

query I rowsort
SELECT + - col0 + + ( col2 ) + + ( + 40 ) AS col0 FROM tab1 AS cor0
----
14
17
85

query I rowsort
SELECT + 5 + + col1 AS col2 FROM tab0 cor0
----
26
6
86

query I rowsort
SELECT DISTINCT 86 * + - col0 FROM tab2 AS cor0
----
-3956
-5504
-6450

query I rowsort
SELECT ALL - col0 * - + ( col1 ) AS col2 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE + 45 + col0 BETWEEN NULL AND - ( + 40 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9638
SELECT DISTINCT ( + CAST( + col1 AS SIGNED ) ) FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9638
SELECT DISTINCT ( + CAST ( + col1 AS INTEGER ) ) FROM tab1
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9639
SELECT ALL col0 + col2 DIV - + col0 * - col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL col0 + col2 / - + col0 * - col0 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9640
SELECT DISTINCT - 63 * + 52 * CAST( COUNT( * ) AS SIGNED ) FROM tab0
----
-9828

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT - 63 * + 52 * CAST ( COUNT ( * ) AS INTEGER ) FROM tab0
----
-9828

query I rowsort
SELECT DISTINCT - 6 * 39 + - + col2 FROM tab2
----
-257
-274
-292

query I rowsort
SELECT - 78 AS col0 FROM tab2 WHERE + col1 * - - 12 + 89 BETWEEN col2 AND - + col1
----

query I rowsort
SELECT ALL - + col1 * 0 + - + 14 AS col2 FROM tab2 AS cor0
----
-14
-14
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9644
SELECT ALL - col2 * + col1 * - col1 / - - col1 - + - col1 FROM tab1 cor0 WHERE NOT + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9644
SELECT ALL - col2 * + col1 * - col1 / - - col1 - + - col1 FROM tab1 cor0 WHERE NOT + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) IS NULL
----

query I rowsort
SELECT 31 + + col1 + col0 + - col1 FROM tab0
----
118
128
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT DISTINCT COUNT( * ) + - 57 FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-9646
SELECT DISTINCT COUNT ( * ) + - 57 FROM tab0
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9647
SELECT DISTINCT AVG ( + ( - CAST( NULL AS SIGNED ) ) ) / + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9647
SELECT DISTINCT AVG ( + ( - CAST ( NULL AS INTEGER ) ) ) / + COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT + col1 + - ( + + col1 ) * - col0 * col1 FROM tab2
----
119697
336742
379533

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 64, - 76 * - col2 * - 53 col2 FROM tab0
----
-64
-189316
-64
-398772
-64
-40280

query III rowsort
SELECT * FROM tab0 WHERE - col2 / - 92 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 92 * - 52 * + + col2 * - - 70 FROM tab0 AS cor0
----
15739360
33153120
3348800

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9652
SELECT - ( - + CAST( - ( 27 ) AS SIGNED ) ) DIV + - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9652
SELECT - ( - + CAST ( - ( 27 ) AS INTEGER ) ) / + - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + 23 * - 80 AS col0 FROM tab1 AS cor0
----
-1840
-1840
-1840

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT + ( - - ( + - COUNT( * ) ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9654
SELECT + ( - - ( + - COUNT ( * ) ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - + col1 - + 23 FROM tab2 cor0
----
-100
-74
-90

query I rowsort
SELECT DISTINCT 83 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 ) <= NULL
----

query I rowsort
SELECT DISTINCT 82 + - - 95 * 75 AS col1 FROM tab2 cor0
----
7207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + 32 col0 FROM tab0 cor0
----
2784
3104
480

query I rowsort
SELECT - + 58 FROM tab1 WHERE NOT ( col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 82 AS col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT DISTINCT + COUNT( DISTINCT + - col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9662
SELECT DISTINCT + COUNT ( DISTINCT + - col0 ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9663
SELECT - CAST( NULL AS SIGNED ) * - - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9663
SELECT - CAST ( NULL AS INTEGER ) * - - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 * + + 55 BETWEEN NULL AND 99 OR - 99 * - - col2 + - - ( - col2 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9665
SELECT DISTINCT + SUM( col0 ) AS col1, 45 FROM tab0
----
199
45

skipif mysql # not compatible
query II rowsort label-9665
SELECT DISTINCT + SUM ( col0 ) AS col1, 45 FROM tab0
----
199
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 19 col0 FROM tab2 AS cor0
----
19
19
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9667
SELECT DISTINCT + CAST( + 77 AS SIGNED ) FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-9667
SELECT DISTINCT + CAST ( + 77 AS INTEGER ) FROM tab1
----
77

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> - col1 / 45
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9670
SELECT DISTINCT + 24 * + - col2 + + CAST( NULL AS SIGNED ) * - col1 / 18 - + ( 94 ) * - + CAST( - - col0 AS SIGNED ) * + + col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9670
SELECT DISTINCT + 24 * + - col2 + + CAST ( NULL AS INTEGER ) * - col1 / 18 - + ( 94 ) * - + CAST ( - - col0 AS INTEGER ) * + + col2 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 col1, 81 col0 FROM tab2 AS cor0
----
46
81
64
81
75
81

query I rowsort
SELECT ALL - col0 * - 2 FROM tab2 AS cor0
----
128
150
92

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 + 76 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col0 * + 49 + - 59 AS col0 FROM tab1 AS cor0
----
-2558
-4224
-4518

query I rowsort
SELECT ALL + 35 * - 8 * - 47 FROM tab1 AS cor0
----
13160
13160
13160

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
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-9676
SELECT DISTINCT ( - - COUNT ( * ) ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9677
SELECT ALL COUNT( * ) AS col2, + 27 FROM tab1
----
3
27

skipif mysql # not compatible
query II rowsort label-9677
SELECT ALL COUNT ( * ) AS col2, + 27 FROM tab1
----
3
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 + - col2 col0 FROM tab0
----
-33
19
56

query I rowsort
SELECT ALL - col2 + - col0 * + col0 FROM tab2
----
-2139
-4136
-5683

query I rowsort
SELECT ALL - col2 + - col0 + col0 * - 25 FROM tab2 cor0
----
-1219
-1704
-2008

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9681
SELECT - + ( + col1 ) AS col2, - CAST( NULL AS SIGNED ) * + col2 FROM tab0 cor0 WHERE NULL > + 78
----

skipif mysql # not compatible
query II rowsort label-9681
SELECT - + ( + col1 ) AS col2, - CAST ( NULL AS INTEGER ) * + col2 FROM tab0 cor0 WHERE NULL > + 78
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col2 + + + col2 + - + 7 col0 FROM tab2 AS cor0
----
1189
3113
3937

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NOT + + 72 * - col0 NOT IN ( + - col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 18 * col0 AS col0 FROM tab2 AS cor0
----
1152
1350
828

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 77 BETWEEN + - 98 AND NULL
----

query I rowsort
SELECT + ( + 39 ) + + + 10 FROM tab2 AS cor0
----
49
49
49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 66 <= 55
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 * col1 - + 46 + - - ( + ( - + ( - + col0 ) ) ) AS col1 FROM tab0 AS cor0
----
-169
-3838
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT DISTINCT + COUNT( * ) * MAX( DISTINCT col0 ) FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-9689
SELECT DISTINCT + COUNT ( * ) * MAX ( DISTINCT col0 ) FROM tab0 AS cor0
----
291

onlyif mysql # aggregate syntax: 
query II rowsort label-9690
SELECT ALL - - SUM( + col2 ), 35 AS col1 FROM tab2 WHERE ( NOT NULL <> col2 )
----
NULL
35

skipif mysql # not compatible
query II rowsort label-9690
SELECT ALL - - SUM ( + col2 ), 35 AS col1 FROM tab2 WHERE ( NOT NULL <> col2 )
----
NULL
35

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 58 BETWEEN NULL AND + - col0
----

query I rowsort
SELECT - col0 * + col2 * col1 * + - col1 AS col2 FROM tab1 AS cor0
----
125375
13669292
959616

query II rowsort
SELECT ALL + 73 AS col1, col0 AS col1 FROM tab1 AS cor0
----
73
51
73
85
73
91

query I rowsort
SELECT DISTINCT - 60 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT ALL + - SUM( DISTINCT + 6 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-6

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL + - SUM ( DISTINCT + 6 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NULL IN ( - 52, + 73 + 34, + - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9696
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NULL IN ( - 52, + 73 + 34, + - col1 )
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 * col1 ) = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9698
SELECT col2 + col2 DIV - + col1 col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9698
SELECT col2 + col2 / - + col1 col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT 50 + 34 AS col1 FROM tab2 AS cor0
----
84
84
84

query I rowsort
SELECT - col2 + - 88 AS col0 FROM tab1 AS cor0
----
-147
-156
-184

query I rowsort
SELECT col0 * - 40 + + col0 FROM tab0 AS cor0
----
-3393
-3783
-585

query I rowsort
SELECT DISTINCT + - 70 AS col2 FROM tab0 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-9703
SELECT + + MIN( - + col1 ) AS col0, + 83 FROM tab2 AS cor0
----
-77
83

skipif mysql # not compatible
query II rowsort label-9703
SELECT + + MIN ( - + col1 ) AS col0, + 83 FROM tab2 AS cor0
----
-77
83

query II rowsort
SELECT + + col2, - col1 FROM tab0 AS cor0 WHERE ( NOT NULL <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT DISTINCT - MIN( col2 ) * ( - 58 ) FROM tab1
----
3422

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT - MIN ( col2 ) * ( - 58 ) FROM tab1
----
3422

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT MAX( + 86 ) AS col2 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-9706
SELECT MAX ( + 86 ) AS col2 FROM tab2
----
86

query I rowsort
SELECT ALL - 62 + col2 - + col1 FROM tab1
----
-41
-8
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT DISTINCT + COUNT( * ) col0 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9708
SELECT DISTINCT + COUNT ( * ) col0 FROM tab1 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT DISTINCT + COUNT( ( + 91 ) ) + + - 94 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9709
SELECT DISTINCT + COUNT ( ( + 91 ) ) + + - 94 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT ALL + - col2 - 34 AS col2 FROM tab0 cor0
----
-133
-44
-81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + + 56 + - + col2 + - - col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9712
SELECT + col0 * 78 + col0 DIV - col1 + + + col1 DIV - col2 + CAST( - + ( 77 ) AS SIGNED ) FROM tab2
----
3509
4914
5771

skipif mysql # not compatible
query I rowsort label-9712
SELECT + col0 * 78 + col0 / - col1 + + + col1 / - col2 + CAST ( - + ( 77 ) AS INTEGER ) FROM tab2
----
3509
4914
5771

query II rowsort
SELECT DISTINCT + col2 AS col0, col1 FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT - 96 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT DISTINCT + ( - - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9716
SELECT DISTINCT + ( - - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - 43 col1 FROM tab0 AS cor0
----
-3741
-4171
-645

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT COUNT( + col2 ) * + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9718
SELECT COUNT ( + col2 ) * + COUNT ( * ) FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9719
SELECT ALL 66 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL 66 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <= - col2 + - col0 - + col2 + - col0
----

query II rowsort
SELECT DISTINCT - col1 AS col0, - 40 FROM tab1 AS cor0
----
-14
-40
-47
-40
-5
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-9722
SELECT DISTINCT 23 DIV + - 70 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9722
SELECT DISTINCT 23 / + - 70 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL 48 FROM tab2 AS cor0 WHERE 13 * - 58 * + 48 <> + col2
----
48
48
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9724
SELECT CAST( + + AVG ( DISTINCT ( + col2 ) ) AS SIGNED ) AS col2 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-9724
SELECT CAST ( + + AVG ( DISTINCT ( + col2 ) ) AS INTEGER ) AS col2 FROM tab2
----
40

query I rowsort
SELECT DISTINCT 1 * - 89 FROM tab1
----
-89

query II rowsort
SELECT ALL col0 * col1, col0 FROM tab0
----
1215
15
1827
87
97
97

query II rowsort
SELECT DISTINCT + col1 * + col1 * + 94 AS col1, col2 AS col2 FROM tab2
----
244494
23
421966
58
557326
40

query II rowsort
SELECT ALL + col2 AS col1, col2 AS col2 FROM tab2 WHERE NOT - + col0 + 66 IS NULL
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT MIN( DISTINCT + - 47 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-9729
SELECT MIN ( DISTINCT + - 47 ) FROM tab1
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9730
SELECT DISTINCT 7 DIV COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9730
SELECT DISTINCT 7 / COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
-6

query I rowsort
SELECT col0 + + 18 AS col1 FROM tab2 cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT - 1 * - col0 AS col2 FROM tab2
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 23 BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT 29, col0 AS col1 FROM tab2 cor0
----
29
46
29
64
29
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT ALL - 35 + - ( SUM( - ( + + col0 ) ) ) FROM tab2 cor0
----
150

skipif mysql # not compatible
query I rowsort label-9735
SELECT ALL - 35 + - ( SUM ( - ( + + col0 ) ) ) FROM tab2 cor0
----
150

query I rowsort
SELECT + + col2 FROM tab1 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT ALL + - COUNT( * ) + + SUM( - 22 ) FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-9737
SELECT ALL + - COUNT ( * ) + + SUM ( - 22 ) FROM tab1 AS cor0
----
-69

query I rowsort
SELECT ALL + + 47 AS col2 FROM tab0 cor0
----
47
47
47

query I rowsort
SELECT ALL - 26 + 1 FROM tab1 AS cor0
----
-25
-25
-25

query I rowsort
SELECT col1 + 86 FROM tab1 AS cor0
----
100
133
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9741
SELECT DISTINCT - - col2 * + CAST( - col1 AS SIGNED ) - + col0 + 0 + col0 FROM tab0 AS cor0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-9741
SELECT DISTINCT - - col2 * + CAST ( - col1 AS INTEGER ) - + col0 + 0 + col0 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT + 23 + + col2 * - col1 FROM tab2 AS cor0
----
-1150
-3057
-3863

query I rowsort
SELECT ALL - + col2 AS col0 FROM tab2 WHERE NOT NULL < - - 27
----

query I rowsort
SELECT col0 * - col1 * + col1 + 29 * + ( - col2 ) AS col1 FROM tab0
----
-2968
-38657
-99778

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + 24 + - ( + + 54 ) * + col0 AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-4674
-5214
-786

query I rowsort
SELECT - col0 - 40 AS col1 FROM tab1 AS cor0
----
-125
-131
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9748
SELECT ALL - col2 - - + 91 - - - col0 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL - col2 - - + 91 - - - col0 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9749
SELECT DISTINCT - CAST( - 17 AS SIGNED ) AS col0 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-9749
SELECT DISTINCT - CAST ( - 17 AS INTEGER ) AS col0 FROM tab0
----
17

query I rowsort
SELECT ALL - 99 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN ( ( - col0 ) ) AND - 59 + ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT + SUM( ALL col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9751
SELECT + SUM ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT - 77 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - 22 * + col2 FROM tab1 AS cor0
----
-1298
-1496
-2112

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT + MIN( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9754
SELECT + MIN ( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
15

query I rowsort
SELECT col2 * 19 FROM tab1 AS cor0
----
1121
1292
1824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9756
SELECT + 20 DIV + MIN( + + col2 ) AS col0 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9756
SELECT + 20 / + MIN ( + + col2 ) AS col0 FROM tab0 AS cor0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - + 81 col2 FROM tab0
----
1215
7047
7857

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9758
SELECT ALL ( - - CAST( NULL AS DECIMAL ) ) * + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9758
SELECT ALL ( - - CAST ( NULL AS REAL ) ) * + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9759
SELECT - - col0 DIV + CAST( - col2 AS SIGNED ) + col1 - - + col1 - + 85 * - col1 FROM tab2 AS cor0
----
4435
5828
6698

skipif mysql # not compatible
query I rowsort label-9759
SELECT - - col0 / + CAST ( - col2 AS INTEGER ) + col1 - - + col1 - + 85 * - col1 FROM tab2 AS cor0
----
4435
5828
6698

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9760
SELECT + + CAST( NULL AS SIGNED ), + col0 * - 10 AS col0 FROM tab1 AS cor0
----
NULL
-510
NULL
-850
NULL
-910

skipif mysql # not compatible
query II rowsort label-9760
SELECT + + CAST ( NULL AS INTEGER ), + col0 * - 10 AS col0 FROM tab1 AS cor0
----
NULL
-510
NULL
-850
NULL
-910

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT DISTINCT MIN( + 42 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9761
SELECT DISTINCT MIN ( + 42 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 + - col0 * col1 col1 FROM tab2
----
-2281
-4863
-4960

query I rowsort
SELECT - 11 + + col2 AS col0 FROM tab2
----
12
29
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9764
SELECT 14 + + 27 * + ( - CAST( - + col2 AS SIGNED ) ) FROM tab0
----
1283
2687
284

skipif mysql # not compatible
query I rowsort label-9764
SELECT 14 + + 27 * + ( - CAST ( - + col2 AS INTEGER ) ) FROM tab0
----
1283
2687
284

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9765
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9765
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * - col0 + - + 54 + + + col1 * col1 AS col0 FROM tab0 cor0
----
6732
7956
9356

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9767
SELECT + CAST( NULL AS SIGNED ) + - 97 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9767
SELECT + CAST ( NULL AS INTEGER ) + - 97 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + + col2 + - col2 * - 70 * col2 FROM tab0 AS cor0
----
154724
686268
7020

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 88 < - + 72
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT ALL + MAX( ALL + 34 ) AS col1 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-9771
SELECT ALL + MAX ( ALL + 34 ) AS col1 FROM tab0 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT DISTINCT + 40 - COUNT( - col0 ) AS col1 FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-9772
SELECT DISTINCT + 40 - COUNT ( - col0 ) AS col1 FROM tab1 AS cor0
----
37

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9774
SELECT + COUNT( * ) DIV + + SUM( - col0 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9774
SELECT + COUNT ( * ) / + + SUM ( - col0 ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT ALL - COUNT( * ) - - 51 AS col2 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-9775
SELECT ALL - COUNT ( * ) - - 51 AS col2 FROM tab2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT - COUNT( * ) - 12 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-9776
SELECT - COUNT ( * ) - 12 FROM tab0
----
-15

query II rowsort
SELECT DISTINCT col0, - col1 AS col2 FROM tab1
----
51
-14
85
-5
91
-47

query II rowsort
SELECT 29 - + col0 + + col1 AS col0, - col2 FROM tab2
----
21
-58
34
-23
42
-40

query I rowsort
SELECT ALL - col2 + - - col1 + + + col0 * + col2 * + + col1 FROM tab2
----
197157
291459
53986

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + + 82 col1 FROM tab1
----
-133
-167
-173

query I rowsort
SELECT + col0 * - 23 + - 10 - col1 + - + 8 FROM tab0 AS cor0
----
-2040
-2250
-444

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 + + - 87 + 88 + - 61 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - col2 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 6 col0 FROM tab2 AS cor0
----
-6
-6
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9785
SELECT + - col0 * - col1 * - col2 * + - CAST( 20 AS SIGNED ) AS col2 FROM tab2 cor0
----
1079160
3942400
5829000

skipif mysql # not compatible
query I rowsort label-9785
SELECT + - col0 * - col1 * - col2 * + - CAST ( 20 AS INTEGER ) AS col2 FROM tab2 cor0
----
1079160
3942400
5829000

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9786
SELECT - - CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9786
SELECT - - CAST ( NULL AS REAL ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT ALL - COUNT( 92 ) * - - 40 col1 FROM tab1
----
-120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9787
SELECT ALL - COUNT ( 92 ) * - - 40 col1 FROM tab1
----
-120

query I rowsort
SELECT + - col0 FROM tab1 WHERE NOT - - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9789
SELECT CAST( 88 AS SIGNED ) AS col1 FROM tab1
----
88
88
88

skipif mysql # not compatible
query I rowsort label-9789
SELECT CAST ( 88 AS INTEGER ) AS col1 FROM tab1
----
88
88
88

query II rowsort
SELECT col2, col0 * col0 AS col2 FROM tab0
----
10
7569
47
225
99
9409

query III rowsort
SELECT ALL * FROM tab2 WHERE - 97 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9792
SELECT ALL + COUNT( * ) DIV + 46 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9792
SELECT ALL + COUNT ( * ) / + 46 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 61 / - + col1 + + col0 = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + - col2 ) = - 48 / - ( + ( + col1 ) ) - + - col1
----

query I rowsort
SELECT DISTINCT col1 * 50 * - col1 FROM tab1 AS cor0
----
-110450
-1250
-9800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9796
SELECT ALL - COUNT( * ) DIV + + 50 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9796
SELECT ALL - COUNT ( * ) / + + 50 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9797
SELECT MIN( - 13 ) DIV + COUNT( * ) FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-9797
SELECT MIN ( - 13 ) / + COUNT ( * ) FROM tab2
----
-4

query I rowsort
SELECT col2 * ( col2 ) AS col2 FROM tab2
----
1600
3364
529

query III rowsort
SELECT * FROM tab0 WHERE + ( - + col2 ) / + col1 - + col0 IS NULL
----

query I rowsort
SELECT col0 * 64 FROM tab1
----
3264
5440
5824

onlyif mysql # DIV for integer division: 
query I rowsort label-9801
SELECT ALL + 22 DIV + 52 * - ( - 62 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-9801
SELECT ALL + 22 / + 52 * - ( - 62 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT * FROM tab0 WHERE - - 94 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 + - col1 - + - col2 FROM tab1 cor0
----
-31
-70
31

query I rowsort
SELECT ALL 45 * - + col1 * - - col0 - + col1 AS col1 FROM tab0 AS cor0
----
-4366
-54756
-82236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9805
SELECT + col1 * CAST( 26 AS SIGNED ) + - + col0 FROM tab1 AS cor0
----
1131
313
45

skipif mysql # not compatible
query I rowsort label-9805
SELECT + col1 * CAST ( 26 AS INTEGER ) + - + col0 FROM tab1 AS cor0
----
1131
313
45

query I rowsort
SELECT ALL + 15 FROM tab2 AS cor0 WHERE + col1 BETWEEN NULL AND + - col0 / 11 + + col0 / col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9807
SELECT 3 DIV - COUNT( * ) FROM tab1 AS cor0 WHERE + col0 = col0
----
-1

skipif mysql # not compatible
query I rowsort label-9807
SELECT 3 / - COUNT ( * ) FROM tab1 AS cor0 WHERE + col0 = col0
----
-1

query I rowsort
SELECT ALL - + col0 + + col0 * + col1 FROM tab2 AS cor0
----
2300
4864
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT ALL - COUNT( * ) * MAX( ALL - 44 ) AS col1 FROM tab1 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL - COUNT ( * ) * MAX ( ALL - 44 ) AS col1 FROM tab1 AS cor0
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-9810
SELECT DISTINCT - + 14 DIV 5 AS col2 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-9810
SELECT DISTINCT - + 14 / 5 AS col2 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT - 49 FROM tab0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT + 93 + - 30 - - COUNT( * ) AS col0 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-9812
SELECT + 93 + - 30 - - COUNT ( * ) AS col0 FROM tab2
----
66

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 NOT BETWEEN - - ( - col1 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9814
SELECT DISTINCT col0 DIV - + 40 + - col2 * - col1 FROM tab1
----
1343
293
3194

skipif mysql # not compatible
query I rowsort label-9814
SELECT DISTINCT col0 / - + 40 + - col2 * - col1 FROM tab1
----
1343
293
3194

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 40 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9816
SELECT ALL + col1 / + CAST( NULL AS DECIMAL ) AS col0, + 23 col1 FROM tab1 cor0
----
NULL
23
NULL
23
NULL
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9816
SELECT ALL + col1 / + CAST ( NULL AS REAL ) AS col0, + 23 col1 FROM tab1 cor0
----
NULL
23
NULL
23
NULL
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9817
SELECT col2 * CAST( NULL AS SIGNED ) * 59 * + - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9817
SELECT col2 * CAST ( NULL AS INTEGER ) * 59 * + - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 77, 83 AS col0 FROM tab2
----
-77
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT DISTINCT - ( - 35 ) * - COUNT( * ) AS col0 FROM tab1, tab0 AS cor0
----
-315

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT - ( - 35 ) * - COUNT ( * ) AS col0 FROM tab1, tab0 AS cor0
----
-315

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9820
SELECT DISTINCT * FROM tab2 WHERE + - 57 / - + CAST( + col2 AS SIGNED ) * 65 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9820
SELECT DISTINCT * FROM tab2 WHERE + - 57 / - + CAST ( + col2 AS INTEGER ) * 65 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 67 * - 48 * - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9822
SELECT - - MIN( - - 13 ) DIV - 80 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9822
SELECT - - MIN ( - - 13 ) / - 80 FROM tab2 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 + - - 28 <> NULL
----

query I rowsort
SELECT - col2 * - 28 AS col2 FROM tab0 AS cor0
----
1316
2772
280

query I rowsort
SELECT ALL col1 * col2 * - col1 FROM tab2 AS cor0
----
-237160
-260362
-59823

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT ( + - COUNT( + 28 ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9826
SELECT ( + - COUNT ( + 28 ) ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - + col1 * col1 * + col2 AS col2 FROM tab1 AS cor0
----
-1475
-150212
-18816

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 cor0 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT ALL + COUNT( DISTINCT - - 7 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL + COUNT ( DISTINCT - - 7 ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT - SUM( 93 ) AS col1 FROM tab2 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-9830
SELECT - SUM ( 93 ) AS col1 FROM tab2 AS cor0
----
-279

query I rowsort
SELECT + 13 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 37 FROM tab0 WHERE NOT NULL IS NOT NULL
----
37
37
37

query II rowsort
SELECT ALL ( - - col0 ), col1 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT DISTINCT + col1 + col0 + + 26 AS col2 FROM tab0
----
122
124
134

query I rowsort
SELECT ALL + 91 + + col1 AS col0 FROM tab0
----
112
172
92

query I rowsort
SELECT ALL - col0 + + + 11 + - - 64 * + - ( + col0 ) AS col2 FROM tab0
----
-5644
-6294
-964

query I rowsort
SELECT DISTINCT + col2 + 26 AS col0 FROM tab2 AS cor0
----
49
66
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT + MIN( - 75 ) AS col1 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9838
SELECT + MIN ( - 75 ) AS col1 FROM tab0 AS cor0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-9839
SELECT - col1 DIV + col2 col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9839
SELECT - col1 / + col2 col0 FROM tab1 cor0
----
0
0
0

query II rowsort
SELECT 59 AS col1, + col1 + + col1 FROM tab1 AS cor0
----
59
10
59
28
59
94

query I rowsort
SELECT ALL 23 * col2 + + - 44 AS col2 FROM tab2 AS cor0
----
1290
485
876

query II rowsort
SELECT 21, col1 AS col0 FROM tab2 cor0
----
21
51
21
67
21
77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9843
SELECT ALL + + 27 + CAST( + col1 AS SIGNED ) DIV + col0 FROM tab1 AS cor0
----
27
27
27

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL + + 27 + CAST ( + col1 AS INTEGER ) / + col0 FROM tab1 AS cor0
----
27
27
27

query I rowsort
SELECT ALL + + col0 - + + col1 FROM tab0 AS cor0
----
-66
66
96

query II rowsort
SELECT ALL 52 - - col1 - + col1 AS col1, - 45 FROM tab0 cor0
----
52
-45
52
-45
52
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT DISTINCT SUM( DISTINCT - col2 ) - + COUNT( * ) AS col1 FROM tab2
----
-124

skipif mysql # not compatible
query I rowsort label-9846
SELECT DISTINCT SUM ( DISTINCT - col2 ) - + COUNT ( * ) AS col1 FROM tab2
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT MIN( 95 ) * ( COUNT( * ) ) FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-9847
SELECT MIN ( 95 ) * ( COUNT ( * ) ) FROM tab2
----
285

query II rowsort
SELECT DISTINCT 31 AS col2, 25 + + 25 - + col1 AS col1 FROM tab1
----
31
3
31
36
31
45

onlyif mysql # DIV for integer division: 
query II rowsort label-9849
SELECT DISTINCT col2, col1 + + col1 + - 90 * + col1 * 45 + + col1 + - - col1 + + 1 DIV - col2 AS col2 FROM tab0
----
10
-84966
47
-327726
99
-4046

skipif mysql # not compatible
query II rowsort label-9849
SELECT DISTINCT col2, col1 + + col1 + - 90 * + col1 * 45 + + col1 + - - col1 + + 1 / - col2 AS col2 FROM tab0
----
10
-84966
47
-327726
99
-4046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9850
SELECT DISTINCT + COUNT( CAST( NULL AS SIGNED ) ) * + + COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9850
SELECT DISTINCT + COUNT ( CAST ( NULL AS INTEGER ) ) * + + COUNT ( * ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT DISTINCT - COUNT( * ) * - - SUM( DISTINCT + - col1 ) FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-9851
SELECT DISTINCT - COUNT ( * ) * - - SUM ( DISTINCT + - col1 ) FROM tab2
----
585

query I rowsort
SELECT col0 * 98 * + col1 AS col0 FROM tab1
----
41650
419146
69972

query I rowsort
SELECT ( - - col0 ) * col0 AS col2 FROM tab2
----
2116
4096
5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( 51 ), 16 col1 FROM tab2 cor0
----
51
16
51
16
51
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT MIN( - + col1 ) * 33 AS col0 FROM tab0 AS cor0
----
-2673

skipif mysql # not compatible
query I rowsort label-9855
SELECT MIN ( - + col1 ) * 33 AS col0 FROM tab0 AS cor0
----
-2673

onlyif mysql # aggregate syntax: 
query II rowsort label-9856
SELECT ALL + ( - COUNT( * ) ), - COUNT( ( col1 ) ) AS col0 FROM tab2
----
-3
-3

skipif mysql # not compatible
query II rowsort label-9856
SELECT ALL + ( - COUNT ( * ) ), - COUNT ( ( col1 ) ) AS col0 FROM tab2
----
-3
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9857
SELECT DISTINCT - col0 / - col0 + - CAST( NULL AS SIGNED ) + col0 + + + CAST( NULL AS DECIMAL ) + - 69 * + col1 / - ( - 34 ) * col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9857
SELECT DISTINCT - col0 / - col0 + - CAST ( NULL AS INTEGER ) + col0 + + + CAST ( NULL AS REAL ) + - 69 * + col1 / - ( - 34 ) * col0 FROM tab1 cor0
----
NULL

query II rowsort
SELECT + col2 * - ( + 55 ) + + + 92 + + + 2, + col0 + - + col0 AS col0 FROM tab2 cor0
----
-1171
0
-2106
0
-3096
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9859
SELECT DISTINCT CAST( + 55 AS SIGNED ) col2 FROM tab0 AS cor0
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9859
SELECT DISTINCT CAST ( + 55 AS INTEGER ) col2 FROM tab0 AS cor0
----
55

query II rowsort
SELECT + col1, - col0 - - + col2 * + 29 AS col0 FROM tab0
----
1
2774
21
203
81
1348

query II rowsort
SELECT + 8 AS col2, col1 * + 32 AS col2 FROM tab1
----
8
1504
8
160
8
448

onlyif mysql # DIV for integer division: 
query I rowsort label-9862
SELECT + 49 DIV + + col1 AS col2 FROM tab1
----
1
3
9

skipif mysql # not compatible
query I rowsort label-9862
SELECT + 49 / + + col1 AS col2 FROM tab1
----
1
3
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 70 col0, + col2 * col2 * + - col0 * + col1 FROM tab0
----
70
-182700
70
-2683935
70
-950697

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT + COUNT( * ) + 93 * - 8 * - 92 FROM tab1
----
68451

skipif mysql # not compatible
query I rowsort label-9864
SELECT + COUNT ( * ) + 93 * - 8 * - 92 FROM tab1
----
68451

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT 73 + + MIN( + col2 ) col1 FROM tab1
----
132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9865
SELECT 73 + + MIN ( + col2 ) col1 FROM tab1
----
132

onlyif mysql # DIV for integer division: 
query II rowsort label-9866
SELECT 91 + + - col0 + 74 + + col2 + col0 + - - col0 DIV + - 88 * + - 19, col0 FROM tab2
----
188
46
205
64
223
75

skipif mysql # not compatible
query II rowsort label-9866
SELECT 91 + + - col0 + 74 + + col2 + col0 + - - col0 / + - 88 * + - 19, col0 FROM tab2
----
188
46
205
64
223
75

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT MIN( DISTINCT + - col1 ) col1 FROM tab0 AS cor0 WHERE 20 * - 52 <= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9868
SELECT MIN ( DISTINCT + - col1 ) col1 FROM tab0 AS cor0 WHERE 20 * - 52 <= NULL
----
NULL

query I rowsort
SELECT + ( - 74 ) FROM tab1 cor0
----
-74
-74
-74

query I rowsort
SELECT DISTINCT - col2 + + col2 - col0 AS col1 FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT - col0 + - + col1 FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9873
SELECT COUNT( * ) + - + CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9873
SELECT COUNT ( * ) + - + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 = - 87 + - + 14
----

query I rowsort
SELECT + col1 + col0 + + ( col0 ) + + col1 FROM tab0 AS cor0
----
192
196
216

query II rowsort
SELECT ALL + + col2 AS col1, + ( col1 ) + - col2 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN col0 * - + 23 AND + + 93 * col0 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT COUNT( DISTINCT - + col0 ) + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9877
SELECT COUNT ( DISTINCT - + col0 ) + COUNT ( * ) FROM tab1 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-9878
SELECT DISTINCT + col2 AS col1, 47 DIV - ( - - ( 39 ) ) AS col0 FROM tab2
----
23
-1
40
-1
58
-1

skipif mysql # not compatible
query II rowsort label-9878
SELECT DISTINCT + col2 AS col1, 47 / - ( - - ( 39 ) ) AS col0 FROM tab2
----
23
-1
40
-1
58
-1

query I rowsort
SELECT + - 81 * + 81 + 19 / - 78 * - col2 / + 80 AS col2 FROM tab2 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT ALL - ( - MIN( - col0 ) ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-9880
SELECT ALL - ( - MIN ( - col0 ) ) FROM tab1
----
-91

query I rowsort
SELECT - 74 + col1 AS col2 FROM tab2 WHERE NOT + col0 NOT BETWEEN ( NULL ) AND 3
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - + 79 col2 FROM tab0
----
1185
6873
7663

query I rowsort
SELECT col0 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT - 55 + - col1 FROM tab0 AS cor0
----
-136
-56
-76

query I rowsort
SELECT DISTINCT 22 + col0 FROM tab0 AS cor0
----
109
119
37

query II rowsort
SELECT + col1, col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
96
47
68
5
59

query I rowsort
SELECT DISTINCT + - 39 + - - col2 AS col1 FROM tab2 cor0 WHERE ( + - col0 ) * col2 BETWEEN + 71 AND col0 * 65
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 20 col1 FROM tab2 AS cor0
----
31
47
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9889
SELECT + col1 + + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9889
SELECT + col1 + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT DISTINCT - - MAX( + 14 ) AS col2 FROM tab1 cor0
----
14

skipif mysql # not compatible
query I rowsort label-9890
SELECT DISTINCT - - MAX ( + 14 ) AS col2 FROM tab1 cor0
----
14

query I rowsort
SELECT DISTINCT + - col1 FROM tab2 AS cor0 WHERE NOT + 92 = - col2 * + ( - col2 )
----
-51
-67
-77

query I rowsort
SELECT ALL - col0 * + 91 * 47 FROM tab2
----
-196742
-273728
-320775

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 81 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col0 FROM tab2
----
60
60
60

query III rowsort
SELECT * FROM tab2 WHERE ( NULL >= ( NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9896
SELECT - col1 DIV + ( + + 88 ) * 32 + col2 - + 52 * + col1 AS col0 FROM tab1
----
-201
-2376
-632

skipif mysql # not compatible
query I rowsort label-9896
SELECT - col1 / + ( + + 88 ) * 32 + col2 - + 52 * + col1 AS col0 FROM tab1
----
-201
-2376
-632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9897
SELECT DISTINCT + col2 AS col1 FROM tab2 AS cor0 WHERE 8 NOT BETWEEN NULL AND - col1 / + col2 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9897
SELECT DISTINCT + col2 AS col1 FROM tab2 AS cor0 WHERE 8 NOT BETWEEN NULL AND - col1 / + col2 + + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL col2 AS col2, 56 AS col1 FROM tab0
----
10
56
47
56
99
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9899
SELECT + 63 * + col0 * col1 * col1 AS col2 FROM tab1 WHERE - - CAST( + + col2 AS SIGNED ) IS NOT NULL
----
12664197
133875
629748

skipif mysql # not compatible
query I rowsort label-9899
SELECT + 63 * + col0 * col1 * col1 AS col2 FROM tab1 WHERE - - CAST ( + + col2 AS INTEGER ) IS NOT NULL
----
12664197
133875
629748

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9900
SELECT + col0, col2 * CAST( - col0 AS SIGNED ) FROM tab2
----
46
-1058
64
-2560
75
-4350

skipif mysql # not compatible
query II rowsort label-9900
SELECT + col0, col2 * CAST ( - col0 AS INTEGER ) FROM tab2
----
46
-1058
64
-2560
75
-4350

query II rowsort
SELECT ALL + col2, 62 AS col0 FROM tab0 AS cor0
----
10
62
47
62
99
62

query I rowsort
SELECT - + ( - - 33 ) FROM tab1 cor0
----
-33
-33
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9903
SELECT ALL - CAST( NULL AS SIGNED ) * - 48 AS col2 FROM tab2 AS cor0 WHERE NULL < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL - CAST ( NULL AS INTEGER ) * - 48 AS col2 FROM tab2 AS cor0 WHERE NULL < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 col0 FROM tab2 cor0
----
81

query I rowsort
SELECT - 30 * + col1 AS col1 FROM tab1
----
-1410
-150
-420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - + col0 col1 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT + ( + col1 ) * + col1 + col2 AS col1 FROM tab1
----
2277
292
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT DISTINCT 97 * - MIN( ALL + + col2 ) * + 39 AS col1 FROM tab2
----
-87009

skipif mysql # not compatible
query I rowsort label-9908
SELECT DISTINCT 97 * - MIN ( ALL + + col2 ) * + 39 AS col1 FROM tab2
----
-87009

query I rowsort
SELECT DISTINCT - 50 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9910
SELECT ALL - CAST( NULL AS SIGNED ) * - + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL - CAST ( NULL AS INTEGER ) * - + col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT DISTINCT - ( - COUNT( * ) ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9911
SELECT DISTINCT - ( - COUNT ( * ) ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL col2 + ( + - col0 ) AS col0 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT ALL + + MIN( + 28 ) AS col1 FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL + + MIN ( + 28 ) AS col1 FROM tab1 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT + 97 * 58 + COUNT( - + col0 ) AS col1 FROM tab2 AS cor0
----
5629

skipif mysql # not compatible
query I rowsort label-9915
SELECT + 97 * 58 + COUNT ( - + col0 ) AS col1 FROM tab2 AS cor0
----
5629

query I rowsort
SELECT - col0 + - 4 FROM tab2 cor0
----
-50
-68
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT ALL COUNT( * ) * 38 * 48 AS col2 FROM tab0
----
5472

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL COUNT ( * ) * 38 * 48 AS col2 FROM tab0
----
5472

query I rowsort
SELECT DISTINCT - ( - col2 ) * - col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9919
SELECT 14 * - + col0 + + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9919
SELECT 14 * - + col0 + + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + + col1 + + 32 - + col0 AS col0 FROM tab2
----
-19
-51
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - ( - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9922
SELECT ALL - 22 DIV + + col1 + - col2 * - + 53 AS col2 FROM tab2
----
1219
2120
3074

skipif mysql # not compatible
query I rowsort label-9922
SELECT ALL - 22 / + + col1 + - col2 * - + 53 AS col2 FROM tab2
----
1219
2120
3074

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9923
SELECT DISTINCT + - SUM( 15 ) DIV - + COUNT( * ) + - + ( - + 50 ) FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-9923
SELECT DISTINCT + - SUM ( 15 ) / - + COUNT ( * ) + - + ( - + 50 ) FROM tab1 AS cor0
----
65

query I rowsort
SELECT ALL + col1 * + - 4 + 7 + + col1 + - col1 FROM tab0 AS cor0
----
-317
-77
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 * + col0 + col2 < NULL
----

query I rowsort
SELECT ALL - 16 - col0 * - - col1 FROM tab1
----
-4293
-441
-730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9927
SELECT + COUNT( * ) - CAST( - 59 AS SIGNED ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-9927
SELECT + COUNT ( * ) - CAST ( - 59 AS INTEGER ) FROM tab1
----
62

query I rowsort
SELECT + col0 FROM tab1 WHERE ( + 35 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9929
SELECT + - 33 DIV COUNT( * ) FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-9929
SELECT + - 33 / COUNT ( * ) FROM tab2 AS cor0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT + COUNT( - + 86 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9930
SELECT + COUNT ( - + 86 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT DISTINCT - MIN( DISTINCT - - 41 ) col0 FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9931
SELECT DISTINCT - MIN ( DISTINCT - - 41 ) col0 FROM tab2 AS cor0
----
-41

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL >= + 2
----

query II rowsort
SELECT DISTINCT 10, col0 FROM tab2
----
10
46
10
64
10
75

query I rowsort
SELECT ALL 15 * + col2 * + ( - 27 ) FROM tab1 WHERE ( NULL ) BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL - 93 * - col0 AS col1 FROM tab1
----
4743
7905
8463

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9936
SELECT + ( ( - COUNT( ALL + CAST( NULL AS SIGNED ) ) ) ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9936
SELECT + ( ( - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) ) ) AS col0 FROM tab1
----
0

query I rowsort
SELECT + 32 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT + - 69 * 99 FROM tab0 AS cor0
----
-6831
-6831
-6831

query I rowsort
SELECT - - col0 * + - col1 + - col0 AS col0 FROM tab0 AS cor0
----
-1230
-1914
-194

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 / + col2 + 62 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9941
SELECT - 13 * 37 + - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9941
SELECT - 13 * 37 + - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 39 - col0 AS col1 FROM tab1
----
-124
-130
-90

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col0 / - 67 ) IN ( - 99 * - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( col0 ) * - 80 AS col0 FROM tab1
----
-4080
-6800
-7280

onlyif mysql # DIV for integer division: 
query I rowsort label-9945
SELECT ALL col1 DIV - 99 + ( + col0 ) * - col2 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL col1 / - 99 + ( + col0 ) * - col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT col1 * + 6 AS col0 FROM tab1
----
282
30
84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 92 * col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( 80 ) NOT BETWEEN NULL AND - col0 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 NOT BETWEEN ( col0 ) AND col1
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT - 36 * COUNT( * ) FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-9950
SELECT - 36 * COUNT ( * ) FROM tab2
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT - MIN( 78 ) * + COUNT( * ) AS col2 FROM tab0
----
-234

skipif mysql # not compatible
query I rowsort label-9951
SELECT - MIN ( 78 ) * + COUNT ( * ) AS col2 FROM tab0
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT ALL COUNT( DISTINCT - col0 ) * + 19 AS col1 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-9952
SELECT ALL COUNT ( DISTINCT - col0 ) * + 19 AS col1 FROM tab2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9953
SELECT * FROM tab0 WHERE ( ( 45 ) ) < + CAST( + col1 AS SIGNED )
----
15
81
47

skipif mysql # not compatible
query III rowsort label-9953
SELECT * FROM tab0 WHERE ( ( 45 ) ) < + CAST ( + col1 AS INTEGER )
----
15
81
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9954
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9954
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT + COUNT( ALL - 16 ) * + 7 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-9955
SELECT + COUNT ( ALL - 16 ) * + 7 FROM tab0
----
21

query I rowsort
SELECT - 44 - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-103
-112
-140

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * + 65 NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 - col1 * col0 col2 FROM tab2
----
-2372
-4954
-5051

query I rowsort
SELECT ALL + col1 + 71 AS col1 FROM tab1
----
118
76
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 WHERE NOT + col0 * 20 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9960
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 WHERE NOT + col0 * 20 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT - 19 * COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-57

skipif mysql # not compatible
query I rowsort label-9961
SELECT - 19 * COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-57

query I rowsort
SELECT DISTINCT + 68 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9963
SELECT ALL col1 FROM tab1 WHERE NOT ( + ( - 9 ) ) IN ( CAST( - col1 AS SIGNED ) - + col1 )
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL col1 FROM tab1 WHERE NOT ( + ( - 9 ) ) IN ( CAST ( - col1 AS INTEGER ) - + col1 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT DISTINCT + COUNT( ALL - 39 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9964
SELECT DISTINCT + COUNT ( ALL - 39 ) col2 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9965
SELECT 65 + CAST( 46 + 85 AS SIGNED ) AS col0 FROM tab0 WHERE NOT 44 IS NULL
----
196
196
196

skipif mysql # not compatible
query I rowsort label-9965
SELECT 65 + CAST ( 46 + 85 AS INTEGER ) AS col0 FROM tab0 WHERE NOT 44 IS NULL
----
196
196
196

onlyif mysql # DIV for integer division: 
query I rowsort label-9966
SELECT - 19 DIV col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9966
SELECT - 19 / col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE col2 * - col0 + + col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE col2 * - col0 + + col0 <> NULL
----
0

query I rowsort
SELECT 12 * + 81 - + col0 FROM tab2
----
897
908
926

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT ALL + COUNT( ALL 16 ) col2 FROM tab2 WHERE 68 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9969
SELECT ALL + COUNT ( ALL 16 ) col2 FROM tab2 WHERE 68 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9970
SELECT - col1 DIV ( + col0 ) AS col2 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-9970
SELECT - col1 / ( + col0 ) AS col2 FROM tab0
----
-5
0
0

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE 54 > col0
----
51

query I rowsort
SELECT 42 + + ( 46 ) FROM tab2 AS cor0
----
88
88
88

query I rowsort
SELECT DISTINCT + 76 - 19 FROM tab1 AS cor0
----
57

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col2 ) > - 7
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE + 7 + - 93 * - ( - 13 * col0 ) NOT IN ( col1 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT ALL ( 51 ) - + COUNT( * ) AS col2 FROM tab0 cor0
----
48

skipif mysql # not compatible
query I rowsort label-9976
SELECT ALL ( 51 ) - + COUNT ( * ) AS col2 FROM tab0 cor0
----
48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 12 BETWEEN + col1 + 24 AND NULL
----

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT - col0 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT + 87 * COUNT( ALL + 83 + 70 ) FROM tab2 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-9979
SELECT + 87 * COUNT ( ALL + 83 + 70 ) FROM tab2 AS cor0
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT + + COUNT( col0 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9980
SELECT + + COUNT ( col0 ) FROM tab0 cor0
----
3

query I rowsort
SELECT ALL - col2 - + col1 FROM tab0 AS cor0 WHERE NULL = ( NULL )
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT ( + 14 - + col0 ) = ( col2 * col0 )
----
10
47
99

query I rowsort
SELECT ALL - - ( col0 ) * + col1 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9984
SELECT ALL + + CAST( - 20 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-20
-20
-20

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL + + CAST ( - 20 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT SUM( 58 ) / COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9985
SELECT SUM ( 58 ) / COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - ( + 12 ) AS col1 FROM tab2
----
-12
-12
-12

query I rowsort
SELECT 85 * + col2 * + 13 AS col1 FROM tab1
----
106080
65195
75140

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN 25 * - 14 AND NULL
----

query I rowsort
SELECT DISTINCT col2 * + - 72 * col0 AS col0 FROM tab2
----
-184320
-313200
-76176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9990
SELECT DISTINCT COUNT( * ) DIV - 65 + - 92 AS col0 FROM tab1 WHERE col1 <> ( + col2 )
----
-92

skipif mysql # not compatible
query I rowsort label-9990
SELECT DISTINCT COUNT ( * ) / - 65 + - 92 AS col0 FROM tab1 WHERE col1 <> ( + col2 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT - COUNT( ALL - 2 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9991
SELECT - COUNT ( ALL - 2 ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT DISTINCT MAX( - 63 ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-9992
SELECT DISTINCT MAX ( - 63 ) FROM tab0
----
-63

query III rowsort
SELECT ALL * FROM tab0 WHERE + 61 * - 52 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab0 AS cor0 WHERE NOT - 37 IN ( 98 )
----
15
87
97

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT ( + ( - 80 ) + + col1 ) = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9996
SELECT + 88 DIV COUNT( * ) * - 49 AS col0 FROM tab2
----
-1421

skipif mysql # not compatible
query I rowsort label-9996
SELECT + 88 / COUNT ( * ) * - 49 AS col0 FROM tab2
----
-1421

query II rowsort
SELECT + 3 AS col1, + 81 FROM tab0
----
3
81
3
81
3
81

query I rowsort
SELECT + 10 AS col2 FROM tab0 WHERE - col0 <= - col2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9999
SELECT ALL + col2 / - col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( - CAST( + ( col1 ) AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9999
SELECT ALL + col2 / - col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( - CAST ( + ( col1 ) AS INTEGER ) )
----

