sqllogictest
Artifact Content
Not logged in

Artifact d1eb157f12f0b50def65943ebbe516c1f6a7dbfb:


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 tab