sqllogictest
Artifact Content
Not logged in

Artifact 2d74c45e00ff5ea99cb3998057f414cb677b6f02:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-0
SELECT + 37, + COUNT ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
37
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1
SELECT DISTINCT - + 63 * 33 + - COUNT( * ) * + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1
SELECT DISTINCT - + 63 * 33 + - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + ( + col2 ) col2 FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT 31 * - COUNT( * ) + + SUM( DISTINCT - col0 ) + + 23 AS col0 FROM tab2 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-3
SELECT 31 * - COUNT ( * ) + + SUM ( DISTINCT - col0 ) + + 23 AS col0 FROM tab2 AS cor0
----
-255

query I rowsort
SELECT ALL + - col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + 68 * + - col1 + col2 AS col2 FROM tab2 AS cor0
----
-3445
-4498
-5196

query I rowsort
SELECT + col1 * + + col1 * col0 FROM tab2 AS cor0
----
119646
336675
379456

query I rowsort
SELECT col1 * + col0 - - 90 FROM tab2 AS cor0
----
2436
5018
5115

query I rowsort
SELECT DISTINCT + 79 * + - 46 AS col1 FROM tab1 AS cor0
----
-3634

query II rowsort
SELECT DISTINCT - - col2 + - - col1, col2 * col0 + - - ( + col1 ) AS col1 FROM tab0 AS cor0
----
100
9604
128
786
31
891

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

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

query I rowsort
SELECT 34 AS col0 FROM tab0 WHERE NULL IS NULL
----
34
34
34

query I rowsort
SELECT 41 + ( + col0 ) + 62 FROM tab0
----
118
190
200

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-13
SELECT ALL col2 * + col1 + 68 + col2 * + + CAST( - col2 AS SIGNED ), col2 col2 FROM tab0
----
-9634
99
1666
47
178
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-13
SELECT ALL col2 * + col1 + 68 + col2 * + + CAST ( - col2 AS INTEGER ), col2 col2 FROM tab0
----
-9634
99
1666
47
178
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-14
SELECT ALL col1 * + CAST( NULL AS DECIMAL ) + 35 / 6 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL col1 * + CAST ( NULL AS REAL ) + 35 / 6 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-15
SELECT col2 AS col1 FROM tab1 WHERE ( - - col0 ) * - col1 + + col1 + + - CAST( NULL AS SIGNED ) IS NULL
----
59
68
96

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 48 * + ( - - col0 ) IS NOT NULL
----

query I rowsort
SELECT + + 92 FROM tab1 WHERE 76 < NULL
----

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

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

query I rowsort
SELECT ALL 43 + col1 * 9 FROM tab0 AS cor0
----
232
52
772

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 22 + + + ( + + col2 ) col0 FROM tab2
----
-1218
-483
-840

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col0 * - + col0 <= + 74 + - col0 * + 37 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT + 2 / + col1 - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= 29
----

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

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

query I rowsort
SELECT + col2 * + - 68 + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3953
-4556
-6432

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT DISTINCT 51 * COUNT( * ) AS col1 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-28
SELECT DISTINCT 51 * COUNT ( * ) AS col1 FROM tab2
----
153

query I rowsort
SELECT + 35 * 40 FROM tab2
----
1400
1400
1400

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-33
SELECT ALL * FROM tab1 WHERE NOT - col2 + + - col0 / - 66 - - - CAST( col2 AS SIGNED ) * - 85 * + 29 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-33
SELECT ALL * FROM tab1 WHERE NOT - col2 + + - col0 / - 66 - - - CAST ( col2 AS INTEGER ) * - 85 * + 29 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT + + AVG ( ( - + 42 ) ) + + MIN( + 33 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 73 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-34
SELECT + + AVG ( ( - + 42 ) ) + + MIN ( + 33 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 73 = NULL
----
NULL

query I rowsort
SELECT - - col0 FROM tab0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT - 54 + + col2 AS col1 FROM tab1
----
14
42
5

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

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

query I rowsort
SELECT + 86 + + col1 + + - col0 AS col1 FROM tab0 AS cor0
----
-10
152
20

query I rowsort
SELECT ALL - ( - 61 ) AS col1 FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT ALL - col2 * - 89 + - 29 + - col0 FROM tab0 AS cor0
----
4139
774
8685

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT DISTINCT MAX( ALL - col1 ) * - COUNT( * ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-41
SELECT DISTINCT MAX ( ALL - col1 ) * - COUNT ( * ) FROM tab1 AS cor0
----
15

query I rowsort
SELECT ALL + ( - col2 ) * ( col1 ) * - 57 * - - 13 + col1 AS col1 FROM tab2 AS cor0
----
2282357
2879593
869244

query I rowsort
SELECT col2 * - + 78 + - + 73 * + + col1 + - 1 * + col0 + + 54 FROM tab1 AS cor0
----
-4998
-8507
-8772

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

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

query I rowsort
SELECT ALL col0 + + + col1 - col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-46
SELECT ALL + + 16 + CAST( NULL AS SIGNED ) - + ( 60 ), - ( col0 ) AS col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-46
SELECT ALL + + 16 + CAST ( NULL AS INTEGER ) - + ( 60 ), - ( col0 ) AS col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-47
SELECT + - CAST( NULL AS DECIMAL ) - col2 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-47
SELECT + - CAST ( NULL AS REAL ) - col2 FROM tab2 WHERE NULL IS NOT NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + 16 + + 34 col2 FROM tab2
----
114
125
96

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT DISTINCT MIN( DISTINCT + col0 ) - COUNT( * ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-50
SELECT DISTINCT MIN ( DISTINCT + col0 ) - COUNT ( * ) FROM tab1
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 - - 24 col0 FROM tab1
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT 58 * - + COUNT( * ) + - + SUM( DISTINCT - 82 ) AS col2 FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-52
SELECT 58 * - + COUNT ( * ) + - + SUM ( DISTINCT - 82 ) AS col2 FROM tab0 AS cor0
----
-92

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT + col1 + 68 <= - col1
----
-14
-47
-5

query I rowsort
SELECT ALL - col0 * ( - + ( - col2 ) ) FROM tab1
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-55
SELECT DISTINCT + 6 DIV + - col2 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-55
SELECT DISTINCT + 6 / + - col2 AS col0 FROM tab0 AS cor0
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-58
SELECT - + MIN ( DISTINCT 38 ) FROM tab0 cor0
----
-38

query II rowsort
SELECT DISTINCT + 97 AS col1, 4 * - - 62 FROM tab2 AS cor0
----
97
248

query I rowsort
SELECT + 25 * - ( col2 ) AS col0 FROM tab1
----
-1475
-1700
-2400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-61
SELECT ALL + CAST( NULL AS SIGNED ) * MIN( - col1 ) AS col2 FROM tab1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT + COUNT( 92 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-62
SELECT + COUNT ( 92 ) FROM tab0
----
3

query I rowsort
SELECT + col1 * 48 AS col0 FROM tab2
----
2448
3216
3696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-64
SELECT CAST( - + col0 AS SIGNED ) * + - col1 * 26 + - 53 FROM tab0 cor0
----
2469
31537
47449

skipif mysql # not compatible
query I rowsort label-64
SELECT CAST ( - + col0 AS INTEGER ) * + - col1 * 26 + - 53 FROM tab0 cor0
----
2469
31537
47449

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 > - - col1
----

query II rowsort
SELECT ALL col0 + col0, + col1 AS col1 FROM tab1 AS cor0
----
102
14
170
5
182
47

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

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

query I rowsort
SELECT ALL - 89 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT DISTINCT 51 * + COUNT( * ) AS col1 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-70
SELECT DISTINCT 51 * + COUNT ( * ) AS col1 FROM tab2
----
153

query I rowsort
SELECT ( - 82 ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-82
-82
-82

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

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT MAX( DISTINCT - col0 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-51

skipif mysql # not compatible
query I rowsort label-73
SELECT MAX ( DISTINCT - col0 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + - col1 col1 FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT - 69 - - + col1 FROM tab2 cor0
----
-18
-2
8

query I rowsort
SELECT - 72 + + - col2 AS col2 FROM tab1 AS cor0
----
-131
-140
-168

query I rowsort
SELECT - + col1 * + col0 + - ( + - col1 ) AS col2 FROM tab1 AS cor0
----
-420
-4230
-700

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 81 < ( - 11 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT - COUNT( * ) + 64 AS col0 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-79
SELECT - COUNT ( * ) + 64 AS col0 FROM tab2
----
61

query I rowsort
SELECT DISTINCT col0 + 82 * + + col0 FROM tab1
----
4233
7055
7553

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT DISTINCT COUNT( * ) + - 80 AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-81
SELECT DISTINCT COUNT ( * ) + - 80 AS col0 FROM tab2
----
-77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT ALL + COUNT( * ) - + - MAX( DISTINCT + - col2 ) FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-83
SELECT ALL + COUNT ( * ) - + - MAX ( DISTINCT + - col2 ) FROM tab2
----
-20

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

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT ALL - + 52 * - COUNT( * ) * - 64 - + ( - - 39 ) AS col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND + + 91
----
-39

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL - + 52 * - COUNT ( * ) * - 64 - + ( - - 39 ) AS col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND + + 91
----
-39

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

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

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

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

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

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

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

query II rowsort
SELECT - + col2 AS col2, + col0 + + col1 FROM tab1 AS cor0
----
-59
90
-68
138
-96
65

query I rowsort
SELECT ALL - + 95 * col1 FROM tab2 AS cor0
----
-4845
-6365
-7315

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - + col1 - - + 68 + + col0 BETWEEN NULL AND - + 41 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT ALL MIN( + 24 ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
24

skipif mysql # not compatible
query I rowsort label-93
SELECT ALL MIN ( + 24 ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-94
SELECT DISTINCT - 53 DIV + + 64 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-94
SELECT DISTINCT - 53 / + + 64 FROM tab2
----
0

query I rowsort
SELECT ALL + 70 * - col1 * + + col1 AS col0 FROM tab0 AS cor0
----
-30870
-459270
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-96
SELECT col2 + - - 73 - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT 85 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-96
SELECT col2 + - - 73 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT 85 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT col0 / + - col2 AS col2 FROM tab1 AS cor0 WHERE NULL <= + col2 / + col0 / - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-99
SELECT DISTINCT - col0 DIV - 98 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-99
SELECT DISTINCT - col0 / - 98 FROM tab2
----
0

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

query II rowsort
SELECT col1 * - + col1 * + col2 AS col1, 76 - - + col2 AS col2 FROM tab0
----
-308367
123
-4410
86
-99
175

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-102
SELECT ALL * FROM tab1 WHERE NOT ( NOT 0 * + CAST( NULL AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-102
SELECT ALL * FROM tab1 WHERE NOT ( NOT 0 * + CAST ( NULL AS INTEGER ) IS NOT NULL )
----

query II rowsort
SELECT + col0, - 93 * + 53 * + col2 FROM tab1
----
51
-473184
85
-290811
91
-335172

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

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

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

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

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

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

query I rowsort
SELECT 33 * - 62 FROM tab1
----
-2046
-2046
-2046

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col0 AND - 97
----

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

query I rowsort
SELECT ALL + col2 * - 78 AS col1 FROM tab0
----
-3666
-7722
-780

query I rowsort
SELECT ALL - col0 + 58 AS col0 FROM tab2
----
-17
-6
12

query I rowsort
SELECT - 90 * 49 FROM tab0
----
-4410
-4410
-4410

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 <> ( 98 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # DIV for integer division: 
query I rowsort label-115
SELECT col2 + 72 DIV col1 FROM tab0
----
13
171
47

skipif mysql # not compatible
query I rowsort label-115
SELECT col2 + 72 / col1 FROM tab0
----
13
171
47

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

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

query I rowsort
SELECT - 80 * - col2 FROM tab0
----
3760
7920
800

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

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

query I rowsort
SELECT + 92 FROM tab1 WHERE + ( col2 ) IS NULL
----

query I rowsort
SELECT - col2 / 53 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - ( + 53 ) col2 FROM tab0
----
-4611
-5141
-795

query I rowsort
SELECT + col2 + - 69 FROM tab0 WHERE ( NULL ) IS NULL
----
-22
-59
30

query I rowsort
SELECT DISTINCT 10 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT ( + 50 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 / 66 BETWEEN 91 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-126
SELECT + CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab2 WHERE - col1 - ( col0 ) * 22 < - ( 51 ) * - col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-126
SELECT + CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab2 WHERE - col1 - ( col0 ) * 22 < - ( 51 ) * - col2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE col0 * col2 >= + 80
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 35 + - col0 * + 84 FROM tab0
----
-1225
-7273
-8113

query I rowsort
SELECT col2 + - 78 FROM tab1
----
-10
-19
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-130
SELECT SUM( col1 ) DIV + 15 AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-130
SELECT SUM ( col1 ) / + 15 AS col1 FROM tab0
----
6

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

skipif mysql # not compatible
query I rowsort label-131
SELECT + CAST ( + col0 AS INTEGER ) / - 82 + col1 FROM tab1 WHERE NULL BETWEEN col0 AND + col1 + col2
----

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

skipif mysql # not compatible
query I rowsort label-132
SELECT ( col1 ) / - col1 AS col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 44 + col2 * - col2 FROM tab1
----
-3525
-4668
-9260

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-134
SELECT ALL * FROM tab1 WHERE col1 * CAST( + CAST( 53 AS SIGNED ) AS SIGNED ) + - 0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-134
SELECT ALL * FROM tab1 WHERE col1 * CAST ( + CAST ( 53 AS INTEGER ) AS INTEGER ) + - 0 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 ) IN ( - 24 / 6 - - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-136
SELECT 67 * - 25 + + 4 FROM tab0 WHERE + col2 + CAST( NULL AS SIGNED ) <= + col2 * 41
----

skipif mysql # not compatible
query I rowsort label-136
SELECT 67 * - 25 + + 4 FROM tab0 WHERE + col2 + CAST ( NULL AS INTEGER ) <= + col2 * 41
----

query I rowsort
SELECT ALL + col1 * - 51 FROM tab0
----
-1071
-4131
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT + 53 - - COUNT( ALL 93 ) FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-138
SELECT + 53 - - COUNT ( ALL 93 ) FROM tab0
----
56

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

query I rowsort
SELECT col0 * col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( - col1 ) >= col0
----
4896
5015
6188

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

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT DISTINCT - SUM( ALL ( - col0 ) ) * - 64 FROM tab1 AS cor0
----
-14528

skipif mysql # not compatible
query I rowsort label-142
SELECT DISTINCT - SUM ( ALL ( - col0 ) ) * - 64 FROM tab1 AS cor0
----
-14528

query I rowsort
SELECT DISTINCT 28 * 89 FROM tab1 cor0
----
2492

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

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

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

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

query I rowsort
SELECT 3 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-147
SELECT DISTINCT - 29 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-147
SELECT DISTINCT - 29 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-148
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 < - col2 + col1 / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-148
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 < - col2 + col1 / CAST ( NULL AS INTEGER )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab1 WHERE col0 BETWEEN ( col0 ) AND col2 * col1
----
59
68
96

query I rowsort
SELECT 6 * - + 10 FROM tab0
----
-60
-60
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-152
SELECT DISTINCT + 15 DIV + + col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-152
SELECT DISTINCT + 15 / + + col2 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( - 39 )
----

query I rowsort
SELECT ALL - col2 * 30 + + col0 FROM tab0
----
-1395
-213
-2873

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

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

skipif mysql # not compatible
query I rowsort label-156
SELECT DISTINCT MAX ( 8 ) AS col2 FROM tab1
----
8

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 + 56 >= NULL
----

query I rowsort
SELECT + 88 + + 91 * - 52 FROM tab2 AS cor0
----
-4644
-4644
-4644

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 34 - + 30 >= - col2 - - 48 * + ( col0 / col0 + - 17 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT DISTINCT 70 AS col2 FROM tab2 AS cor0 WHERE NOT col2 * - 77 + col0 NOT IN ( col2 * 43 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-162
SELECT DISTINCT + SUM( ALL - CAST( - col0 AS SIGNED ) ) * 43 + COUNT( * ) FROM tab0 AS cor0
----
8560

skipif mysql # not compatible
query I rowsort label-162
SELECT DISTINCT + SUM ( ALL - CAST ( - col0 AS INTEGER ) ) * 43 + COUNT ( * ) FROM tab0 AS cor0
----
8560

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

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

query I rowsort
SELECT ALL col2 FROM tab0 cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-166
SELECT DISTINCT col0, CAST( - + ( + 16 ) AS SIGNED ) DIV col0 AS col1 FROM tab1 AS cor0
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-166
SELECT DISTINCT col0, CAST ( - + ( + 16 ) AS INTEGER ) / col0 AS col1 FROM tab1 AS cor0
----
51
0
85
0
91
0

query II rowsort
SELECT DISTINCT + + col0, + col1 + + 80 AS col2 FROM tab1 AS cor0
----
51
94
85
85
91
127

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-168
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN col0 AND ( + CAST( NULL AS SIGNED ) )
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-168
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN col0 AND ( + CAST ( NULL AS INTEGER ) )
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-169
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( col2 ) BETWEEN CAST( NULL AS SIGNED ) - - ( 68 ) AND 72 + - col2
----
15
81
47
97
1
99

skipif mysql # not compatible
query III rowsort label-169
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( col2 ) BETWEEN CAST ( NULL AS INTEGER ) - - ( 68 ) AND 72 + - col2
----
15
81
47
97
1
99

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

query I rowsort
SELECT DISTINCT + + 28 + - col1 * + + 16 * col2 AS col1 FROM tab2 AS cor0
----
-18740
-49252
-62148

query I rowsort
SELECT ALL + col1 + + col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( - 69 ) IS NULL
----
117
125
74

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

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

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NULL < 89 * + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > + col2 + - col0
----

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT + 63 > ( ( - - 82 ) )
----
14
47
5

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

skipif mysql # not compatible
query I rowsort label-177
SELECT ALL + + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + col0 * 68 IS NOT NULL
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-181
SELECT col1 DIV - + 68 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-181
SELECT col1 / - + 68 AS col1 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT ALL - MAX( - ( - + 63 ) ) FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL - MAX ( - ( - + 63 ) ) FROM tab0 AS cor0
----
-63

query II rowsort
SELECT DISTINCT col1 * + - col0 * 67, + 45 AS col1 FROM tab2 AS cor0
----
-157182
45
-330176
45
-336675
45

query II rowsort
SELECT ALL - 72 * + + col1 + + + col1 AS col2, ( + - 85 ) FROM tab1 AS cor0
----
-3337
-85
-355
-85
-994
-85

query I rowsort
SELECT 95 + - 13 FROM tab1 AS cor0
----
82
82
82

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-186
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( - - col0 AS DECIMAL ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-186
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( - - col0 AS REAL ) BETWEEN NULL AND NULL
----

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

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

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

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

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

query I rowsort
SELECT ALL + col2 + - 66 AS col0 FROM tab2
----
-26
-43
-8

query I rowsort
SELECT - 96 * col0 FROM tab1 WHERE - + col0 * - + col0 + + col0 + + - ( + col0 ) * 27 - ( col1 ) IS NOT NULL
----
-4896
-8160
-8736

query I rowsort
SELECT + col0 * - col2 * + + col1 FROM tab0
----
-18270
-57105
-9603

query II rowsort
SELECT ALL col2 + - col1, col1 AS col1 FROM tab1
----
21
47
54
5
82
14

query I rowsort
SELECT DISTINCT + 98 * + 52 FROM tab2
----
5096

query I rowsort
SELECT - 96 * + + col0 FROM tab1
----
-4896
-8160
-8736

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

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT - COUNT( * ) * 19 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-197
SELECT - COUNT ( * ) * 19 FROM tab0
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-198
SELECT 86 DIV - + COUNT( * ) FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-198
SELECT 86 / - + COUNT ( * ) FROM tab2
----
-28

query II rowsort
SELECT DISTINCT + 88 + - 41 AS col2, - 83 FROM tab0 cor0
----
47
-83

query I rowsort
SELECT col2 * - + col1 + - 95 * + - ( col0 ) AS col0 FROM tab1
----
3501
5449
7780

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + - 60 * - - 12 + - col0, + col2 * - col2 )
----

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query II rowsort
SELECT col1 * col2, - col1 AS col0 FROM tab0 AS cor0
----
210
-21
3807
-81
99
-1

query I rowsort
SELECT - col1 + col0 AS col2 FROM tab1 AS cor0 WHERE ( ( col2 ) >= + col1 * + - col2 )
----
37
44
80

query I rowsort
SELECT DISTINCT + 72 + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
131
140
168

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT + MAX( - col1 ) FROM tab0 cor0 WHERE ( NULL ) NOT IN ( - col1, ( - col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-206
SELECT + MAX ( - col1 ) FROM tab0 cor0 WHERE ( NULL ) NOT IN ( - col1, ( - col2 ) )
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - + 96 col2, 84 FROM tab0 AS cor0
----
-4512
84
-9504
84
-960
84

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-210
SELECT DISTINCT + col1 AS col1, - CAST( + 29 AS SIGNED ) AS col2 FROM tab1
----
14
-29
47
-29
5
-29

skipif mysql # not compatible
query II rowsort label-210
SELECT DISTINCT + col1 AS col1, - CAST ( + 29 AS INTEGER ) AS col2 FROM tab1
----
14
-29
47
-29
5
-29

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

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

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

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

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

query I rowsort
SELECT + + 34 FROM tab2 WHERE NOT NULL <= - col0
----

query I rowsort
SELECT ALL + ( - - 67 ) AS col2 FROM tab1
----
67
67
67

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE 87 + + col0 > + 5
----
15
87
97

query I rowsort
SELECT ALL - 11 AS col1 FROM tab1 cor0
----
-11
-11
-11

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

query I rowsort
SELECT - 74 * + col1 AS col0 FROM tab0
----
-1554
-5994
-74

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-222
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( col2 ) AND + CAST( - + col2 AS SIGNED ) * - 62
----

skipif mysql # not compatible
query III rowsort label-222
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( col2 ) AND + CAST ( - + col2 AS INTEGER ) * - 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT + COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT + 40 + - col1 + col2 + ( + 62 ) + + + col2 + + col0 / + 69 * col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-223
SELECT + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT + 40 + - col1 + col2 + ( + 62 ) + + + col2 + + col0 / + 69 * col1 IS NULL
----
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-225
SELECT DISTINCT col0 DIV col0 + + col1 FROM tab2 AS cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-225
SELECT DISTINCT col0 / col0 + + col1 FROM tab2 AS cor0
----
52
68
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-226
SELECT + + MIN( DISTINCT - + CAST( NULL AS DECIMAL ) ) AS col0, 28 FROM tab0 AS cor0
----
NULL
28

skipif mysql # not compatible
query II rowsort label-226
SELECT + + MIN ( DISTINCT - + CAST ( NULL AS REAL ) ) AS col0, 28 FROM tab0 AS cor0
----
NULL
28

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * 25 IS NULL
----

query I rowsort
SELECT ALL + 24 * + + 85 - col2 + - col1 + + 69 FROM tab1 AS cor0
----
1994
1999
2045

query I rowsort
SELECT ALL + 53 + + - col1 FROM tab1
----
39
48
6

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

skipif mysql # not compatible
query I rowsort label-232
SELECT DISTINCT - 85 / + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0
----
-31

query I rowsort
SELECT + col0 + - col1 * - - col1 AS col2 FROM tab0
----
-354
-6546
96

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT DISTINCT ( - - COUNT( * ) ) * 65 col1 FROM tab1
----
195

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

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

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

query I rowsort
SELECT DISTINCT + 65 + + + 60 + + col2 * + 80 AS col2 FROM tab0 AS cor0 WHERE NOT col2 > + + col1 + - - 34
----
3885
925

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 col0 FROM tab1 WHERE col1 + + col2 > NULL
----

query I rowsort
SELECT ALL 64 - - - col1 AS col0 FROM tab2
----
-13
-3
13

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-240
SELECT ALL - ( col1 ) / + 50 col1 FROM tab0 AS cor0
----
-1
0
0

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

query I rowsort
SELECT - + col2 * col1 * + - col0 * - 67 AS col1 FROM tab0 cor0
----
-1224090
-3826035
-643401

query II rowsort
SELECT ALL 62 AS col1, 57 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
62
57
62
57
62
57

query II rowsort
SELECT DISTINCT + 77, - col2 + + 45 AS col0 FROM tab0 cor0
----
77
-2
77
-54
77
35

onlyif mysql # DIV for integer division: 
query I rowsort label-245
SELECT ALL 52 + 51 DIV 35 DIV - 20 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-245
SELECT ALL 52 + 51 / 35 / - 20 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT DISTINCT MAX( 38 ) FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-247
SELECT DISTINCT MAX ( 38 ) FROM tab1
----
38

query II rowsort
SELECT ALL ( - - col0 ), col2 FROM tab1
----
51
96
85
59
91
68

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 87 BETWEEN + col2 AND NULL
----

query I rowsort
SELECT - 40 + - col1 + + col1 + 81 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 <= 41
----

query I rowsort
SELECT - 78 * - ( col1 ) * 45 * - + 57 + + + 81 + + + col0 + col0 * + col2 FROM tab1
----
-2795952
-9396930
-995169

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-254
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - CAST( - col1 AS DECIMAL ) - + 82, + 42 col2 FROM tab2 AS cor0
----
NULL
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-254
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - CAST ( - col1 AS REAL ) - + 82, + 42 col2 FROM tab2 AS cor0
----
NULL
42

query I rowsort
SELECT 92 * - col1 + + 43 * - col2 AS col1 FROM tab0 AS cor0
----
-2362
-4349
-9473

query I rowsort
SELECT - 82 * + col1 + + col1 + - col0 FROM tab1 cor0
----
-1185
-3898
-490

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 + + col1 col0 FROM tab2 AS cor0
----
18
34
44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-259
SELECT DISTINCT + 78 DIV - 95 + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + CAST( NULL AS DECIMAL ) + + col0 * - - col1 * - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-259
SELECT DISTINCT + 78 / - 95 + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + CAST ( NULL AS REAL ) + + col0 * - - col1 * - col0 IS NOT NULL
----
0

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-261
SELECT DISTINCT * FROM tab0 WHERE + col2 BETWEEN col0 AND NULL OR NOT CAST( + 55 AS DECIMAL ) NOT IN ( + + 64 + - ( - col2 ) + - col0 + - - 59 )
----

skipif mysql # not compatible
query III rowsort label-261
SELECT DISTINCT * FROM tab0 WHERE + col2 BETWEEN col0 AND NULL OR NOT CAST ( + 55 AS REAL ) NOT IN ( + + 64 + - ( - col2 ) + - col0 + - - 59 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-262
SELECT COUNT( + col1 ), - CAST( NULL AS SIGNED ) * - SUM( DISTINCT + - 16 ) AS col0 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-262
SELECT COUNT ( + col1 ), - CAST ( NULL AS INTEGER ) * - SUM ( DISTINCT + - 16 ) AS col0 FROM tab1
----
3
NULL

query I rowsort
SELECT DISTINCT - col0 - 52 + col1 + - + col0 * - col1 FROM tab0
----
-51
1229
1709

query I rowsort
SELECT ALL col1 * - 97 * - col2 AS col2 FROM tab2
----
113781
298760
376942

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT DISTINCT ( - - 14 ) + MIN( - col1 ) + + 50 col2 FROM tab2
----
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-265
SELECT DISTINCT ( - - 14 ) + MIN ( - col1 ) + + 50 col2 FROM tab2
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-266
SELECT - - col1 * - - 93 * col2 + 47 AS col1 FROM tab2 WHERE - + ( 33 ) DIV - - 42 + + col0 NOT IN ( + - col0, + col1 * - 25, 8, col0 )
----

skipif mysql # not compatible
query I rowsort label-266
SELECT - - col1 * - - 93 * col2 + 47 AS col1 FROM tab2 WHERE - + ( 33 ) / - - 42 + + col0 NOT IN ( + - col0, + col1 * - 25, 8, col0 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT DISTINCT + + COUNT( DISTINCT + 74 ) - + COUNT( * ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-268
SELECT DISTINCT + + COUNT ( DISTINCT + 74 ) - + COUNT ( * ) FROM tab0 AS cor0
----
-2

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-270
SELECT * FROM tab0 cor0 WHERE + col0 <= - CAST( NULL AS DECIMAL ) * - col0
----

skipif mysql # not compatible
query III rowsort label-270
SELECT * FROM tab0 cor0 WHERE + col0 <= - CAST ( NULL AS REAL ) * - col0
----

query I rowsort
SELECT DISTINCT - col0 + 41 AS col1 FROM tab1 AS cor0
----
-10
-44
-50

query I rowsort
SELECT 83 + + col2 AS col2 FROM tab2
----
106
123
141

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

skipif mysql # not compatible
query I rowsort label-273
SELECT ALL CAST ( + - 44 AS INTEGER ) AS col1 FROM tab1 WHERE NULL > - + col2
----

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

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

skipif mysql # not compatible
query I rowsort label-275
SELECT 62 / + col0 FROM tab0
----
0
0
4

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

skipif mysql # not compatible
query I rowsort label-276
SELECT ALL - COUNT ( * ) FROM tab0 WHERE - - 41 * - - col0 IS NULL
----
0

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-280
SELECT + 31 AS col0, - 36 - - SUM( ALL + - col2 ) FROM tab2 AS cor0
----
31
-157

skipif mysql # not compatible
query II rowsort label-280
SELECT + 31 AS col0, - 36 - - SUM ( ALL + - col2 ) FROM tab2 AS cor0
----
31
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT + COUNT( * ) * - + ( - - ( - MIN( + + 70 ) ) ) AS col0 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-281
SELECT + COUNT ( * ) * - + ( - - ( - MIN ( + + 70 ) ) ) AS col0 FROM tab0
----
210

onlyif mysql # DIV for integer division: 
query II rowsort label-282
SELECT DISTINCT 31 AS col1, - col1 * + col1 + 3 + - 78 DIV - - col2 + + + 0 AS col0 FROM tab1
----
31
-193
31
-2207
31
-23

skipif mysql # not compatible
query II rowsort label-282
SELECT DISTINCT 31 AS col1, - col1 * + col1 + 3 + - 78 / - - col2 + + + 0 AS col0 FROM tab1
----
31
-193
31
-2207
31
-23

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

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

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

query I rowsort
SELECT DISTINCT + 90 + + col0 * col2 FROM tab0 AS cor0
----
795
960
9693

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-288
SELECT 4 DIV COUNT( * ) * + - 87 col2, CAST( + SUM( DISTINCT - - col1 ) AS SIGNED ) DIV + 51 AS col1 FROM tab0
----
-87
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-288
SELECT 4 / COUNT ( * ) * + - 87 col2, CAST ( + SUM ( DISTINCT - - col1 ) AS INTEGER ) / + 51 AS col1 FROM tab0
----
-87
2

onlyif mysql # DIV for integer division: 
query I rowsort label-289
SELECT + - 84 DIV + col1 AS col0 FROM tab0 AS cor0
----
-1
-4
-84

skipif mysql # not compatible
query I rowsort label-289
SELECT + - 84 / + col1 AS col0 FROM tab0 AS cor0
----
-1
-4
-84

query I rowsort
SELECT + ( col0 ) * + col2 + + col0 FROM tab2 AS cor0
----
1104
2624
4425

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

skipif mysql # not compatible
query I rowsort label-291
SELECT + CAST ( NULL AS REAL ) / ( 91 ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 14 + - - col1 FROM tab1 AS cor0
----
19
28
61

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col1 IS NOT NULL AND col1 IS NULL
----

query I rowsort
SELECT DISTINCT 67 * - - col0 + + - col2 FROM tab0
----
5819
6400
958

onlyif mysql # aggregate syntax: 
query II rowsort label-295
SELECT DISTINCT - + MAX( + 81 ) AS col2, MIN( ALL - col1 ) FROM tab2 WHERE NULL < + col2 * 49 * - + col0 + col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-295
SELECT DISTINCT - + MAX ( + 81 ) AS col2, MIN ( ALL - col1 ) FROM tab2 WHERE NULL < + col2 * 49 * - + col0 + col0
----
NULL
NULL

query I rowsort
SELECT 71 + + col0 AS col1 FROM tab1 WHERE + ( 40 ) - + - 62 IS NOT NULL
----
122
156
162

onlyif mysql # aggregate syntax: 
query I rowsort label-297
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-297
SELECT DISTINCT + ( COUNT ( * ) ) col1 FROM tab1 AS cor0
----
3

query II rowsort
SELECT + 26 AS col0, + 78 FROM tab0 AS cor0
----
26
78
26
78
26
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col2, - 16 col0 FROM tab0 AS cor0
----
10
-16
47
-16
99
-16

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL < + 50
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT DISTINCT - 62 * - + ( - AVG ( DISTINCT + ( - ( 97 ) ) ) ) * + COUNT( * ) * - COUNT( * ) / - MIN( col2 ) AS col0 FROM tab2 WHERE NOT NULL < - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-303
SELECT DISTINCT - 62 * - + ( - AVG ( DISTINCT + ( - ( 97 ) ) ) ) * + COUNT ( * ) * - COUNT ( * ) / - MIN ( col2 ) AS col0 FROM tab2 WHERE NOT NULL < - 47
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-304
SELECT ALL - - 32 + + COUNT( * ) DIV 78 FROM tab2 cor0 WHERE + col0 IS NOT NULL
----
32

skipif mysql # not compatible
query I rowsort label-304
SELECT ALL - - 32 + + COUNT ( * ) / 78 FROM tab2 cor0 WHERE + col0 IS NOT NULL
----
32

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-307
SELECT DISTINCT + 13 DIV + - col2 * - col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-307
SELECT DISTINCT + 13 / + - col2 * - col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-308
SELECT - 78 * + MAX( DISTINCT + col0 ) AS col1 FROM tab2
----
-5850

skipif mysql # not compatible
query I rowsort label-308
SELECT - 78 * + MAX ( DISTINCT + col0 ) AS col1 FROM tab2
----
-5850

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

skipif mysql # not compatible
query I rowsort label-309
SELECT - COUNT ( * ) * 17 AS col0 FROM tab2
----
-51

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN NULL AND 76
----

query I rowsort
SELECT DISTINCT + ( + 35 ) AS col1 FROM tab2
----
35

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-316
SELECT ALL + + CAST( - + col0 AS SIGNED ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL + + CAST ( - + col0 AS INTEGER ) FROM tab0 AS cor0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + + 67 * col0 col1 FROM tab0 AS cor0
----
47235
58290
643401

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT ALL MAX( + + 49 ) AS col0 FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-320
SELECT ALL MAX ( + + 49 ) AS col0 FROM tab0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT ALL - + COUNT( * ) * + 79 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-711

skipif mysql # not compatible
query I rowsort label-321
SELECT ALL - + COUNT ( * ) * + 79 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-711

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

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

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

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

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

query I rowsort
SELECT DISTINCT col0 + - 71 FROM tab2 AS cor0
----
-25
-7
4

query I rowsort
SELECT DISTINCT + 67 + - - col0 + - ( + 30 ) FROM tab0
----
124
134
52

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT ( - 77 ) - MIN( DISTINCT 52 ) FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-328
SELECT ( - 77 ) - MIN ( DISTINCT 52 ) FROM tab1
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT ( 67 ) - - 77 + - - COUNT( * ) + 43 * 31 FROM tab2
----
1480

skipif mysql # not compatible
query I rowsort label-329
SELECT ( 67 ) - - 77 + - - COUNT ( * ) + 43 * 31 FROM tab2
----
1480

query I rowsort
SELECT DISTINCT + 39 * - - 87 - - - col2 FROM tab1
----
3297
3325
3334

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-331
SELECT col2 - - col1 + CAST( + col1 AS SIGNED ) AS col1 FROM tab0
----
101
209
52

skipif mysql # not compatible
query I rowsort label-331
SELECT col2 - - col1 + CAST ( + col1 AS INTEGER ) AS col1 FROM tab0
----
101
209
52

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT ALL MIN( - col2 ) - + + COUNT( * ) + + COUNT( * ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-332
SELECT ALL MIN ( - col2 ) - + + COUNT ( * ) + + COUNT ( * ) FROM tab0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-333
SELECT col0 DIV - col1 + + + 43 col2 FROM tab2
----
42
43
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-333
SELECT col0 / - col1 + + + 43 col2 FROM tab2
----
42
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT DISTINCT - COUNT( * ) - - 75 AS col0 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-334
SELECT DISTINCT - COUNT ( * ) - - 75 AS col0 FROM tab2 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT DISTINCT + MIN( - + 19 ) + + 52 AS col2 FROM tab1 AS cor0 WHERE NOT col2 + + + 64 * - col1 BETWEEN col0 AND - col2
----
33

skipif mysql # not compatible
query I rowsort label-335
SELECT DISTINCT + MIN ( - + 19 ) + + 52 AS col2 FROM tab1 AS cor0 WHERE NOT col2 + + + 64 * - col1 BETWEEN col0 AND - col2
----
33

query II rowsort
SELECT DISTINCT 46, 6 AS col2 FROM tab1
----
46
6

query I rowsort
SELECT 71 FROM tab0 WHERE NOT NULL < NULL
----

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

query I rowsort
SELECT ALL + 64 * - col2 AS col2 FROM tab2 AS cor0
----
-1472
-2560
-3712

query I rowsort
SELECT DISTINCT 79 * - 63 FROM tab2 AS cor0
----
-4977

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 84 BETWEEN + col1 AND + 41 * - ( col1 ) - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT + SUM( 6 ) FROM tab1 cor0
----
18

skipif mysql # not compatible
query I rowsort label-342
SELECT + SUM ( 6 ) FROM tab1 cor0
----
18

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

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

query II rowsort
SELECT + col0, col2 AS col1 FROM tab1 WHERE NOT + col0 IS NULL
----
51
96
85
59
91
68

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT col1 NOT BETWEEN + ( - 58 ) AND - + 79 + + col1 + + - 93 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 82 * + col0 col0 FROM tab0
----
18450
620658
771538

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT - SUM( ALL - 19 ) FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-347
SELECT - SUM ( ALL - 19 ) FROM tab0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT - MAX( - - 27 ) AS col0 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-348
SELECT - MAX ( - - 27 ) AS col0 FROM tab0 AS cor0
----
-27

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

skipif mysql # not compatible
query I rowsort label-349
SELECT DISTINCT MIN ( ALL + col2 ) + - ( - COUNT ( * ) ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
32

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

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

query I rowsort
SELECT + 66 FROM tab2 AS cor0 WHERE ( NOT + col0 = + col0 )
----

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

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

query I rowsort
SELECT - 70 + - col2 * + col1 AS col0 FROM tab0 AS cor0
----
-169
-280
-3877

query I rowsort
SELECT + col0 + + col1 - - - col2 AS col1 FROM tab1 AS cor0
----
-31
31
70

query I rowsort
SELECT - 65 * + 3 + col2 + col2 FROM tab2 AS cor0
----
-115
-149
-79

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

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

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

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

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

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

query II rowsort
SELECT ALL col1 + + col0, - ( + 85 ) AS col2 FROM tab0
----
108
-85
96
-85
98
-85

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + col2 ) col0, col0 AS col1 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col2 * 82 NOT BETWEEN NULL AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-364
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col2 * 82 NOT BETWEEN NULL AND - col1
----
0

query II rowsort
SELECT DISTINCT - ( - - col2 ), + 20 AS col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-10
20
-47
20
-99
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-366
SELECT col2, - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

skipif mysql # not compatible
query II rowsort label-366
SELECT col2, - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

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

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

query I rowsort
SELECT + 19 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 66 AND col0 - - 43 - - col0
----

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT - 11 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-372
SELECT COUNT( * ) AS col2, 90 AS col0 FROM tab2
----
3
90

skipif mysql # not compatible
query II rowsort label-372
SELECT COUNT ( * ) AS col2, 90 AS col0 FROM tab2
----
3
90

query I rowsort
SELECT col2 + + - col0 AS col1 FROM tab0 WHERE + 3 BETWEEN - + col2 - col0 + col2 * - 58 AND ( - col2 )
----

query I rowsort
SELECT DISTINCT 99 * col1 FROM tab1
----
1386
4653
495

query I rowsort
SELECT 69 * - + 72 * + - 53 FROM tab2
----
263304
263304
263304

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT ALL - 72 * ( COUNT( * ) ) AS col1 FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-376
SELECT ALL - 72 * ( COUNT ( * ) ) AS col1 FROM tab0
----
-216

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

skipif mysql # not compatible
query I rowsort label-377
SELECT - 7 / - col0 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT col1, + 68 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + 46 ) + - col1 AS col1 FROM tab1 AS cor0
----
-51
-60
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-380
SELECT ALL + + MIN( ALL - col1 ) + + + 56 + 25 col2, + 17 FROM tab0 AS cor0
----
0
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-380
SELECT ALL + + MIN ( ALL - col1 ) + + + 56 + 25 col2, + 17 FROM tab0 AS cor0
----
0
17

onlyif mysql # DIV for integer division: 
query I rowsort label-381
SELECT DISTINCT + ( + 36 ) DIV col1 + + col0 + - 84 + - col1 FROM tab2 AS cor0
----
-76
-89
-97

skipif mysql # not compatible
query I rowsort label-381
SELECT DISTINCT + ( + 36 ) / col1 + + col0 + - 84 + - col1 FROM tab2 AS cor0
----
-76
-89
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-382
SELECT ALL 98 DIV 17 * + + 20 AS col2 FROM tab0
----
100
100
100

skipif mysql # not compatible
query I rowsort label-382
SELECT ALL 98 / 17 * + + 20 AS col2 FROM tab0
----
100
100
100

query I rowsort
SELECT 96 + - - 61 FROM tab2
----
157
157
157

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

query I rowsort
SELECT DISTINCT col1 + col0 FROM tab0 WHERE NULL IS NULL
----
108
96
98

query II rowsort
SELECT DISTINCT - col1 * - 78 AS col0, col1 FROM tab2
----
3978
51
5226
67
6006
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-387
SELECT * FROM tab2 AS cor0 WHERE 73 NOT BETWEEN col1 AND CAST( NULL AS SIGNED )
----
64
77
40

skipif mysql # not compatible
query III rowsort label-387
SELECT * FROM tab2 AS cor0 WHERE 73 NOT BETWEEN col1 AND CAST ( NULL AS INTEGER )
----
64
77
40

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NULL BETWEEN + col0 AND NULL
----

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

query II rowsort
SELECT ALL - col1 - col2 - + col2 * + col2 AS col1, + col2 FROM tab0 AS cor0
----
-131
10
-2337
47
-9901
99

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

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

query I rowsort
SELECT DISTINCT + - 45 + + col2 + 9 FROM tab1 AS cor0
----
23
32
60

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT COUNT( * ) - COUNT( * ) + - MIN( col1 ) AS col0 FROM tab2
----
-51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT ( MAX( DISTINCT col2 ) ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-394
SELECT ( MAX ( DISTINCT col2 ) ) AS col0 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT ALL + 72 * + COUNT( * ) * COUNT( * ) FROM tab2
----
648

skipif mysql # not compatible
query I rowsort label-395
SELECT ALL + 72 * + COUNT ( * ) * COUNT ( * ) FROM tab2
----
648

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

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

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

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

query I rowsort
SELECT col2 FROM tab2 WHERE NOT - + col0 * + 15 + 54 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) >= col1 * - + ( ( 68 ) )
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-401
SELECT + ( col1 ) col2 FROM tab1 WHERE NOT - col1 IS NULL AND col0 NOT BETWEEN - 21 AND + + col0 * - CAST ( NULL AS INTEGER ) + - 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT ALL MIN( + 99 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
99

skipif mysql # not compatible
query I rowsort label-402
SELECT ALL MIN ( + 99 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
99

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

query I rowsort
SELECT ALL - 49 + + + col1 * - col2 FROM tab2 cor0
----
-1222
-3129
-3935

onlyif mysql # DIV for integer division: 
query II rowsort label-405
SELECT ALL + col1 AS col2, - ( + 67 ) DIV - - col1 + col0 DIV - col0 + - col0 AS col1 FROM tab2 AS cor0
----
51
-48
67
-77
77
-65

skipif mysql # not compatible
query II rowsort label-405
SELECT ALL + col1 AS col2, - ( + 67 ) / - - col1 + col0 / - col0 + - col0 AS col1 FROM tab2 AS cor0
----
51
-48
67
-77
77
-65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 < - - 2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 26 + - col1 FROM tab0 AS cor0
----
-107
-27
-47

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

skipif mysql # not compatible
query II rowsort label-408
SELECT DISTINCT + COUNT ( - col0 ), ( 14 ) AS col0 FROM tab2 AS cor0
----
3
14

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

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

query I rowsort
SELECT DISTINCT col0 + - 17 * - - col2 AS col1 FROM tab2
----
-345
-616
-911

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT - COUNT( DISTINCT col1 ) + 49 * - + 93 FROM tab1
----
-4560

skipif mysql # not compatible
query I rowsort label-411
SELECT - COUNT ( DISTINCT col1 ) + 49 * - + 93 FROM tab1
----
-4560

query I rowsort
SELECT - col0 + + col1 * - col2 FROM tab2
----
-1219
-3144
-3961

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

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

query I rowsort
SELECT - 83 FROM tab0 WHERE + 54 IS NULL
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 80 ) >= 52
----

onlyif mysql # DIV for integer division: 
query II rowsort label-417
SELECT + col0 DIV + col0 AS col2, + col2 + col1 col2 FROM tab0 AS cor0
----
1
100
1
128
1
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-417
SELECT + col0 / + col0 AS col2, + col2 + col1 col2 FROM tab0 AS cor0
----
1
100
1
128
1
31

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-419
SELECT - col1 DIV - col2 * - 42 AS col0, + col2 * col2 DIV - col1 FROM tab1
----
0
-658
0
-696
0
-98

skipif mysql # not compatible
query II rowsort label-419
SELECT - col1 / - col2 * - 42 AS col0, + col2 * col2 / - col1 FROM tab1
----
0
-658
0
-696
0
-98

query II rowsort
SELECT col1, - 24 * + 7 FROM tab0
----
1
-168
21
-168
81
-168

query III rowsort
SELECT * FROM tab1 WHERE NULL >= col0 / - col0 * + col2
----

query I rowsort
SELECT 86 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT + MIN( - col2 ) FROM tab2 WHERE + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-423
SELECT + MIN ( - col2 ) FROM tab2 WHERE + col0 IS NULL
----
NULL

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

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

query I rowsort
SELECT + 51 * - 27 + - col2 * + col0 FROM tab2 AS cor0
----
-2435
-3937
-5727

onlyif mysql # DIV for integer division: 
query II rowsort label-426
SELECT - + col0 DIV + col0 + col1 AS col2, - ( - col0 ) * + col2 AS col2 FROM tab1 AS cor0
----
13
4896
4
5015
46
6188

skipif mysql # not compatible
query II rowsort label-426
SELECT - + col0 / + col0 + col1 AS col2, - ( - col0 ) * + col2 AS col2 FROM tab1 AS cor0
----
13
4896
4
5015
46
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 * - col1 col0 FROM tab1 AS cor0
----
-1645
-175
-490

query I rowsort
SELECT ALL col1 * - + col2 + - col0 FROM tab0 AS cor0
----
-196
-297
-3822

query I rowsort
SELECT ( - 77 ) FROM tab0 AS cor0
----
-77
-77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT col2 * col0 * + + col2 col1, + col1 AS col2, - col2 AS col0 FROM tab2 AS cor0
----
9 values hashing to 0b8b9de3e378dedc6c19be577ae55e73

query I rowsort
SELECT DISTINCT - 11 * - 18 AS col1 FROM tab1
----
198

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

skipif mysql # not compatible
query I rowsort label-432
SELECT + ( + CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT DISTINCT + MIN( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-433
SELECT DISTINCT + MIN ( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT + col2 * 27 AS col1 FROM tab1 AS cor0
----
1593
1836
2592

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + col2 ) - - - col1 + 90 IN ( + col0 * col0, 21 + 54, col0, + - col0, + col1, col0 * - col2 / + ( - - col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( - - 50 ) AS col2 FROM tab0
----
50
50
50

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

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

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

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL MIN ( ALL - 92 ) FROM tab0 AS cor0
----
-92

query I rowsort
SELECT - ( - + 8 ) FROM tab1 AS cor0 WHERE NULL = + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-440
SELECT + col2 * + 48 + 5 DIV - col2 AS col1 FROM tab1 AS cor0
----
2832
3264
4608

skipif mysql # not compatible
query I rowsort label-440
SELECT + col2 * + 48 + 5 / - col2 AS col1 FROM tab1 AS cor0
----
2832
3264
4608

query I rowsort
SELECT + col1 * col1 * + col1 AS col2 FROM tab2 AS cor0 WHERE + col1 + + 35 * - + col1 BETWEEN 25 AND + col1
----

query I rowsort
SELECT - 88 FROM tab1 AS cor0 WHERE NULL BETWEEN 8 AND col2 + - col2 + - 4
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-444
SELECT ALL 0 DIV - col1 * col0 + - 67, + col0 AS col1 FROM tab0
----
-67
15
-67
87
-67
97

skipif mysql # not compatible
query II rowsort label-444
SELECT ALL 0 / - col1 * col0 + - 67, + col0 AS col1 FROM tab0
----
-67
15
-67
87
-67
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT SUM( + + col1 ) col0 FROM tab2
----
195

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

query II rowsort
SELECT col2, + col2 + + col1 * - col1 * + + 66 AS col0 FROM tab1
----
59
-1591
68
-145726
96
-12840

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT + 77 + COUNT( * ) AS col2 FROM tab2, tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-448
SELECT + 77 + COUNT ( * ) AS col2 FROM tab2, tab1 AS cor0
----
86

query II rowsort
SELECT - col2 * + 84 AS col1, + col0 FROM tab2
----
-1932
46
-3360
64
-4872
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-450
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 29 IN ( col1 * + 3 / + CAST( NULL AS SIGNED ) * - col1 + 89 / + col2 - - 33, - 81 )
----

skipif mysql # not compatible
query III rowsort label-450
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 29 IN ( col1 * + 3 / + CAST ( NULL AS INTEGER ) * - col1 + 89 / + col2 - - 33, - 81 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( + + col2, 67 - - col0 )
----

query I rowsort
SELECT + 28 + ( col0 ) + + 26 AS col0 FROM tab2 AS cor0 WHERE NULL >= - ( - 89 )
----

query I rowsort
SELECT DISTINCT - + 88 + - col0 FROM tab2 cor0
----
-134
-152
-163

query I rowsort
SELECT col0 + 84 FROM tab0 AS cor0
----
171
181
99

query II rowsort
SELECT 55 + - col2 AS col1, 33 AS col1 FROM tab0
----
-44
33
45
33
8
33

query I rowsort
SELECT col0 * - col1 * 13 AS col0 FROM tab1
----
-5525
-55601
-9282

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 + - - 20 + - - col0 * + 7, - col0 + - 29 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT ALL - MIN( DISTINCT + 55 ) AS col0 FROM tab1 cor0
----
-55

skipif mysql # not compatible
query I rowsort label-460
SELECT ALL - MIN ( DISTINCT + 55 ) AS col0 FROM tab1 cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT + 93 * - ( + COUNT( * ) ) * - - COUNT( * ) FROM tab0 AS cor0
----
-837

skipif mysql # not compatible
query I rowsort label-461
SELECT + 93 * - ( + COUNT ( * ) ) * - - COUNT ( * ) FROM tab0 AS cor0
----
-837

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

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT ALL 97 * + MAX( - - col1 ) AS col2 FROM tab2
----
7469

skipif mysql # not compatible
query I rowsort label-463
SELECT ALL 97 * + MAX ( - - col1 ) AS col2 FROM tab2
----
7469

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT DISTINCT + 76 * + MAX( + col1 ) AS col2 FROM tab1
----
3572

skipif mysql # not compatible
query I rowsort label-464
SELECT DISTINCT + 76 * + MAX ( + col1 ) AS col2 FROM tab1
----
3572

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-465
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( 94 AS SIGNED ) IN ( - col0 * + 58 + - 87 + + - CAST( NULL AS SIGNED ), 35, - col2, - 62 - - + ( - 58 ) - + col1 )
----

skipif mysql # not compatible
query III rowsort label-465
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( 94 AS INTEGER ) IN ( - col0 * + 58 + - 87 + + - CAST ( NULL AS INTEGER ), 35, - col2, - 62 - - + ( - 58 ) - + col1 )
----

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

query I rowsort
SELECT ALL 9 * + 47 AS col0 FROM tab1
----
423
423
423

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 63 * col2 * - 90 * + + 64 + + col2 - + - col0 IS NULL
----

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

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

query II rowsort
SELECT - 2 AS col0, - 95 AS col2 FROM tab2 AS cor0
----
-2
-95
-2
-95
-2
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-474
SELECT ALL + 9 * col1 * + + 13 + - + col0 + - - col0 DIV - - col2 FROM tab0
----
20
2378
9462

skipif mysql # not compatible
query I rowsort label-474
SELECT ALL + 9 * col1 * + + 13 + - + col0 + - - col0 / - - col2 FROM tab0
----
20
2378
9462

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-475
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) - + col0 <= col2
----

skipif mysql # not compatible
query III rowsort label-475
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) - + col0 <= col2
----

query I rowsort
SELECT DISTINCT - + 36 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 83 NOT BETWEEN - + col2 AND ( + - col2 ) / + col0 / - 14
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT 9 * - + 31 FROM tab1 AS cor0
----
-279

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

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

query II rowsort
SELECT ALL + 26 * - - 61 + + 6 + + + col2, - col1 AS col0 FROM tab0 AS cor0
----
1602
-21
1639
-81
1691
-1

query I rowsort
SELECT DISTINCT + - col1 + 67 AS col2 FROM tab2 AS cor0
----
-10
0
16

query II rowsort
SELECT col2 * col0 + + + 82 + - col2, + col1 FROM tab1 AS cor0
----
4882
14
5038
5
6202
47

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-484
SELECT + 95 * 39 + col2 * - 80 + - CAST( NULL AS SIGNED ) + col0 + ( + ( + col2 ) ) / - + 61 + - 20 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-484
SELECT + 95 * 39 + col2 * - 80 + - CAST ( NULL AS INTEGER ) + col0 + ( + ( + col2 ) ) / - + 61 + - 20 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 50 + + col1 FROM tab0
----
131
51
71

query I rowsort
SELECT ALL - - col2 FROM tab0 WHERE + col2 NOT BETWEEN ( col2 ) AND + col2
----

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

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

query I rowsort
SELECT DISTINCT - 16 - col0 AS col0 FROM tab2
----
-62
-80
-91

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 IN ( + col0, + col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-492
SELECT 84 DIV + col1 AS col2 FROM tab1 AS cor0
----
1
16
6

skipif mysql # not compatible
query I rowsort label-492
SELECT 84 / + col1 AS col2 FROM tab1 AS cor0
----
1
16
6

query II rowsort
SELECT + 6 * 12, - col0 + - + col0 AS col2 FROM tab0 AS cor0 WHERE + 16 * + col0 IS NOT NULL
----
72
-174
72
-194
72
-30

query I rowsort
SELECT + ( - col0 ) * col2 + - col1 FROM tab2 AS cor0
----
-1109
-2637
-4417

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 34 IS NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-500
SELECT DISTINCT + CAST( NULL AS SIGNED ), - col1 + col2 AS col1 FROM tab1 AS cor0
----
NULL
21
NULL
54
NULL
82

skipif mysql # not compatible
query II rowsort label-500
SELECT DISTINCT + CAST ( NULL AS INTEGER ), - col1 + col2 AS col1 FROM tab1 AS cor0
----
NULL
21
NULL
54
NULL
82

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

query I rowsort
SELECT col1 * col0 * col2 + + col2 + col0 AS col1 FROM tab1 AS cor0
----
25219
290995
68691

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT DISTINCT MAX( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-504
SELECT DISTINCT MAX ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
-51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT COUNT( * ) * + ( + 71 ) AS col2 FROM tab2
----
213

skipif mysql # not compatible
query I rowsort label-506
SELECT COUNT ( * ) * + ( + 71 ) AS col2 FROM tab2
----
213

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

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

query I rowsort
SELECT DISTINCT col1 + - col1 * - col1 AS col0 FROM tab0 AS cor0
----
2
462
6642

query I rowsort
SELECT DISTINCT 64 AS col2 FROM tab2 cor0
----
64

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

query I rowsort
SELECT col1 + 3 FROM tab2
----
54
70
80

query I rowsort
SELECT + col0 + + 61 FROM tab1
----
112
146
152

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NULL IS NOT NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

query I rowsort
SELECT DISTINCT + 5 * - - col1 FROM tab1
----
235
25
70

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT 13 + COUNT( * ) AS col0 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-517
SELECT 13 + COUNT ( * ) AS col0 FROM tab0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT - ( + + COUNT( 54 ) ) FROM tab0 AS cor0 WHERE ( NOT NULL >= NULL )
----
0

skipif mysql # not compatible
query I rowsort label-518
SELECT - ( + + COUNT ( 54 ) ) FROM tab0 AS cor0 WHERE ( NOT NULL >= NULL )
----
0

query I rowsort
SELECT DISTINCT + - 71 * col0 AS col1 FROM tab2 AS cor0
----
-3266
-4544
-5325

query II rowsort
SELECT col0 * 79 * + - 99 AS col2, - 12 + + col2 AS col0 FROM tab1 AS cor0
----
-398871
84
-664785
47
-711711
56

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 91 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * + 53 + + col0 FROM tab2
----
2484
3456
4050

query I rowsort
SELECT DISTINCT 10 - + col0 FROM tab1
----
-41
-75
-81

query I rowsort
SELECT ALL + + 20 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 <= + col2 / - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-526
SELECT 94 DIV col0 - col2 FROM tab2
----
-21
-39
-57

skipif mysql # not compatible
query I rowsort label-526
SELECT 94 / col0 - col2 FROM tab2
----
-21
-39
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT + COUNT( * ) - 7 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-527
SELECT + COUNT ( * ) - 7 FROM tab1
----
-4

query II rowsort
SELECT DISTINCT 13 * col2, - col2 AS col0 FROM tab0
----
1287
-99
130
-10
611
-47

query I rowsort
SELECT ALL col2 * - col2 + - col1 FROM tab0
----
-121
-2290
-9802

query I rowsort
SELECT DISTINCT col2 - col2 - - col1 FROM tab2
----
51
67
77

query II rowsort
SELECT 99 + + 33 * + 2 - col1, + ( - - col2 ) AS col1 FROM tab0
----
144
10
164
99
84
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 79 + + - 60 <= + col2 - + 92
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-534
SELECT + + COUNT( * ) AS col1, - 80 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-80

skipif mysql # not compatible
query II rowsort label-534
SELECT + + COUNT ( * ) AS col1, - 80 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-80

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

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

skipif mysql # not compatible
query I rowsort label-536
SELECT DISTINCT - - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT DISTINCT + 55 + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 * - - col2 = NULL
----
55

skipif mysql # not compatible
query I rowsort label-537
SELECT DISTINCT + 55 + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 * - - col2 = NULL
----
55

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 52 >= ( NULL )
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT DISTINCT + MAX( DISTINCT + col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-542
SELECT DISTINCT + MAX ( DISTINCT + col1 ) AS col1 FROM tab2
----
77

query II rowsort
SELECT DISTINCT col2 AS col1, col1 * col2 * - + col1 AS col2 FROM tab1
----
59
-1475
68
-150212
96
-18816

query I rowsort
SELECT 31 * - + 5 AS col1 FROM tab2
----
-155
-155
-155

query I rowsort
SELECT + col1 * 72 AS col0 FROM tab0
----
1512
5832
72

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

query II rowsort
SELECT ALL - col1 AS col2, ( col1 ) FROM tab2
----
-51
51
-67
67
-77
77

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

query II rowsort
SELECT DISTINCT - 47, col1 FROM tab0 cor0
----
-47
1
-47
21
-47
81

query I rowsort
SELECT + - 11 + col2 AS col2 FROM tab2 AS cor0
----
12
29
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT DISTINCT COUNT( * ) * - - 19 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-552
SELECT DISTINCT COUNT ( * ) * - - 19 FROM tab0
----
57

query I rowsort
SELECT ALL ( - col1 ) * 81 + + col0 AS col0 FROM tab2 AS cor0
----
-4085
-5352
-6173

onlyif mysql # DIV for integer division: 
query I rowsort label-554
SELECT - col1 + - col0 DIV + col0 + - col0 FROM tab1 AS cor0
----
-139
-66
-91

skipif mysql # not compatible
query I rowsort label-554
SELECT - col1 + - col0 / + col0 + - col0 FROM tab1 AS cor0
----
-139
-66
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-555
SELECT + 2 * - CAST( - col2 AS SIGNED ) + + col0 * - col0 AS col0, col2 AS col1 FROM tab0 AS cor0
----
-131
47
-7549
10
-9211
99

skipif mysql # not compatible
query II rowsort label-555
SELECT + 2 * - CAST ( - col2 AS INTEGER ) + + col0 * - col0 AS col0, col2 AS col1 FROM tab0 AS cor0
----
-131
47
-7549
10
-9211
99

query I rowsort
SELECT - col1 * col0 * - 39 + + 58 + - ( + - col2 ) + 31 AS col0 FROM tab1 AS cor0
----
166960
16723
28031

onlyif mysql # DIV for integer division: 
query I rowsort label-557
SELECT col0 DIV - + col0 + + col1 FROM tab0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-557
SELECT col0 / - + col0 + + col1 FROM tab0
----
0
20
80

query I rowsort
SELECT ALL 59 * - - col2 + 77 FROM tab2
----
1434
2437
3499

query I rowsort
SELECT ALL 62 - - col0 AS col1 FROM tab1
----
113
147
153

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

query III rowsort
SELECT * FROM tab2 WHERE + 36 + - col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 11 * col1 * + - col0 IN ( - + col1 * + 90 + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-563
SELECT ALL - - CAST( + ( + + 94 ) AS SIGNED ) * + CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
4418
9306
940

skipif mysql # not compatible
query I rowsort label-563
SELECT ALL - - CAST ( + ( + + 94 ) AS INTEGER ) * + CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
4418
9306
940

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

skipif mysql # not compatible
query I rowsort label-564
SELECT - + 83 / + SUM ( - col1 ) FROM tab0 AS cor0
----
0

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-567
SELECT ( - 15 ) + - ( COUNT( * ) ) DIV + COUNT( * ) FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-567
SELECT ( - 15 ) + - ( COUNT ( * ) ) / + COUNT ( * ) FROM tab0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT ALL - ( 46 ) * COUNT( * ) AS col2 FROM tab1 WHERE NOT ( - 43 ) <= col1
----
0

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL - ( 46 ) * COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( - 43 ) <= col1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 95 IS NOT NULL
----

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

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

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE ( NULL ) < 7
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 + + col0 ) NOT BETWEEN NULL AND ( + 57 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-574
SELECT ALL * FROM tab2 WHERE NOT + col0 / - CAST( - col2 AS SIGNED ) + 33 * ( col0 ) NOT BETWEEN + 98 AND NULL
----

skipif mysql # not compatible
query III rowsort label-574
SELECT ALL * FROM tab2 WHERE NOT + col0 / - CAST ( - col2 AS INTEGER ) + 33 * ( col0 ) NOT BETWEEN + 98 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-575
SELECT - COUNT( * ) + SUM( DISTINCT col2 ) DIV COUNT( * ) AS col1 FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-575
SELECT - COUNT ( * ) + SUM ( DISTINCT col2 ) / COUNT ( * ) AS col1 FROM tab1
----
71

query I rowsort
SELECT - 55 AS col1 FROM tab0 WHERE NOT col1 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT col1 - 82 AS col1 FROM tab1
----
-35
-68
-77

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

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

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

query I rowsort
SELECT ALL - 52 + col1 * + 34 FROM tab0
----
-18
2702
662

query I rowsort
SELECT ALL - 63 FROM tab2 WHERE NOT col2 + + col0 IS NULL
----
-63
-63
-63

query I rowsort
SELECT DISTINCT + col2 * - col2 FROM tab2 WHERE NOT + col0 <= ( col2 * + col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT + MAX( ALL 12 ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-586
SELECT + MAX ( ALL 12 ) FROM tab0 AS cor0
----
12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - 20 AND 48
----

onlyif mysql # DIV for integer division: 
query I rowsort label-588
SELECT DISTINCT - col1 DIV - col1 + col0 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-588
SELECT DISTINCT - col1 / - col1 + col0 FROM tab0 AS cor0
----
16
88
98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT ALL + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL <> ( + 55 + - 85 )
----
0

skipif mysql # not compatible
query I rowsort label-590
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL <> ( + 55 + - 85 )
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT DISTINCT + SUM( - col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + 8 ) IS NULL
----
-103

skipif mysql # not compatible
query I rowsort label-594
SELECT DISTINCT + SUM ( - col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + 8 ) IS NULL
----
-103

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-595
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT + col0 + - col1 BETWEEN NULL AND 60 + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-595
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NOT + col0 + - col1 BETWEEN NULL AND 60 + - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT ALL - 56 + MIN( ALL col0 + col2 ) FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-596
SELECT ALL - 56 + MIN ( ALL col0 + col2 ) FROM tab2 AS cor0
----
13

query I rowsort
SELECT ALL + col0 * - 21 * + col0 + col1 AS col0 FROM tab1
----
-151720
-173854
-54607

query III rowsort
SELECT * FROM tab1 WHERE - 65 NOT BETWEEN + col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT - SUM( DISTINCT col0 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-600
SELECT - SUM ( DISTINCT col0 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - 4 * - 3 * - ( col0 ) + + col1 AS col1 FROM tab0
----
-1023
-1163
-99

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

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

query I rowsort
SELECT ALL - ( + - 61 ) AS col2 FROM tab2
----
61
61
61

query I rowsort
SELECT DISTINCT col2 + - col1 AS col2 FROM tab1 WHERE + 3 + col0 IS NULL
----

query I rowsort
SELECT AVG ( + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 ) + + col1 < ( NULL )
----
NULL

query I rowsort
SELECT ALL + col0 * + - 30 FROM tab1 AS cor0
----
-1530
-2550
-2730

query I rowsort
SELECT + 30 * col1 * col1 + - col2 AS col0 FROM tab1 AS cor0
----
5784
66202
691

onlyif mysql # DIV for integer division: 
query I rowsort label-608
SELECT DISTINCT 68 DIV + ( 35 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-608
SELECT DISTINCT 68 / + ( 35 ) FROM tab0 cor0
----
1

query I rowsort
SELECT ALL + col0 * + 87 AS col1 FROM tab0 AS cor0
----
1305
7569
8439

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT - COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT - col0 >= col2 * 57
----
-3

skipif mysql # not compatible
query I rowsort label-610
SELECT - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT - col0 >= col2 * 57
----
-3

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-613
SELECT ALL COUNT( * ) DIV - - 66 * - - 99 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL COUNT ( * ) / - - 66 * - - 99 FROM tab2 AS cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT ALL - ( + + COUNT( * ) ) + 85 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-615
SELECT ALL - ( + + COUNT ( * ) ) + 85 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-258

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

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE ( NULL ) NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE ( NULL ) NOT IN ( col1 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-618
SELECT 31 + COUNT( * ) + 64 - + - MIN( - CAST( NULL AS SIGNED ) ) * SUM( ALL col2 ) * MIN( DISTINCT 54 + 17 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-618
SELECT 31 + COUNT ( * ) + 64 - + - MIN ( - CAST ( NULL AS INTEGER ) ) * SUM ( ALL col2 ) * MIN ( DISTINCT 54 + 17 ) FROM tab1
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT + col0 + - - col1 + + + col1 * 75 FROM tab0
----
1683
173
6171

query I rowsort
SELECT ALL - 31 * - col1 - + ( + col1 ) FROM tab2
----
1530
2010
2310

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 14 * + col1 >= NULL
----

query I rowsort
SELECT + + col2 + col0 + + col2 AS col2 FROM tab0 AS cor0
----
107
109
295

query II rowsort
SELECT DISTINCT col2, + col0 * - 31 + + col2 * - col0 FROM tab0 AS cor0
----
10
-3567
47
-1170
99
-12610

onlyif mysql # DIV for integer division: 
query I rowsort label-626
SELECT - - ( col0 ) + 46 DIV col1 + 24 FROM tab0 cor0
----
113
167
39

skipif mysql # not compatible
query I rowsort label-626
SELECT - - ( col0 ) + 46 / col1 + 24 FROM tab0 cor0
----
113
167
39

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * - col1 NOT BETWEEN ( + + col2 * + 37 ) AND 34
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-629
SELECT + + 78 + - - MAX( + col0 ) DIV SUM( - 87 ) AS col2 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-629
SELECT + + 78 + - - MAX ( + col0 ) / SUM ( - 87 ) AS col2 FROM tab1 AS cor0
----
78

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-632
SELECT ALL - col0 FROM tab0 cor0 WHERE NOT - 72 * - + col2 + + - 81 * CAST( col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-632
SELECT ALL - col0 FROM tab0 cor0 WHERE NOT - 72 * - + col2 + + - 81 * CAST ( col0 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + - col0 * col0 * 23 + - - 78 AS col2 FROM tab0 AS cor0
----
-174009
-216329
-5097

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - + col1 ) * - - 75 * + 13 col2 FROM tab0 AS cor0
----
20475
78975
975

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

skipif mysql # not compatible
query III rowsort label-635
SELECT * FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) + + + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT COUNT( * ) col2 FROM tab1 WHERE NOT ( NOT NULL BETWEEN + ( - col0 ) * col2 AND + 80 + 50 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-636
SELECT COUNT ( * ) col2 FROM tab1 WHERE NOT ( NOT NULL BETWEEN + ( - col0 ) * col2 AND + 80 + 50 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-637
SELECT DISTINCT + 78 DIV + ( - - 57 ) AS col1, COUNT( * ) FROM tab0, tab0 AS cor0
----
1
9

skipif mysql # not compatible
query II rowsort label-637
SELECT DISTINCT + 78 / + ( - - 57 ) AS col1, COUNT ( * ) FROM tab0, tab0 AS cor0
----
1
9

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-639
SELECT CAST( - col0 AS SIGNED ) AS col0, 75 * 98 * 17 * CAST( ( + col1 ) AS SIGNED ) AS col2 FROM tab0
----
-15
10120950
-87
2623950
-97
124950

skipif mysql # not compatible
query II rowsort label-639
SELECT CAST ( - col0 AS INTEGER ) AS col0, 75 * 98 * 17 * CAST ( ( + col1 ) AS INTEGER ) AS col2 FROM tab0
----
-15
10120950
-87
2623950
-97
124950

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

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

query II rowsort
SELECT - 54, col0 + - + col2 * col2 AS col2 FROM tab1 AS cor0
----
-54
-3396
-54
-4533
-54
-9165

onlyif mysql # DIV for integer division: 
query II rowsort label-643
SELECT DISTINCT 17 AS col1, - col1 DIV - + col0 AS col2 FROM tab2 AS cor0
----
17
0
17
1

skipif mysql # not compatible
query II rowsort label-643
SELECT DISTINCT 17 AS col1, - col1 / - + col0 AS col2 FROM tab2 AS cor0
----
17
0
17
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-644
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 50 <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-644
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 50 <= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col0 + + col0 - + 25 * + + 72 * + - 35 FROM tab2 AS cor0
----
63092
63128
63150

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT MAX( DISTINCT + 41 ) + - 5 - - COUNT( + col2 ) AS col0 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-646
SELECT MAX ( DISTINCT + 41 ) + - 5 - - COUNT ( + col2 ) AS col0 FROM tab0 AS cor0
----
39

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

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT ALL - COUNT( * ) * - 62 + 84 + - COUNT( * ) FROM tab1 cor0
----
267

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL - COUNT ( * ) * - 62 + 84 + - COUNT ( * ) FROM tab1 cor0
----
267

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN - col2 + - col0 + - 82 * - col2 * - 71 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-650
SELECT DISTINCT - 78 DIV - + 65 + 43 + - col0 FROM tab0 AS cor0
----
-43
-53
29

skipif mysql # not compatible
query I rowsort label-650
SELECT DISTINCT - 78 / - + 65 + 43 + - col0 FROM tab0 AS cor0
----
-43
-53
29

query I rowsort
SELECT ALL - 58 FROM tab2 AS cor0 WHERE NOT 0 + + col2 * - col0 + 9 IS NOT NULL
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-653
SELECT ALL - col0 + col0 FROM tab2 AS cor0 WHERE ( ( NULL <> CAST( + 94 AS DECIMAL ) ) )
----

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL - col0 + col0 FROM tab2 AS cor0 WHERE ( ( NULL <> CAST ( + 94 AS REAL ) ) )
----

query I rowsort
SELECT ALL + 40 * + ( - 35 ) + col1 + + + 22 AS col2 FROM tab1
----
-1331
-1364
-1373

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-655
SELECT DISTINCT col2 / + ( - CAST( - + col2 AS SIGNED ) ) * col2 FROM tab2 WHERE NOT NULL IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-655
SELECT DISTINCT col2 / + ( - CAST ( - + col2 AS INTEGER ) ) * col2 FROM tab2 WHERE NOT NULL IN ( col1 )
----

query I rowsort
SELECT 33 * - - col1 AS col0 FROM tab2
----
1683
2211
2541

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

query I rowsort
SELECT - + col1 * + col1 - - 48 FROM tab1 AS cor0
----
-148
-2161
23

query I rowsort
SELECT + col1 + + + 36 + - 52 * - col0 * + + col1 + + 26 AS col1 FROM tab1 AS cor0
----
22167
222513
37204

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

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

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

query I rowsort
SELECT + 59 + col2 AS col2 FROM tab2
----
117
82
99

query I rowsort
SELECT DISTINCT - col0 - - col1 AS col2 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT DISTINCT col1 * - col1 - - 54 + + col2 * + col2 FROM tab0
----
-287
-4298
9854

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-666
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE col2 * + col2 IN ( - ( + + CAST( NULL AS DECIMAL ) ), - col2 * + 83 * 27 * 71 )
----

skipif mysql # not compatible
query I rowsort label-666
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE col2 * + col2 IN ( - ( + + CAST ( NULL AS REAL ) ), - col2 * + 83 * 27 * 71 )
----

query II rowsort
SELECT DISTINCT + col1 AS col0, - col0 + - col1 * - col0 FROM tab0 AS cor0 WHERE NOT ( col2 + - - col1 - - 33 ) <> + 87 * + + 71
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 94
----

query II rowsort
SELECT DISTINCT + col2 - - - col1, col2 + + + 99 AS col2 FROM tab1 cor0
----
21
167
54
158
82
195

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT ALL + 98 * SUM( col0 / - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - 6 * - - col1 - + ( - col1 ) AND 83 + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-670
SELECT ALL + 98 * SUM ( col0 / - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - 6 * - - col1 - + ( - col1 ) AND 83 + col0
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-673
SELECT - col1 * + CAST( + CAST( - + 29 AS SIGNED ) AS SIGNED ) FROM tab2
----
1479
1943
2233

skipif mysql # not compatible
query I rowsort label-673
SELECT - col1 * + CAST ( + CAST ( - + 29 AS INTEGER ) AS INTEGER ) FROM tab2
----
1479
1943
2233

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 * - 68 col1 FROM tab2
----
4420
4420
4420

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT SUM( ALL + 88 ) FROM tab1
----
264

skipif mysql # not compatible
query I rowsort label-675
SELECT SUM ( ALL + 88 ) FROM tab1
----
264

query I rowsort
SELECT ALL + 30 * col1 FROM tab2 AS cor0
----
1530
2010
2310

onlyif mysql # DIV for integer division: 
query I rowsort label-677
SELECT - col0 DIV 26 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-3
-3

skipif mysql # not compatible
query I rowsort label-677
SELECT - col0 / 26 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-3
-3

query II rowsort
SELECT ALL - col0 AS col1, col2 FROM tab1
----
-51
96
-85
59
-91
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-679
SELECT ALL + CAST( - AVG ( DISTINCT - + ( - col1 ) ) AS SIGNED ) FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL + CAST ( - AVG ( DISTINCT - + ( - col1 ) ) AS INTEGER ) FROM tab1
----
-22

query I rowsort
SELECT - - 26 * 95 FROM tab2 WHERE NOT NULL <> 59
----

query II rowsort
SELECT DISTINCT - + col0 / + + 25 - ( - col1 ), col2 AS col0 FROM tab2 AS cor0 WHERE NOT + 29 < NULL
----

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

query I rowsort
SELECT DISTINCT 61 * + - col0 + + + ( - col2 ) AS col2 FROM tab1 AS cor0
----
-3207
-5244
-5619

query I rowsort
SELECT DISTINCT - col1 * + 85 FROM tab2 AS cor0
----
-4335
-5695
-6545

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-685
SELECT - CAST( - 93 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-685
SELECT - CAST ( - 93 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
93
93
93

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

skipif mysql # not compatible
query I rowsort label-686
SELECT DISTINCT - MIN ( ALL + 50 ) + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT col1 + + col0 * + col2 AS col2 FROM tab1 AS cor0
----
4910
5020
6235

onlyif mysql # aggregate syntax: 
query I rowsort label-688
SELECT MIN( + col1 ) * - COUNT( * ) * + SUM( DISTINCT - 58 ) + - - 8 * COUNT( * ) col2 FROM tab0 AS cor0
----
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-688
SELECT MIN ( + col1 ) * - COUNT ( * ) * + SUM ( DISTINCT - 58 ) + - - 8 * COUNT ( * ) col2 FROM tab0 AS cor0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT COUNT( * ) + 22 AS col1 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-689
SELECT COUNT ( * ) + 22 AS col1 FROM tab2
----
25

query I rowsort
SELECT ALL - col1 + + + col0 + col2 * + 19 * col0 - + col1 * 62 FROM tab2
----
16935
43853
78504

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

onlyif mysql # DIV for integer division: 
query I rowsort label-692
SELECT + 30 DIV col0 + col2 + + 63 AS col2 FROM tab2
----
103
121
86

skipif mysql # not compatible
query I rowsort label-692
SELECT + 30 / col0 + col2 + + 63 AS col2 FROM tab2
----
103
121
86

onlyif mysql # DIV for integer division: 
query I rowsort label-693
SELECT ALL + col0 DIV - 92 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL + col0 / - 92 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT + 42 * 30, col2 FROM tab2 AS cor0
----
1260
23
1260
40
1260
58

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

onlyif mysql # DIV for integer division: 
query I rowsort label-696
SELECT + + 83 DIV 3 AS col1 FROM tab0 AS cor0
----
27
27
27

skipif mysql # not compatible
query I rowsort label-696
SELECT + + 83 / 3 AS col1 FROM tab0 AS cor0
----
27
27
27

query I rowsort
SELECT ALL + - col1 + - - col2 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT col0 * + - 54 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-2484
-3456
-4050

query I rowsort
SELECT - col2 - 59 FROM tab1
----
-118
-127
-155

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT DISTINCT + 97 * - - 26 - - COUNT( * ) FROM tab0
----
2525

skipif mysql # not compatible
query I rowsort label-701
SELECT DISTINCT + 97 * - - 26 - - COUNT ( * ) FROM tab0
----
2525

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 92 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query II rowsort label-703
SELECT - MAX( DISTINCT - col2 ) + + 17, - COUNT( * ) AS col2 FROM tab1
----
76
-3

skipif mysql # not compatible
query II rowsort label-703
SELECT - MAX ( DISTINCT - col2 ) + + 17, - COUNT ( * ) AS col2 FROM tab1
----
76
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 99 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

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

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

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

query II rowsort
SELECT 35, - col0 AS col1 FROM tab0 AS cor0
----
35
-15
35
-87
35
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 30 * - - 99 NOT BETWEEN + col2 AND NULL )
----

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

query I rowsort
SELECT col2 * 34 * + + 77 - - 37 AS col1 FROM tab1 AS cor0
----
154499
178061
251365

query II rowsort
SELECT ALL 18, col2 AS col0 FROM tab0 AS cor0 WHERE NOT 21 <> ( + col0 )
----

query I rowsort
SELECT + - col2 * + + 35 FROM tab0 cor0
----
-1645
-3465
-350

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 <= 70
----
85
5
59
91
47
68

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-717
SELECT 12 / - CAST( NULL AS SIGNED ), col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-717
SELECT 12 / - CAST ( NULL AS INTEGER ), col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-720
SELECT ALL 48, COUNT( * ) AS col1 FROM tab0
----
48
3

skipif mysql # not compatible
query II rowsort label-720
SELECT ALL 48, COUNT ( * ) AS col1 FROM tab0
----
48
3

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

query I rowsort
SELECT ( + 64 ) + + - 43 AS col2 FROM tab1 AS cor0
----
21
21
21

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-724
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL >= ( col0 + - CAST( - + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-724
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL >= ( col0 + - CAST ( - + col0 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( col2 / + col0 - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT DISTINCT - 19 * - - 30 + + COUNT( * ) + 68 AS col2 FROM tab2 AS cor0
----
-499

skipif mysql # not compatible
query I rowsort label-726
SELECT DISTINCT - 19 * - - 30 + + COUNT ( * ) + 68 AS col2 FROM tab2 AS cor0
----
-499

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

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

query I rowsort
SELECT ALL - col1 * + col0 + + ( - 55 ) FROM tab1 AS cor0
----
-4332
-480
-769

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

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

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE 85 > NULL
----

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

query I rowsort
SELECT DISTINCT - col1 * - - 74 * + ( - col1 ) + + 0 AS col1 FROM tab1
----
14504
163466
1850

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-736
SELECT col2, - ( CAST( 6 AS SIGNED ) ) DIV + 90 * + col1 FROM tab2
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-736
SELECT col2, - ( CAST ( 6 AS INTEGER ) ) / + 90 * + col1 FROM tab2
----
23
0
40
0
58
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-737
SELECT + - col1 FROM tab1 WHERE + + 38 BETWEEN - CAST( col0 AS SIGNED ) AND + col1
----
-47

skipif mysql # not compatible
query I rowsort label-737
SELECT + - col1 FROM tab1 WHERE + + 38 BETWEEN - CAST ( col0 AS INTEGER ) AND + col1
----
-47

query I rowsort
SELECT - 94 - col1 * + 60 AS col2 FROM tab2
----
-3154
-4114
-4714

query I rowsort
SELECT 92 - - 19 + 92 AS col0 FROM tab1
----
203
203
203

onlyif mysql # DIV for integer division: 
query I rowsort label-740
SELECT + col2 - - col1 * + col0 * + 40 DIV - 2 col0 FROM tab2
----
-100442
-46897
-98520

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-740
SELECT + col2 - - col1 * + col0 * + 40 / - 2 col0 FROM tab2
----
-100442
-46897
-98520

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 95 * + 70 * - ( + col1 ) <> NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT - col2 - - - ( col1 ) FROM tab2
----
-117
-125
-74

query II rowsort
SELECT ALL + col1, col0 * 8 + + col1 FROM tab2 cor0
----
51
419
67
667
77
589

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-745
SELECT ALL + - 87 DIV - col0 + + col1 FROM tab0 AS cor0
----
1
22
86

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL + - 87 / - col0 + + col1 FROM tab0 AS cor0
----
1
22
86

onlyif mysql # DIV for integer division: 
query I rowsort label-746
SELECT - - 21 DIV col2 + - - col1 + - + col1 * - + col2 FROM tab2 AS cor0
----
1224
3157
3953

skipif mysql # not compatible
query I rowsort label-746
SELECT - - 21 / col2 + - - col1 + - + col1 * - + col2 FROM tab2 AS cor0
----
1224
3157
3953

query I rowsort
SELECT ALL + col1 + + + 58 FROM tab1
----
105
63
72

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

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

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

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

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

query I rowsort
SELECT + 39 * - + col0 AS col2 FROM tab1 AS cor0
----
-1989
-3315
-3549

query I rowsort
SELECT ALL - 53 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-753
SELECT DISTINCT + MAX( DISTINCT col2 ) * + MIN( ( - col1 ) ), - COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-8019
NULL

skipif mysql # not compatible
query II rowsort label-753
SELECT DISTINCT + MAX ( DISTINCT col2 ) * + MIN ( ( - col1 ) ), - COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-8019
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + col0 * + col1 col1 FROM tab0
----
-38367
-97
-98415

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

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

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

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

query I rowsort
SELECT - col1 + - 4 * - 49 * + col1 AS col1 FROM tab1 AS cor0
----
2730
9165
975

query I rowsort
SELECT ALL col0 + + - col1 * + 41 * + ( + - 98 ) AS col0 FROM tab0 AS cor0
----
325473
4115
84465

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT DISTINCT SUM( ALL 40 ) FROM tab1 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT SUM ( ALL 40 ) FROM tab1 AS cor0
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-763
SELECT ALL - col2 + - col0 DIV + col0 + - 14 * col0 AS col2 FROM tab0 AS cor0
----
-1229
-1458
-258

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL - col2 + - col0 / + col0 + - 14 * col0 AS col2 FROM tab0 AS cor0
----
-1229
-1458
-258

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-764
SELECT DISTINCT + + col0 * + CAST( NULL AS SIGNED ) - - 39 AS col0, 11 FROM tab0 WHERE NULL IS NULL
----
NULL
11

skipif mysql # not compatible
query II rowsort label-764
SELECT DISTINCT + + col0 * + CAST ( NULL AS INTEGER ) - - 39 AS col0, 11 FROM tab0 WHERE NULL IS NULL
----
NULL
11

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 51 < - col2
----

query I rowsort
SELECT DISTINCT ( - - ( + - col0 ) ) - + + 37 FROM tab0
----
-124
-134
-52

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

query I rowsort
SELECT ALL 78 - + col2 AS col2 FROM tab0
----
-21
31
68

query I rowsort
SELECT + col1 * + 16 FROM tab0
----
1296
16
336

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT - - COUNT( * ) - - - 49 + + COUNT( * ) + - - 36 col2 FROM tab1 AS cor0
----
-7

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

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

skipif mysql # not compatible
query I rowsort label-771
SELECT MAX ( col2 ) - - + 38 AS col1 FROM tab0 AS cor0
----
137

onlyif mysql # DIV for integer division: 
query II rowsort label-772
SELECT + col1 AS col1, + col1 DIV col2 FROM tab0
----
1
0
21
2
81
1

skipif mysql # not compatible
query II rowsort label-772
SELECT + col1 AS col1, + col1 / col2 FROM tab0
----
1
0
21
2
81
1

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT DISTINCT - MIN( 23 ) FROM tab0 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-773
SELECT DISTINCT - MIN ( 23 ) FROM tab0 cor0
----
-23

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

query I rowsort
SELECT DISTINCT - + col1 * + col0 + - 38 * + - col1 AS col1 FROM tab1 AS cor0
----
-182
-235
-2491

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-777
SELECT + + 30, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
30
-3

skipif mysql # not compatible
query II rowsort label-777
SELECT + + 30, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
30
-3

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <= + ( - + 83 ) + + col1 - + - 97 * + + col1 * + col0
----

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

query I rowsort
SELECT 0 * - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 96 FROM tab2 WHERE NOT + - 96 + + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * + + 58 AS col0 FROM tab1
----
2726
290
812

query I rowsort
SELECT DISTINCT 96 * + col1 * + col1 * - + 5 AS col1 FROM tab1
----
-1060320
-12000
-94080

query I rowsort
SELECT col0 * - + 79 FROM tab2
----
-3634
-5056
-5925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-786
SELECT ALL col1 + - + CAST( - 68 AS SIGNED ) FROM tab1 AS cor0
----
115
73
82

skipif mysql # not compatible
query I rowsort label-786
SELECT ALL col1 + - + CAST ( - 68 AS INTEGER ) FROM tab1 AS cor0
----
115
73
82

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT 18 * 28 * + 95 + COUNT( * ) FROM tab2
----
47883

skipif mysql # not compatible
query I rowsort label-787
SELECT 18 * 28 * + 95 + COUNT ( * ) FROM tab2
----
47883

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 52 * - ( - + 9 ) IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 23 col1, + col0 FROM tab0 AS cor0
----
23
15
23
87
23
97

query III rowsort
SELECT * FROM tab1 cor0 WHERE 67 * - + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT DISTINCT MIN( 19 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
19

skipif mysql # not compatible
query I rowsort label-791
SELECT DISTINCT MIN ( 19 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
19

query I rowsort
SELECT DISTINCT + 49 * 55 * - - ( 9 ) - col2 + - - col1 FROM tab2
----
24264
24283
24292

query I rowsort
SELECT ALL + col0 + - + 96 AS col2 FROM tab0
----
-81
-9
1

query I rowsort
SELECT + col1 - + col1 + + 94 * - - 61 FROM tab0
----
5734
5734
5734

query I rowsort
SELECT + 20 - 32 FROM tab0
----
-12
-12
-12

query I rowsort
SELECT DISTINCT + + 83 * col0 AS col0 FROM tab1 WHERE - + 7 <> + col2
----
4233
7055
7553

query I rowsort
SELECT ALL 16 + + 7 FROM tab0 WHERE NOT - - 47 = + col1
----
23
23
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 col0 FROM tab0 AS cor0 WHERE NOT - 5 + + + col2 / - + col1 IS NULL
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-799
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( ( 7 ) + col1, + col1, col1, - col0, CAST( col0 AS SIGNED ), - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-799
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( ( 7 ) + col1, + col1, col1, - col0, CAST ( col0 AS INTEGER ), - col0 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 + 4 col1 FROM tab2 AS cor0 WHERE NOT 76 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT ALL - MAX( DISTINCT + 37 ) col0 FROM tab0
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-802
SELECT ALL - MAX ( DISTINCT + 37 ) col0 FROM tab0
----
-37

query I rowsort
SELECT ALL - ( - - 92 ) AS col2 FROM tab1 cor0
----
-92
-92
-92

query I rowsort
SELECT + + 57 * - + col2 AS col1 FROM tab1 AS cor0
----
-3363
-3876
-5472

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

query II rowsort
SELECT col2, 4 - - + col0 AS col0 FROM tab1
----
59
89
68
95
96
55

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

skipif mysql # not compatible
query I rowsort label-807
SELECT + 27 * - COUNT ( ALL - 33 ) FROM tab2
----
-81

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 5 col1 FROM tab2
----
255
335
385

onlyif mysql # aggregate syntax: 
query II rowsort label-810
SELECT DISTINCT + 40, MAX( ALL + 5 ) AS col1 FROM tab0
----
40
5

skipif mysql # not compatible
query II rowsort label-810
SELECT DISTINCT + 40, MAX ( ALL + 5 ) AS col1 FROM tab0
----
40
5

query I rowsort
SELECT ALL + 26 AS col0 FROM tab0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT COUNT( * ) + + - COUNT( * ) - 29 * + - COUNT( * ) FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-812
SELECT COUNT ( * ) + + - COUNT ( * ) - 29 * + - COUNT ( * ) FROM tab2 AS cor0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + + 69 col1 FROM tab2 AS cor0
----
-8
18
2

onlyif mysql # DIV for integer division: 
query I rowsort label-814
SELECT DISTINCT - 42 + - 12 DIV + 74 AS col0 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-814
SELECT DISTINCT - 42 + - 12 / + 74 AS col0 FROM tab0
----
-42

query I rowsort
SELECT DISTINCT 65 + 33 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-816
SELECT ALL + 62 DIV + CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
6

skipif mysql # not compatible
query I rowsort label-816
SELECT ALL + 62 / + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-817
SELECT DISTINCT - CAST( + - ( + - col1 ) AS SIGNED ) * - 27 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + ( + - 57 ) / col1, + 72 )
----

skipif mysql # not compatible
query I rowsort label-817
SELECT DISTINCT - CAST ( + - ( + - col1 ) AS INTEGER ) * - 27 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + ( + - 57 ) / col1, + 72 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + + + col1 AS col2, + col1 col2 FROM tab0 AS cor0
----
100
1
128
81
31
21

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-820
SELECT ALL * FROM tab1 cor0 WHERE + - CAST( NULL AS SIGNED ) IS NOT NULL OR col2 + - - col2 NOT IN ( + + ( col2 ), col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-820
SELECT ALL * FROM tab1 cor0 WHERE + - CAST ( NULL AS INTEGER ) IS NOT NULL OR col2 + - - col2 NOT IN ( + + ( col2 ), col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + - ( + col2 ) * col2 AS col1 FROM tab0 AS cor0
----
-110
-2256
-9900

query I rowsort
SELECT - 68 FROM tab2 AS cor0 WHERE + 81 IS NOT NULL
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT ALL 97 + 89 + - + COUNT( + 95 ) AS col1 FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-823
SELECT ALL 97 + 89 + - + COUNT ( + 95 ) AS col1 FROM tab1
----
183

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT 46 * MIN( DISTINCT + col2 ) FROM tab2
----
1058

skipif mysql # not compatible
query I rowsort label-826
SELECT 46 * MIN ( DISTINCT + col2 ) FROM tab2
----
1058

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE NOT - - col1 + + - 31 * - - 46 * - col1 - + + col0 > ( + col2 )
----

query II rowsort
SELECT + col0, + 7 + - col0 FROM tab1 AS cor0
----
51
-44
85
-78
91
-84

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

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

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

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 2 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT + - COUNT( * ) + - SUM( + + col2 ) FROM tab2 AS cor0
----
-124

skipif mysql # not compatible
query I rowsort label-832
SELECT + - COUNT ( * ) + - SUM ( + + col2 ) FROM tab2 AS cor0
----
-124

query I rowsort
SELECT ALL - col2 * - + col2 + - - 43 + - col2 AS col2 FROM tab1 AS cor0
----
3465
4599
9163

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT DISTINCT - 63 + - COUNT( * ) AS col1 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-836
SELECT DISTINCT - 63 + - COUNT ( * ) AS col1 FROM tab0
----
-66

query I rowsort
SELECT ALL col0 + - - col2 AS col1 FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-838
SELECT DISTINCT - col2 - col2 * + col2 AS col0 FROM tab2 WHERE - - 8 + - + col0 - - CAST( - - 87 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-838
SELECT DISTINCT - col2 - col2 * + col2 AS col0 FROM tab2 WHERE - - 8 + - + col0 - - CAST ( - - 87 AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-839
SELECT DISTINCT + 97 DIV - col0 FROM tab0
----
-1
-6

skipif mysql # not compatible
query I rowsort label-839
SELECT DISTINCT + 97 / - col0 FROM tab0
----
-1
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-840
SELECT col1 DIV - ( - 53 ) AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-840
SELECT col1 / - ( - 53 ) AS col1 FROM tab0
----
0
0
1

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

skipif mysql # not compatible
query I rowsort label-841
SELECT CAST ( + + 92 AS INTEGER ) FROM tab1
----
92
92
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-842
SELECT + MIN( - - CAST( + 38 AS SIGNED ) ) * 93 col1 FROM tab1
----
3534

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-842
SELECT + MIN ( - - CAST ( + 38 AS INTEGER ) ) * 93 col1 FROM tab1
----
3534

query I rowsort
SELECT ALL - col2 * + + col0 * + + ( - + col2 ) + + 74 FROM tab1
----
295959
420858
470090

query I rowsort
SELECT - col2 FROM tab0 WHERE - col2 / col2 >= NULL
----

query II rowsort
SELECT DISTINCT 52 AS col1, 54 - col2 - + 38 FROM tab2 AS cor0
----
52
-24
52
-42
52
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT ALL - SUM( - + 12 ) col2 FROM tab2 cor0
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-846
SELECT ALL - SUM ( - + 12 ) col2 FROM tab2 cor0
----
36

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

query I rowsort
SELECT DISTINCT - col1 * + col0 FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( - col2 * - + 27 / - 24, col0 - - + col2 * + col0, 9 + + + 42 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 80 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-850
SELECT CAST( - 67 AS SIGNED ) AS col2 FROM tab1
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-850
SELECT CAST ( - 67 AS INTEGER ) AS col2 FROM tab1
----
-67
-67
-67

query I rowsort
SELECT ALL + ( + 76 ) FROM tab1
----
76
76
76

query I rowsort
SELECT DISTINCT - 34 * - 41 AS col2 FROM tab2
----
1394

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-853
SELECT - CAST( + + col0 AS SIGNED ), + 23 + - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + 70 * col1 + 55
----

skipif mysql # not compatible
query II rowsort label-853
SELECT - CAST ( + + col0 AS INTEGER ), + 23 + - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + 70 * col1 + 55
----

query III rowsort
SELECT 35 * + + ( + col1 ) AS col2, + col1 * + ( 22 ) * + col1 + + ( + 70 ) + - col1 + - + col2, col2 FROM tab2
----
9 values hashing to 936bff0d660d01cf409ec726792bdf04

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-855
SELECT - SUM( col0 ) DIV - + COUNT( * ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-855
SELECT - SUM ( col0 ) / - + COUNT ( * ) FROM tab0
----
66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT 4 * - COUNT( * ) AS col1 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-857
SELECT 4 * - COUNT ( * ) AS col1 FROM tab0
----
-12

query II rowsort
SELECT - - 77, col0 AS col2 FROM tab0 AS cor0
----
77
15
77
87
77
97

query I rowsort
SELECT ALL + ( + col1 ) + col1 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT + + ( - SUM( ALL + ( - + 18 ) ) ) AS col2 FROM tab1 cor0
----
54

skipif mysql # not compatible
query I rowsort label-860
SELECT + + ( - SUM ( ALL + ( - + 18 ) ) ) AS col2 FROM tab1 cor0
----
54

query I rowsort
SELECT - ( - + ( - + col0 ) ) + 4 * + 9 * 80 FROM tab1
----
2789
2795
2829

query II rowsort
SELECT ALL col1 * + col1 AS col2, col2 AS col0 FROM tab0
----
1
99
441
10
6561
47

query I rowsort
SELECT col2 + - col0 + 97 FROM tab0
----
129
20
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 9 + - 54 col1 FROM tab1
----
-114
-148
-154

query II rowsort
SELECT ALL + 70 * + - col1, + col2 AS col0 FROM tab0
----
-1470
10
-5670
47
-70
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( - 5 ) col2 FROM tab1
----
54
63
91

onlyif mysql # aggregate syntax: 
query II rowsort label-867
SELECT DISTINCT SUM( DISTINCT 68 ) + + - COUNT( * ) * - - 26 AS col2, 53 FROM tab0
----
-10
53

skipif mysql # not compatible
query II rowsort label-867
SELECT DISTINCT SUM ( DISTINCT 68 ) + + - COUNT ( * ) * - - 26 AS col2, 53 FROM tab0
----
-10
53

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

query I rowsort
SELECT 14 + 23 + col0 FROM tab1
----
122
128
88

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT - - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NOT col2 + col0 >= col2 + col1 )
----
2

skipif mysql # not compatible
query I rowsort label-870
SELECT - - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NOT col2 + col0 >= col2 + col1 )
----
2

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

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

query I rowsort
SELECT + col0 FROM tab1 cor0 WHERE ( + + 21 NOT IN ( - + col0, 88 * - col2 * col1 - - col0 / col1 ) )
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col0 ) NOT BETWEEN 96 - col1 + + 17 AND NULL
----
46
51
23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT - MAX( col1 ) FROM tab2 AS cor0 WHERE - col1 / 64 IS NOT NULL
----
-77

skipif mysql # not compatible
query I rowsort label-875
SELECT - MAX ( col1 ) FROM tab2 AS cor0 WHERE - col1 / 64 IS NOT NULL
----
-77

query I rowsort
SELECT ALL + ( + 93 ) AS col2 FROM tab1 AS cor0
----
93
93
93

query I rowsort
SELECT + - col1 + - 21 FROM tab0 AS cor0
----
-102
-22
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-878
SELECT DISTINCT CAST( NULL AS SIGNED ) - - 50 col2 FROM tab1 AS cor0
----
NULL

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 12 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT ALL + COUNT( * ) * + 37 AS col1 FROM tab2 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-880
SELECT ALL + COUNT ( * ) * + 37 AS col1 FROM tab2 AS cor0
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-881
SELECT + CAST( NULL AS SIGNED ) * + 93 + MAX( + col2 ) FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT ALL - ( - - col1 ) * + col0 + 40 FROM tab2 AS cor0
----
-2306
-4888
-4985

query I rowsort
SELECT 97 * col2 * + 58 FROM tab0
----
264422
556974
56260

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 86 + - col1 BETWEEN 92 AND NULL
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 66 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + - ( + - 93 ) * 52 >= NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-891
SELECT DISTINCT 34 * + CAST( NULL AS SIGNED ) AS col2, 98 AS col1 FROM tab0 AS cor0
----
NULL
98

skipif mysql # not compatible
query II rowsort label-891
SELECT DISTINCT 34 * + CAST ( NULL AS INTEGER ) AS col2, 98 AS col1 FROM tab0 AS cor0
----
NULL
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT ALL + - MAX( ALL - 51 ) col1 FROM tab2 cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-894
SELECT ALL + - MAX ( ALL - 51 ) col1 FROM tab2 cor0
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-895
SELECT 56, - 68 DIV col2 AS col2 FROM tab1
----
56
-1
56
-1
56
0

skipif mysql # not compatible
query II rowsort label-895
SELECT 56, - 68 / col2 AS col2 FROM tab1
----
56
-1
56
-1
56
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-896
SELECT DISTINCT 49 - col2 + + CAST( NULL AS DECIMAL ) + + 61 + + - col1 * - - col0 + - ( + 52 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-896
SELECT DISTINCT 49 - col2 + + CAST ( NULL AS REAL ) + + 61 + + - col1 * - - col0 + - ( + 52 ) FROM tab0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT DISTINCT + 57 + - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-898
SELECT DISTINCT + 57 + - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
60

query I rowsort
SELECT DISTINCT 6 AS col1 FROM tab0 cor0
----
6

query I rowsort
SELECT + 6 + + + col2 AS col2 FROM tab0 AS cor0
----
105
16
53

query II rowsort
SELECT - col2 + 25 + + ( - col0 ) + + 20 * + col2, - 90 AS col1 FROM tab1 AS cor0
----
1061
-90
1226
-90
1798
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-902
SELECT 17 DIV + + 83 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-902
SELECT 17 / + + 83 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 * 20 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-904
SELECT ALL + 37 * - - CAST( NULL AS SIGNED ) / + - COUNT( * ), 1 AS col0 FROM tab1, tab0 AS cor0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-904
SELECT ALL + 37 * - - CAST ( NULL AS INTEGER ) / + - COUNT ( * ), 1 AS col0 FROM tab1, tab0 AS cor0
----
NULL
1

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

query I rowsort
SELECT DISTINCT + col1 * + + 95 * - col0 * + col0 AS col1 FROM tab0 AS cor0
----
-15100155
-1731375
-893855

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-907
SELECT + col1 * - 30 AS col1, col2 DIV - + col0 + + 40 AS col2 FROM tab2 AS cor0 WHERE NOT CAST( 96 AS SIGNED ) = + + 19 + + 64
----
-1530
40
-2010
40
-2310
40

skipif mysql # not compatible
query II rowsort label-907
SELECT + col1 * - 30 AS col1, col2 / - + col0 + + 40 AS col2 FROM tab2 AS cor0 WHERE NOT CAST ( 96 AS INTEGER ) = + + 19 + + 64
----
-1530
40
-2010
40
-2310
40

query I rowsort
SELECT DISTINCT 61 * + - col1 FROM tab0 AS cor0
----
-1281
-4941
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT ALL - 34 * + + SUM( ALL + 12 ) AS col2 FROM tab2
----
-1224

skipif mysql # not compatible
query I rowsort label-909
SELECT ALL - 34 * + + SUM ( ALL + 12 ) AS col2 FROM tab2
----
-1224

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

skipif mysql # not compatible
query I rowsort label-910
SELECT - COUNT ( ALL + 38 ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - 1 * col1 * - 7 * - col0 FROM tab1
----
-2975
-29939
-4998

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 - + - col1 - + - ( - col0 ) col2 FROM tab2 WHERE NOT col1 NOT BETWEEN NULL AND - 48
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-913
SELECT - col1 col2, + CAST( NULL AS SIGNED ) FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-913
SELECT - col1 col2, + CAST ( NULL AS INTEGER ) FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 0 col0, + 26 AS col1 FROM tab0
----
0
26

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-916
SELECT ALL + CAST( + ( + COUNT( - 87 ) ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-916
SELECT ALL + CAST ( + ( + COUNT ( - 87 ) ) AS INTEGER ) FROM tab2
----
3

query I rowsort
SELECT col0 * ( col2 ) * col0 - + 4 AS col1 FROM tab2
----
163836
326246
48664

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT DISTINCT MAX( ALL - col1 ) col0 FROM tab1
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-918
SELECT DISTINCT MAX ( ALL - col1 ) col0 FROM tab1
----
-5

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN + 80 AND 12 * - col2
----

query II rowsort
SELECT ALL - - col2 * col0 + + col0 + - col1 + - 14 + col2 AS col2, col0 AS col2 FROM tab2 AS cor0
----
1062
46
2573
64
4402
75

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

onlyif mysql # aggregate syntax: 
query II rowsort label-923
SELECT ALL + COUNT( * ) * SUM( - col2 ) AS col1, + 65 FROM tab2 AS cor0
----
-363
65

skipif mysql # not compatible
query II rowsort label-923
SELECT ALL + COUNT ( * ) * SUM ( - col2 ) AS col1, + 65 FROM tab2 AS cor0
----
-363
65

query I rowsort
SELECT + + ( 72 ) * + col0 + - + col2 FROM tab1 AS cor0
----
3576
6061
6484

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

query I rowsort
SELECT ALL col2 * - 63 FROM tab2
----
-1449
-2520
-3654

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + - col0 + col1 * col0 col1 FROM tab1 AS cor0
----
255
4095
612

query I rowsort
SELECT ( + + col1 ) + + col0 - + - col2 * col2 AS col1 FROM tab0 AS cor0
----
208
2305
9899

onlyif mysql # DIV for integer division: 
query I rowsort label-930
SELECT DISTINCT - - col2 DIV 35 + - - 28 AS col1 FROM tab2 cor0
----
28
29

skipif mysql # not compatible
query I rowsort label-930
SELECT DISTINCT - - col2 / 35 + - - 28 AS col1 FROM tab2 cor0
----
28
29

query I rowsort
SELECT - 47 + 63 + - + col0 FROM tab1 AS cor0
----
-35
-69
-75

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-934
SELECT DISTINCT - col0 + 41 + col2 DIV 78 FROM tab1
----
-44
-50
-9

skipif mysql # not compatible
query I rowsort label-934
SELECT DISTINCT - col0 + 41 + col2 / 78 FROM tab1
----
-44
-50
-9

query I rowsort
SELECT ALL col0 - - + col2 + + 86 + col2 * - col1 * col0 FROM tab2
----
-196930
-291231
-53803

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

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

query I rowsort
SELECT ALL - 69 * - + 25 * col1 FROM tab2 AS cor0
----
115575
132825
87975

query I rowsort
SELECT DISTINCT col0 * + + 95 AS col0 FROM tab2 AS cor0 WHERE NOT col1 / + col2 * 42 > + col1 * col1
----
4370
6080
7125

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

skipif mysql # not compatible
query I rowsort label-939
SELECT - MAX ( DISTINCT col2 ) AS col2 FROM tab0 cor0
----
-99

query I rowsort
SELECT DISTINCT ( 18 ) + + col0 AS col1 FROM tab1 AS cor0
----
103
109
69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT + 6 + - - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
15

skipif mysql # not compatible
query I rowsort label-942
SELECT + 6 + - - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-943
SELECT ALL + - col2 FROM tab1 AS cor0 WHERE NULL IN ( + col2, + col1, + CAST( - col0 AS SIGNED ) * col2 + + col0, - col2 )
----

skipif mysql # not compatible
query I rowsort label-943
SELECT ALL + - col2 FROM tab1 AS cor0 WHERE NULL IN ( + col2, + col1, + CAST ( - col0 AS INTEGER ) * col2 + + col0, - col2 )
----

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

skipif mysql # not compatible
query II rowsort label-944
SELECT COUNT ( * ), COUNT ( * ) FROM tab0 cor0
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-945
SELECT ALL - - COUNT( * ) col0, 18 col1 FROM tab1 AS cor0
----
3
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-945
SELECT ALL - - COUNT ( * ) col0, 18 col1 FROM tab1 AS cor0
----
3
18

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

query II rowsort
SELECT col1 AS col1, 1 + col1 AS col0 FROM tab1 AS cor0
----
14
15
47
48
5
6

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

query I rowsort
SELECT DISTINCT + col0 * + - 62 AS col2 FROM tab2 AS cor0
----
-2852
-3968
-4650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-950
SELECT - CAST( NULL AS SIGNED ), - COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-950
SELECT - CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT 6 + - SUM( ALL + + col1 ) col0 FROM tab2 AS cor0 WHERE NOT - col0 * - - ( - col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-951
SELECT 6 + - SUM ( ALL + + col1 ) col0 FROM tab2 AS cor0 WHERE NOT - col0 * - - ( - col0 ) IS NOT NULL
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 50 * 89 col1, - col1 * col1 FROM tab0
----
4450
-1
4450
-441
4450
-6561

query I rowsort
SELECT ALL + - 9 FROM tab2 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT DISTINCT - SUM( ALL ( - 83 ) ) FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-955
SELECT DISTINCT - SUM ( ALL ( - 83 ) ) FROM tab1
----
249

query I rowsort
SELECT ALL + col2 * - + 27 * + 55 AS col2 FROM tab2
----
-34155
-59400
-86130

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-957
SELECT - CAST( + col1 AS SIGNED ) DIV - 15 + + col0 FROM tab0
----
20
88
97

skipif mysql # not compatible
query I rowsort label-957
SELECT - CAST ( + col1 AS INTEGER ) / - 15 + + col0 FROM tab0
----
20
88
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT DISTINCT + MIN( + col0 ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-960
SELECT DISTINCT + MIN ( + col0 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT SUM( DISTINCT - + col2 ) * COUNT( * ) * - - 25 + - 59 AS col2 FROM tab0
----
-11759

skipif mysql # not compatible
query I rowsort label-961
SELECT SUM ( DISTINCT - + col2 ) * COUNT ( * ) * - - 25 + - 59 AS col2 FROM tab0
----
-11759

query I rowsort
SELECT ALL + 68 + + 95 AS col0 FROM tab0
----
163
163
163

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT ( - - 20 ) + - COUNT( * ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-963
SELECT ( - - 20 ) + - COUNT ( * ) FROM tab1
----
17

query I rowsort
SELECT DISTINCT col2 * 89 AS col0 FROM tab0 AS cor0
----
4183
8811
890

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT COUNT( * ) * - COUNT( DISTINCT - - ( col0 ) ) FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-965
SELECT COUNT ( * ) * - COUNT ( DISTINCT - - ( col0 ) ) FROM tab0 cor0
----
-9

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-967
SELECT - col1 DIV 27 * - + col0 * - col0 AS col1 FROM tab0 AS cor0
----
-675
0
0

skipif mysql # not compatible
query I rowsort label-967
SELECT - col1 / 27 * - + col0 * - col0 AS col1 FROM tab0 AS cor0
----
-675
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT DISTINCT COUNT( * ) * MAX( - - col1 ) FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-968
SELECT DISTINCT COUNT ( * ) * MAX ( - - col1 ) FROM tab0 AS cor0
----
243

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT - MAX( DISTINCT + ( col1 ) ) FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-81

skipif mysql # not compatible
query I rowsort label-971
SELECT - MAX ( DISTINCT + ( col1 ) ) FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-972
SELECT ALL + 0 + + + 51 col2, - col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NULL IS NULL
----
51
NULL
51
NULL
51
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT DISTINCT MAX( - + 62 ) - - 70 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-973
SELECT DISTINCT MAX ( - + 62 ) - - 70 FROM tab1
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-974
SELECT - col0 DIV 5 - + 48 FROM tab0
----
-51
-65
-67

skipif mysql # not compatible
query I rowsort label-974
SELECT - col0 / 5 - + 48 FROM tab0
----
-51
-65
-67

query I rowsort
SELECT - 74 - - + col0 * 13 + col2 FROM tab2
----
547
798
959

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-977
SELECT DISTINCT 92 DIV - COUNT( * ) - - - COUNT( * ) col2 FROM tab0
----
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-977
SELECT DISTINCT 92 / - COUNT ( * ) - - - COUNT ( * ) col2 FROM tab0
----
-33

query I rowsort
SELECT DISTINCT + col1 - + - col2 FROM tab1 AS cor0
----
110
115
64

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

onlyif mysql # DIV for integer division: 
query II rowsort label-980
SELECT + col0 DIV + col1, 30 AS col2 FROM tab0 cor0
----
0
30
4
30
97
30

skipif mysql # not compatible
query II rowsort label-980
SELECT + col0 / + col1, 30 AS col2 FROM tab0 cor0
----
0
30
4
30
97
30

query I rowsort
SELECT DISTINCT ( 9 ) AS col0 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT COUNT( * ) + + MIN( ALL - 37 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-28

skipif mysql # not compatible
query I rowsort label-982
SELECT COUNT ( * ) + + MIN ( ALL - 37 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT MAX( DISTINCT 63 ) AS col0 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-983
SELECT MAX ( DISTINCT 63 ) AS col0 FROM tab0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT DISTINCT + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 24 * - + 6 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-984
SELECT DISTINCT + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 24 * - + 6 IS NULL
----
3

query I rowsort
SELECT ALL 4 * + col2 * + col2 FROM tab0 AS cor0 WHERE NOT col2 + + - col0 <> ( - 25 )
----

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

query I rowsort
SELECT 85 * - + col1 AS col0 FROM tab1 AS cor0
----
-1190
-3995
-425

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

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

query II rowsort
SELECT ALL - col1, - col0 * - col2 AS col2 FROM tab1
----
-14
4896
-47
6188
-5
5015

onlyif mysql # DIV for integer division: 
query I rowsort label-990
SELECT - col1 DIV 37 AS col1 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-990
SELECT - col1 / 37 AS col1 FROM tab0
----
-2
0
0

query I rowsort
SELECT - col2 * 91 * + 15 * - 97 FROM tab2
----
3045315
5296200
7679490

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT DISTINCT 62 * - + COUNT( * ) FROM tab2
----
-186

skipif mysql # not compatible
query I rowsort label-992
SELECT DISTINCT 62 * - + COUNT ( * ) FROM tab2
----
-186

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

skipif mysql # not compatible
query I rowsort label-993
SELECT CAST ( NULL AS INTEGER ) + ( - AVG ( DISTINCT - + ( + col1 ) ) ) * 25 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-994
SELECT ALL MAX( ALL - CAST( - - col1 AS SIGNED ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-994
SELECT ALL MAX ( ALL - CAST ( - - col1 AS INTEGER ) ) FROM tab1
----
-5

query I rowsort
SELECT DISTINCT + ( - col1 ) + - + col0 + + col0 * ( col1 ) FROM tab2 AS cor0
----
2249
4787
4883

query I rowsort
SELECT ALL - + col0 AS col0 FROM tab1 AS cor0 WHERE NULL = col1
----

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

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

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE - 76 IS NULL
----

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

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

query I rowsort
SELECT ALL col1 + col0 * - 18 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1002
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * - col2 + CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1002
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * - col2 + CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1004
SELECT col2 DIV - CAST( - 93 AS SIGNED ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1004
SELECT col2 / - CAST ( - 93 AS INTEGER ) AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col1 * 79 ) IN ( 78 * col0 )
----

query I rowsort
SELECT + 95 * - col2 AS col0 FROM tab0
----
-4465
-9405
-950

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1007
SELECT DISTINCT * FROM tab2 WHERE NULL > ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1007
SELECT DISTINCT * FROM tab2 WHERE NULL > ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + 67 + col2 AS col0 FROM tab2
----
107
125
90

query I rowsort
SELECT DISTINCT - 74 FROM tab1 WHERE col2 NOT BETWEEN + col0 AND - col2
----
-74

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - 51
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <> + 87 / col0
----

query I rowsort
SELECT col1 * + 41 AS col2 FROM tab0
----
3321
41
861

query I rowsort
SELECT 7 + - col2 * + col2 FROM tab1
----
-3474
-4617
-9209

query I rowsort
SELECT 44 + + 49 FROM tab2
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT COUNT( * ) + 50 AS col1 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-1015
SELECT COUNT ( * ) + 50 AS col1 FROM tab2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT ALL - COUNT( * ) * + 52 FROM tab2
----
-156

skipif mysql # not compatible
query I rowsort label-1016
SELECT ALL - COUNT ( * ) * + 52 FROM tab2
----
-156

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

query I rowsort
SELECT ALL - col2 * - col0 AS col0 FROM tab1 WHERE NOT 88 > NULL
----

query I rowsort
SELECT + col2 + 35 AS col0 FROM tab0
----
134
45
82

query I rowsort
SELECT ALL + 96 * col0 AS col1 FROM tab2 AS cor0
----
4416
6144
7200

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT ALL ( SUM( ALL - col0 ) ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-227

skipif mysql # not compatible
query I rowsort label-1021
SELECT ALL ( SUM ( ALL - col0 ) ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-227

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) >= 82 * - 4 + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 NOT IN ( 15 )
----

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

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

query I rowsort
SELECT - 58 AS col0 FROM tab0 cor0
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT ALL - SUM( 14 ) AS col1 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-1026
SELECT ALL - SUM ( 14 ) AS col1 FROM tab2 AS cor0
----
-42

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

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

skipif mysql # not compatible
query I rowsort label-1028
SELECT DISTINCT - 90 / + + col0 FROM tab0
----
-1
-6
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1029
SELECT 2 DIV 15 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1029
SELECT 2 / 15 FROM tab1
----
0
0
0

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 7 * - col1 + 98 ) > ( ( + col0 ) )
----

query I rowsort
SELECT 10 * col1 * 68 FROM tab0
----
14280
55080
680

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT COUNT( ALL col2 ) col1 FROM tab2 WHERE NOT + col1 BETWEEN NULL AND + col2 + col2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1035
SELECT COUNT ( ALL col2 ) col1 FROM tab2 WHERE NOT + col1 BETWEEN NULL AND + col2 + col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1036
SELECT ( + - 58 ) * CAST( 93 * + COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
-16182

skipif mysql # not compatible
query I rowsort label-1036
SELECT ( + - 58 ) * CAST ( 93 * + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
-16182

query I rowsort
SELECT 51 * - 24 AS col2 FROM tab0
----
-1224
-1224
-1224

onlyif mysql # DIV for integer division: 
query I rowsort label-1038
SELECT - 74 DIV col1 * - col2 FROM tab2 AS cor0
----
0
23
58

skipif mysql # not compatible
query I rowsort label-1038
SELECT - 74 / col1 * - col2 FROM tab2 AS cor0
----
0
23
58

query I rowsort
SELECT ALL - 40 * 84 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 67 ) <> + col2 AND NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1041
SELECT CAST( NULL AS SIGNED ) + + 35 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1041
SELECT CAST ( NULL AS INTEGER ) + + 35 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab1 WHERE NULL < - 5
----

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

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

query I rowsort
SELECT col1 FROM tab2 WHERE ( 31 ) BETWEEN NULL AND + col1
----

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT + 14 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col0 + - 14 FROM tab0 WHERE NOT ( + col1 ) BETWEEN ( col2 ) AND ( col1 )
----
83

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

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

query I rowsort
SELECT - - col0 FROM tab0 cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT - 37 + 17 AS col1 FROM tab0 AS cor0
----
-20

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

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

query I rowsort
SELECT DISTINCT - + 85 AS col2 FROM tab0 cor0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT ALL 90 + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-1054
SELECT ALL 90 + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
87

query I rowsort
SELECT col0 + + col1 AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL AND ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT DISTINCT COUNT( * ) + + COUNT( DISTINCT + col0 ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT COUNT ( * ) + + COUNT ( DISTINCT + col0 ) AS col1 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT 19 + COUNT( * ) FROM tab1 WHERE NULL NOT BETWEEN + col1 AND - 67
----
19

skipif mysql # not compatible
query I rowsort label-1057
SELECT 19 + COUNT ( * ) FROM tab1 WHERE NULL NOT BETWEEN + col1 AND - 67
----
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 - - + 77 - - - ( - + col0 ) col1 FROM tab1
----
118
152
158

query II rowsort
SELECT - 49 + - + 4, 31 * + col1 AS col2 FROM tab1
----
-53
1457
-53
155
-53
434

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 * + col1 col2 FROM tab2
----
4947
6499
7469

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

query I rowsort
SELECT DISTINCT 64 * 64 FROM tab2
----
4096

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT DISTINCT SUM( - + 68 ) FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT SUM ( - + 68 ) FROM tab1
----
-204

onlyif mysql # DIV for integer division: 
query I rowsort label-1064
SELECT ALL 82 DIV col2 * - 23 FROM tab1
----
-23
-23
0

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL 82 / col2 * - 23 FROM tab1
----
-23
-23
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1065
SELECT DISTINCT + CAST( + 67 AS SIGNED ) AS col2 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-1065
SELECT DISTINCT + CAST ( + 67 AS INTEGER ) AS col2 FROM tab1
----
67

query I rowsort
SELECT - - 55 AS col1 FROM tab1 cor0
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT ALL ( + MIN( DISTINCT - col2 ) ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1067
SELECT ALL ( + MIN ( DISTINCT - col2 ) ) FROM tab1 AS cor0
----
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 41 <> - col2 * col2
----

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

query I rowsort
SELECT + col1 * ( + col0 ) - - 10 - 81 / col2 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query II rowsort
SELECT ALL + col1, ( col0 ) FROM tab1 cor0
----
14
51
47
91
5
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT + COUNT( + 87 ) FROM tab0 AS cor0 WHERE NOT col1 + + col2 * + col2 + + col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1073
SELECT + COUNT ( + 87 ) FROM tab0 AS cor0 WHERE NOT col1 + + col2 * + col2 + + col0 >= NULL
----
0

query I rowsort
SELECT ALL + - col0 + + 83 FROM tab2 AS cor0
----
19
37
8

query I rowsort
SELECT + col0 + - - col2 + - 30 FROM tab1
----
114
117
129

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT - COUNT( * ) * MAX( + col2 ) * + MAX( + 77 ) + + COUNT( * ) AS col1 FROM tab1
----
-22173

skipif mysql # not compatible
query I rowsort label-1076
SELECT - COUNT ( * ) * MAX ( + col2 ) * + MAX ( + 77 ) + + COUNT ( * ) AS col1 FROM tab1
----
-22173

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

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

query II rowsort
SELECT col1 + + + col2, col2 * + - col1 * - 74 + - col2 * + col1 AS col2 FROM tab0
----
100
7227
128
277911
31
15330

query I rowsort
SELECT col2 + + col0 * 60 AS col2 FROM tab1
----
3156
5159
5528

query I rowsort
SELECT ALL - col2 + - 77 FROM tab0
----
-124
-176
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1081
SELECT DISTINCT + MAX( - CAST( NULL AS SIGNED ) ), - 75 AS col2 FROM tab2
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-1081
SELECT DISTINCT + MAX ( - CAST ( NULL AS INTEGER ) ), - 75 AS col2 FROM tab2
----
NULL
-75

query II rowsort
SELECT DISTINCT 37 AS col2, + 5 FROM tab0
----
37
5

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NULL > col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * - 19 + + 98 + 13 + 98 BETWEEN + 20 AND ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1085
SELECT ALL - CAST( col0 AS SIGNED ) + - ( 28 ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-103
-74
-92

skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL - CAST ( col0 AS INTEGER ) + - ( 28 ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-103
-74
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-1086
SELECT 36 DIV 65 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1086
SELECT 36 / 65 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1087
SELECT * FROM tab0 WHERE col2 + - - CAST( NULL AS SIGNED ) + + 43 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1087
SELECT * FROM tab0 WHERE col2 + - - CAST ( NULL AS INTEGER ) + + 43 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT col2 + - - 85 AS col2 FROM tab0 AS cor0
----
132
184
95

query II rowsort
SELECT ALL - ( - - 54 ), col1 FROM tab2 AS cor0
----
-54
51
-54
67
-54
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT + MAX( ALL col1 ) * + COUNT( col1 ) / 67 AS col2 FROM tab2 AS cor0 WHERE col2 = + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1091
SELECT + MAX ( ALL col1 ) * + COUNT ( col1 ) / 67 AS col2 FROM tab2 AS cor0 WHERE col2 = + col1
----
NULL

query I rowsort
SELECT - col0 * - 6 + - ( + - col1 ) + - 87 AS col2 FROM tab2 AS cor0
----
240
374
430

query II rowsort
SELECT DISTINCT col1, 22 AS col2 FROM tab1
----
14
22
47
22
5
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT + 95 + - COUNT( * ) - + 23 FROM tab1 WHERE NOT ( + col1 + col1 ) IS NULL
----
69

skipif mysql # not compatible
query I rowsort label-1094
SELECT + 95 + - COUNT ( * ) - + 23 FROM tab1 WHERE NOT ( + col1 + col1 ) IS NULL
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT MAX( ALL + - 81 ) FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-1095
SELECT MAX ( ALL + - 81 ) FROM tab1
----
-81

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 IN ( ( ( - col0 ) ) )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1099
SELECT ALL * FROM tab1 WHERE ( - col0 + + - col2 * 9 ) NOT BETWEEN - col2 - + + 20 + + col0 * + col0 * + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-1099
SELECT ALL * FROM tab1 WHERE ( - col0 + + - col2 * 9 ) NOT BETWEEN - col2 - + + 20 + + col0 * + col0 * + CAST ( NULL AS INTEGER ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, + 86 col1 FROM tab1
----
-59
86
-68
86
-96
86

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col0 FROM tab1 cor0 WHERE NOT col0 * - - ( - 54 ) IN ( + col2, + col0 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT - COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT - col0 - - col2 = col2
----
-3

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

query I rowsort
SELECT + col2 + + + col0 - - col2 AS col0 FROM tab2 AS cor0
----
144
191
92

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1107
SELECT col0 DIV 87 + + col0 * + col1 + - + 53 + + col1 DIV + + col0 AS col2 FROM tab0 AS cor0
----
1167
1775
45

skipif mysql # not compatible
query I rowsort label-1107
SELECT col0 / 87 + + col0 * + col1 + - + 53 + + col1 / + + col0 AS col2 FROM tab0 AS cor0
----
1167
1775
45

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( - 84 * + col2 * + col2 + - 46 ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1109
SELECT ( - CAST( col1 AS SIGNED ) ) AS col1 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1109
SELECT ( - CAST ( col1 AS INTEGER ) ) AS col1 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT ALL ( - col2 ) * - 7 AS col0 FROM tab1 cor0
----
413
476
672

query I rowsort
SELECT DISTINCT + 99 FROM tab0 AS cor0 WHERE 18 + col2 - - col1 IS NULL
----

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

query I rowsort
SELECT ALL + + col0 + + 77 AS col2 FROM tab0 AS cor0
----
164
174
92

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

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

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

query I rowsort
SELECT + col2 FROM tab2 WHERE + 43 * - col1 - col0 * 99 NOT IN ( - + col2 * - 29 )
----
23
40
58

query I rowsort
SELECT 69 * col0 * - + col0 FROM tab1
----
-179469
-498525
-571389

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1121
SELECT ALL + 66 AS col1, + MAX( - + col0 ) AS col1 FROM tab1
----
66
-51

skipif mysql # not compatible
query II rowsort label-1121
SELECT ALL + 66 AS col1, + MAX ( - + col0 ) AS col1 FROM tab1
----
66
-51

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

query I rowsort
SELECT + col1 * col1 * - - 16 FROM tab0
----
104976
16
7056

query I rowsort
SELECT - col1 * - - col2 * - - 97 AS col0 FROM tab2
----
-113781
-298760
-376942

query I rowsort
SELECT ALL - ( col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT - 45 - - col0 - - 30 - col0 IS NULL
----
-1
-21
-81

query I rowsort
SELECT + + col2 + 84 FROM tab1 AS cor0
----
143
152
180

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

query I rowsort
SELECT ALL col0 + 74 FROM tab0 AS cor0
----
161
171
89

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

skipif mysql # not compatible
query I rowsort label-1129
SELECT - CAST ( NULL AS REAL ) + 81 * col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 89 AS col0 FROM tab1 WHERE 50 BETWEEN col0 AND - + 6
----

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

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

query I rowsort
SELECT col0 + + - col2 FROM tab2 AS cor0 WHERE NOT col2 > + col2
----
17
23
24

query II rowsort
SELECT ALL - 30 AS col0, + col2 * + col1 + + - 34 AS col0 FROM tab2 cor0
----
-30
1139
-30
3046
-30
3852

onlyif mysql # aggregate syntax: 
query II rowsort label-1135
SELECT DISTINCT + 76, + 60 + - 6 - COUNT( * ) AS col2 FROM tab0 cor0
----
76
51

skipif mysql # not compatible
query II rowsort label-1135
SELECT DISTINCT + 76, + 60 + - 6 - COUNT ( * ) AS col2 FROM tab0 cor0
----
76
51

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

query II rowsort
SELECT ALL + col0 AS col2, - 14 + + + ( 10 ) - - 16 * + + col1 FROM tab1 cor0
----
51
220
85
76
91
748

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

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

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

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

query I rowsort
SELECT DISTINCT + 34 FROM tab0, tab0 AS cor0
----
34

query I rowsort
SELECT col0 * - ( 21 ) AS col0 FROM tab1
----
-1071
-1785
-1911

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

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

query I rowsort
SELECT 80 * + + col2 * - 29 FROM tab2
----
-134560
-53360
-92800

onlyif mysql # DIV for integer division: 
query I rowsort label-1145
SELECT DISTINCT 7 DIV + ( + + 55 ) AS col1 FROM tab1, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1145
SELECT DISTINCT 7 / + ( + + 55 ) AS col1 FROM tab1, tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 * - + col2 FROM tab0 AS cor0
----
705
870
9603

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1148
SELECT - col2 DIV col0 * + col0 * - + col1 AS col1 FROM tab0
----
0
3645
97

skipif mysql # not compatible
query I rowsort label-1148
SELECT - col2 / col0 * + col0 * - + col1 AS col1 FROM tab0
----
0
3645
97

query II rowsort
SELECT DISTINCT 86 AS col0, 20 AS col0 FROM tab2
----
86
20

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1152
SELECT - CAST( + + col1 AS SIGNED ) col0 FROM tab0 AS cor0
----
-1
-21
-81

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

query I rowsort
SELECT DISTINCT - + 5 * + 88 FROM tab2 AS cor0
----
-440

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1155
SELECT ( + col1 ) + 10 + col0 DIV + col2 AS col1 FROM tab1 AS cor0
----
16
24
58

skipif mysql # not compatible
query I rowsort label-1155
SELECT ( + col1 ) + 10 + col0 / + col2 AS col1 FROM tab1 AS cor0
----
16
24
58

query I rowsort
SELECT ALL - col2 * + ( - + col2 ) + + col2 * - + col1 - col1 AS col1 FROM tab0
----
-131
-1679
9701

query I rowsort
SELECT DISTINCT 46 AS col2 FROM tab2 WHERE ( NULL ) IS NULL
----
46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT DISTINCT MAX( + 51 ) * 44 * - - COUNT( * ) + 95 FROM tab2
----
6827

skipif mysql # not compatible
query I rowsort label-1159
SELECT DISTINCT MAX ( + 51 ) * 44 * - - COUNT ( * ) + 95 FROM tab2
----
6827

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

query I rowsort
SELECT - col1 * col0 + + 23 + - - 11 * col2 + + col1 * - col0 - 2 FROM tab2
----
-4418
-9391
-9395

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

query I rowsort
SELECT ALL 75 * - - ( + col0 ) FROM tab2
----
3450
4800
5625

query I rowsort
SELECT + 14 * 27 FROM tab1
----
378
378
378

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

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

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

query I rowsort
SELECT + 92 * + - col0 FROM tab2 AS cor0
----
-4232
-5888
-6900

query I rowsort
SELECT + col0 * + + col0 - col0 FROM tab1 AS cor0
----
2550
7140
8190

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col2 ) <= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1170
SELECT + - MAX( + ( - + CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1170
SELECT + - MAX ( + ( - + CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT ( - 68 ) AS col0 FROM tab0 AS cor0
----
-68

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT + 27 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1176
SELECT + 27 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT - + COUNT( * ) * - 17 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1177
SELECT - + COUNT ( * ) * - 17 FROM tab0 AS cor0
----
51

query I rowsort
SELECT DISTINCT - - 79 * col0 AS col0 FROM tab2 WHERE NOT col2 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - ( + + 62 ) AS col2 FROM tab0
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-1181
SELECT DISTINCT 99 DIV - col2 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-1181
SELECT DISTINCT 99 / - col2 FROM tab2
----
-1
-2
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-1182
SELECT ALL 22, + col2 * - - col1 + - col1 - + 72 - + + col1 DIV + 70 + - col1 + - + col0 AS col2 FROM tab1
----
22
1193
22
128
22
2939

skipif mysql # not compatible
query II rowsort label-1182
SELECT ALL 22, + col2 * - - col1 + - col1 - + 72 - + + col1 / + 70 + - col1 + - + col0 AS col2 FROM tab1
----
22
1193
22
128
22
2939

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT DISTINCT + MAX( ALL 93 ) AS col2 FROM tab0 AS cor0 WHERE + col2 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT + MAX ( ALL 93 ) AS col2 FROM tab0 AS cor0 WHERE + col2 > NULL
----
NULL

query II rowsort
SELECT - col2, ( col0 ) AS col1 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

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

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

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT - 45 < - + 45
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1188
SELECT * FROM tab0 WHERE col1 <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1188
SELECT * FROM tab0 WHERE col1 <= - CAST ( NULL AS INTEGER )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT ALL COUNT( * ) + - 34 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-1190
SELECT ALL COUNT ( * ) + - 34 FROM tab0
----
-31

query I rowsort
SELECT - 90 - + col0 + - col1 FROM tab1
----
-155
-180
-228

query II rowsort
SELECT ALL col0, 46 AS col0 FROM tab0
----
15
46
87
46
97
46

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1194
SELECT + 57 DIV col2 * - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1194
SELECT + 57 / col2 * - col0 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> col2 + 66
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 = ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 97 * + 66 FROM tab0
----
6402
6402
6402

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

query I rowsort
SELECT - 63 * - - col0 FROM tab0
----
-5481
-6111
-945

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1201
SELECT 31 DIV - + 33 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1201
SELECT 31 / - + 33 col0 FROM tab1
----
0
0
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1203
SELECT DISTINCT col2 DIV + + ( 21 ) FROM tab1
----
2
3
4

skipif mysql # not compatible
query I rowsort label-1203
SELECT DISTINCT col2 / + + ( 21 ) FROM tab1
----
2
3
4

query I rowsort
SELECT ALL - 44 FROM tab2 WHERE col0 IS NOT NULL
----
-44
-44
-44

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

query I rowsort
SELECT ALL + ( - 95 ) + col1 FROM tab2 AS cor0
----
-18
-28
-44

query I rowsort
SELECT col0 * + - 91 AS col2 FROM tab1
----
-4641
-7735
-8281

query I rowsort
SELECT ALL - - 41 - + col0 AS col1 FROM tab0 WHERE NOT col1 IS NULL
----
-46
-56
26

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE + 71 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT + 93 + - + MIN( - col2 ) FROM tab2 AS cor0
----
151

skipif mysql # not compatible
query I rowsort label-1210
SELECT + 93 + - + MIN ( - col2 ) FROM tab2 AS cor0
----
151

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

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 cor0 WHERE + col1 > 24
----
-47

query II rowsort
SELECT - 61 + - - col1 AS col0, col2 FROM tab0 AS cor0
----
-40
10
-60
99
20
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT - + COUNT( * ) + 28 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-1214
SELECT - + COUNT ( * ) + 28 FROM tab1 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT 4 + + 35 * COUNT( * ) FROM tab0
----
109

skipif mysql # not compatible
query I rowsort label-1215
SELECT 4 + + 35 * COUNT ( * ) FROM tab0
----
109

query I rowsort
SELECT DISTINCT 27 * 50 + - + ( - col0 ) - - 19 FROM tab1
----
1420
1454
1460

query I rowsort
SELECT ALL + 75 * + - col0 * + col1 - col2 + 19 AS col2 FROM tab0
----
-137016
-7355
-91153

query I rowsort
SELECT DISTINCT col2 - - col2 * + col0 AS col1 FROM tab2
----
1081
2600
4408

query I rowsort
SELECT - col2 * 40 FROM tab1 WHERE NULL IS NULL
----
-2360
-2720
-3840

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 36 + - + 92 IS NOT NULL
----

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

query I rowsort
SELECT ALL + - 46 FROM tab0 AS cor0
----
-46
-46
-46

query I rowsort
SELECT + col1 * + col1 - - 88 AS col0 FROM tab2 cor0
----
2689
4577
6017

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1224
SELECT 70 DIV + 50 + + 78 - + COUNT( + col0 ) - - COUNT( * ) FROM tab0 cor0
----
79

skipif mysql # not compatible
query I rowsort label-1224
SELECT 70 / + 50 + + 78 - + COUNT ( + col0 ) - - COUNT ( * ) FROM tab0 cor0
----
79

query II rowsort
SELECT 6 - ( 53 ) AS col2, col1 FROM tab0 AS cor0
----
-47
1
-47
21
-47
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT - COUNT( ALL 26 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( 86, - 82 + + - col1 * - col1, col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1226
SELECT - COUNT ( ALL 26 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( 86, - 82 + + - col1 * - col1, col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1227
SELECT ALL CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 WHERE 88 NOT BETWEEN - col1 AND - 7
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1227
SELECT ALL CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 WHERE 88 NOT BETWEEN - col1 AND - 7
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT - - 44 AS col0 FROM tab2 AS cor0
----
44
44
44

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT 63 IS NOT NULL AND NOT - 43 * 95 * + col2 IS NULL
----

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

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

query I rowsort
SELECT ALL + 83 * - col0 * + col0 * col0 AS col2 FROM tab2 AS cor0
----
-21757952
-35015625
-8078888

onlyif mysql # DIV for integer division: 
query I rowsort label-1234
SELECT DISTINCT + col0 DIV - 19 AS col1 FROM tab0
----
-4
-5
0

skipif mysql # not compatible
query I rowsort label-1234
SELECT DISTINCT + col0 / - 19 AS col1 FROM tab0
----
-4
-5
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1235
SELECT * FROM tab1 WHERE NOT ( NOT - CAST( NULL AS SIGNED ) > + 68 )
----

skipif mysql # not compatible
query III rowsort label-1235
SELECT * FROM tab1 WHERE NOT ( NOT - CAST ( NULL AS INTEGER ) > + 68 )
----

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 = + col0 / - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1238
SELECT 51 DIV + col1 + col0 FROM tab0 AS cor0
----
148
15
89

skipif mysql # not compatible
query I rowsort label-1238
SELECT 51 / + col1 + col0 FROM tab0 AS cor0
----
148
15
89

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

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

query I rowsort
SELECT DISTINCT + - 78 + - + 35 AS col1 FROM tab0 AS cor0
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT - SUM( + col1 ) * - 83 AS col1 FROM tab2
----
16185

skipif mysql # not compatible
query I rowsort label-1242
SELECT - SUM ( + col1 ) * - 83 AS col1 FROM tab2
----
16185

query I rowsort
SELECT DISTINCT + ( col0 ) - - 18 + - 11 AS col0 FROM tab1 AS cor0 WHERE NULL <> + 19 * + - col2
----

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

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

query I rowsort
SELECT ALL - col0 + + col0 + - 86 * col1 FROM tab2 AS cor0
----
-4386
-5762
-6622

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1249
SELECT - + 67 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * - + col1 * - col0 <= NULL
----

skipif mysql # not compatible
query I rowsort label-1249
SELECT - + 67 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - + col1 * - col0 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( - 84 ) * col1 * - + 33 * 75 + + 27 IS NOT NULL
----

query I rowsort
SELECT ALL - 20 + col0 AS col2 FROM tab0 AS cor0
----
-5
67
77

query I rowsort
SELECT + col2 / col0 * 59 * + - 42 FROM tab2 WHERE NULL NOT BETWEEN + col1 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT COUNT( * ) - 20 AS col1 FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-1253
SELECT COUNT ( * ) - 20 AS col1 FROM tab1
----
-17

query I rowsort
SELECT 74 - - col2 + - 14 + - - col2 + + 11 * + col0 * + + 58 + col1 FROM tab0
----
55607
62145
9805

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

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

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

query II rowsort
SELECT ALL col1 - 98, col0 FROM tab2
----
-21
64
-31
75
-47
46

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

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

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

query I rowsort
SELECT DISTINCT 7 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
7

query I rowsort
SELECT ALL - 27 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

onlyif mysql # DIV for integer division: 
query I rowsort label-1262
SELECT - col2 DIV 69 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1262
SELECT - col2 / 69 AS col2 FROM tab1
----
-1
0
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1263
SELECT + MIN ( ALL + col0 ) col0 FROM tab2
----
46

query III rowsort
SELECT ALL * FROM tab0 WHERE 18 + + col1 <= - - 90
----
87
21
10
97
1
99

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

query I rowsort
SELECT ALL + 79 * - 53 AS col2 FROM tab2 AS cor0
----
-4187
-4187
-4187

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 24 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT + ( SUM( DISTINCT - 35 ) ) * + + ( + + 45 ) - - MIN( col2 ) col2 FROM tab0 AS cor0
----
-1565

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1268
SELECT + ( SUM ( DISTINCT - 35 ) ) * + + ( + + 45 ) - - MIN ( col2 ) col2 FROM tab0 AS cor0
----
-1565

query I rowsort
SELECT ALL - 76 * - ( - 61 ) FROM tab2 AS cor0
----
-4636
-4636
-4636

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

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

query I rowsort
SELECT - col0 * col1 + col2 + col2 AS col0 FROM tab0
----
-1121
-1807
101

query I rowsort
SELECT col1 * + + col1 + col1 * - col1 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT 31 + - 60 + + + col2 + 8 + + 4 FROM tab2
----
23
41
6

query I rowsort
SELECT 21 + - + col1 FROM tab0
----
-60
0
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT DISTINCT - 22 * COUNT( * ) AS col2 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-1275
SELECT DISTINCT - 22 * COUNT ( * ) AS col2 FROM tab2
----
-66

query I rowsort
SELECT + col1 * - col1 * 39 / + col1 FROM tab1 WHERE NULL = NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) >= col1 * - - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 37 = - col0 * - ( + col1 )
----

query I rowsort
SELECT DISTINCT - col0 * - - col1 * + - col1 * + + col1 FROM tab0 AS cor0
----
7971615
805707
97

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

skipif mysql # not compatible
query I rowsort label-1280
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT DISTINCT - COUNT( * ) + + - 72 AS col0 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-1281
SELECT DISTINCT - COUNT ( * ) + + - 72 AS col0 FROM tab0 AS cor0
----
-75

query I rowsort
SELECT ALL - col2 + - + col1 + + - col2 FROM tab2
----
-157
-183
-97

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

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

query I rowsort
SELECT + col2 + + 30 * - col1 * + col2 FROM tab2 AS cor0
----
-116522
-35167
-92360

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1285
SELECT + - CAST( NULL AS SIGNED ) + 13, - 84 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

skipif mysql # not compatible
query II rowsort label-1285
SELECT + - CAST ( NULL AS INTEGER ) + 13, - 84 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + 28 + + 45 + - col2 * - + 79 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 22 + + + 54 AS col2, - col2 AS col0 FROM tab0 AS cor0
----
76
-10
76
-47
76
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 42 + col2 col2, col0 col2 FROM tab2 AS cor0
----
100
75
65
46
82
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + col0 ) + + 37 * + 3 * + ( - 96 ) + + col1 col2, col2 AS col0 FROM tab1 AS cor0
----
-10518
68
-10566
59
-10591
96

query I rowsort
SELECT - + col1 * ( + + col0 ) + 13 FROM tab1 AS cor0 WHERE col2 * - 65 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT DISTINCT MIN( - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1294
SELECT DISTINCT MIN ( - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT - COUNT( * ) * - SUM( col0 ) FROM tab0
----
597

skipif mysql # not compatible
query I rowsort label-1295
SELECT - COUNT ( * ) * - SUM ( col0 ) FROM tab0
----
597

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 72 * + col1 + - ( - col2 ) * + 29 ) NOT BETWEEN ( NULL ) AND NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1298
SELECT ALL * FROM tab1 WHERE + CAST( - col2 AS SIGNED ) >= 32
----

skipif mysql # not compatible
query III rowsort label-1298
SELECT ALL * FROM tab1 WHERE + CAST ( - col2 AS INTEGER ) >= 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT SUM( 9 ) + + COUNT( * ) AS col0 FROM tab0, tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-1299
SELECT SUM ( 9 ) + + COUNT ( * ) AS col0 FROM tab0, tab0 AS cor0
----
90

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

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

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

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

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

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

query I rowsort
SELECT - + 94 FROM tab0 WHERE NOT NULL = + col1 + - col0
----

query II rowsort
SELECT col2, 84 * + col1 * 87 AS col0 FROM tab1 cor0
----
59
36540
68
343476
96
102312

query I rowsort
SELECT DISTINCT + 0 + col0 + + - col2 - - - col1 * 51 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( 67 * - + 24 * 81, + ( - + col0 ), 32 + 40, - - 54, - 18, + col0 )
----

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

skipif mysql # not compatible
query I rowsort label-1308
SELECT - 34 / col1 FROM tab2 AS cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT col2 * + col2 * - 33 FROM tab2 AS cor0
----
-111012
-17457
-52800

query I rowsort
SELECT ALL - + 16 + - 71 + + col0 FROM tab2 AS cor0
----
-12
-23
-41

query I rowsort
SELECT - - 32 FROM tab0 AS cor0 WHERE NOT 16 IN ( - + col0, col2, + - col2, col0, - 54, - col1 - - 24 )
----
32
32
32

query II rowsort
SELECT DISTINCT + col2 AS col0, + 91 AS col0 FROM tab1 AS cor0
----
59
91
68
91
96
91

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( - 10, + col2 + col1 )
----

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

query II rowsort
SELECT ALL + 88 + + col2 * - ( + - ( col1 ) ) AS col2, - col1 FROM tab0
----
187
-1
298
-21
3895
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1318
SELECT CAST( + + ( MIN( ALL + col1 ) ) AS SIGNED ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-1318
SELECT CAST ( + + ( MIN ( ALL + col1 ) ) AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT DISTINCT - 96 * ( 14 ) + COUNT( * ) col2 FROM tab2
----
-1341

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1319
SELECT DISTINCT - 96 * ( 14 ) + COUNT ( * ) col2 FROM tab2
----
-1341

query I rowsort
SELECT 93 * 22 * - 86 FROM tab2
----
-175956
-175956
-175956

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1321
SELECT - MAX( + + 30 ) DIV - COUNT( * ) AS col1 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-1321
SELECT - MAX ( + + 30 ) / - COUNT ( * ) AS col1 FROM tab1
----
10

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1323
SELECT ALL - col0 * 97 / 4 / - CAST( NULL AS SIGNED ) + 9 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1323
SELECT ALL - col0 * 97 / 4 / - CAST ( NULL AS INTEGER ) + 9 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT DISTINCT COUNT( * ) * - 39 AS col2 FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-1324
SELECT DISTINCT COUNT ( * ) * - 39 AS col2 FROM tab2 AS cor0
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1325
SELECT ALL + COUNT( * ) DIV + 94 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
3

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

query II rowsort
SELECT DISTINCT - col0 + 36 AS col0, - ( + + col1 ) FROM tab0 AS cor0
----
-51
-21
-61
-1
21
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1327
SELECT DISTINCT ( + COUNT( * ) ) DIV 12 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1327
SELECT DISTINCT ( + COUNT ( * ) ) / 12 AS col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + 22 + - + col2 col0 FROM tab1 AS cor0
----
-114
-170
-96

query I rowsort
SELECT ALL col1 + + 68 FROM tab1
----
115
73
82

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

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

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

query I rowsort
SELECT 11 * - ( - 98 ) FROM tab2 AS cor0
----
1078
1078
1078

query I rowsort
SELECT ALL col0 * 94 + - col0 FROM tab0 cor0
----
1395
8091
9021

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT + 5 - + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-1335
SELECT + 5 - + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1336
SELECT DISTINCT - col1 DIV - col2 - + 15 - - - col1 + col1 * + col2 * - - col0 AS col0 FROM tab2 cor0
----
197029
291369
53894

skipif mysql # not compatible
query I rowsort label-1336
SELECT DISTINCT - col1 / - col2 - + 15 - - - col1 + col1 * + col2 * - - col0 AS col0 FROM tab2 cor0
----
197029
291369
53894

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT ALL - + MIN( DISTINCT - + col1 ) + COUNT( * ) AS col0 FROM tab1 cor0
----
50

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL - + MIN ( DISTINCT - + col1 ) + COUNT ( * ) AS col0 FROM tab1 cor0
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 91 col2, + 4 AS col1 FROM tab0 cor0
----
-91
4

query I rowsort
SELECT DISTINCT - 86 * + col0 FROM tab1
----
-4386
-7310
-7826

query II rowsort
SELECT DISTINCT col0 * + 77, col0 * 35 AS col2 FROM tab1
----
3927
1785
6545
2975
7007
3185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1341
SELECT DISTINCT 71 DIV COUNT( * ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-1341
SELECT DISTINCT 71 / COUNT ( * ) AS col0 FROM tab2
----
23

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

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL col2 / + + col0 AS col2 FROM tab2
----
0
0
0

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

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

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

query I rowsort
SELECT - 96 + AVG ( DISTINCT + + col1 ) FROM tab2 cor0 WHERE NOT ( + 63 IS NOT NULL )
----
NULL

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

query I rowsort
SELECT col1 * - ( - 35 ) AS col0 FROM tab2 AS cor0
----
1785
2345
2695

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + 98 ) + - col1 col1 FROM tab1 AS cor0
----
-103
-112
-145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1352
SELECT + 43 + + + COUNT( * ) AS col2, + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
46
NULL

skipif mysql # not compatible
query II rowsort label-1352
SELECT + 43 + + + COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
46
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT - 89 + MAX( ALL 35 ) FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-1353
SELECT - 89 + MAX ( ALL 35 ) FROM tab0
----
-54

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

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

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

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

query I rowsort
SELECT ALL - col1 + col1 - col0 FROM tab0 AS cor0
----
-15
-87
-97

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1359
SELECT - COUNT( * ) DIV + COUNT( ALL 66 ) + - 99 FROM tab1 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-1359
SELECT - COUNT ( * ) / + COUNT ( ALL 66 ) + - 99 FROM tab1 AS cor0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT - 75 * + + MAX( 99 ) AS col2 FROM tab0 AS cor0
----
-7425

skipif mysql # not compatible
query I rowsort label-1360
SELECT - 75 * + + MAX ( 99 ) AS col2 FROM tab0 AS cor0
----
-7425

onlyif mysql # aggregate syntax: 
query I rowsort label-1361
SELECT + 82 * - SUM( DISTINCT 19 ) FROM tab1 AS cor0
----
-1558

skipif mysql # not compatible
query I rowsort label-1361
SELECT + 82 * - SUM ( DISTINCT 19 ) FROM tab1 AS cor0
----
-1558

query I rowsort
SELECT - + 70 AS col0 FROM tab2 AS cor0
----
-70
-70
-70

query I rowsort
SELECT ALL + col0 * - - col1 * - + col2 AS col0 FROM tab2
----
-197120
-291450
-53958

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - ( 59 ) <> NULL
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1366
SELECT DISTINCT + col0 / + 95 col0 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col1 * ( + - col0 ) IS NULL
----

query II rowsort
SELECT col0 * + col2 - + col2, 98 * ( + col0 ) AS col2 FROM tab0 WHERE NOT - + 50 IS NULL
----
658
1470
860
8526
9504
9506

onlyif mysql # DIV for integer division: 
query II rowsort label-1369
SELECT ALL + col1 AS col2, ( + col1 ) DIV col0 AS col0 FROM tab0
----
1
0
21
0
81
5

skipif mysql # not compatible
query II rowsort label-1369
SELECT ALL + col1 AS col2, ( + col1 ) / col0 AS col0 FROM tab0
----
1
0
21
0
81
5

query II rowsort
SELECT - col0 AS col0, 37 * - - col1 FROM tab0
----
-15
2997
-87
777
-97
37

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1372
SELECT ALL - 84 DIV + col2 AS col1 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1372
SELECT ALL - 84 / + col2 AS col1 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
-1
-1
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1374
SELECT ALL col1 * + col2 + col0 + col0 + - col1 * - + col2 * + col1 + - - col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN col0 / + col1 * + 23 * - - col2 AND 43 - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL col1 * + col2 + col0 + col0 + - col1 * - + col2 * + col1 + - - col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN col0 / + col1 * + 23 * - - col2 AND 43 - - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT + col2 + 54 AS col2, 4 FROM tab1 AS cor0
----
113
4
122
4
150
4

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > - col0 / + 20
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + 51 - - col2 col0 FROM tab2 AS cor0
----
14
23
42

query I rowsort
SELECT ALL + col0 + + - ( + col1 ) AS col0 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT DISTINCT - COUNT( * ) + - 20 AS col1 FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-1379
SELECT DISTINCT - COUNT ( * ) + - 20 AS col1 FROM tab0 AS cor0
----
-23

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE + 22 > NULL
----

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

query II rowsort
SELECT ALL 11 AS col2, col2 FROM tab0
----
11
10
11
47
11
99

query II rowsort
SELECT col0 - + + 78 * + + 61 AS col2, - col2 AS col0 FROM tab0
----
-4661
-99
-4671
-10
-4743
-47

query I rowsort
SELECT col0 + + col0 - 41 - 68 FROM tab2
----
-17
19
41

query I rowsort
SELECT - col2 * - + col1 + col1 AS col1 FROM tab2
----
1224
3157
3953

query II rowsort
SELECT DISTINCT 1, + col0 AS col2 FROM tab2
----
1
46
1
64
1
75

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + + 35 + + 72, col1 * + col2 col1 FROM tab2
----
1857
1173
2417
3886
2767
3080

query I rowsort
SELECT - col0 + + + 71 FROM tab2 AS cor0
----
-4
25
7

query I rowsort
SELECT ALL + col0 * + 72 + - + 0 + + + col1 - - 19 FROM tab0 cor0
----
1180
6304
7004

query I rowsort
SELECT + 41 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT + MIN( ALL - 78 ) FROM tab0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1393
SELECT + MIN ( ALL - 78 ) FROM tab0 WHERE NOT + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + - col0 * - 73 FROM tab1 cor0
----
3723
6205
6643

query II rowsort
SELECT ALL col2 * - - col1, 32 AS col2 FROM tab0 AS cor0
----
210
32
3807
32
99
32

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1397
SELECT DISTINCT + MAX( - 79 ) DIV - SUM( + 54 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1397
SELECT DISTINCT + MAX ( - 79 ) / - SUM ( + 54 ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - + 86 * - + col1 + + - col1 - - + col2 * - col1 AS col2 FROM tab2 AS cor0
----
1809
3162
3465

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1400
SELECT CAST( 22 AS SIGNED ) * - - col0 + + col1 * - col0 AS col1 FROM tab0
----
-885
2037
87

skipif mysql # not compatible
query I rowsort label-1400
SELECT CAST ( 22 AS INTEGER ) * - - col0 + + col1 * - col0 AS col1 FROM tab0
----
-885
2037
87

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1402
SELECT ALL + + COUNT( * ) DIV + MAX( ALL + col1 ) AS col1 FROM tab2 WHERE NOT - 91 > 73
----
0

skipif mysql # not compatible
query I rowsort label-1402
SELECT ALL + + COUNT ( * ) / + MAX ( ALL + col1 ) AS col1 FROM tab2 WHERE NOT - 91 > 73
----
0

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

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

query I rowsort
SELECT + ( - 75 ) AS col1 FROM tab2
----
-75
-75
-75

query I rowsort
SELECT ALL 84 * - col2 * - 25 FROM tab2
----
121800
48300
84000

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1407
SELECT - 67 + + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-1407
SELECT - 67 + + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-64

query II rowsort
SELECT + + ( - col1 ) AS col1, col2 * + 42 AS col0 FROM tab2 cor0 WHERE + 13 * - col2 <= col2
----
-51
966
-67
2436
-77
1680

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

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

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

query I rowsort
SELECT - 77 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 + col1 * - col0 * - col2 FROM tab1 AS cor0
----
25070
290789
68530

query I rowsort
SELECT 57 + col0 AS col2 FROM tab1
----
108
142
148

query II rowsort
SELECT DISTINCT 28, + 12 * + col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND - + col0
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1416
SELECT ALL * FROM tab0 WHERE NOT - 91 NOT BETWEEN ( - CAST( NULL AS DECIMAL ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-1416
SELECT ALL * FROM tab0 WHERE NOT - 91 NOT BETWEEN ( - CAST ( NULL AS REAL ) ) AND NULL
----

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

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

query I rowsort
SELECT + - col2 - 26 AS col2 FROM tab1 AS cor0
----
-122
-85
-94

query I rowsort
SELECT + col2 - + 9 AS col2 FROM tab0 AS cor0
----
1
38
90

query I rowsort
SELECT + - col1 * col1 * - - 76 * col1 - - - 54 * + 69 AS col0 FROM tab2 AS cor0
----
-10085202
-22861714
-34700234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1421
SELECT - + ( CAST( NULL AS SIGNED ) ) + 91 / - 79 * 6 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1421
SELECT - + ( CAST ( NULL AS INTEGER ) ) + 91 / - 79 * 6 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1422
SELECT ALL - ( - CAST( - - 81 AS SIGNED ) ) + + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
90

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL - ( - CAST ( - - 81 AS INTEGER ) ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
90

query I rowsort
SELECT ALL 79 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( col1 ) ) col2 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE col2 >= NULL
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1428
SELECT DISTINCT - col0 * + col0 + - col1 DIV + col1 FROM tab2 AS cor0
----
-2117
-4097
-5626

skipif mysql # not compatible
query I rowsort label-1428
SELECT DISTINCT - col0 * + col0 + - col1 / + col1 FROM tab2 AS cor0
----
-2117
-4097
-5626

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1431
SELECT ALL + 52 * col1 DIV + + 19 FROM tab2 AS cor0
----
139
183
210

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL + 52 * col1 / + + 19 FROM tab2 AS cor0
----
139
183
210

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1434
SELECT DISTINCT + 49 * CAST( + - 44 AS SIGNED ) FROM tab0
----
-2156

skipif mysql # not compatible
query I rowsort label-1434
SELECT DISTINCT + 49 * CAST ( + - 44 AS INTEGER ) FROM tab0
----
-2156

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT - SUM( 49 ) FROM tab2
----
-147

skipif mysql # not compatible
query I rowsort label-1436
SELECT - SUM ( 49 ) FROM tab2
----
-147

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

query II rowsort
SELECT col0, - 60 FROM tab1
----
51
-60
85
-60
91
-60

onlyif mysql # DIV for integer division: 
query II rowsort label-1439
SELECT ALL col1, 86 DIV + - col2 FROM tab0
----
1
0
21
-8
81
-1

skipif mysql # not compatible
query II rowsort label-1439
SELECT ALL col1, 86 / + - col2 FROM tab0
----
1
0
21
-8
81
-1

query II rowsort
SELECT ALL - - col2 * 26 + - 53 + 6, 50 AS col0 FROM tab1 AS cor0
----
1487
50
1721
50
2449
50

query I rowsort
SELECT - - ( - - 46 ) * - + 79 * + - col0 FROM tab1 AS cor0
----
185334
308890
330694

onlyif mysql # aggregate syntax: 
query II rowsort label-1442
SELECT DISTINCT 61 + + + MAX( DISTINCT + col0 ) col0, 52 FROM tab2
----
136
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1442
SELECT DISTINCT 61 + + + MAX ( DISTINCT + col0 ) col0, 52 FROM tab2
----
136
52

onlyif mysql # DIV for integer division: 
query I rowsort label-1443
SELECT - col1 + - ( + 14 ) DIV - 66 * - 77 - + 41 FROM tab0
----
-122
-42
-62

skipif mysql # not compatible
query I rowsort label-1443
SELECT - col1 + - ( + 14 ) / - 66 * - 77 - + 41 FROM tab0
----
-122
-42
-62

query I rowsort
SELECT DISTINCT col0 * + ( - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT - 54 * - - col1 * + 97 AS col0 FROM tab2 AS cor0
----
-267138
-350946
-403326

query I rowsort
SELECT ALL + col2 + - 23 * - 31 * - - 57 FROM tab0 AS cor0
----
40651
40688
40740

query I rowsort
SELECT ALL - + 62 * col2 * - + col0 FROM tab1 cor0
----
303552
310930
383656

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

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

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

query I rowsort
SELECT ALL 41 * - - col2 * + col2 + - 65 FROM tab2
----
137859
21624
65535

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 * col0 - - - 81 col2 FROM tab0
----
-6
354
404

query I rowsort
SELECT ALL + col0 - col2 * - col0 AS col0 FROM tab0
----
720
957
9700

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

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

query I rowsort
SELECT + 60 + - col2 FROM tab1
----
-36
-8
1

query I rowsort
SELECT col2 + + 4 * - 53 FROM tab1
----
-116
-144
-153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1456
SELECT DISTINCT + 15 DIV + COUNT( * ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-1456
SELECT DISTINCT + 15 / + COUNT ( * ) AS col2 FROM tab1
----
5

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1459
SELECT ALL - COUNT( * ) DIV - COUNT( * ) + + MIN( - col2 ) + + 84 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-1459
SELECT ALL - COUNT ( * ) / - COUNT ( * ) + + MIN ( - col2 ) + + 84 FROM tab1 AS cor0
----
-11

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 NOT BETWEEN NULL AND - col2 + col0
----
51
14
96
91
47
68

query III rowsort
SELECT ALL * FROM tab1 WHERE - 49 NOT BETWEEN + col2 AND ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( - 29 ) FROM tab0
----
-29

query III rowsort
SELECT * FROM tab0 WHERE NOT 20 < - col0 + col1
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT - col1 * - col2 + 88 AS col2 FROM tab1
----
1432
3284
383

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 NOT IN ( + 8 * 91 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT + ( 22 ) * COUNT( * ) col1 FROM tab2 WHERE + col0 * + col0 BETWEEN NULL AND col2 * col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1473
SELECT + ( 22 ) * COUNT ( * ) col1 FROM tab2 WHERE + col0 * + col0 BETWEEN NULL AND col2 * col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT - ( 84 ) * - 16 + COUNT( ALL col1 + - col2 ) col2 FROM tab1
----
1347

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1474
SELECT - ( 84 ) * - 16 + COUNT ( ALL col1 + - col2 ) col2 FROM tab1
----
1347

query I rowsort
SELECT + col1 * + col1 + - 14 AS col2 FROM tab2
----
2587
4475
5915

query I rowsort
SELECT - 99 * - 87 + + 82 * col2 FROM tab0
----
12467
16731
9433

onlyif mysql # DIV for integer division: 
query III rowsort label-1477
SELECT ALL * FROM tab1 WHERE NOT col2 + + 72 DIV + col2 IN ( 69 )
----
51
14
96
85
5
59

skipif mysql # not compatible
query III rowsort label-1477
SELECT ALL * FROM tab1 WHERE NOT col2 + + 72 / + col2 IN ( 69 )
----
51
14
96
85
5
59

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

skipif mysql # not compatible
query I rowsort label-1478
SELECT COUNT ( * ) FROM tab0 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT ALL - col2 + + col1 * ( col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
366
4209
618

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

query I rowsort
SELECT - 84 * + 10 + 46 * + col2 AS col0 FROM tab0
----
-380
1322
3714

query I rowsort
SELECT 37 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT + ( + 49 ) * COUNT( + 83 * col2 + + col0 * + ( - col0 * col1 ) ) AS col1 FROM tab1
----
147

skipif mysql # not compatible
query I rowsort label-1483
SELECT + ( + 49 ) * COUNT ( + 83 * col2 + + col0 * + ( - col0 * col1 ) ) AS col1 FROM tab1
----
147

query I rowsort
SELECT - col2 * - 53 AS col0 FROM tab0
----
2491
5247
530

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 + col2 BETWEEN + col1 AND col0
----
85
5
59

query I rowsort
SELECT DISTINCT 99 * - 90 - - col2 * - 62 FROM tab1
----
-12568
-13126
-14862

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1487
SELECT + col1 - - 40 FROM tab1 WHERE NOT ( 68 ) > ( - CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1487
SELECT + col1 - - 40 FROM tab1 WHERE NOT ( 68 ) > ( - CAST ( + col2 AS INTEGER ) )
----

query I rowsort
SELECT 98 * - col0 AS col1 FROM tab0
----
-1470
-8526
-9506

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1492
SELECT DISTINCT MIN( col2 ) AS col2 FROM tab0 AS cor0 WHERE 54 >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1492
SELECT DISTINCT MIN ( col2 ) AS col2 FROM tab0 AS cor0 WHERE 54 >= ( NULL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1493
SELECT DISTINCT + 28 DIV - COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1493
SELECT DISTINCT + 28 / - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1494
SELECT DISTINCT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) * 65 + - col1 * + col2 IN ( 30 + col2 * - 17 )
----

skipif mysql # not compatible
query III rowsort label-1494
SELECT DISTINCT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) * 65 + - col1 * + col2 IN ( 30 + col2 * - 17 )
----

query I rowsort
SELECT ALL 18 + - col0 AS col1 FROM tab0
----
-69
-79
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 col2 FROM tab1 AS cor0
----
1344
295
3196

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT ALL + SUM( - col2 ) AS col0 FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL + SUM ( - col2 ) AS col0 FROM tab2 cor0
----
-121

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

query I rowsort
SELECT DISTINCT col2 + 8 AS col2 FROM tab1 AS cor0
----
104
67
76

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

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

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

query I rowsort
SELECT + 91 * col0 + col0 * col1 AS col2 FROM tab0 AS cor0
----
2580
8924
9744

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1505
SELECT + COUNT( * ) DIV - ( 89 ) + + 89 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-1505
SELECT + COUNT ( * ) / - ( 89 ) + + 89 FROM tab1 AS cor0
----
89

query I rowsort
SELECT DISTINCT + + col0 + + 40 AS col2 FROM tab0 AS cor0
----
127
137
55

onlyif mysql # DIV for integer division: 
query I rowsort label-1507
SELECT ALL 6 DIV - col1 + col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1507
SELECT ALL 6 / - col1 + col1 FROM tab2
----
51
67
77

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

query I rowsort
SELECT ALL + 81 - 28 FROM tab2
----
53
53
53

query I rowsort
SELECT DISTINCT col1 - col1 * 76 FROM tab1
----
-1050
-3525
-375

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN + 50 AND 57 * 42
----

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> - 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT - COUNT( - 34 ) + ( - COUNT( * ) - COUNT( * ) ) AS col1 FROM tab1 WHERE + col2 / col2 >= 53
----
0

skipif mysql # not compatible
query I rowsort label-1515
SELECT - COUNT ( - 34 ) + ( - COUNT ( * ) - COUNT ( * ) ) AS col1 FROM tab1 WHERE + col2 / col2 >= 53
----
0

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

query I rowsort
SELECT DISTINCT col1 - + + col2 + + ( col2 + - col1 ) FROM tab2
----
0

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE ( 16 ) IS NOT NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1519
SELECT ALL ( col0 ) DIV - col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1519
SELECT ALL ( col0 ) / - col1 FROM tab2
----
-1
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT MAX( ALL + - 84 ) AS col0 FROM tab0 cor0
----
-84

skipif mysql # not compatible
query I rowsort label-1521
SELECT MAX ( ALL + - 84 ) AS col0 FROM tab0 cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT - COUNT( DISTINCT + - 2 ) AS col2 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1522
SELECT - COUNT ( DISTINCT + - 2 ) AS col2 FROM tab1 cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL BETWEEN - 40 * - ( col2 ) - 23 AND NULL
----

query I rowsort
SELECT - - 3 * + col2 FROM tab1 AS cor0
----
177
204
288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1525
SELECT ALL 32 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1525
SELECT ALL 32 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT ( NOT + col0 + + col2 = ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT ALL SUM( DISTINCT - 11 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-11

skipif mysql # not compatible
query I rowsort label-1528
SELECT ALL SUM ( DISTINCT - 11 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-11

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

query I rowsort
SELECT - + 24 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 col0, 90 - + + col1 * - col2 FROM tab1 AS cor0
----
-51
1434
-85
385
-91
3286

query I rowsort
SELECT DISTINCT - 51 + + col2 AS col2 FROM tab2 AS cor0 WHERE col1 * + - col1 * 0 + - col1 BETWEEN ( col0 ) AND - col2 * col0
----

query II rowsort
SELECT DISTINCT + col0, 60 + - + 77 * 45 FROM tab1 AS cor0
----
51
-3405
85
-3405
91
-3405

query I rowsort
SELECT DISTINCT col0 + + 79 * + col1 AS col2 FROM tab0 AS cor0 WHERE + col1 IN ( col1 + - 91 / 84 )
----

query II rowsort
SELECT - 1 AS col1, 41 FROM tab2 AS cor0
----
-1
41
-1
41
-1
41

query I rowsort
SELECT ALL 89 + + col2 * + + col0 AS col0 FROM tab0 AS cor0
----
794
959
9692

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 57 ) IN ( col0 + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( - col1 ) * - 38 AS col1 FROM tab0
----
-3078
-38
-798

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 / col0 / 35 + col0 * 47 IS NOT NULL
----

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

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( - col2 )
----

query I rowsort
SELECT + col1 * col0 * + col1 AS col2 FROM tab2
----
119646
336675
379456

query II rowsort
SELECT - - 30 + - 53, - 2 AS col1 FROM tab1 AS cor0
----
-23
-2
-23
-2
-23
-2

query I rowsort
SELECT col2 * - col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) > col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1548
SELECT ALL 12 + - COUNT( * ) col1, 8 AS col2 FROM tab1 AS cor0
----
9
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1548
SELECT ALL 12 + - COUNT ( * ) col1, 8 AS col2 FROM tab1 AS cor0
----
9
8

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 39 - - col1 AS col2 FROM tab2 AS cor0
----
106
116
90

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

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

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

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

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

query I rowsort
SELECT ALL - ( - + col2 ) + - 99 + + col2 AS col0 FROM tab1 AS cor0
----
19
37
93

query I rowsort
SELECT + col1 * - + col0 - + - 96 AS col0 FROM tab0
----
-1
-1119
-1731

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1558
SELECT ALL ( - - COUNT( * ) ) DIV - CAST( - MAX( ALL - col2 ) AS SIGNED ) + - 55 AS col2 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL ( - - COUNT ( * ) ) / - CAST ( - MAX ( ALL - col2 ) AS INTEGER ) + - 55 AS col2 FROM tab0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1559
SELECT * FROM tab0 WHERE ( 81 ) <= CAST( NULL AS SIGNED ) / - 89
----

skipif mysql # not compatible
query III rowsort label-1559
SELECT * FROM tab0 WHERE ( 81 ) <= CAST ( NULL AS INTEGER ) / - 89
----

query I rowsort
SELECT 49 FROM tab1 WHERE - 40 IN ( - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT + 19 + - ( + MAX( + 87 ) ) + + + MAX( ALL - col0 ) FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-1561
SELECT + 19 + - ( + MAX ( + 87 ) ) + + + MAX ( ALL - col0 ) FROM tab2
----
-114

query I rowsort
SELECT DISTINCT ( - 96 ) + + col2 FROM tab0
----
-49
-86
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1563
SELECT ALL ( - 69 ) DIV - - col1 AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1563
SELECT ALL ( - 69 ) / - - col1 AS col0 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT SUM( + 81 ) FROM tab1
----
243

skipif mysql # not compatible
query I rowsort label-1564
SELECT SUM ( + 81 ) FROM tab1
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT 35 * - 41 * - COUNT( * ) FROM tab1, tab1 cor0
----
12915

skipif mysql # not compatible
query I rowsort label-1565
SELECT 35 * - 41 * - COUNT ( * ) FROM tab1, tab1 cor0
----
12915

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + 31
----

query I rowsort
SELECT 94 * + + col2 * + - col0 AS col1 FROM tab2
----
-240640
-408900
-99452

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT ALL - SUM( + + col0 ) AS col1 FROM tab1 WHERE col1 + + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL - SUM ( + + col0 ) AS col1 FROM tab1 WHERE col1 + + col1 IS NULL
----
NULL

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE col0 * + col0 NOT IN ( - 86 )
----
51
85
91

query I rowsort
SELECT ALL + ( + 25 ) FROM tab2 AS cor0 WHERE 94 + + col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 5 * + 87 >= - + 28 * + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1572
SELECT ALL + - 32 + + MIN( - col1 ) DIV COUNT( * ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL + - 32 + + MIN ( - col1 ) / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT - col0 + 98 AS col0 FROM tab0 AS cor0
----
1
11
83

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

query I rowsort
SELECT ALL - col2 + - - col0 FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT ALL - COUNT( * ) AS col1 FROM tab2 WHERE 98 > col2
----
-3

skipif mysql # not compatible
query I rowsort label-1576
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 WHERE 98 > col2
----
-3

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

skipif mysql # not compatible
query I rowsort label-1577
SELECT - CAST ( NULL AS REAL ) + - + AVG ( DISTINCT + ( - col2 ) ) FROM tab0
----
NULL

query I rowsort
SELECT 66 * + + 42 * - + 49 + - - col2 FROM tab1
----
-135732
-135760
-135769

query I rowsort
SELECT DISTINCT 41 FROM tab1 WHERE NOT + col1 * + col0 NOT IN ( - col0 )
----

query I rowsort
SELECT + 25 + + + 33 AS col2 FROM tab2
----
58
58
58

query I rowsort
SELECT col1 * 64 + + + 29 + col2 + - + col0 FROM tab2
----
3270
4300
4933

query II rowsort
SELECT - 33, - 4 / + - col2 * col0 - - - col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT MIN( DISTINCT col0 ) * MAX( + 79 ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
1182

skipif mysql # not compatible
query I rowsort label-1583
SELECT MIN ( DISTINCT col0 ) * MAX ( + 79 ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
1182

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 65 IS NULL
----

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

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

query I rowsort
SELECT + 17 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT + 17 + + - ( - col0 ) FROM tab2
----
63
81
92

query I rowsort
SELECT ALL + 99 + col1 + - 28 * + col2 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1136
-160
-2672

query I rowsort
SELECT - + 32 + col1 AS col2 FROM tab1 AS cor0
----
-18
-27
15

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1595
SELECT - 49 DIV - - SUM( DISTINCT 72 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1595
SELECT - 49 / - - SUM ( DISTINCT 72 ) AS col2 FROM tab2 AS cor0
----
0

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 97 * 51 col0 FROM tab2 AS cor0
----
-4947
-4947
-4947

query I rowsort
SELECT ALL + col2 * - 21 FROM tab2
----
-1218
-483
-840

query I rowsort
SELECT - col2 * - 43 FROM tab2
----
1720
2494
989

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT + MAX( - 9 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-1601
SELECT + MAX ( - 9 ) FROM tab0
----
-9

query II rowsort
SELECT ALL + 89 AS col0, 47 FROM tab0 AS cor0
----
89
47
89
47
89
47

query I rowsort
SELECT ALL 94 * + + col0 * - + col0 FROM tab2 AS cor0
----
-198904
-385024
-528750

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT + COUNT( + col1 ) * - 76 AS col0 FROM tab1 cor0
----
-228

skipif mysql # not compatible
query I rowsort label-1604
SELECT + COUNT ( + col1 ) * - 76 AS col0 FROM tab1 cor0
----
-228

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

query I rowsort
SELECT - col1 FROM tab0 cor0 WHERE NOT - col1 <> + col1
----

query I rowsort
SELECT - col1 + - 36 FROM tab2
----
-103
-113
-87

query I rowsort
SELECT 75 * + 17 + - col2 * + - 52 - + col1 AS col1 FROM tab2
----
2420
3278
4224

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT DISTINCT COUNT( * ) * + 86 * - COUNT( * ) col2 FROM tab1 AS cor0
----
-774

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= 30
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1612
SELECT COUNT( ALL - CAST( + + col0 AS DECIMAL ) ) FROM tab2 AS cor0
----
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( col1 ) col2 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query II rowsort label-1614
SELECT DISTINCT - 42 - 50 - + 80 + + + 32 AS col2, - col0 DIV - col2 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-140
0
-140
8

skipif mysql # not compatible
query II rowsort label-1614
SELECT DISTINCT - 42 - 50 - + 80 + + + 32 AS col2, - col0 / - col2 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-140
0
-140
8

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1616
SELECT ALL - 95 + + col1 * + ( 82 ) + + CAST( 58 AS SIGNED ) * CAST( - - 78 AS SIGNED ) + - - col0 AS col2 FROM tab2 AS cor0
----
10807
8657
9998

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL - 95 + + col1 * + ( 82 ) + + CAST ( 58 AS INTEGER ) * CAST ( - - 78 AS INTEGER ) + - - col0 AS col2 FROM tab2 AS cor0
----
10807
8657
9998

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

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

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

query I rowsort
SELECT DISTINCT + 26 + + col1 AS col0 FROM tab2 WHERE NOT NULL < + col1 / + 3 * - col1 - - 67
----

query I rowsort
SELECT 40 * - - 64 AS col2 FROM tab1
----
2560
2560
2560

query I rowsort
SELECT - 65 AS col1 FROM tab0 WHERE NULL IS NULL
----
-65
-65
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1622
SELECT + col0 * + col0 + + CAST( col2 AS SIGNED ) + + - col0 * + col1 AS col0 FROM tab2
----
-207
-792
658

skipif mysql # not compatible
query I rowsort label-1622
SELECT + col0 * + col0 + + CAST ( col2 AS INTEGER ) + + - col0 * + col1 AS col0 FROM tab2
----
-207
-792
658

query II rowsort
SELECT DISTINCT + ( col2 ) - - col0 AS col1, + col1 + + col2 AS col1 FROM tab1
----
144
64
147
110
159
115

query I rowsort
SELECT DISTINCT - 14 * + 96 * 12 FROM tab0 AS cor0
----
-16128

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT ALL + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 = - 50
----
-3

skipif mysql # not compatible
query I rowsort label-1625
SELECT ALL + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 = - 50
----
-3

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT - + 84 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-84

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1629
SELECT DISTINCT + MIN( - 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-1629
SELECT DISTINCT + MIN ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT + + SUM( ALL col0 ) * 75 FROM tab2 AS cor0
----
13875

skipif mysql # not compatible
query I rowsort label-1631
SELECT + + SUM ( ALL col0 ) * 75 FROM tab2 AS cor0
----
13875

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN ( + 0 * + 94 + - - 35 + + - col0 * + col2 ) AND + col2 + - + col0
----
0

skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN ( + 0 * + 94 + - - 35 + + - col0 * + col2 ) AND + col2 + - + col0
----
0

query I rowsort
SELECT ALL + 84 * 15 AS col0 FROM tab0
----
1260
1260
1260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1634
SELECT - 80 * + CAST( col0 AS SIGNED ) AS col2 FROM tab2
----
-3680
-5120
-6000

skipif mysql # not compatible
query I rowsort label-1634
SELECT - 80 * + CAST ( col0 AS INTEGER ) AS col2 FROM tab2
----
-3680
-5120
-6000

query I rowsort
SELECT 41 * 99 FROM tab0
----
4059
4059
4059

query I rowsort
SELECT - ( - 79 ) FROM tab0
----
79
79
79

query I rowsort
SELECT 58 + + - col1 - + + 52 * - col0 * - 42 + + col0 / + col0 FROM tab1 WHERE NOT col1 >= col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < col2 * + - 95 + - 65
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1639
SELECT ( + 37 ) DIV + col1 AS col2 FROM tab0
----
0
1
37

skipif mysql # not compatible
query I rowsort label-1639
SELECT ( + 37 ) / + col1 AS col2 FROM tab0
----
0
1
37

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col0 >= col2 + + + col2
----
64
77
40
75
67
58

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

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

query I rowsort
SELECT DISTINCT + - 18 * 18 AS col2 FROM tab0 AS cor0
----
-324

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1644
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL BETWEEN 76 + - 20 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1644
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL BETWEEN 76 + - 20 AND NULL
----
0

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + 98 + 58
----

query I rowsort
SELECT - 13 + col2 * - col1 * + + col0 * 57 AS col1 FROM tab0 AS cor0
----
-1041403
-3254998
-547384

query I rowsort
SELECT - col2 * + col0 + col1 - - + ( 83 ) * col0 + + - col0 * col0 * col2 FROM tab2 cor0
----
-161011
-324308
-45857

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT + MAX( ALL - col0 ) + 73 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-1649
SELECT + MAX ( ALL - col0 ) + 73 FROM tab0 AS cor0
----
58

query I rowsort
SELECT ALL - col0 + + col2 * col2 AS col1 FROM tab2
----
1536
3289
483

query I rowsort
SELECT DISTINCT ( 44 ) + col0 * - 25 AS col0 FROM tab1
----
-1231
-2081
-2231

query I rowsort
SELECT 47 + + col2 AS col0 FROM tab0
----
146
57
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1653
SELECT ALL COUNT( * ) + COUNT( * ) DIV 95 col2 FROM tab1
----
3

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

query I rowsort
SELECT ALL col0 * + 26 FROM tab0
----
2262
2522
390

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT DISTINCT 84 * - + SUM( DISTINCT + - 60 ) FROM tab2
----
5040

skipif mysql # not compatible
query I rowsort label-1655
SELECT DISTINCT 84 * - + SUM ( DISTINCT + - 60 ) FROM tab2
----
5040

onlyif mysql # aggregate syntax: 
query I rowsort label-1656
SELECT ALL COUNT( * ) * + - 73 AS col2 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-1656
SELECT ALL COUNT ( * ) * + - 73 AS col2 FROM tab1
----
-219

onlyif mysql # DIV for integer division: 
query I rowsort label-1657
SELECT DISTINCT col1 DIV - - col2 - + col1 AS col1 FROM tab2
----
-49
-66
-76

skipif mysql # not compatible
query I rowsort label-1657
SELECT DISTINCT col1 / - - col2 - + col1 AS col1 FROM tab2
----
-49
-66
-76

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

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

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

query I rowsort
SELECT DISTINCT + + ( + + 18 ) + - - col2 FROM tab0 AS cor0
----
117
28
65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1661
SELECT DISTINCT * FROM tab2 WHERE - - 57 * - CAST( + + col2 AS SIGNED ) - - ( col0 ) > + - col1
----

skipif mysql # not compatible
query III rowsort label-1661
SELECT DISTINCT * FROM tab2 WHERE - - 57 * - CAST ( + + col2 AS INTEGER ) - - ( col0 ) > + - col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT + 71 + + MIN( ALL + 95 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
166

skipif mysql # not compatible
query I rowsort label-1663
SELECT + 71 + + MIN ( ALL + 95 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT + 90 * + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-1664
SELECT + 90 * + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-270

query I rowsort
SELECT + col1 - col1 FROM tab0 AS cor0 WHERE NOT 94 - + 92 + - col1 IS NULL
----
0
0
0

query II rowsort
SELECT + ( - col1 ) * + + 76 AS col2, col0 AS col0 FROM tab1 AS cor0
----
-1064
51
-3572
91
-380
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1667
SELECT + 98 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1667
SELECT + 98 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1668
SELECT DISTINCT + col1 FROM tab0 WHERE NOT - col2 NOT BETWEEN 66 * + + CAST( NULL AS SIGNED ) + 86 * - col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-1668
SELECT DISTINCT + col1 FROM tab0 WHERE NOT - col2 NOT BETWEEN 66 * + + CAST ( NULL AS INTEGER ) + 86 * - col2 AND NULL
----

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

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

query II rowsort
SELECT DISTINCT + col0, 16 FROM tab1
----
51
16
85
16
91
16

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT DISTINCT + 24 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-1672
SELECT DISTINCT + 24 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1673
SELECT ALL + CAST( NULL AS DECIMAL ) / - COUNT( * ) + - + 42 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL + CAST ( NULL AS REAL ) / - COUNT ( * ) + - + 42 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1674
SELECT + col2 * + col1 * - - 58 + + col1 - - col1 DIV 1 FROM tab0
----
12222
220968
5744

skipif mysql # not compatible
query I rowsort label-1674
SELECT + col2 * + col1 * - - 58 + + col1 - - col1 / 1 FROM tab0
----
12222
220968
5744

query I rowsort
SELECT + 29 + + ( - 13 ) FROM tab1
----
16
16
16

query I rowsort
SELECT ALL 8 * + col1 AS col2 FROM tab0
----
168
648
8

query I rowsort
SELECT 55 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1678
SELECT DISTINCT - - 16 DIV - - 82 + COUNT( * ) * + + 87 + + + 50 * 59 AS col1 FROM tab2 AS cor0
----
3211

skipif mysql # not compatible
query I rowsort label-1678
SELECT DISTINCT - - 16 / - - 82 + COUNT ( * ) * + + 87 + + + 50 * 59 AS col1 FROM tab2 AS cor0
----
3211

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

query I rowsort
SELECT 39 + + + col1 FROM tab2
----
106
116
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1681
SELECT - CAST( + 66 AS SIGNED ) + + 38 FROM tab1
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-1681
SELECT - CAST ( + 66 AS INTEGER ) + + 38 FROM tab1
----
-28
-28
-28

query I rowsort
SELECT - col0 + + - 8 FROM tab2
----
-54
-72
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 / - - col2 * - col1 col1, - col2 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 90 - + col2 col1 FROM tab0 AS cor0
----
-9
43
80

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

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

query I rowsort
SELECT 36 * - 46 + + + col0 * + + 81 FROM tab2 cor0
----
2070
3528
4419

query I rowsort
SELECT - - 86 + - col2 FROM tab0 AS cor0
----
-13
39
76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT SUM( ALL - - col1 ) * 71 col1 FROM tab0
----
7313

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1689
SELECT SUM ( ALL - - col1 ) * 71 col1 FROM tab0
----
7313

query I rowsort
SELECT ALL - - 50 AS col2 FROM tab2 cor0 WHERE NOT col0 * col0 = - col2
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT + 58 * - COUNT( * ) FROM tab1 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-1691
SELECT + 58 * - COUNT ( * ) FROM tab1 AS cor0
----
-174

query I rowsort
SELECT col2 * - 5 AS col2 FROM tab2 cor0
----
-115
-200
-290

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1694
SELECT MIN( ALL - 74 ), COUNT( * ) AS col0 FROM tab1
----
-74
3

skipif mysql # not compatible
query II rowsort label-1694
SELECT MIN ( ALL - 74 ), COUNT ( * ) AS col0 FROM tab1
----
-74
3

query I rowsort
SELECT 38 + 8 AS col2 FROM tab0
----
46
46
46

query I rowsort
SELECT AVG ( + 18 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 * col2 + col1 + - col0 / - 7 * - 79 + + col2 * - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 + - 93 col2 FROM tab0
----
-9
-9
-9

query I rowsort
SELECT + + 76 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT DISTINCT - SUM( ALL + 64 ) FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-1701
SELECT DISTINCT - SUM ( ALL + 64 ) FROM tab1
----
-192

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1704
SELECT ALL CAST( + + ( + + col1 ) AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL CAST ( + + ( + + col1 ) AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT + col1 + + col1 + col2 AS col1 FROM tab1
----
124
162
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT 11 * + COUNT( * ) col1 FROM tab0 WHERE NULL IS NULL
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1706
SELECT 11 * + COUNT ( * ) col1 FROM tab0 WHERE NULL IS NULL
----
33

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 + - 61 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5581dfc74e16052a9bdb9946c56be8bf

query I rowsort
SELECT ALL + col1 * - + 73 AS col2 FROM tab0
----
-1533
-5913
-73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT DISTINCT + SUM( - 47 ) * MIN( 60 ) FROM tab1 AS cor0
----
-8460

skipif mysql # not compatible
query I rowsort label-1712
SELECT DISTINCT + SUM ( - 47 ) * MIN ( 60 ) FROM tab1 AS cor0
----
-8460

query II rowsort
SELECT DISTINCT + col0, col2 + col2 FROM tab1 AS cor0
----
51
192
85
118
91
136

query II rowsort
SELECT ALL + col1, + col0 + + 87 FROM tab0 cor0
----
1
184
21
174
81
102

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

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

query I rowsort
SELECT ALL 55 * + 24 AS col0 FROM tab1 cor0
----
1320
1320
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT DISTINCT + ( + ( - COUNT( * ) ) ) * + - 48 FROM tab2 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-1718
SELECT DISTINCT + ( + ( - COUNT ( * ) ) ) * + - 48 FROM tab2 AS cor0
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-1719
SELECT DISTINCT - - ( col2 ) DIV - col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-1719
SELECT DISTINCT - - ( col2 ) / - col0 FROM tab0 AS cor0
----
-1
-3
0

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

skipif mysql # not compatible
query I rowsort label-1720
SELECT DISTINCT - col2 / + - ( - + col2 ) FROM tab0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1721
SELECT DISTINCT + 73 / - + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

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

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

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

query II rowsort
SELECT ALL 92 AS col2, ( - col0 ) * - + 48 * + col0 AS col1 FROM tab1
----
92
124848
92
346800
92
397488

query I rowsort
SELECT ALL + + 52 FROM tab1 WHERE NOT + - 96 + + col1 NOT BETWEEN + - 11 - - col2 AND + 46 + - 26
----

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

skipif mysql # not compatible
query II rowsort label-1725
SELECT + col1, CAST ( NULL AS REAL ) * - col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1727
SELECT + CAST( - MAX( DISTINCT + col0 ) AS SIGNED ) AS col0 FROM tab0
----
-97

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

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

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

query I rowsort
SELECT DISTINCT + 64 + - col1 + + 92 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN + 76 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1732
SELECT ALL COUNT( - col0 ) * + 38 * + + MIN( - CAST( + col0 AS SIGNED ) ) + COUNT( * ) FROM tab2 AS cor0
----
-8547

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL COUNT ( - col0 ) * + 38 * + + MIN ( - CAST ( + col0 AS INTEGER ) ) + COUNT ( * ) FROM tab2 AS cor0
----
-8547

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

skipif mysql # not compatible
query I rowsort label-1733
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

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

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

query I rowsort
SELECT ALL + 47 AS col2 FROM tab1 cor0
----
47
47
47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 > + col1
----

query I rowsort
SELECT DISTINCT + col0 * - 16 + - col1 FROM tab0 AS cor0
----
-1413
-1553
-321

query I rowsort
SELECT + 22 + - col2 AS col0 FROM tab2
----
-1
-18
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT ALL - ( - COUNT( + - col1 ) ) * - 21 + - 7 AS col1 FROM tab2
----
-70

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL - ( - COUNT ( + - col1 ) ) * - 21 + - 7 AS col1 FROM tab2
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1741
SELECT ALL CAST( + 77 AS SIGNED ) - + - col2 + 35 FROM tab1
----
171
180
208

skipif mysql # not compatible
query I rowsort label-1741
SELECT ALL CAST ( + 77 AS INTEGER ) - + - col2 + 35 FROM tab1
----
171
180
208

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 5 IS NULL AND NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL - 13 - - + 43 AS col0 FROM tab0
----
30
30
30

query I rowsort
SELECT col0 * + 6 + + col1 AS col1 FROM tab2
----
327
461
517

query I rowsort
SELECT ALL col2 + - 79 AS col2 FROM tab1
----
-11
-20
17

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 51 AS col1, + col2 - 99 col0 FROM tab2
----
51
-41
51
-59
51
-76

query I rowsort
SELECT col0 * - 14 FROM tab2 AS cor0
----
-1050
-644
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT + SUM( DISTINCT - col1 ) FROM tab1 cor0 WHERE NOT 95 BETWEEN - 25 AND - col2 + - + col0
----
-66

skipif mysql # not compatible
query I rowsort label-1749
SELECT + SUM ( DISTINCT - col1 ) FROM tab1 cor0 WHERE NOT 95 BETWEEN - 25 AND - col2 + - + col0
----
-66

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * + - col1 - + - col2 + 63 * + col1 AS col2 FROM tab0 cor0
----
1123
1343
63

query I rowsort
SELECT DISTINCT + col0 * + - col0 + + col1 - - col0 + 84 FROM tab0 AS cor0
----
-45
-7377
-9227

query I rowsort
SELECT + col1 * + - 28 * - - col0 FROM tab1 AS cor0
----
-11900
-119756
-19992

query I rowsort
SELECT DISTINCT - 38 * - 52 FROM tab0 AS cor0
----
1976

query I rowsort
SELECT - + 69 + - col1 + col1 FROM tab1 AS cor0
----
-69
-69
-69

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

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

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

query II rowsort
SELECT DISTINCT + col2, col0 * + - col0 FROM tab0
----
10
-7569
47
-225
99
-9409

query I rowsort
SELECT 23 + + 94 + - - col1 - col1 FROM tab1
----
117
117
117

query I rowsort
SELECT - col2 * + - col1 * + col0 AS col0 FROM tab1 WHERE + - col0 * + col2 + + + col1 IS NULL
----

query I rowsort
SELECT + col2 + + + col1 * 97 FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE + col0 < - + 64
----

query I rowsort
SELECT 21 * + col2 + - - col1 AS col0 FROM tab0
----
1068
2080
231

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT DISTINCT + COUNT( * ) * - 89 - 7 AS col0 FROM tab0
----
-274

skipif mysql # not compatible
query I rowsort label-1766
SELECT DISTINCT + COUNT ( * ) * - 89 - 7 AS col0 FROM tab0
----
-274

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col0 IS NULL )
----

query I rowsort
SELECT DISTINCT + - col0 * - col2 * - col1 AS col0 FROM tab1 AS cor0
----
-25075
-290836
-68544

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1773
SELECT col0 * - col0 + + CAST ( NULL AS REAL ) + 21 + ( col2 ) * + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1774
SELECT - 98 DIV + + MIN( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1774
SELECT - 98 / + + MIN ( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
1

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 >= + - 41
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( 49 ) * - + col1 FROM tab2
----
-2499
-3283
-3773

query II rowsort
SELECT col2 * + + 46 * col0 AS col2, col2 FROM tab2 AS cor0
----
117760
40
200100
58
48668
23

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1783
SELECT ALL + COUNT( ALL + - col0 ) * - + 93 + - + COUNT( * ) + + - COUNT( * ) * CAST( SUM( DISTINCT col1 ) AS SIGNED ) + - + 42 AS col2 FROM tab2 AS cor0
----
-909

skipif mysql # not compatible
query I rowsort label-1783
SELECT ALL + COUNT ( ALL + - col0 ) * - + 93 + - + COUNT ( * ) + + - COUNT ( * ) * CAST ( SUM ( DISTINCT col1 ) AS INTEGER ) + - + 42 AS col2 FROM tab2 AS cor0
----
-909

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

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

query I rowsort
SELECT - ( + 51 ) FROM tab0 cor0
----
-51
-51
-51

query I rowsort
SELECT ALL - col1 + col2 * - - 2 FROM tab0
----
-1
13
197

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1790
SELECT DISTINCT + col0 * 4 DIV - col1 AS col0 FROM tab0
----
-16
-388
0

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT + col0 * 4 / - col1 AS col0 FROM tab0
----
-16
-388
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT DISTINCT COUNT( DISTINCT + - col2 ) * + - 19 * + 72 col2 FROM tab2
----
-4104

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1791
SELECT DISTINCT COUNT ( DISTINCT + - col2 ) * + - 19 * + 72 col2 FROM tab2
----
-4104

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT ALL SUM( - col0 ) FROM tab1 AS cor0 WHERE NOT ( - + col0 <> NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1794
SELECT ALL SUM ( - col0 ) FROM tab1 AS cor0 WHERE NOT ( - + col0 <> NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - 61 ) + - col1 col0 FROM tab0 AS cor0
----
-20
40
60

query I rowsort
SELECT ALL 60 * + col1 AS col2 FROM tab0 cor0
----
1260
4860
60

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

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

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

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

query I rowsort
SELECT ALL + col1 * - 54 * col0 AS col2 FROM tab2 AS cor0
----
-126684
-266112
-271350

query I rowsort
SELECT - ( - 86 ) AS col2 FROM tab2
----
86
86
86

query III rowsort
SELECT * FROM tab2 WHERE - col0 BETWEEN + ( + + 62 ) AND - col2
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1803
SELECT - col0 AS col2, - col1 DIV + col1 FROM tab2
----
-46
-1
-64
-1
-75
-1

skipif mysql # not compatible
query II rowsort label-1803
SELECT - col0 AS col2, - col1 / + col1 FROM tab2
----
-46
-1
-64
-1
-75
-1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 10 IS NOT NULL AND NOT ( NULL ) BETWEEN NULL AND - col0 * col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1805
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - - 42 * - CAST( NULL AS DECIMAL ) * + col0
----

skipif mysql # not compatible
query III rowsort label-1805
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - - 42 * - CAST ( NULL AS REAL ) * + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1806
SELECT + col0 DIV - + 6 AS col0 FROM tab0 AS cor0
----
-14
-16
-2

skipif mysql # not compatible
query I rowsort label-1806
SELECT + col0 / - + 6 AS col0 FROM tab0 AS cor0
----
-14
-16
-2

query I rowsort
SELECT DISTINCT + 44 * + + col1 AS col0 FROM tab1
----
2068
220
616

query I rowsort
SELECT ALL - 11 * col0 FROM tab0
----
-1067
-165
-957

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1809
SELECT DISTINCT col1 * + CAST( NULL AS SIGNED ) AS col2, 67 FROM tab0
----
NULL
67

skipif mysql # not compatible
query II rowsort label-1809
SELECT DISTINCT col1 * + CAST ( NULL AS INTEGER ) AS col2, 67 FROM tab0
----
NULL
67

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

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL MAX ( - 20 ) AS col2 FROM tab2
----
-20

query I rowsort
SELECT col1 - 80 - + col2 * - + 25 FROM tab2 AS cor0 WHERE NOT 1 IN ( 61 )
----
1437
546
997

query I rowsort
SELECT ALL + col1 + + - 67 AS col2 FROM tab2 AS cor0 WHERE - 31 / col0 * col0 * + col1 < - + ( + - 95 )
----
-16
0
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT ALL - 81 + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( + 34, col2 * - col1 + - - col1 )
----
-81

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL - 81 + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( + 34, col2 * - col1 + - - col1 )
----
-81

query I rowsort
SELECT ALL col1 * + 82 AS col0 FROM tab1
----
1148
3854
410

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

query I rowsort
SELECT + 69 * ( + col2 ) FROM tab0 AS cor0
----
3243
6831
690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 64 * - 11 col0 FROM tab1 cor0
----
-33088
-3520
-9856

query I rowsort
SELECT + 20 * + col1 + + 34 AS col0 FROM tab0 AS cor0
----
1654
454
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 17 + col2 col2 FROM tab1
----
113
76
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 + + col0 col0 FROM tab0
----
0
72
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT ALL COUNT( * ) * + - 47 FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL COUNT ( * ) * + - 47 FROM tab1
----
-141

query III rowsort
SELECT * FROM tab2 WHERE + + col1 + col0 + col1 * + - col2 / - col1 * - ( - + col2 ) IS NULL
----

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

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

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

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

query I rowsort
SELECT + col1 * + 16 AS col0 FROM tab2 AS cor0
----
1072
1232
816

query I rowsort
SELECT - + 15 * col0 FROM tab0 AS cor0
----
-1305
-1455
-225

query II rowsort
SELECT DISTINCT - 6 * - col2, + 58 * - + col2 AS col2 FROM tab0 AS cor0
----
282
-2726
594
-5742
60
-580

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

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

skipif mysql # not compatible
query I rowsort label-1829
SELECT col2 / + 83 AS col2 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1830
SELECT DISTINCT - MIN( - 82 ) DIV + 89 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1830
SELECT DISTINCT - MIN ( - 82 ) / + 89 FROM tab2
----
0

query I rowsort
SELECT ALL - 57 * 22 AS col1 FROM tab2
----
-1254
-1254
-1254

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN 62 AND NULL
----

query I rowsort
SELECT DISTINCT + + col0 * 84 AS col1 FROM tab0 AS cor0
----
1260
7308
8148

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1834
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * - ( - col2 ) * - 4 - + CAST( - - 15 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1834
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * - ( - col2 ) * - 4 - + CAST ( - - 15 AS INTEGER ) IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - col2 * - - 11 + 83 * - + col1 FROM tab1 AS cor0
----
-1064
-2218
-4649

query I rowsort
SELECT - - 11 * + 52 + - 90 AS col2 FROM tab0 WHERE NOT NULL < NULL
----

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

query II rowsort
SELECT DISTINCT 87 AS col0, - col1 AS col2 FROM tab1
----
87
-14
87
-47
87
-5

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

skipif mysql # not compatible
query I rowsort label-1840
SELECT COUNT ( * ) + - - COUNT ( - + 75 ) + COUNT ( * ) FROM tab0
----
9

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

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

skipif mysql # not compatible
query II rowsort label-1842
SELECT ALL - CAST ( NULL AS INTEGER ), 24 AS col0 FROM tab0 AS cor0
----
NULL
24
NULL
24
NULL
24

query I rowsort
SELECT ALL col0 * col0 + + 55 FROM tab2 AS cor0
----
2171
4151
5680

onlyif mysql # DIV for integer division: 
query I rowsort label-1844
SELECT col0 * ( - 55 ) DIV - + col1 - + col0 FROM tab1 cor0
----
149
15
850

skipif mysql # not compatible
query I rowsort label-1844
SELECT col0 * ( - 55 ) / - + col1 - + col0 FROM tab1 cor0
----
149
15
850

query I rowsort
SELECT - col1 * - 75 * + col1 AS col0 FROM tab0 AS cor0
----
33075
492075
75

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

skipif mysql # not compatible
query I rowsort label-1846
SELECT - + 71 / - + 1 AS col2 FROM tab0 AS cor0
----
71
71
71

query I rowsort
SELECT DISTINCT col2 * + 68 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
4012
4624
6528

query II rowsort
SELECT ALL + + ( - 81 ) * + - 52 + col2 AS col1, + col2 AS col2 FROM tab0 AS cor0
----
4222
10
4259
47
4311
99

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

query I rowsort
SELECT DISTINCT + col1 + col1 + + col1 * - col1 FROM tab2 cor0
----
-2499
-4355
-5775

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1852
SELECT DISTINCT - col1 + - col1 DIV col1 * col2 FROM tab2
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-1852
SELECT DISTINCT - col1 + - col1 / col1 * col2 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT ALL - col1 * - 61 + + ( - - 52 ) AS col2 FROM tab1
----
2919
357
906

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1854
SELECT + ( 94 ) + COUNT( * ) DIV 78 * + 92 AS col1 FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-1854
SELECT + ( 94 ) + COUNT ( * ) / 78 * + 92 AS col1 FROM tab2
----
94

query II rowsort
SELECT + col1 + 89 AS col1, col0 + + col1 FROM tab0
----
110
108
170
96
90
98

query I rowsort
SELECT col0 + 12 + - col1 - + col0 AS col2 FROM tab1
----
-2
-35
7

query I rowsort
SELECT - 97 + col1 FROM tab2
----
-20
-30
-46

query II rowsort
SELECT ALL + col0 + - col0, col2 AS col1 FROM tab1 cor0
----
0
59
0
68
0
96

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

query I rowsort
SELECT + 45 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT ALL + 92 + - - 14 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e3a970c661a05070afa8a3ed8dca742e

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

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT col1 < NULL
----

query I rowsort
SELECT DISTINCT 33 * + 20 FROM tab2 AS cor0
----
660

onlyif mysql # aggregate syntax: 
query II rowsort label-1865
SELECT ALL COUNT( * ) * + 66, + 48 AS col0 FROM tab1
----
198
48

skipif mysql # not compatible
query II rowsort label-1865
SELECT ALL COUNT ( * ) * + 66, + 48 AS col0 FROM tab1
----
198
48

query I rowsort
SELECT - 3 * + + 10 AS col2 FROM tab1
----
-30
-30
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1867
SELECT + col1 * 71 AS col0, + 98 * - col2 * - CAST( NULL AS DECIMAL ) FROM tab2
----
3621
NULL
4757
NULL
5467
NULL

skipif mysql # not compatible
query II rowsort label-1867
SELECT + col1 * 71 AS col0, + 98 * - col2 * - CAST ( NULL AS REAL ) FROM tab2
----
3621
NULL
4757
NULL
5467
NULL

query I rowsort
SELECT - ( - 75 ) FROM tab1
----
75
75
75

query I rowsort
SELECT + col0 * - ( + - 94 ) * - - col0 FROM tab0
----
21150
711486
884446

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

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

query I rowsort
SELECT + 3 * + col1 AS col1 FROM tab1 AS cor0
----
141
15
42

query I rowsort
SELECT + - 1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1875
SELECT ALL col2 * + 69 * - ( - - CAST( NULL AS SIGNED ) ) + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL col2 * + 69 * - ( - - CAST ( NULL AS INTEGER ) ) + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT DISTINCT col1 + - 54 FROM tab2 AS cor0
----
-3
13
23

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

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL + 44 + + + COUNT ( * ) FROM tab2 AS cor0
----
47

query I rowsort
SELECT DISTINCT + col1 + col2 + 23 FROM tab1 cor0
----
133
138
87

query II rowsort
SELECT ( - col1 ) + + col2 AS col1, - col0 FROM tab2 AS cor0
----
-28
-46
-37
-64
-9
-75

query I rowsort
SELECT ALL - 75 + + col2 FROM tab1 AS cor0
----
-16
-7
21

query I rowsort
SELECT ALL 99 + - col0 + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-75
-95
69

query I rowsort
SELECT + col1 + - col2 + - - col2 AS col0 FROM tab1 cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1884
SELECT + CAST( NULL AS SIGNED ) col0, + 67 DIV - col1 FROM tab0
----
NULL
-3
NULL
-67
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1884
SELECT + CAST ( NULL AS INTEGER ) col0, + 67 / - col1 FROM tab0
----
NULL
-3
NULL
-67
NULL
0

query III rowsort
SELECT * FROM tab2 WHERE 92 + + 31 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 24, col1 col2 FROM tab0 WHERE col0 > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1887
SELECT ALL + - col1 DIV 42 + col2 * - col1 FROM tab0 WHERE NOT + - col1 > - col2
----
-210
-3808

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL + - col1 / 42 + col2 * - col1 FROM tab0 WHERE NOT + - col1 > - col2
----
-210
-3808

onlyif mysql # aggregate syntax: 
query II rowsort label-1888
SELECT + 37, - ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
37
-3

skipif mysql # not compatible
query II rowsort label-1888
SELECT + 37, - ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
37
-3

query I rowsort
SELECT - col2 - - 5 AS col0 FROM tab1 cor0
----
-54
-63
-91

query I rowsort
SELECT + 25 FROM tab1 AS cor0 WHERE ( ( NOT - ( col0 ) <> + - col2 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 >= - 87 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT DISTINCT - - SUM( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT - - SUM ( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT + MIN( + col1 ) * - ( + MAX( - col1 ) ) AS col1 FROM tab2 AS cor0
----
2601

skipif mysql # not compatible
query I rowsort label-1893
SELECT + MIN ( + col1 ) * - ( + MAX ( - col1 ) ) AS col1 FROM tab2 AS cor0
----
2601

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < - col2 * 44 * + col2 * - col2 AND NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + - 21 * - col1 FROM tab0 AS cor0
----
-2037
-25515
-38367

query II rowsort
SELECT - col2 * + - ( - col1 ) * + 76 AS col1, col0 AS col2 FROM tab0
----
-15960
87
-289332
15
-7524
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT COUNT( * ) col0 FROM tab0 WHERE NOT ( NOT + col1 IS NOT NULL )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1897
SELECT COUNT ( * ) col0 FROM tab0 WHERE NOT ( NOT + col1 IS NOT NULL )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT DISTINCT MIN( ALL col0 ) - + + 57 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-6

skipif mysql # not compatible
query I rowsort label-1898
SELECT DISTINCT MIN ( ALL col0 ) - + + 57 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT DISTINCT + 73 * + COUNT( * ) AS col1 FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-1899
SELECT DISTINCT + 73 * + COUNT ( * ) AS col1 FROM tab1
----
219

query I rowsort
SELECT + col1 * - col2 + + col0 + + - 54 FROM tab1 cor0
----
-1347
-264
-3159

query I rowsort
SELECT + ( 52 ) + - col0 / 76 FROM tab1 WHERE NULL IN ( 91 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1902
SELECT ALL col1 DIV - col2 + + 53 AS col2 FROM tab0
----
51
52
53

skipif mysql # not compatible
query I rowsort label-1902
SELECT ALL col1 / - col2 + + 53 AS col2 FROM tab0
----
51
52
53

query I rowsort
SELECT + ( 58 ) * col1 AS col2 FROM tab1
----
2726
290
812

query I rowsort
SELECT col2 * + col0 AS col0 FROM tab1 WHERE NOT ( col1 ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT + 20 * - COUNT( * ) AS col2 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-1905
SELECT + 20 * - COUNT ( * ) AS col2 FROM tab0
----
-60

query I rowsort
SELECT - ( - ( + col0 ) ) * 99 AS col0 FROM tab1
----
5049
8415
9009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) + + 13 col2 FROM tab1
----
104
64
98

query I rowsort
SELECT - 9 * col0 AS col2 FROM tab2
----
-414
-576
-675

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 26 * 80 + col2 AS col2 FROM tab2
----
-2022
-2040
-2057

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1912
SELECT col1 + + CAST( col1 AS SIGNED ) FROM tab0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-1912
SELECT col1 + + CAST ( col1 AS INTEGER ) FROM tab0
----
162
2
42

query I rowsort
SELECT ALL + ( 5 ) FROM tab1
----
5
5
5

query I rowsort
SELECT + 52 + 62 * - col0 FROM tab1
----
-3110
-5218
-5590

query I rowsort
SELECT - col0 * col1 + - col0 FROM tab0
----
-1230
-1914
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT ALL 16 * + SUM( ALL - col1 ) FROM tab0 WHERE + 40 >= col1
----
-352

skipif mysql # not compatible
query I rowsort label-1916
SELECT ALL 16 * + SUM ( ALL - col1 ) FROM tab0 WHERE + 40 >= col1
----
-352

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 58 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1918
SELECT col1 + 93 DIV - col2 FROM tab2
----
47
66
75

skipif mysql # not compatible
query I rowsort label-1918
SELECT col1 + 93 / - col2 FROM tab2
----
47
66
75

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + col0 * + col0
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN - col1 AND - col0 * - 58
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 20 * 69 BETWEEN NULL AND ( + col0 )
----

query I rowsort
SELECT DISTINCT 37 + col0 AS col1 FROM tab0
----
124
134
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT DISTINCT SUM( + col1 ) col2 FROM tab1
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1923
SELECT DISTINCT SUM ( + col1 ) col2 FROM tab1
----
66

query I rowsort
SELECT - col1 * 26 FROM tab2
----
-1326
-1742
-2002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1925
SELECT + 72 + + CAST( - 74 AS SIGNED ) AS col0 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1925
SELECT + 72 + + CAST ( - 74 AS INTEGER ) AS col0 FROM tab2
----
-2
-2
-2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 50 * + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 33 + 90 ) IS NULL
----

query I rowsort
SELECT - col2 * + col1 FROM tab1 WHERE ( + col0 ) + + ( 11 + col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1929
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( NULL ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-1929
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( NULL ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col0 * 15 ) BETWEEN ( + 44 ) AND ( ( 65 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 78 IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 col2 FROM tab1 WHERE ( + 29 / - 65 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT + COUNT( * ) FROM tab2 cor0 WHERE NOT + 25 * col2 - col1 BETWEEN NULL AND col1
----
3

skipif mysql # not compatible
query I rowsort label-1933
SELECT + COUNT ( * ) FROM tab2 cor0 WHERE NOT + 25 * col2 - col1 BETWEEN NULL AND col1
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( - 74 ) AND ( 24 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1935
SELECT 83 AS col1 FROM tab1 cor0 WHERE NOT ( - 24 DIV col2 ) IN ( 5 DIV + 45 )
----

skipif mysql # not compatible
query I rowsort label-1935
SELECT 83 AS col1 FROM tab1 cor0 WHERE NOT ( - 24 / col2 ) IN ( 5 / + 45 )
----

query I rowsort
SELECT DISTINCT ( col0 ) * col2 AS col1 FROM tab2 cor0
----
1058
2560
4350

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT DISTINCT + MAX( - 57 ) AS col2 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-1938
SELECT DISTINCT + MAX ( - 57 ) AS col2 FROM tab0 AS cor0
----
-57

query I rowsort
SELECT 34 * - ( 44 ) + 72 AS col0 FROM tab2
----
-1424
-1424
-1424

query I rowsort
SELECT - 14 * + - col0 + - ( 65 ) FROM tab1
----
1125
1209
649

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT 95 + 15 + + COUNT( * ) FROM tab2
----
113

skipif mysql # not compatible
query I rowsort label-1941
SELECT 95 + 15 + + COUNT ( * ) FROM tab2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT ALL MAX( ALL - + ( col1 ) ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL MAX ( ALL - + ( col1 ) ) AS col1 FROM tab1
----
-5

query I rowsort
SELECT ALL ( col1 ) * col1 AS col1 FROM tab0 WHERE NOT + col1 = + col2 + - 41
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1944
SELECT ALL col2 FROM tab0 WHERE + CAST( 17 AS SIGNED ) IS NOT NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1944
SELECT ALL col2 FROM tab0 WHERE + CAST ( 17 AS INTEGER ) IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT MIN( ALL + - col1 ) + 30 AS col1 FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-1945
SELECT MIN ( ALL + - col1 ) + 30 AS col1 FROM tab2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT DISTINCT COUNT( * ) * + ( + 82 ) FROM tab2
----
246

skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT COUNT ( * ) * + ( + 82 ) FROM tab2
----
246

query III rowsort
SELECT * FROM tab2 WHERE col0 / - 96 + 72 BETWEEN NULL AND ( + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 / col1 - + 73 IN ( + col0 )
----

query I rowsort
SELECT DISTINCT + col1 + - - col0 * - 50 AS col2 FROM tab1 cor0
----
-2536
-4245
-4503

onlyif mysql # DIV for integer division: 
query I rowsort label-1950
SELECT + col2 * 76 - col2 DIV col0 AS col1 FROM tab2 AS cor0 WHERE ( - 62 ) IS NOT NULL
----
1748
3040
4408

skipif mysql # not compatible
query I rowsort label-1950
SELECT + col2 * 76 - col2 / col0 AS col1 FROM tab2 AS cor0 WHERE ( - 62 ) IS NOT NULL
----
1748
3040
4408

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1951
SELECT DISTINCT - + col1 + - 8 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1951
SELECT DISTINCT - + col1 + - 8 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1952
SELECT DISTINCT - COUNT( * ) * + ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1952
SELECT DISTINCT - COUNT ( * ) * + ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT - col0 * col2 FROM tab2 cor0 WHERE ( + col1 ) < 23 * col0
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 col2 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1955
SELECT ALL + ( ( - + CAST( 80 AS SIGNED ) ) ) * col2 FROM tab0 AS cor0
----
-3760
-7920
-800

skipif mysql # not compatible
query I rowsort label-1955
SELECT ALL + ( ( - + CAST ( 80 AS INTEGER ) ) ) * col2 FROM tab0 AS cor0
----
-3760
-7920
-800

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + ( - col0 ) + - col2 ) > ( + ( col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 + col0 NOT IN ( col1 * + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1958
SELECT DISTINCT - - ( + col1 ) DIV + 14 FROM tab2 cor0
----
3
4
5

skipif mysql # not compatible
query I rowsort label-1958
SELECT DISTINCT - - ( + col1 ) / + 14 FROM tab2 cor0
----
3
4
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1959
SELECT ALL 79 / + - CAST( NULL AS SIGNED ) + + CAST( + COUNT( * ) AS SIGNED ) * 98 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1959
SELECT ALL 79 / + - CAST ( NULL AS INTEGER ) + + CAST ( + COUNT ( * ) AS INTEGER ) * 98 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + 90 + - col1 FROM tab2 AS cor0
----
13
23
39

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - - 55 * ( + 86 )
----

query I rowsort
SELECT ALL 93 + - col1 AS col1 FROM tab0 AS cor0
----
12
72
92

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 <= ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT DISTINCT - MAX( ALL 76 ) AS col1 FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-1964
SELECT DISTINCT - MAX ( ALL 76 ) AS col1 FROM tab0 AS cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT DISTINCT SUM( DISTINCT - col1 ) + ( + + 71 ) AS col2 FROM tab2
----
-124

skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT SUM ( DISTINCT - col1 ) + ( + + 71 ) AS col2 FROM tab2
----
-124

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN ( col2 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1967
SELECT ALL CAST( NULL AS SIGNED ) / - - col0 + + 42 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1967
SELECT ALL CAST ( NULL AS INTEGER ) / - - col0 + + 42 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + + 10 ) + - 52 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 + 50 ) IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 29 AS col1 FROM tab2 AS cor0 WHERE NOT col2 - + - col1 IS NULL
----
29
29
29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1971
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1971
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1972
SELECT + + CAST( NULL AS SIGNED ) * col1 / + col2 + + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1972
SELECT + + CAST ( NULL AS INTEGER ) * col1 / + col2 + + col1 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col1 - + 80 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT + - 74 * - - MAX( ALL + + 48 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-3552

skipif mysql # not compatible
query I rowsort label-1974
SELECT + - 74 * - - MAX ( ALL + + 48 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-3552

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT ALL SUM( col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-1975
SELECT ALL SUM ( col2 ) AS col2 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT - MIN( ALL + + col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1976
SELECT - MIN ( ALL + + col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT - + SUM( + - 85 ) AS col1 FROM tab2 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-1977
SELECT - + SUM ( + - 85 ) AS col1 FROM tab2 AS cor0
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE + 5 + + 74 + ( + - 58 ) * - col0 NOT IN ( col2 )
----
3

skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + 5 + + 74 + ( + - 58 ) * - col0 NOT IN ( col2 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT - - SUM( - col1 ) AS col0 FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-1979
SELECT - - SUM ( - col1 ) AS col0 FROM tab1 cor0
----
-66

query I rowsort
SELECT ALL + ( + col1 ) AS col1 FROM tab1 cor0 WHERE col1 = + ( - + 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT + MAX( DISTINCT + 79 ) AS col1 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-1981
SELECT + MAX ( DISTINCT + 79 ) AS col1 FROM tab0 AS cor0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT + COUNT( * ) + - + 0 AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1982
SELECT + COUNT ( * ) + - + 0 AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

query II rowsort
SELECT ALL + - 7, 0 FROM tab0 AS cor0 WHERE NULL <= + col2
----

query I rowsort
SELECT - - 67 FROM tab1 cor0
----
67
67
67

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col0 > + - col2
----
15
81
47
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( NULL IN ( - - col0 * col0 ) ) )
----

query I rowsort
SELECT + col2 * 76 FROM tab1 WHERE ( NOT col0 + col0 + - + col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT COUNT( * ) * 49 * + 67 FROM tab0
----
9849

skipif mysql # not compatible
query I rowsort label-1988
SELECT COUNT ( * ) * 49 * + 67 FROM tab0
----
9849

query III rowsort
SELECT * FROM tab0 WHERE ( - ( + col1 ) ) BETWEEN ( - 58 ) AND NULL
----

query III rowsort
SELECT DISTINCT col1 AS col1, + col2, + 74 FROM tab1
----
9 values hashing to ff597cf8061c78974e96025839dbba57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( col1 ) + + - 22 col0 FROM tab0 AS cor0
----
-103
-23
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1992
SELECT ALL col1 AS col1, - 91 + + - 40 + CAST( col0 AS SIGNED ) + + + col1 FROM tab0 AS cor0
----
1
-33
21
-23
81
-35

skipif mysql # not compatible
query II rowsort label-1992
SELECT ALL col1 AS col1, - 91 + + - 40 + CAST ( col0 AS INTEGER ) + + + col1 FROM tab0 AS cor0
----
1
-33
21
-23
81
-35

query I rowsort
SELECT - col1 + + - col2 * - + col1 + - + 13 AS col1 FROM tab1 AS cor0
----
1317
277
3136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1994
SELECT CAST( NULL AS SIGNED ) * - col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1994
SELECT CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 75 * + 14 * - 11 + - + 79 + 4 + + 38 FROM tab1 AS cor0
----
-11587
-11587
-11587

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT DISTINCT + + MAX( DISTINCT col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1996
SELECT DISTINCT + + MAX ( DISTINCT col2 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT DISTINCT ( + 0 ) * - 45 + + col1 FROM tab0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-1998
SELECT col1 * + col0 * + col0 DIV - - col0 AS col0 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-1998
SELECT col1 * + col0 * + col0 / - - col0 AS col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT + 66 * - 23 + + - col2 * ( + col0 ) FROM tab2 AS cor0
----
-2576
-4078
-5868

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT ALL ( - MAX( ALL + ( - - col0 ) ) ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2000
SELECT ALL ( - MAX ( ALL + ( - - col0 ) ) ) AS col2 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT ALL + ( - + col2 ) AS col1 FROM tab0 cor0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col0 + col2, col0 / col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2003
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < 83 * - + col2 / + - CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2003
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < 83 * - + col2 / + - CAST ( col2 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2004
SELECT * FROM tab1 AS cor0 WHERE col0 + - - CAST( NULL AS SIGNED ) > ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2004
SELECT * FROM tab1 AS cor0 WHERE col0 + - - CAST ( NULL AS INTEGER ) > ( NULL )
----

query I rowsort
SELECT DISTINCT 62 + col2 AS col1 FROM tab1 AS cor0
----
121
130
158

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2006
SELECT ALL * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) * + col2 NOT IN ( 82, 45 / - col0 + col1 )
----

skipif mysql # not compatible
query III rowsort label-2006
SELECT ALL * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) * + col2 NOT IN ( 82, 45 / - col0 + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( - col1 ) / 70 + - 66 ) IS NULL
----

query I rowsort
SELECT DISTINCT 65 * 53 FROM tab2
----
3445

query I rowsort
SELECT ALL 63 * - col1 AS col2 FROM tab1
----
-2961
-315
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT + ( + - COUNT( * ) ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2010
SELECT + ( + - COUNT ( * ) ) col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col0 * 61 AS col1 FROM tab0
----
5307
5917
915

query I rowsort
SELECT DISTINCT + + ( - 39 ) FROM tab1 cor0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-2013
SELECT + 84 DIV - + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-2013
SELECT + 84 / - + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-5
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2014
SELECT ALL + col1 + col2 - - CAST( + + ( - + col1 ) AS SIGNED ) + + col1 DIV - 94 * + CAST( + col2 AS SIGNED ) * 72 AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2014
SELECT ALL + col1 + col2 - - CAST ( + + ( - + col1 ) AS INTEGER ) + + col1 / - 94 * + CAST ( + col2 AS INTEGER ) * 72 AS col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL - col1 + 27 FROM tab0
----
-54
26
6

query I rowsort
SELECT - col2 + + 67 FROM tab1
----
-1
-29
8

onlyif mysql # aggregate syntax: 
query II rowsort label-2017
SELECT + COUNT( * ) AS col1, MIN( - 68 ) AS col1 FROM tab2 WHERE NULL < + + ( - 12 )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2017
SELECT + COUNT ( * ) AS col1, MIN ( - 68 ) AS col1 FROM tab2 WHERE NULL < + + ( - 12 )
----
0
NULL

query I rowsort
SELECT col2 * + + col1 + ( + 54 ) AS col1 FROM tab2
----
1227
3134
3940

query II rowsort
SELECT - col0 + - ( 14 ), + col0 AS col1 FROM tab2
----
-60
46
-78
64
-89
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT ( - COUNT( * ) ) + + - 58 AS col0 FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-2020
SELECT ( - COUNT ( * ) ) + + - 58 AS col0 FROM tab0
----
-61

query I rowsort
SELECT DISTINCT + + 39 AS col0 FROM tab1 WHERE NOT ( - ( + col0 ) * + 60 ) NOT BETWEEN ( + 89 ) AND + - 1
----

query II rowsort
SELECT DISTINCT col0 + + col2 * - ( + + col1 ) * col2, col0 FROM tab1
----
-128973
51
-17320
85
-217237
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2023
SELECT 66 - + + col1 / - - col1 FROM tab0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2023
SELECT 66 - + + col1 / - - col1 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2024
SELECT ALL + 4 + COUNT( CAST( NULL AS SIGNED ) ) DIV - - 27 col2 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2024
SELECT ALL + 4 + COUNT ( CAST ( NULL AS INTEGER ) ) / - - 27 col2 FROM tab0 AS cor0
----
4

query I rowsort
SELECT - ( + 50 ) AS col0 FROM tab2 AS cor0
----
-50
-50
-50

query I rowsort
SELECT ALL - col2 + + - col1 AS col2 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT - 78 - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2027
SELECT - 78 - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2028
SELECT - col0 FROM tab0 WHERE ( + - col2 * CAST( 19 AS DECIMAL ) * - - col1 * - 70 - + ( + - col2 ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2028
SELECT - col0 FROM tab0 WHERE ( + - col2 * CAST ( 19 AS REAL ) * - - col1 * - 70 - + ( + - col2 ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2029
SELECT + - col2 DIV CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2029
SELECT + - col2 / CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, 19 col0 FROM tab1 AS cor0
----
-14
19
-47
19
-5
19

query I rowsort
SELECT - col1 * + col1 + - 68 * + col1 FROM tab2 AS cor0
----
-11165
-6069
-9045

query I rowsort
SELECT ALL - 2 * + + col1 * 19 + + col0 + - 92 FROM tab2 AS cor0
----
-1984
-2563
-2954

query I rowsort
SELECT DISTINCT col1 * + - col2 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT - col0 * - col1 * + - col2 * + col1 FROM tab0 AS cor0
----
-383670
-4625505
-9603

query I rowsort
SELECT DISTINCT + ( + 83 ) AS col2 FROM tab1 WHERE - 95 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT DISTINCT - MIN( + col0 ) col0 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2036
SELECT DISTINCT - MIN ( + col0 ) col0 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-2037
SELECT + + COUNT( + + col0 ) * + 62 + + 99 AS col1, 33 FROM tab0 WHERE NOT + col0 / - + 60 IS NULL
----
285
33

skipif mysql # not compatible
query II rowsort label-2037
SELECT + + COUNT ( + + col0 ) * + 62 + + 99 AS col1, 33 FROM tab0 WHERE NOT + col0 / - + 60 IS NULL
----
285
33

query I rowsort
SELECT ALL 0 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 NOT BETWEEN col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * - col1 + + 95 FROM tab2 AS cor0
----
-2251
-4833
-4930

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT MAX( DISTINCT + 10 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2041
SELECT MAX ( DISTINCT + 10 ) AS col0 FROM tab0 AS cor0
----
10

query II rowsort
SELECT - col1 AS col1, + 84 FROM tab1 AS cor0
----
-14
84
-47
84
-5
84

query I rowsort
SELECT + ( - + 28 ) AS col1 FROM tab1 AS cor0
----
-28
-28
-28

query I rowsort
SELECT ALL - 27 * 51 FROM tab1 AS cor0
----
-1377
-1377
-1377

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2045
SELECT + col1 / 31 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2045
SELECT + col1 / 31 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2047
SELECT ALL + + COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2047
SELECT ALL + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - col1 + + col1, col2, - + 30 * col1 + - 90 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT - SUM( ALL - col1 ) + + COUNT( * ) - - MIN( ALL + col2 ) AS col1 FROM tab0
----
116

skipif mysql # not compatible
query I rowsort label-2049
SELECT - SUM ( ALL - col1 ) + + COUNT ( * ) - - MIN ( ALL + col2 ) AS col1 FROM tab0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT NULL IN ( - - 44 + 1, col2 * col2 * - - col0, - col0 / 73 )
----
0

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT NULL IN ( - - 44 + 1, col2 * col2 * - - col0, - col0 / 73 )
----
0

query I rowsort
SELECT col0 * - col1 + col0 + - col2 * + col2 AS col2 FROM tab2
----
-2829
-6464
-8314

onlyif mysql # DIV for integer division: 
query II rowsort label-2052
SELECT + 22 * - 14 + + col1 DIV col2, col1 FROM tab1
----
-308
14
-308
47
-308
5

skipif mysql # not compatible
query II rowsort label-2052
SELECT + 22 * - 14 + + col1 / col2, col1 FROM tab1
----
-308
14
-308
47
-308
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 - + - ( + col0 ) < ( col1 + + 65 ) OR NOT - 98 NOT BETWEEN NULL AND - - 89
----
87
21
10
97
1
99

query I rowsort
SELECT 77 + ( - ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
13
2
31

query I rowsort
SELECT ALL col2 + 63 FROM tab1
----
122
131
159

onlyif mysql # aggregate syntax: 
query II rowsort label-2056
SELECT + 67 AS col0, + SUM( - - col2 ) / - AVG ( col0 ) FROM tab0 WHERE col0 - 1 IS NULL
----
67
NULL

skipif mysql # not compatible
query II rowsort label-2056
SELECT + 67 AS col0, + SUM ( - - col2 ) / - AVG ( col0 ) FROM tab0 WHERE col0 - 1 IS NULL
----
67
NULL

query I rowsort
SELECT ALL + 63 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT DISTINCT + 72 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
72

query I rowsort
SELECT DISTINCT - - 7 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2060
SELECT + SUM( DISTINCT - CAST( - col0 AS SIGNED ) ), - COUNT( * ) AS col1 FROM tab0 AS cor0
----
199
-3

skipif mysql # not compatible
query II rowsort label-2060
SELECT + SUM ( DISTINCT - CAST ( - col0 AS INTEGER ) ), - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
199
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 37 col2 FROM tab0 AS cor0
----
37

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 73 > + + 13 + - 29
----

query I rowsort
SELECT DISTINCT col2 + + - col2 AS col0 FROM tab2 AS cor0 WHERE NULL <= + 76 OR NOT + + 87 + col0 + - + col0 IS NULL
----
0

query I rowsort
SELECT ALL + col0 * - 97 + + - 0 AS col1 FROM tab1 AS cor0 WHERE NOT - ( - col1 ) IS NULL
----
-4947
-8245
-8827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( col0 ) * + + col1 col0 FROM tab1 cor0
----
-425
-4277
-714

query II rowsort
SELECT ALL 95, 10 AS col2 FROM tab0 cor0
----
95
10
95
10
95
10

query I rowsort
SELECT - ( + + 20 ) AS col1 FROM tab2
----
-20
-20
-20

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 + col0 * + col2 * col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - + 37 ) AS col1 FROM tab0
----
37
37
37

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < - + ( - col2 )
----

query II rowsort
SELECT ALL - 26, - 47 AS col1 FROM tab2 AS cor0
----
-26
-47
-26
-47
-26
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT SUM( - - 47 ) FROM tab2
----
141

skipif mysql # not compatible
query I rowsort label-2072
SELECT SUM ( - - 47 ) FROM tab2
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2073
SELECT CAST( 97 AS SIGNED ) * + col2 AS col2 FROM tab0
----
4559
9603
970

skipif mysql # not compatible
query I rowsort label-2073
SELECT CAST ( 97 AS INTEGER ) * + col2 AS col2 FROM tab0
----
4559
9603
970

query I rowsort
SELECT ALL + 33 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query III rowsort
SELECT * FROM tab0 WHERE NOT 45 IS NOT NULL
----

query I rowsort
SELECT 42 * 1 FROM tab1
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT + COUNT( ALL + col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2077
SELECT + COUNT ( ALL + col1 ) AS col2 FROM tab0
----
3

query II rowsort
SELECT DISTINCT + col0 * col0 AS col1, - 31 FROM tab2
----
2116
-31
4096
-31
5625
-31

query I rowsort
SELECT ALL + col1 * 61 FROM tab1 cor0
----
2867
305
854

query I rowsort
SELECT DISTINCT + col0 + - - ( + col2 ) FROM tab2 WHERE col0 + + ( - col0 ) * + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT DISTINCT COUNT( * ) + + 57 AS col1 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-2081
SELECT DISTINCT COUNT ( * ) + + 57 AS col1 FROM tab2
----
60

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( - col1 BETWEEN NULL AND + col2 ) )
----

query I rowsort
SELECT DISTINCT - 13 + - col0 * - 30 AS col0 FROM tab0
----
2597
2897
437

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * - col2 + + + col0, ( - col0 ) col1 FROM tab0 AS cor0
----
-123
-87
-2
-97
-3792
-15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2085
SELECT * FROM tab1 AS cor0 WHERE col1 IN ( CAST( NULL AS SIGNED ) + + 86 + - 97 / - col1 * - - ( col0 ), 15, - 72, + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2085
SELECT * FROM tab1 AS cor0 WHERE col1 IN ( CAST ( NULL AS INTEGER ) + + 86 + - 97 / - col1 * - - ( col0 ), 15, - 72, + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 - - 71 AS col0 FROM tab0 AS cor0
----
-10
50
70

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL OR NULL >= NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 29 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < col0 * - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2091
SELECT CAST( + + SUM( + + 1 ) AS SIGNED ) col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2091
SELECT CAST ( + + SUM ( + + 1 ) AS INTEGER ) col2 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT - + ( - 88 ) FROM tab2 AS cor0
----
88

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( 81 ) < + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT ALL 56 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-2094
SELECT ALL 56 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT DISTINCT - - MIN( + ( + + col2 ) ) col2 FROM tab2 AS cor0 WHERE ( NOT ( NOT ( NULL ) > NULL ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2095
SELECT DISTINCT - - MIN ( + ( + + col2 ) ) col2 FROM tab2 AS cor0 WHERE ( NOT ( NOT ( NULL ) > NULL ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2096
SELECT - + ( + CAST( ( 80 ) AS SIGNED ) ) AS col2 FROM tab0 WHERE NOT col2 + - col1 - - col0 - CAST( CAST( - col0 AS SIGNED ) AS DECIMAL ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-2096
SELECT - + ( + CAST ( ( 80 ) AS INTEGER ) ) AS col2 FROM tab0 WHERE NOT col2 + - col1 - - col0 - CAST ( CAST ( - col0 AS INTEGER ) AS REAL ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 0 * + + 13 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2098
SELECT ALL CAST( + - MAX( DISTINCT - col2 ) AS SIGNED ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL CAST ( + - MAX ( DISTINCT - col2 ) AS INTEGER ) FROM tab1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-2099
SELECT 48 DIV col1 + - + col1 * - col2 + + - 58 * col2 + + col0 AS col0 FROM tab2 AS cor0
----
-115
597
824

skipif mysql # not compatible
query I rowsort label-2099
SELECT 48 / col1 + - + col1 * - col2 + + - 58 * col2 + + col0 AS col0 FROM tab2 AS cor0
----
-115
597
824

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT SUM( ALL - 10 ) col0 FROM tab1
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2100
SELECT SUM ( ALL - 10 ) col0 FROM tab1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2101
SELECT DISTINCT - + col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT - + col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 + - 32 - + col2 AS col2 FROM tab0 AS cor0
----
-130
-21
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT ALL - ( - 7 ) * + COUNT( * ) * - 1 + + 33 col1 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2103
SELECT ALL - ( - 7 ) * + COUNT ( * ) * - 1 + + 33 col1 FROM tab0 AS cor0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - - col1 ) col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2105
SELECT + COUNT( * ) DIV + - SUM( DISTINCT col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2105
SELECT + COUNT ( * ) / + - SUM ( DISTINCT col0 ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT - SUM( + 51 ) AS col0 FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-2106
SELECT - SUM ( + 51 ) AS col0 FROM tab2 AS cor0
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-2107
SELECT + col1 DIV + + col2 AS col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2107
SELECT + col1 / + + col2 AS col0 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2108
SELECT + MAX( col0 ) FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) - + col2 + 66 * + 73 IS NULL
----
91

skipif mysql # not compatible
query I rowsort label-2108
SELECT + MAX ( col0 ) FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) - + col2 + 66 * + 73 IS NULL
----
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT DISTINCT COUNT( * ) + + + 9 AS col0 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-2110
SELECT DISTINCT COUNT ( * ) + + + 9 AS col0 FROM tab0 AS cor0
----
12

query I rowsort
SELECT - col1 - col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2112
SELECT * FROM tab1 AS cor0 WHERE + CAST( col0 AS SIGNED ) <> ( col2 + - CAST( NULL AS SIGNED ) * + - col2 )
----

skipif mysql # not compatible
query III rowsort label-2112
SELECT * FROM tab1 AS cor0 WHERE + CAST ( col0 AS INTEGER ) <> ( col2 + - CAST ( NULL AS INTEGER ) * + - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - + col0 + - 80 + - col0 col0 FROM tab1
----
-29
11
5

query I rowsort
SELECT ( - + col0 ) + + - 76 FROM tab0
----
-163
-173
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2115
SELECT ALL - SUM( ALL col2 ) DIV - 83 - - - COUNT( * ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL - SUM ( ALL col2 ) / - 83 - - - COUNT ( * ) AS col1 FROM tab1
----
-1

query II rowsort
SELECT DISTINCT + col0 - + + col2 AS col2, - col2 * + + col2 FROM tab1
----
-45
-9216
23
-4624
26
-3481

query III rowsort
SELECT * FROM tab2 WHERE NULL >= - - col1
----

query I rowsort
SELECT - 73 + - col0 * + col2 + + + 48 AS col1 FROM tab1
----
-4921
-5040
-6213

query III rowsort
SELECT * FROM tab1 WHERE col1 <> - col2 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 39 + - 0 FROM tab2
----
39
39
39

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 43 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2122
SELECT ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT DISTINCT 86 * MAX( ALL 92 ) * + + 95 col0 FROM tab0
----
751640

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2123
SELECT DISTINCT 86 * MAX ( ALL 92 ) * + + 95 col0 FROM tab0
----
751640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2124
SELECT ( - CAST( - + COUNT( * ) AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2124
SELECT ( - CAST ( - + COUNT ( * ) AS INTEGER ) ) FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2125
SELECT ALL - ( + 38 ) * - CAST( + + COUNT( * ) AS SIGNED ) FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL - ( + 38 ) * - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab2
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2126
SELECT DISTINCT - col2 AS col0, - CAST( NULL AS SIGNED ) FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-2126
SELECT DISTINCT - col2 AS col0, - CAST ( NULL AS INTEGER ) FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 4 col0 FROM tab2 AS cor0
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 27 col0, 12 FROM tab2 AS cor0
----
27
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2129
SELECT - + col0 * CAST( col0 AS SIGNED ) * - col1 + - ( - 93 ) * + - ( + col1 ) AS col2 FROM tab1 AS cor0
----
35112
35660
384836

skipif mysql # not compatible
query I rowsort label-2129
SELECT - + col0 * CAST ( col0 AS INTEGER ) * - col1 + - ( - 93 ) * + - ( + col1 ) AS col2 FROM tab1 AS cor0
----
35112
35660
384836

query I rowsort
SELECT - 90 + - - 62 FROM tab1
----
-28
-28
-28

query I rowsort
SELECT col2 + - 19 AS col0 FROM tab1
----
40
49
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT COUNT( DISTINCT + 32 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2132
SELECT COUNT ( DISTINCT + 32 ) FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2133
SELECT ALL col0 + - col1 DIV - + col1 + + col0 FROM tab2 AS cor0
----
129
151
93

skipif mysql # not compatible
query I rowsort label-2133
SELECT ALL col0 + - col1 / - + col1 + + col0 FROM tab2 AS cor0
----
129
151
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2134
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) * col1 + + + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2134
SELECT DISTINCT + + CAST ( NULL AS REAL ) * col1 + + + col2 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + + col2, - 76 FROM tab1 cor0
----
59
-76
68
-76
96
-76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2136
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN + + col2 / + - CAST( NULL AS DECIMAL ) + - - 51 AND + 70
----
-2

skipif mysql # not compatible
query I rowsort label-2136
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN + + col2 / + - CAST ( NULL AS REAL ) + - - 51 AND + 70
----
-2

query I rowsort
SELECT ALL - - col1 + + 61 FROM tab0 AS cor0
----
142
62
82

query I rowsort
SELECT DISTINCT - + ( 97 ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT DISTINCT - - 97 * COUNT( * ) + - 39 AS col1 FROM tab2 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-2139
SELECT DISTINCT - - 97 * COUNT ( * ) + - 39 AS col1 FROM tab2 AS cor0
----
252

query I rowsort
SELECT - col1 * col0 + - - 33 * - col2 AS col1 FROM tab0 AS cor0
----
-2157
-2766
-3364

query II rowsort
SELECT col1 AS col2, ( col1 ) AS col2 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL + 4 - col1 AS col1 FROM tab2
----
-47
-63
-73

query I rowsort
SELECT + 0 + ( + 20 ) - col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 96 - + col0 FROM tab1
----
11
45
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT + col1 * - + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2145
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT + col1 * - + col1 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 16 ) * - + 21 col1 FROM tab1 AS cor0
----
336
336
336

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT DISTINCT + + 47 * - 98 + SUM( DISTINCT 16 ) FROM tab1 AS cor0
----
-4590

skipif mysql # not compatible
query I rowsort label-2147
SELECT DISTINCT + + 47 * - 98 + SUM ( DISTINCT 16 ) FROM tab1 AS cor0
----
-4590

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT SUM( + + 42 ) AS col0 FROM tab2 cor0
----
126

skipif mysql # not compatible
query I rowsort label-2148
SELECT SUM ( + + 42 ) AS col0 FROM tab2 cor0
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-2149
SELECT + col0 DIV + - 31 AS col0 FROM tab1 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-2149
SELECT + col0 / + - 31 AS col0 FROM tab1 AS cor0
----
-1
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT DISTINCT + COUNT( * ) * 47 AS col0 FROM tab2 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-2150
SELECT DISTINCT + COUNT ( * ) * 47 AS col0 FROM tab2 AS cor0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT ALL 69 * - COUNT( DISTINCT 22 ) AS col0 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-2151
SELECT ALL 69 * - COUNT ( DISTINCT 22 ) AS col0 FROM tab1
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-2152
SELECT DISTINCT - col2 DIV - ( + - ( col1 ) ) AS col2 FROM tab0
----
-99
0

skipif mysql # not compatible
query I rowsort label-2152
SELECT DISTINCT - col2 / - ( + - ( col1 ) ) AS col2 FROM tab0
----
-99
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 * - + col1 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + 91 - + 78 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 79 AS col1, 46 * + - 33 AS col1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
79
-1518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2156
SELECT - + SUM( ALL + - CAST( NULL AS SIGNED ) ) AS col0, 36 col1 FROM tab0 AS cor0
----
NULL
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2156
SELECT - + SUM ( ALL + - CAST ( NULL AS INTEGER ) ) AS col0, 36 col1 FROM tab0 AS cor0
----
NULL
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col1 col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
100
128
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 AS col0, - 16 col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2159
SELECT + + ( CAST( + + col2 AS SIGNED ) ) * + 86 AS col1 FROM tab1 cor0
----
5074
5848
8256

skipif mysql # not compatible
query I rowsort label-2159
SELECT + + ( CAST ( + + col2 AS INTEGER ) ) * + 86 AS col1 FROM tab1 cor0
----
5074
5848
8256

query I rowsort
SELECT + 25 * - + 98 FROM tab2 AS cor0
----
-2450
-2450
-2450

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2162
SELECT DISTINCT - + 15 DIV + - 83 * - + col2, - 32 * 96 AS col0 FROM tab0 AS cor0
----
0
-3072

skipif mysql # not compatible
query II rowsort label-2162
SELECT DISTINCT - + 15 / + - 83 * - + col2, - 32 * 96 AS col0 FROM tab0 AS cor0
----
0
-3072

query I rowsort
SELECT ALL - 87 + - 21 AS col2 FROM tab0
----
-108
-108
-108

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 <> - - 99
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 96 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2166
SELECT ALL + col1 DIV - 67 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL + col1 / - 67 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2167
SELECT ALL 35 / CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL 35 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2168
SELECT 87 AS col2, - COUNT( * ) + - 50 AS col1 FROM tab2
----
87
-53

skipif mysql # not compatible
query II rowsort label-2168
SELECT 87 AS col2, - COUNT ( * ) + - 50 AS col1 FROM tab2
----
87
-53

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 97 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2170
SELECT + CAST( NULL AS SIGNED ) + + SUM( ALL - 55 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2170
SELECT + CAST ( NULL AS INTEGER ) + + SUM ( ALL - 55 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2171
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 * CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-2171
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 * CAST ( NULL AS INTEGER ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2172
SELECT + + CAST( NULL AS DECIMAL ) * + - 23 AS col2 FROM tab0 AS cor0 WHERE 26 + 27 + + 80 * - CAST( + col2 AS SIGNED ) + - col0 + col1 NOT BETWEEN - - 30 AND NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2172
SELECT + + CAST ( NULL AS REAL ) * + - 23 AS col2 FROM tab0 AS cor0 WHERE 26 + 27 + + 80 * - CAST ( + col2 AS INTEGER ) + - col0 + col1 NOT BETWEEN - - 30 AND NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col1 * col2 - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT DISTINCT + 75 + + + MAX( DISTINCT + 48 ) AS col1 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-2174
SELECT DISTINCT + 75 + + + MAX ( DISTINCT + 48 ) AS col1 FROM tab0
----
123

query I rowsort
SELECT ALL - 39 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

onlyif mysql # DIV for integer division: 
query I rowsort label-2176
SELECT + + col2 * col0 DIV - + col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-2176
SELECT + + col2 * col0 / - + col2 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT 50 AS col1 FROM tab2 cor0
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2178
SELECT + ( col2 ) DIV col1 * + col2 - col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2178
SELECT + ( col2 ) / col1 * + col2 - col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2179
SELECT ALL - col0 + + col0 DIV - + col0 FROM tab0 cor0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-2179
SELECT ALL - col0 + + col0 / - + col0 FROM tab0 cor0
----
-16
-88
-98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2180
SELECT * FROM tab0 WHERE + col1 + - 61 BETWEEN NULL AND CAST( - 23 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2180
SELECT * FROM tab0 WHERE + col1 + - 61 BETWEEN NULL AND CAST ( - 23 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2181
SELECT + col2 * - 84 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2181
SELECT + col2 * - 84 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 82 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT ALL col2 + - - ( + ( - + 35 ) ) FROM tab1
----
24
33
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT ALL - 6 * - COUNT( * ) AS col2 FROM tab0 WHERE NULL > + 27
----
0

skipif mysql # not compatible
query I rowsort label-2184
SELECT ALL - 6 * - COUNT ( * ) AS col2 FROM tab0 WHERE NULL > + 27
----
0

query I rowsort
SELECT DISTINCT + col1 - - ( + 67 ) * + - 19 * + 61 * + 48 * - col0 FROM tab0
----
324278949
361552369
55910241

query I rowsort
SELECT DISTINCT 14 FROM tab0, tab0 AS cor0
----
14

query I rowsort
SELECT - - col0 * + - col2 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query II rowsort
SELECT col2, col0 AS col2 FROM tab2 AS cor0
----
23
46
40
64
58
75

query I rowsort
SELECT DISTINCT - - col0 + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 78 AND + 75
----

query I rowsort
SELECT 53 * - - col1 FROM tab1
----
2491
265
742

query I rowsort
SELECT col0 * 51 * + + col1 AS col0 FROM tab2
----
119646
251328
256275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2192
SELECT ( + col1 ) * - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2192
SELECT ( + col1 ) * - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 66 + 56 - - 53 > - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 - col1 + + ( + 44 ) - + col0 * col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - - col0 * + ( + - col2 ) AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT + col1 * + ( ( + + 48 ) ) FROM tab0 AS cor0
----
1008
3888
48

query I rowsort
SELECT DISTINCT - col2 + + col0 AS col1 FROM tab0 AS cor0 WHERE ( NOT - col2 IS NOT NULL )
----

query I rowsort
SELECT ALL + - 89 AS col1 FROM tab1 AS cor0
----
-89
-89
-89

query I rowsort
SELECT - 59 FROM tab2 AS cor0 WHERE NOT + 29 < col1 * + col2
----

query I rowsort
SELECT ( + 27 ) + 83 + - col2 + + 50 * col2 FROM tab0 AS cor0
----
2413
4961
600

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - - 8 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT ALL - MAX( ALL - - 63 ) col2 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2202
SELECT ALL - MAX ( ALL - - 63 ) col2 FROM tab1 AS cor0
----
-63

query I rowsort
SELECT - 99 + + col1 AS col1 FROM tab0 AS cor0
----
-18
-78
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + - 96 col2 FROM tab0
----
1
1119
1731

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 WHERE NOT NULL < - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2206
SELECT + 65 + - col1 + - 38 DIV - 1 FROM tab0
----
102
22
82

skipif mysql # not compatible
query I rowsort label-2206
SELECT + 65 + - col1 + - 38 / - 1 FROM tab0
----
102
22
82

query I rowsort
SELECT ALL + 36 * + col0 AS col2 FROM tab1
----
1836
3060
3276

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE + ( ( + + 91 ) ) IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN + 77 AND + - 40
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 col2 FROM tab1 AS cor0
----
4
4
4

query I rowsort
SELECT col0 * - col1 - + col1 - + 19 AS col2 FROM tab2
----
-2416
-5024
-5111

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT 15 * + MIN( DISTINCT 51 ) + + 98 AS col2 FROM tab1, tab2 AS cor0
----
863

skipif mysql # not compatible
query I rowsort label-2212
SELECT 15 * + MIN ( DISTINCT 51 ) + + 98 AS col2 FROM tab1, tab2 AS cor0
----
863

query I rowsort
SELECT ALL + col1 * col1 FROM tab2 WHERE NOT NULL < col1 + 38 * + ( - ( + 69 ) )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL < 1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2215
SELECT col2 + + - 62 - + col1 * + CAST( 42 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
159879
4195
8768

skipif mysql # not compatible
query I rowsort label-2215
SELECT col2 + + - 62 - + col1 * + CAST ( 42 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
159879
4195
8768

query I rowsort
SELECT ALL col1 + - col1 * + - col2 AS col1 FROM tab2 AS cor0
----
1224
3157
3953

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2218
SELECT + col1 * + CAST( - + col2 AS SIGNED ) col1 FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2218
SELECT + col1 * + CAST ( - + col2 AS INTEGER ) col1 FROM tab0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> - 1 - + col1
----

query I rowsort
SELECT ALL - 19 * + - 31 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT - - COUNT( + + col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2221
SELECT - - COUNT ( + + col1 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - + 17 AS col2 FROM tab1 cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT DISTINCT - MAX( - 34 ) FROM tab0 cor0
----
34

skipif mysql # not compatible
query I rowsort label-2223
SELECT DISTINCT - MAX ( - 34 ) FROM tab0 cor0
----
34

query I rowsort
SELECT ALL - - col1 + + + col2 AS col1 FROM tab2 AS cor0
----
117
125
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 * col1 col0 FROM tab2 AS cor0
----
3723
4891
5621

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT - 6 * COUNT( * ) * + COUNT( * ) + - + COUNT( ALL - 63 ) AS col2 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-2226
SELECT - 6 * COUNT ( * ) * + COUNT ( * ) + - + COUNT ( ALL - 63 ) AS col2 FROM tab0 AS cor0
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT + + COUNT( * ) * + 98 AS col0 FROM tab2 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-2228
SELECT + + COUNT ( * ) * + 98 AS col0 FROM tab2 AS cor0
----
294

query I rowsort
SELECT DISTINCT + 33 + col2 + - col1 FROM tab1 AS cor0
----
115
54
87

query I rowsort
SELECT ALL + + col1 + + + col2 FROM tab0 cor0
----
100
128
31

query I rowsort
SELECT DISTINCT + 64 + 89 FROM tab1 AS cor0
----
153

query I rowsort
SELECT AVG ( ALL + - col1 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2233
SELECT ALL - col0 + + col0 + col1 + ( col2 ) + + ( + 86 ) DIV col0 DIV col0 AS col0 FROM tab2 AS cor0
----
117
125
74

skipif mysql # not compatible
query I rowsort label-2233
SELECT ALL - col0 + + col0 + col1 + ( col2 ) + + ( + 86 ) / col0 / col0 AS col0 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT - - col0 * + + col2 AS col0 FROM tab2 WHERE + 30 IS NOT NULL
----
1058
2560
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, - col2 col0 FROM tab1
----
59
-59
68
-68
96
-96

query I rowsort
SELECT DISTINCT + col1 * - - 75 FROM tab1 WHERE 6 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 + + col2 col2 FROM tab1
----
105
68
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2238
SELECT COUNT( * ) AS col0, + 51 + + - 89 + - + 88 + - COUNT( * ) AS col1 FROM tab0
----
3
-129

skipif mysql # not compatible
query II rowsort label-2238
SELECT COUNT ( * ) AS col0, + 51 + + - 89 + - + 88 + - COUNT ( * ) AS col1 FROM tab0
----
3
-129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2239
SELECT + 1 + - COUNT( * ) DIV - 62 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2239
SELECT + 1 + - COUNT ( * ) / - 62 FROM tab2
----
1

query I rowsort
SELECT + 14 + col0 AS col1 FROM tab1
----
105
65
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 82 * 10 col1, - col0 + 96 AS col2 FROM tab2
----
-820
21
-820
32
-820
50

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 NOT BETWEEN ( NULL ) AND + col2
----

query I rowsort
SELECT - 47 + col2 FROM tab1 AS cor0
----
12
21
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT COUNT( * ) + - 52 FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-2244
SELECT COUNT ( * ) + - 52 FROM tab0 AS cor0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2245
SELECT ALL - col2 - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL - col2 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 - 38 AND col2 + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2247
SELECT col1 AS col0, - CAST( NULL AS SIGNED ) / + + ( - - 3 ) * - col0 * - 58 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-2247
SELECT col1 AS col0, - CAST ( NULL AS INTEGER ) / + + ( - - 3 ) * - col0 * - 58 FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2248
SELECT DISTINCT 55 AS col2, + col2 DIV - col2 AS col2 FROM tab2
----
55
-1

skipif mysql # not compatible
query II rowsort label-2248
SELECT DISTINCT 55 AS col2, + col2 / - col2 AS col2 FROM tab2
----
55
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2249
SELECT ALL col0 AS col1, - col0 / + + CAST( NULL AS SIGNED ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-2249
SELECT ALL col0 AS col1, - col0 / + + CAST ( NULL AS INTEGER ) FROM tab0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT DISTINCT + ( ( - ( - 3 ) ) ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT - MIN( 42 ) * COUNT( + 60 ) AS col0 FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-2251
SELECT - MIN ( 42 ) * COUNT ( + 60 ) AS col0 FROM tab2
----
-126

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2252
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 70 * CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2252
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 70 * CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT + + COUNT( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2253
SELECT + + COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( NULL IS NULL )
----
0

query I rowsort
SELECT ALL + - 53 AS col1 FROM tab0 WHERE NOT - col1 NOT BETWEEN + col2 AND + col2
----

query I rowsort
SELECT + - col0 * + + col1 * + - col0 AS col2 FROM tab2 AS cor0
----
107916
315392
376875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2256
SELECT - - MAX( - col0 ) + SUM( + 11 ) + - + CAST( + - 27 AS SIGNED ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2256
SELECT - - MAX ( - col0 ) + SUM ( + 11 ) + - + CAST ( + - 27 AS INTEGER ) FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2257
SELECT DISTINCT - 42 + CAST( NULL AS SIGNED ) + + + 31 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2257
SELECT DISTINCT - 42 + CAST ( NULL AS INTEGER ) + + + 31 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 94 BETWEEN 95 AND - 50
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2259
SELECT ALL + CAST( - - 85 AS DECIMAL ) AS col0 FROM tab0 WHERE + + col2 * - CAST( NULL AS SIGNED ) + - - 0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2259
SELECT ALL + CAST ( - - 85 AS REAL ) AS col0 FROM tab0 WHERE + + col2 * - CAST ( NULL AS INTEGER ) + - - 0 IS NOT NULL
----

query II rowsort
SELECT + col0 + ( col0 ), col0 AS col2 FROM tab1
----
102
51
170
85
182
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2261
SELECT ALL col2 + + 25 + col1 DIV + - col0 FROM tab0
----
124
35
67

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL col2 + + 25 + col1 / + - col0 FROM tab0
----
124
35
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT MAX( + - 95 ) + + COUNT( * ) FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-2262
SELECT MAX ( + - 95 ) + + COUNT ( * ) FROM tab0
----
-92

query I rowsort
SELECT DISTINCT + col1 * 87 FROM tab2
----
4437
5829
6699

query III rowsort
SELECT * FROM tab0 WHERE + - 76 * + col2 + + col1 IN ( col2 + - + col2 * + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 + 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT DISTINCT - ( - + SUM( - + col1 ) ) col1 FROM tab0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2266
SELECT DISTINCT - ( - + SUM ( - + col1 ) ) col1 FROM tab0
----
-103

query I rowsort
SELECT + 58 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2268
SELECT ALL + CAST( NULL AS SIGNED ) * 19 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL + CAST ( NULL AS INTEGER ) * 19 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 72 NOT IN ( - + 64 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT + MIN( DISTINCT - col2 ) + - 84 AS col0 FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-2270
SELECT + MIN ( DISTINCT - col2 ) + - 84 AS col0 FROM tab1
----
-180

query I rowsort
SELECT ALL - 42 * + + col0 FROM tab2
----
-1932
-2688
-3150

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2272
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN + 5 AND ( 79 / CAST( + - ( - col1 ) AS SIGNED ) * + - col1 + + col0 )
----

skipif mysql # not compatible
query III rowsort label-2272
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN + 5 AND ( 79 / CAST ( + - ( - col1 ) AS INTEGER ) * + - col1 + + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, + col0 + - 10 AS col1 FROM tab2 AS cor0
----
23
36
40
54
58
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT - 21 / MAX( DISTINCT - col2 ) * + + COUNT( * ) * - - 2 + - 48 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2274
SELECT - 21 / MAX ( DISTINCT - col2 ) * + + COUNT ( * ) * - - 2 + - 48 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT - 33 AS col2, + 2 FROM tab1 AS cor0
----
-33
2
-33
2
-33
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2277
SELECT DISTINCT - col0 DIV - + col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2277
SELECT DISTINCT - col0 / - + col0 FROM tab2 AS cor0
----
1

query II rowsort
SELECT DISTINCT + 23 AS col2, + ( col0 ) AS col2 FROM tab1 AS cor0
----
23
51
23
85
23
91

query II rowsort
SELECT + + col1 AS col2, col0 FROM tab2 cor0
----
51
46
67
75
77
64

query I rowsort
SELECT 60 * + - col2 FROM tab2 cor0
----
-1380
-2400
-3480

onlyif mysql # DIV for integer division: 
query I rowsort label-2281
SELECT - 59 DIV col0 + + + col1 FROM tab1 cor0
----
13
47
5

skipif mysql # not compatible
query I rowsort label-2281
SELECT - 59 / col0 + + + col1 FROM tab1 cor0
----
13
47
5

query II rowsort
SELECT ALL + col1, 9 FROM tab0 AS cor0
----
1
9
21
9
81
9

query I rowsort
SELECT DISTINCT - 29 * 9 FROM tab0 AS cor0
----
-261

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 >= - 17 + - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2285
SELECT + ( 59 ) DIV + col1 FROM tab1
----
1
11
4

skipif mysql # not compatible
query I rowsort label-2285
SELECT + ( 59 ) / + col1 FROM tab1
----
1
11
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 WHERE NOT - - 84 IS NULL
----
14
47
5

query I rowsort
SELECT ALL col0 * - 29 AS col2 FROM tab1 WHERE NULL IS NULL
----
-1479
-2465
-2639

query III rowsort
SELECT DISTINCT + - ( - + col1 ), - col1 AS col1, + col0 FROM tab1 cor0
----
9 values hashing to 8e5101c254f6a0a9f94ef29a6cce5d95

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT - MIN( DISTINCT - 12 ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-2289
SELECT - MIN ( DISTINCT - 12 ) FROM tab2 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-2290
SELECT - - COUNT( * ) + + 51 AS col0, - COUNT( * ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
54
-9

skipif mysql # not compatible
query II rowsort label-2290
SELECT - - COUNT ( * ) + + 51 AS col0, - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
54
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT - COUNT( * ) * + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-2291
SELECT - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - + col2 * + + col1, col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col1 col1 FROM tab2 AS cor0 WHERE + 60 * - col1 IS NULL
----

query I rowsort
SELECT - + col1 * + 11 AS col0 FROM tab0 AS cor0
----
-11
-231
-891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 31 ) col0 FROM tab1 cor0
----
-31
-31
-31

query I rowsort
SELECT ALL + 94 + col0 + ( - col2 ) * + col2 + col1 - - col0 FROM tab0 AS cor0
----
-2004
-9512
189

query I rowsort
SELECT ALL - 24 + - col1 FROM tab0 AS cor0
----
-105
-25
-45

query II rowsort
SELECT - 2 AS col1, - col0 * - - col2 FROM tab1 AS cor0
----
-2
-4896
-2
-5015
-2
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2299
SELECT ALL 19 - + ( 52 ) * + col2 / + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-2299
SELECT ALL 19 - + ( 52 ) * + col2 / + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT ALL - 55 + - 62 FROM tab0 AS cor0
----
-117
-117
-117

query I rowsort
SELECT - + col0 - col2 + - + col0 AS col2 FROM tab0 AS cor0 WHERE NULL >= - ( - col2 )
----

query II rowsort
SELECT + 78 + - - 0 - - - col0 - + + 38 + + + 0 * - - col0, 61 AS col0 FROM tab0 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2303
SELECT ALL 70 - + - col2 + + col1 + 60 * - col2 * 0 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2303
SELECT ALL 70 - + - col2 + + col1 + 60 * - col2 * 0 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 13 + + + ( - - 52 ) FROM tab0
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 + col0 * + ( col2 ) col0 FROM tab1
----
4994
5113
6286

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col2 NOT BETWEEN - col2 AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2307
SELECT DISTINCT 44 DIV + col1 * - col1 - - col0 AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT 44 / + col1 * - col1 - - col0 AS col0 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT + 31 * ( col2 ) FROM tab1
----
1829
2108
2976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2309
SELECT CAST( NULL AS SIGNED ) + - + 88 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2309
SELECT CAST ( NULL AS INTEGER ) + - + 88 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col1 ) * col2 + + col1 * + col0 * - + col1 col2 FROM tab0 AS cor0
----
-38157
-94608
2

query I rowsort
SELECT ALL - col2 + + ( 76 ) FROM tab2 AS cor0
----
18
36
53

onlyif mysql # aggregate syntax: 
query II rowsort label-2312
SELECT DISTINCT - + ( + COUNT( * ) ) * + COUNT( * ) AS col2, COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-81
9

skipif mysql # not compatible
query II rowsort label-2312
SELECT DISTINCT - + ( + COUNT ( * ) ) * + COUNT ( * ) AS col2, COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-81
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( - 92 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + col1 + - col2 FROM tab1 cor0 WHERE 24 IS NOT NULL
----
-110
-115
-64

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - 72 / + col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2317
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 99 * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) <= + CAST( NULL AS DECIMAL ) + + + col2 ) OR NOT NULL <> - + col0
----

skipif mysql # not compatible
query III rowsort label-2317
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 99 * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) <= + CAST ( NULL AS REAL ) + + + col2 ) OR NOT NULL <> - + col0
----

query I rowsort
SELECT col1 + - col2 AS col1 FROM tab1 AS cor0 WHERE NOT 74 BETWEEN - ( + ( - col0 ) ) AND 26 - - 44
----
-21
-54
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-2319
SELECT - 28 DIV - + col2 AS col1 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2319
SELECT - 28 / - + col2 AS col1 FROM tab2 cor0
----
0
0
1

query I rowsort
SELECT col0 * + col0 AS col1 FROM tab1 cor0 WHERE NOT NULL > ( NULL )
----

query II rowsort
SELECT col2 * + + ( + ( + 61 ) ) AS col1, 95 AS col2 FROM tab1
----
3599
95
4148
95
5856
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 6 col0, col1 AS col1 FROM tab1
----
-6
14
-6
47
-6
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2323
SELECT DISTINCT col1, 22 + - 60 - CAST( + col2 AS SIGNED ) AS col0 FROM tab0
----
1
-137
21
-48
81
-85

skipif mysql # not compatible
query II rowsort label-2323
SELECT DISTINCT col1, 22 + - 60 - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0
----
1
-137
21
-48
81
-85

query II rowsort
SELECT - col2, + 45 AS col2 FROM tab1
----
-59
45
-68
45
-96
45

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND 26 * + col2 * + - 1
----

query II rowsort
SELECT DISTINCT - col0 AS col2, - col0 + + col0 FROM tab1 cor0
----
-51
0
-85
0
-91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT + MAX( + 70 ) FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-2327
SELECT + MAX ( + 70 ) FROM tab1 AS cor0
----
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col0 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2329
SELECT DISTINCT - 70 DIV - COUNT( + col0 ) FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-2329
SELECT DISTINCT - 70 / - COUNT ( + col0 ) FROM tab1
----
23

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 42 >= 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT COUNT( * ) * - - 35 * + 60 AS col2 FROM tab1
----
6300

skipif mysql # not compatible
query I rowsort label-2331
SELECT COUNT ( * ) * - - 35 * + 60 AS col2 FROM tab1
----
6300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 41 col0 FROM tab0 cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT - + MAX( + - 21 ) + - COUNT( * ) FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-2333
SELECT - + MAX ( + - 21 ) + - COUNT ( * ) FROM tab1 AS cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2334
SELECT * FROM tab1 cor0 WHERE col1 + 94 NOT BETWEEN + - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2334
SELECT * FROM tab1 cor0 WHERE col1 + 94 NOT BETWEEN + - CAST ( NULL AS INTEGER ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 91 * - + 35 - + col2 + + col0 * - col2 * - col0 * + col1 + - 24 + + + col0 col0 FROM tab1 cor0
----
2134562
26469260
3498860

query I rowsort
SELECT ALL col1 + - col1 * + col1 * + col1 * + ( + col1 ) AS col1 FROM tab0 AS cor0
----
-194460
-43046640
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 / + + 55 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col1 - + col2 - - col2, col1 * col1 AS col1 FROM tab2
----
51
2601
67
4489
77
5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 49 AS col1, col1 col2 FROM tab1
----
49
14
49
47
49
5

query I rowsort
SELECT 11 * + col1 FROM tab1
----
154
517
55

query I rowsort
SELECT DISTINCT + col2 - + + col0 * + 98 FROM tab0
----
-1423
-8516
-9407

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT ( col2 ) + + col0 = + col1 * - + 9 + + + col1 + - 33 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2, col1 FROM tab2 WHERE NULL IS NULL
----
23
51
40
77
58
67

query I rowsort
SELECT DISTINCT 98 - - - col0 * - - 94 FROM tab0
----
-1312
-8080
-9020

query I rowsort
SELECT - 90 FROM tab1 WHERE col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( ( NOT NULL <= - + col0 ) )
----

query I rowsort
SELECT DISTINCT + - col1 AS col0 FROM tab2 WHERE NOT col0 / 40 IS NULL
----
-51
-67
-77

query I rowsort
SELECT + col0 - - col1 AS col1 FROM tab2 cor0
----
141
142
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2349
SELECT - CAST( - - COUNT( * ) AS SIGNED ) DIV + MIN( + + col1 ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2349
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) / + MIN ( + + col1 ) col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2350
SELECT - COUNT( * ) DIV - MAX( ALL 58 ) DIV COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2350
SELECT - COUNT ( * ) / - MAX ( ALL 58 ) / COUNT ( * ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( 92 - col0, col0 + 37 * 18, - + col1 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT MAX( - 58 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2352
SELECT MAX ( - 58 ) AS col2 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT MIN( DISTINCT + col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2353
SELECT MIN ( DISTINCT + col2 ) AS col1 FROM tab0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2354
SELECT + col2 - CAST( - 22 AS SIGNED ) AS col0 FROM tab0
----
121
32
69

skipif mysql # not compatible
query I rowsort label-2354
SELECT + col2 - CAST ( - 22 AS INTEGER ) AS col0 FROM tab0
----
121
32
69

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 / + col2 ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 7 * - col1 IS NULL
----

query I rowsort
SELECT ALL 66 - + 6 AS col0 FROM tab2
----
60
60
60

query I rowsort
SELECT + 74 FROM tab0 WHERE NOT ( - col2 ) IS NULL
----
74
74
74

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE ( NULL ) <> col2 * 34
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2360
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab1 WHERE - 8 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2360
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab1 WHERE - 8 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - 5 * col2 AS col0 FROM tab2 WHERE NULL NOT IN ( + 49 )
----

query I rowsort
SELECT col2 + - 65 AS col2 FROM tab1
----
-6
3
31

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 NOT IN ( col0 * 13 + 44 / 6 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2364
SELECT col1 + 96 DIV col0 FROM tab2
----
53
68
78

skipif mysql # not compatible
query I rowsort label-2364
SELECT col1 + 96 / col0 FROM tab2
----
53
68
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2365
SELECT DISTINCT + CAST( ( - col2 ) AS SIGNED ) AS col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2365
SELECT DISTINCT + CAST ( ( - col2 ) AS INTEGER ) AS col0 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ALL + col0 * + col0 AS col1 FROM tab0 WHERE NOT - ( col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT ( NULL ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < col0 * 33
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 + + col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 57 col2 FROM tab0
----
-24
36
56

query I rowsort
SELECT - col2 * col2 AS col2 FROM tab0 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT + col1 + 20 AS col1 FROM tab1
----
25
34
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2373
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT col2 NOT BETWEEN + 4 + - 83 AND 82 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT col2 NOT BETWEEN + 4 + - 83 AND 82 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2374
SELECT 31 * col1 + CAST( + 85 AS SIGNED ) FROM tab2 WHERE NULL <> col2
----

skipif mysql # not compatible
query I rowsort label-2374
SELECT 31 * col1 + CAST ( + 85 AS INTEGER ) FROM tab2 WHERE NULL <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT SUM( ALL 89 ) FROM tab1 cor0
----
267

skipif mysql # not compatible
query I rowsort label-2375
SELECT SUM ( ALL 89 ) FROM tab1 cor0
----
267

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 50 < + col2
----

query I rowsort
SELECT - 89 + 73 FROM tab2 AS cor0
----
-16
-16
-16

query I rowsort
SELECT ALL + 36 + 94 FROM tab2 AS cor0
----
130
130
130

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL = + 14
----
0

skipif mysql # not compatible
query I rowsort label-2379
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL = + 14
----
0

query I rowsort
SELECT DISTINCT - col1 + col2 * + col0 AS col0 FROM tab1 AS cor0
----
4882
5010
6141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2381
SELECT - CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2381
SELECT - CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT - MIN( + col0 ) + + COUNT( DISTINCT col1 ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2383
SELECT - MIN ( + col0 ) + + COUNT ( DISTINCT col1 ) FROM tab0 AS cor0
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2384
SELECT ALL + COUNT( DISTINCT + 33 ) DIV - COUNT( * ) + + 10 * - 63 AS col1 FROM tab2
----
-630

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL + COUNT ( DISTINCT + 33 ) / - COUNT ( * ) + + 10 * - 63 AS col1 FROM tab2
----
-630

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 <= + ( + col1 ) / 4
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT DISTINCT - MAX( ( - 47 ) ) * 58 FROM tab1
----
2726

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT - MAX ( ( - 47 ) ) * 58 FROM tab1
----
2726

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 83 + + 87 NOT BETWEEN NULL AND ( 19 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 14 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT ALL + COUNT( * ) * + 41 AS col1 FROM tab2 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL + COUNT ( * ) * + 41 AS col1 FROM tab2 AS cor0
----
123

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col0 * 21 ) IN ( - 35 * - 34 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2391
SELECT - + CAST( + COUNT( * ) AS SIGNED ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2391
SELECT - + CAST ( + COUNT ( * ) AS INTEGER ) col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT 62 * MIN( DISTINCT 37 * 5 ) FROM tab2 AS cor0
----
11470

skipif mysql # not compatible
query I rowsort label-2392
SELECT 62 * MIN ( DISTINCT 37 * 5 ) FROM tab2 AS cor0
----
11470

query I rowsort
SELECT 7 * 76 AS col1 FROM tab0 AS cor0
----
532
532
532

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( col0 ) + col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 9 col1 FROM tab0 cor0
----
189
729
9

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2397
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + ( + CAST( + col0 AS SIGNED ) ) AND + col1
----

skipif mysql # not compatible
query III rowsort label-2397
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + ( + CAST ( + col0 AS INTEGER ) ) AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2398
SELECT col0 * col2 AS col1 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) * - col1 - + 6 BETWEEN ( - col2 ) AND + col1
----

skipif mysql # not compatible
query I rowsort label-2398
SELECT col0 * col2 AS col1 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * - col1 - + 6 BETWEEN ( - col2 ) AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab1 AS cor0 WHERE ( + 10 + + col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 97 FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND + col1 - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2401
SELECT ALL CAST( NULL AS SIGNED ) / COUNT( + 68 ) - - MAX( col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL CAST ( NULL AS INTEGER ) / COUNT ( + 68 ) - - MAX ( col0 ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col2 + + + 76 * 13 FROM tab0
----
889
941
978

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 BETWEEN - 64 AND ( + 29 + 62 / + col2 )
----
87
21
10
97
1
99

query I rowsort
SELECT - ( col1 ) + + col0 AS col2 FROM tab1
----
37
44
80

query I rowsort
SELECT col2 + + 16 AS col1 FROM tab1
----
112
75
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT COUNT( * ) AS col0 FROM tab2 WHERE 83 < + col1
----
0

skipif mysql # not compatible
query I rowsort label-2406
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE 83 < + col1
----
0

query I rowsort
SELECT DISTINCT + col1 + + col0 * + 96 AS col1 FROM tab2
----
4467
6221
7267

onlyif mysql # DIV for integer division: 
query I rowsort label-2408
SELECT ALL + col2 DIV - col1 col2 FROM tab1 WHERE 81 NOT IN ( + 27 * col2 + col0 )
----
-1
-11
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2408
SELECT ALL + col2 / - col1 col2 FROM tab1 WHERE 81 NOT IN ( + 27 * col2 + col0 )
----
-1
-11
-6

query I rowsort
SELECT - col2 + - col0 - col0 * - col2 * 13 FROM tab1
----
63501
65051
80285

query I rowsort
SELECT DISTINCT col1 - + col0 + col1 * - 81 FROM tab0
----
-1767
-177
-6495

query III rowsort
SELECT * FROM tab2 WHERE col2 <= ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2412
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 - ( + CAST( NULL AS SIGNED ) + + 27 / - ( 10 - 54 ) ) / + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2412
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 - ( + CAST ( NULL AS INTEGER ) + + 27 / - ( 10 - 54 ) ) / + col0 AND NULL
----

query I rowsort
SELECT + ( 65 ) * col0 FROM tab2 AS cor0
----
2990
4160
4875

query I rowsort
SELECT ALL 48 * col1 + + col2 AS col2 FROM tab2 AS cor0
----
2471
3274
3736

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( + col1 ) NOT BETWEEN ( NULL ) AND col0 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT ALL - COUNT( - 42 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL - COUNT ( - 42 ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT DISTINCT + COUNT( + 62 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2418
SELECT DISTINCT + COUNT ( + 62 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - ( col1 ) * - col0 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( 88 / + col2 ) <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2420
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( 88 / + col2 ) <= ( NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2421
SELECT DISTINCT COUNT( * ), CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-2421
SELECT DISTINCT COUNT ( * ), CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2422
SELECT + AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2422
SELECT + AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2423
SELECT col2, - col2 + + 14 DIV col0 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

skipif mysql # not compatible
query II rowsort label-2423
SELECT col2, - col2 + + 14 / col0 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT DISTINCT + - col1 * + col0 + + 44 FROM tab0 cor0
----
-1171
-1783
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT ALL + SUM( ALL - col2 ) * + COUNT( * ) * + MIN( ALL - col0 ) col2 FROM tab2 AS cor0
----
27225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2425
SELECT ALL + SUM ( ALL - col2 ) * + COUNT ( * ) * + MIN ( ALL - col0 ) col2 FROM tab2 AS cor0
----
27225

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - col0 ) AND ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE + col1 < + col2
----
-3

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE + col1 < + col2
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - - 3 )
----

query II rowsort
SELECT ALL col1, col1 - + col1 + + col0 AS col1 FROM tab0 AS cor0
----
1
97
21
87
81
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 13 IS NOT NULL
----

query II rowsort
SELECT ALL + col1 AS col1, + ( 50 ) - col0 AS col0 FROM tab0 AS cor0
----
1
-47
21
-37
81
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT ALL + 40 * + 46 + - COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
1831

skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL + 40 * + 46 + - COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
1831

query I rowsort
SELECT - ( - 32 ) + - 4 AS col1 FROM tab0
----
28
28
28

query I rowsort
SELECT col2 * - col1 + - ( - - col0 ) + 44 * + 68 FROM tab2
----
-152
-969
1773

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 - - col2 + col1 * col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2436
SELECT ( - CAST( NULL AS SIGNED ) ) + col0 - - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2436
SELECT ( - CAST ( NULL AS INTEGER ) ) + col0 - - col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 90 * - + col2 + 88 * 30 FROM tab2
----
-2580
-960
570

query II rowsort
SELECT DISTINCT - col2 * col0, - 55 AS col2 FROM tab0
----
-705
-55
-870
-55
-9603
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT - COUNT( * ) * + - 37 FROM tab1
----
111

skipif mysql # not compatible
query I rowsort label-2439
SELECT - COUNT ( * ) * + - 37 FROM tab1
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2440
SELECT - CAST( NULL AS SIGNED ) * - 0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2440
SELECT - CAST ( NULL AS INTEGER ) * - 0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT ALL COUNT( * ) - 19 col0 FROM tab2
----
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2441
SELECT ALL COUNT ( * ) - 19 col0 FROM tab2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-2442
SELECT ALL 95 DIV 73 * - col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL 95 / 73 * - col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col2 + + + col0 NOT BETWEEN ( NULL ) AND ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col2 + + + col0 NOT BETWEEN ( NULL ) AND ( + col1 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2444
SELECT DISTINCT + + COUNT( * ) DIV - 20 + - + 45 AS col2, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-2444
SELECT DISTINCT + + COUNT ( * ) / - 20 + - + 45 AS col2, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-45
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2445
SELECT DISTINCT - - col0 * + 75 + + col2 AS col0, + CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
3473
NULL
4840
NULL
5683
NULL

skipif mysql # not compatible
query II rowsort label-2445
SELECT DISTINCT - - col0 * + 75 + + col2 AS col0, + CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
3473
NULL
4840
NULL
5683
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab0 AS cor0 WHERE col0 - - + col1 IN ( - - 26 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2447
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - CAST( + col1 AS DECIMAL ), col0 )
----

skipif mysql # not compatible
query III rowsort label-2447
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - CAST ( + col1 AS REAL ), col0 )
----

query I rowsort
SELECT + col0 * - col1 + col1 * - col0 + ( - 8 ) FROM tab2 AS cor0
----
-10058
-4700
-9864

query I rowsort
SELECT - + 67 AS col2 FROM tab0 cor0
----
-67
-67
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT - ( + + MAX( DISTINCT col0 ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2450
SELECT - ( + + MAX ( DISTINCT col0 ) ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT - + col0 * col0 AS col0 FROM tab0 WHERE ( NOT ( NULL IS NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2452
SELECT DISTINCT col1 DIV 65 - + col0 FROM tab0
----
-14
-87
-97

skipif mysql # not compatible
query I rowsort label-2452
SELECT DISTINCT col1 / 65 - + col0 FROM tab0
----
-14
-87
-97

query I rowsort
SELECT DISTINCT + col0 * - ( - 95 ) * - col2 + - 91 AS col2 FROM tab2
----
-100601
-243291
-413341

query I rowsort
SELECT ALL 65 FROM tab1 WHERE ( 40 + + 15 + + + 18 / - + 90 ) IS NULL
----

query II rowsort
SELECT col0 * + col2 AS col1, 11 FROM tab1 AS cor0
----
4896
11
5015
11
6188
11

query II rowsort
SELECT ALL 74 AS col2, - col0 FROM tab0 AS cor0
----
74
-15
74
-87
74
-97

query I rowsort
SELECT ALL - 83 + + - 65 AS col2 FROM tab2 WHERE + + col1 NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - col1 + + - col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 95 + - col0 * 40 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT - - MAX( DISTINCT - 70 ) FROM tab2 cor0
----
-70

skipif mysql # not compatible
query I rowsort label-2461
SELECT - - MAX ( DISTINCT - 70 ) FROM tab2 cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT + + COUNT( ALL - 77 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2462
SELECT + + COUNT ( ALL - 77 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT col1 + - + col1 * 86 FROM tab1 AS cor0
----
-1190
-3995
-425

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col1 ) <> + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( col0 ) IN ( 79, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT DISTINCT + COUNT( * ) + 36 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-2466
SELECT DISTINCT + COUNT ( * ) + 36 FROM tab1
----
39

query II rowsort
SELECT ALL col2 AS col0, 89 AS col1 FROM tab0
----
10
89
47
89
99
89

query I rowsort
SELECT DISTINCT ( col2 ) AS col1 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN 79 + + col2 AND ( col0 * + - col2 + 48 + - col1 * col2 * 25 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 67 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT DISTINCT - SUM( DISTINCT + col0 ) AS col0 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT - SUM ( DISTINCT + col0 ) AS col0 FROM tab0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2471
SELECT - 69 * - CAST( NULL AS SIGNED ) + - 18 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2471
SELECT - 69 * - CAST ( NULL AS INTEGER ) + - 18 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT + COUNT( * ) + + ( + - 17 ) AS col2 FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-2473
SELECT + COUNT ( * ) + + ( + - 17 ) AS col2 FROM tab2
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-2474
SELECT - 11 + - + col1 DIV 51 AS col0 FROM tab1 AS cor0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-2474
SELECT - 11 + - + col1 / 51 AS col0 FROM tab1 AS cor0
----
-11
-11
-11

query I rowsort
SELECT + col2 * + col1 - - - col0 - + - col1 + 45 FROM tab2 AS cor0
----
1223
3138
3923

query II rowsort
SELECT ALL - col1 * 36 AS col2, 29 FROM tab2
----
-1836
29
-2412
29
-2772
29

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL = + 47 + - 23 / 94
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2478
SELECT DISTINCT - col2 DIV - 86 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2478
SELECT DISTINCT - col2 / - 86 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 28 / + col1 * - ( + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( + - 18 ) AS col0 FROM tab2 cor0
----
-18

query I rowsort
SELECT DISTINCT col0 * - - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 86 * - + col2 + + 44 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + + + 95 - col0 AS col0 FROM tab1 cor0
----
-43
30
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT ( - SUM( ALL + col2 ) ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-2484
SELECT ( - SUM ( ALL + col2 ) ) FROM tab0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-2485
SELECT DISTINCT col2 DIV - col0 * 2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2485
SELECT DISTINCT col2 / - col0 * 2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, col2 AS col1 FROM tab0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2487
SELECT ALL SUM( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL SUM ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2488
SELECT COUNT( * ) AS col2, - 2 FROM tab1
----
3
-2

skipif mysql # not compatible
query II rowsort label-2488
SELECT COUNT ( * ) AS col2, - 2 FROM tab1
----
3
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col2 ) col2 FROM tab2
----
23
40
58

query I rowsort
SELECT + col0 * + col1 / + col2 + col1 + - col0 / + - 4 FROM tab0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * 44 AS col2 FROM tab1 cor0
----
2244
3740
4004

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 86 * + col1 NOT IN ( col0 * - + col1 / + 15 + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2493
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----
0

query I rowsort
SELECT - col0 * + 86 AS col1 FROM tab0 AS cor0
----
-1290
-7482
-8342

query I rowsort
SELECT 26 * - 73 FROM tab0
----
-1898
-1898
-1898

query I rowsort
SELECT ( + 60 ) * + 1 AS col2 FROM tab1
----
60
60
60

query II rowsort
SELECT ALL + 14 AS col0, + col2 - - col2 AS col2 FROM tab2 AS cor0
----
14
116
14
46
14
80

query I rowsort
SELECT ALL col0 * + col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
425
4277
714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2499
SELECT - + MAX( ALL + - 59 ) + - CAST( - 16 AS SIGNED ) + 40 FROM tab0 AS cor0
----
115

skipif mysql # not compatible
query I rowsort label-2499
SELECT - + MAX ( ALL + - 59 ) + - CAST ( - 16 AS INTEGER ) + 40 FROM tab0 AS cor0
----
115

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN - col0 AND - - col2
----
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2501
SELECT - - 98 + + 19 DIV - col1 + 95 FROM tab0 AS cor0
----
174
193
193

skipif mysql # not compatible
query I rowsort label-2501
SELECT - - 98 + + 19 / - col1 + 95 FROM tab0 AS cor0
----
174
193
193

query I rowsort
SELECT DISTINCT + - col2 + - col1 AS col2 FROM tab2 cor0
----
-117
-125
-74

query I rowsort
SELECT + 27 + - + col1 AS col0 FROM tab1
----
-20
13
22

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 ) BETWEEN ( NULL ) AND + + col1 - - + col1
----

query I rowsort
SELECT DISTINCT col2 * - + 46 * col1 AS col0 FROM tab1
----
-13570
-147016
-61824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2506
SELECT DISTINCT col0 * + CAST( + 72 AS SIGNED ) + 92 * + col2 FROM tab1
----
11548
12504
12808

skipif mysql # not compatible
query I rowsort label-2506
SELECT DISTINCT col0 * + CAST ( + 72 AS INTEGER ) + 92 * + col2 FROM tab1
----
11548
12504
12808

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col0 <= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * + + 51 - + - col1 FROM tab2 WHERE NULL IS NULL
----
2397
3341
3892

query I rowsort
SELECT AVG ( + + 0 ) AS col0 FROM tab2 WHERE ( NOT ( NOT + 87 BETWEEN NULL AND ( NULL ) ) )
----
NULL

query I rowsort
SELECT col1 * - 44 * - col1 * col2 AS col2 FROM tab1
----
64900
6609328
827904

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT DISTINCT - + MAX( + col2 ) col1 FROM tab1 WHERE NOT + + col2 + + + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2511
SELECT DISTINCT - + MAX ( + col2 ) col1 FROM tab1 WHERE NOT + + col2 + + + col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2512
SELECT + COUNT( * ) * - - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0 WHERE - col2 <> NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2512
SELECT + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 WHERE - col2 <> NULL
----
NULL

query I rowsort
SELECT col2 - + - col1 * 35 FROM tab0 AS cor0
----
134
2882
745

query I rowsort
SELECT ALL col2 + - 5 AS col1 FROM tab0
----
42
5
94

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND + - col0
----

query II rowsort
SELECT ALL col0 AS col0, + 63 * + col1 - + col2 AS col0 FROM tab1 AS cor0
----
51
786
85
256
91
2893

query I rowsort
SELECT - 11 * 94 AS col2 FROM tab1 AS cor0
----
-1034
-1034
-1034

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT + - 94 * 15 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
4230

skipif mysql # not compatible
query I rowsort label-2518
SELECT + - 94 * 15 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
4230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2519
SELECT DISTINCT AVG ( - 14 ) * + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2519
SELECT DISTINCT AVG ( - 14 ) * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT - col1 * ( + col0 ), + col1 AS col0 FROM tab1 AS cor0
----
-425
5
-4277
47
-714
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2521
SELECT ALL - CAST( - 58 AS SIGNED ) * - MIN( + 42 ) * - + 29 FROM tab2 AS cor0
----
70644

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL - CAST ( - 58 AS INTEGER ) * - MIN ( + 42 ) * - + 29 FROM tab2 AS cor0
----
70644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2522
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + AVG ( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + AVG ( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 25 * 53 FROM tab2 AS cor0
----
-1325
-1325
-1325

onlyif mysql # DIV for integer division: 
query I rowsort label-2524
SELECT DISTINCT - - col1 DIV + 52 AS col2 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2524
SELECT DISTINCT - - col1 / + 52 AS col2 FROM tab0 AS cor0
----
0
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2525
SELECT col2 DIV + col2, 94 * - - 94 AS col0 FROM tab1
----
1
8836
1
8836
1
8836

skipif mysql # not compatible
query II rowsort label-2525
SELECT col2 / + col2, 94 * - - 94 AS col0 FROM tab1
----
1
8836
1
8836
1
8836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2526
SELECT DISTINCT SUM( - - col0 ) * - - CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2526
SELECT DISTINCT SUM ( - - col0 ) * - - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL col2 * 68 * 55 FROM tab0
----
175780
370260
37400

query I rowsort
SELECT DISTINCT - col2 * - 11 - - + col1 FROM tab2 AS cor0
----
304
517
705

query I rowsort
SELECT - + ( - 37 ) * - + col0 FROM tab0 AS cor0
----
-3219
-3589
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT + - COUNT( * ) * + - 1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2530
SELECT + - COUNT ( * ) * + - 1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 46 * + + col2 * + - ( + 4 ) * - - col1 FROM tab1 AS cor0
----
247296
54280
588064

query I rowsort
SELECT + col1 + + ( col1 ) FROM tab2
----
102
134
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2533
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2533
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2534
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 + + col1 - - - col0 + col0 <> col1 / CAST( - CAST( col1 AS SIGNED ) AS SIGNED ) - + 83
----

skipif mysql # not compatible
query III rowsort label-2534
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 + + col1 - - - col0 + col0 <> col1 / CAST ( - CAST ( col1 AS INTEGER ) AS INTEGER ) - + 83
----

query I rowsort
SELECT ALL col2 + + - col2 * + + ( - - col0 ) FROM tab0 AS cor0
----
-658
-860
-9504

query I rowsort
SELECT - + 98 AS col0 FROM tab1 cor0
----
-98
-98
-98

query II rowsort
SELECT ALL 93 AS col2, + ( - col0 ) * - col1 AS col1 FROM tab1 AS cor0
----
93
425
93
4277
93
714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2538
SELECT + 7 DIV COUNT( - col0 ) col0 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2538
SELECT + 7 / COUNT ( - col0 ) col0 FROM tab1 AS cor0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, - col1 * - col2 + - + 11 FROM tab0 AS cor0
----
15
3796
87
199
97
88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2540
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( - + ( - 88 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2540
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( - + ( - 88 ) AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + - col2 + 60 FROM tab1 AS cor0
----
-36
-8
1

query I rowsort
SELECT ALL + 31 + - 88 FROM tab0 cor0
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE ( + col0 / col0 + + - col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2543
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE ( + col0 / col0 + + - col0 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT + col2 + + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-431
-6514
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2545
SELECT CAST( - - col2 AS SIGNED ) + + col1 * - - 38 FROM tab0
----
137
3125
808

skipif mysql # not compatible
query I rowsort label-2545
SELECT CAST ( - - col2 AS INTEGER ) + + col1 * - - 38 FROM tab0
----
137
3125
808

onlyif mysql # aggregate syntax: 
query II rowsort label-2546
SELECT DISTINCT SUM( - 45 ) AS col1, 92 AS col0 FROM tab0
----
-135
92

skipif mysql # not compatible
query II rowsort label-2546
SELECT DISTINCT SUM ( - 45 ) AS col1, 92 AS col0 FROM tab0
----
-135
92

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2547
SELECT CAST( NULL AS DECIMAL ) + - + 6 + - + CAST( NULL AS SIGNED ) + - col1 * ( - - 75 ) + - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2547
SELECT CAST ( NULL AS REAL ) + - + 6 + - + CAST ( NULL AS INTEGER ) + - col1 * ( - - 75 ) + - col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT DISTINCT - MIN( + 44 ) AS col0 FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT - MIN ( + 44 ) AS col0 FROM tab2
----
-44

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = 14
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2550
SELECT DISTINCT ( + + CAST( NULL AS SIGNED ) ) + - col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2550
SELECT DISTINCT ( + + CAST ( NULL AS INTEGER ) ) + - col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2551
SELECT + + col1 * + - col0 - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-4345
-484
-810

skipif mysql # not compatible
query I rowsort label-2551
SELECT + + col1 * + - col0 - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-4345
-484
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( - 94 ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2552
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( - 94 ) <> NULL
----
0

query II rowsort
SELECT + - ( + col0 ) * - + col1 AS col2, 41 AS col1 FROM tab2 AS cor0
----
2346
41
4928
41
5025
41

query I rowsort
SELECT DISTINCT - - col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT + - 55 * + 53 + + 14 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND + col0
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 57 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2557
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND + - CAST( + - col1 AS SIGNED ) + + ( + 31 )
----

skipif mysql # not compatible
query III rowsort label-2557
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND + - CAST ( + - col1 AS INTEGER ) + + ( + 31 )
----

query I rowsort
SELECT + - 1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2559
SELECT col2 AS col1, - CAST( NULL AS SIGNED ) * ( + ( + + 99 ) ) * 83 * 1 AS col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-2559
SELECT col2 AS col1, - CAST ( NULL AS INTEGER ) * ( + ( + + 99 ) ) * 83 * 1 AS col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2560
SELECT + 42 DIV + 52 * + col2 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2560
SELECT + 42 / + 52 * + col2 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT 96 * - col0 FROM tab0
----
-1440
-8352
-9312

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + + ( + 19 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 = - 0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( - col0 ) AND - 14 + - 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT + COUNT( * ) * + - COUNT( DISTINCT - 51 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2565
SELECT + COUNT ( * ) * + - COUNT ( DISTINCT - 51 ) FROM tab0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT + 37 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 * - 90 * col0 AS col0 FROM tab2 AS cor0
----
-190440
-368640
-506250

query I rowsort
SELECT ALL + + col0 + + col1 * - 41 AS col1 FROM tab1 cor0
----
-120
-1836
-523

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 36 / + col2 + + 74 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2570
SELECT DISTINCT + col1 DIV - col0 + - ( - col2 ) + + 35 AS col1 FROM tab1 cor0
----
103
131
94

skipif mysql # not compatible
query I rowsort label-2570
SELECT DISTINCT + col1 / - col0 + - ( - col2 ) + + 35 AS col1 FROM tab1 cor0
----
103
131
94

query I rowsort
SELECT DISTINCT - + col0 + - 99 + + col1 AS col0 FROM tab0 AS cor0
----
-165
-195
-33

query I rowsort
SELECT DISTINCT - ( - col1 ) * col0 + - + col1 * 57 + + - col1 + - 90 AS col2 FROM tab2 cor0
----
-702
1049
372

query I rowsort
SELECT + 90 + + 52 AS col2 FROM tab0 AS cor0
----
142
142
142

query I rowsort
SELECT ALL col1 + - 81 + 84 * - + col2 * - + col0 AS col2 FROM tab0 AS cor0
----
59220
73020
806572

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT 92 + - - SUM( col2 ) AS col0 FROM tab2 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-2575
SELECT 92 + - - SUM ( col2 ) AS col0 FROM tab2 AS cor0
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT DISTINCT + COUNT( * ) + + + 1 * + 92 FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-2576
SELECT DISTINCT + COUNT ( * ) + + + 1 * + 92 FROM tab2 AS cor0
----
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + 37 * + col0 col2 FROM tab2 AS cor0
----
1725
2408
2833

onlyif mysql # DIV for integer division: 
query II rowsort label-2578
SELECT col0 col0, 66 DIV + col0 FROM tab2
----
46
1
64
1
75
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2578
SELECT col0 col0, 66 / + col0 FROM tab2
----
46
1
64
1
75
0

query I rowsort
SELECT - 80 * + 0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + col1 + - col0 * + col0 + col2 FROM tab0
----
-50
-7528
-9210

query I rowsort
SELECT DISTINCT 86 * + - col2 * - col0 * + col1 AS col2 FROM tab2
----
16952320
25064700
4640388

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT ALL - 38 + SUM( 55 ) * - COUNT( * ) + + COUNT( + + col1 ) AS col0 FROM tab0
----
-530

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL - 38 + SUM ( 55 ) * - COUNT ( * ) + + COUNT ( + + col1 ) AS col0 FROM tab0
----
-530

query I rowsort
SELECT ALL ( - 23 ) FROM tab2
----
-23
-23
-23

query II rowsort
SELECT - col0, - col0 FROM tab1 WHERE col1 * + col0 > col1 * - + col2 / + ( - 96 ) * col1
----
-51
-51
-85
-85
-91
-91

query I rowsort
SELECT DISTINCT + col2 - + + col2 + col2 AS col1 FROM tab1
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 38 + - - col1 = - - ( - - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2587
SELECT ALL + COUNT( * ) DIV + 69 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL + COUNT ( * ) / + 69 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT DISTINCT - - MAX( DISTINCT + col2 ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-2588
SELECT DISTINCT - - MAX ( DISTINCT + col2 ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
61

query I rowsort
SELECT - - 53 - col2 FROM tab1 AS cor0
----
-15
-43
-6

query I rowsort
SELECT - + col2 - + - 32 FROM tab1 AS cor0
----
-27
-36
-64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2591
SELECT + - col2 + + col2 * + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2591
SELECT + - col2 + + col2 * + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT DISTINCT + SUM( ALL + 86 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
774

skipif mysql # not compatible
query I rowsort label-2592
SELECT DISTINCT + SUM ( ALL + 86 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
774

query I rowsort
SELECT 20 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # DIV for integer division: 
query II rowsort label-2594
SELECT ALL - col2 AS col0, col1 DIV + - col0 FROM tab1 AS cor0
----
-59
0
-68
0
-96
0

skipif mysql # not compatible
query II rowsort label-2594
SELECT ALL - col2 AS col0, col1 / + - col0 FROM tab1 AS cor0
----
-59
0
-68
0
-96
0

query I rowsort
SELECT DISTINCT + col0 * + col0 * + 53 FROM tab0 AS cor0
----
11925
401157
498677

onlyif mysql # aggregate syntax: 
query II rowsort label-2596
SELECT ALL 38, COUNT( * ) AS col1 FROM tab2 AS cor0
----
38
3

skipif mysql # not compatible
query II rowsort label-2596
SELECT ALL 38, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
38
3

query I rowsort
SELECT - 52 * + - 47 * + 72 FROM tab1 AS cor0
----
175968
175968
175968

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT MIN( DISTINCT ( col2 ) ) * - COUNT( * ) col1 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2598
SELECT MIN ( DISTINCT ( col2 ) ) * - COUNT ( * ) col1 FROM tab1 AS cor0
----
-177

query I rowsort
SELECT DISTINCT - AVG ( DISTINCT col0 ) AS col1 FROM tab1 cor0 WHERE NOT NULL >= NULL
----
NULL

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT ( + - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT DISTINCT + ( - SUM( col1 ) ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2601
SELECT DISTINCT + ( - SUM ( col1 ) ) AS col2 FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT DISTINCT + + ( COUNT( * ) ) FROM tab2 cor0 WHERE ( col2 * + - 4 / + col2 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-2602
SELECT DISTINCT + + ( COUNT ( * ) ) FROM tab2 cor0 WHERE ( col2 * + - 4 / + col2 IS NOT NULL )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT ALL ( + 48 ) + - COUNT( * ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL ( + 48 ) + - COUNT ( * ) FROM tab0 AS cor0
----
45

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 57 + 99 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2605
SELECT DISTINCT - col2 DIV - - col2 + - col1 FROM tab2 AS cor0
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT - col2 / - - col2 + - col1 FROM tab2 AS cor0
----
-52
-68
-78

query I rowsort
SELECT DISTINCT - 55 + - col1 AS col1 FROM tab0 WHERE NOT col2 - - - col2 IS NULL
----
-136
-56
-76

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 0 BETWEEN - + col1 * + col1 + col0 * + col0 AND - ( - + 72 ) + + col2
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT ALL + ( - - COUNT( DISTINCT - + col1 ) ) * 45 FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL + ( - - COUNT ( DISTINCT - + col1 ) ) * 45 FROM tab1
----
135

query I rowsort
SELECT ALL - 33 * 64 FROM tab1
----
-2112
-2112
-2112

query I rowsort
SELECT DISTINCT + 0 * + ( - - col1 ) AS col1 FROM tab1
----
0

query I rowsort
SELECT + ( - col2 ) * - col1 - + - 82 AS col0 FROM tab1
----
1426
3278
377

onlyif mysql # DIV for integer division: 
query II rowsort label-2612
SELECT col2, + col0 DIV col2 + - + col2 FROM tab0 AS cor0
----
10
-2
47
-47
99
-99

skipif mysql # not compatible
query II rowsort label-2612
SELECT col2, + col0 / col2 + - + col2 FROM tab0 AS cor0
----
10
-2
47
-47
99
-99

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + col1 ) NOT BETWEEN NULL AND ( - col0 + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2615
SELECT + col0 DIV + ( 96 ), + col2 * - + ( col1 ) + + - col0 AS col0 FROM tab2 AS cor0
----
0
-1219
0
-3144
0
-3961

skipif mysql # not compatible
query II rowsort label-2615
SELECT + col0 / + ( 96 ), + col2 * - + ( col1 ) + + - col0 AS col0 FROM tab2 AS cor0
----
0
-1219
0
-3144
0
-3961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + - col2 col1 FROM tab2 AS cor0
----
-117
-125
-74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - ( - col2 ) * - col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT DISTINCT - ( COUNT( * ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2619
SELECT DISTINCT - ( COUNT ( * ) ) FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL col0 * + - col2 - + col2 + col2 + + 46 * + 68 * - col1 AS col1 FROM tab2 cor0
----
-160586
-213926
-243416

query I rowsort
SELECT ALL + 49 - + col2 AS col1 FROM tab1
----
-10
-19
-47

query I rowsort
SELECT ALL + col0 + - 25 AS col0 FROM tab2
----
21
39
50

query I rowsort
SELECT + col1 + + + col0 * 36 FROM tab0
----
3153
3493
621

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col1 IS NULL )
----

query II rowsort
SELECT DISTINCT col2 - - col2, col1 FROM tab0
----
198
1
20
21
94
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + - ( col1 ) col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT ( col2 + + 62 IS NOT NULL )
----

query II rowsort
SELECT ALL - 1 - col1, + col2 AS col0 FROM tab1 AS cor0
----
-15
96
-48
68
-6
59

onlyif mysql # DIV for integer division: 
query I rowsort label-2629
SELECT ALL - 71 DIV + + col2 AS col1 FROM tab0 AS cor0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL - 71 / + + col2 AS col1 FROM tab0 AS cor0
----
-1
-7
0

query I rowsort
SELECT ALL 96 * + + 23 AS col1 FROM tab0
----
2208
2208
2208

query I rowsort
SELECT DISTINCT - ( + 57 ) FROM tab1 AS cor0
----
-57

query I rowsort
SELECT - 26 * 25 FROM tab2 AS cor0
----
-650
-650
-650

query I rowsort
SELECT ALL 89 * - 90 * + 61 FROM tab0 AS cor0 WHERE NULL < NULL
----

query II rowsort
SELECT col2 AS col2, col2 + + col1 FROM tab0 cor0
----
10
31
47
128
99
100

query I rowsort
SELECT ALL - - col2 FROM tab1 WHERE NOT col2 IS NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2636
SELECT col1 DIV - - 92 + - col1 * col1 AS col0 FROM tab0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-2636
SELECT col1 / - - 92 + - col1 * col1 AS col0 FROM tab0
----
-1
-441
-6561

query II rowsort
SELECT DISTINCT - col1, col2 AS col2 FROM tab1
----
-14
96
-47
68
-5
59

query I rowsort
SELECT ALL + ( + col0 ) AS col0 FROM tab1 WHERE NOT NULL < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT MIN( DISTINCT - ( - 15 ) ) AS col0 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-2639
SELECT MIN ( DISTINCT - ( - 15 ) ) AS col0 FROM tab2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2640
SELECT ALL - ( + COUNT( + CAST( + col1 AS SIGNED ) ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL - ( + COUNT ( + CAST ( + col1 AS INTEGER ) ) ) AS col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2641
SELECT + - COUNT( - + 58 ) DIV - 78 col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2641
SELECT + - COUNT ( - + 58 ) / - 78 col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2642
SELECT - - ( - ( - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2642
SELECT - - ( - ( - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + + + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT DISTINCT + COUNT( * ) + - SUM( col1 ) FROM tab1 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT + COUNT ( * ) + - SUM ( col1 ) FROM tab1 cor0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2645
SELECT CAST( col0 AS SIGNED ) * - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2645
SELECT CAST ( col0 AS INTEGER ) * - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + - col2 ) + + col1 AS col1 FROM tab1
----
110
115
64

query I rowsort
SELECT ALL + 69 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT + col2 + 62 + - + col0 FROM tab2 AS cor0
----
38
39
45

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE col2 + 96 * - ( - - col2 ) + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT - - ( + SUM( col2 ) ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2651
SELECT - - ( + SUM ( col2 ) ) FROM tab0 AS cor0
----
156

query II rowsort
SELECT ALL + 4 + col1 AS col1, col0 * col2 FROM tab2 AS cor0
----
55
1058
71
4350
81
2560

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT MAX( DISTINCT - 95 ) FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-2653
SELECT MAX ( DISTINCT - 95 ) FROM tab1 AS cor0
----
-95

query I rowsort
SELECT DISTINCT 20 + - col0 FROM tab1
----
-31
-65
-71

query I rowsort
SELECT ( + 93 ) FROM tab2
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT DISTINCT 60 - - - SUM( - col1 ) FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT 60 - - - SUM ( - col1 ) FROM tab2
----
255

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2657
SELECT DISTINCT * FROM tab2 WHERE NULL <= - 22 + - - CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2657
SELECT DISTINCT * FROM tab2 WHERE NULL <= - 22 + - - CAST ( + col2 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2658
SELECT DISTINCT CAST( ( 29 ) AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2658
SELECT DISTINCT CAST ( ( 29 ) AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - 0 >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2660
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2661
SELECT DISTINCT col2 DIV - - 91, col2 AS col0 FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-2661
SELECT DISTINCT col2 / - - 91, col2 AS col0 FROM tab2
----
0
23
0
40
0
58

query I rowsort
SELECT ALL 54 * + col0 + + 81 AS col2 FROM tab1 WHERE - col1 + - + col0 * + - col0 + col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2663
SELECT ALL + 39 DIV - 5 + + - COUNT( * ) col2 FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2663
SELECT ALL + 39 / - 5 + + - COUNT ( * ) col2 FROM tab1 AS cor0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * - - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2665
SELECT + + ( + - CAST( + - COUNT( * ) AS SIGNED ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2665
SELECT + + ( + - CAST ( + - COUNT ( * ) AS INTEGER ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT + + col2 * + + 62 FROM tab0 AS cor0
----
2914
6138
620

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT + - SUM( + - 0 ) col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2667
SELECT + - SUM ( + - 0 ) col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT MAX( col0 ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-2668
SELECT MAX ( col0 ) FROM tab1 cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 21 col1 FROM tab1 AS cor0
----
21

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( - 72 ) NOT BETWEEN + 97 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT ALL + - SUM( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2671
SELECT ALL + - SUM ( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT - col2 * - 53 AS col1 FROM tab2
----
1219
2120
3074

onlyif mysql # DIV for integer division: 
query I rowsort label-2673
SELECT DISTINCT + 87 DIV - 14 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-2673
SELECT DISTINCT + 87 / - 14 FROM tab2
----
-6

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 59 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 49 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN 79 / + col1 / + - 51 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2677
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IN ( + - 66 )
----
0

skipif mysql # not compatible
query I rowsort label-2677
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IN ( + - 66 )
----
0

query I rowsort
SELECT ALL + 6 - - ( col2 ) FROM tab2
----
29
46
64

query I rowsort
SELECT - 33 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2680
SELECT - - CAST( NULL AS SIGNED ) - - - 3 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2680
SELECT - - CAST ( NULL AS INTEGER ) - - - 3 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT DISTINCT + SUM( ALL - - col1 ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-2681
SELECT DISTINCT + SUM ( ALL - - col1 ) FROM tab2 cor0
----
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2682
SELECT - CAST( NULL AS SIGNED ) - COUNT( * ) * - + MIN( DISTINCT 29 ) FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2682
SELECT - CAST ( NULL AS INTEGER ) - COUNT ( * ) * - + MIN ( DISTINCT 29 ) FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT + COUNT( * ) * - 87 - - COUNT( * ) FROM tab0 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-2683
SELECT + COUNT ( * ) * - 87 - - COUNT ( * ) FROM tab0 AS cor0
----
-258

query I rowsort
SELECT - col1 - 37 * + col1 AS col1 FROM tab1 cor0
----
-1786
-190
-532

query I rowsort
SELECT ALL + col1 * col1 + - col2 AS col0 FROM tab1
----
-34
100
2141

query I rowsort
SELECT ALL col1 * + 49 - - col2 AS col1 FROM tab0
----
1039
148
4016

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE 17 IS NOT NULL
----
51
85
91

query II rowsort
SELECT ALL col2 * col2 AS col2, + col1 FROM tab0
----
100
21
2209
81
9801
1

query I rowsort
SELECT ALL 90 * col0 AS col0 FROM tab0
----
1350
7830
8730

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT + MIN( - ( + 90 ) ) AS col1 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-2690
SELECT + MIN ( - ( + 90 ) ) AS col1 FROM tab1 AS cor0
----
-90

query II rowsort
SELECT + ( - + col0 ), - 70 + - 53 AS col1 FROM tab0 AS cor0
----
-15
-123
-87
-123
-97
-123

query I rowsort
SELECT + 83 * + 61 * ( + + col2 ) AS col2 FROM tab1 AS cor0
----
298717
344284
486048

query I rowsort
SELECT ALL + - ( - 98 ) * + col0 + - col1 * + 55 + 94 AS col1 FROM tab1 AS cor0
----
4322
6427
8149

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT + SUM( DISTINCT - 46 ) FROM tab2 WHERE NOT + col0 IS NULL
----
-46

skipif mysql # not compatible
query I rowsort label-2694
SELECT + SUM ( DISTINCT - 46 ) FROM tab2 WHERE NOT + col0 IS NULL
----
-46

query I rowsort
SELECT ALL - 30 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT ALL - + COUNT( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL - + COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-2697
SELECT + ( + ( + + 50 ) ) AS col2, + COUNT( * ) FROM tab1 AS cor0
----
50
3

skipif mysql # not compatible
query II rowsort label-2697
SELECT + ( + ( + + 50 ) ) AS col2, + COUNT ( * ) FROM tab1 AS cor0
----
50
3

query I rowsort
SELECT - col0 AS col1 FROM tab1 cor0 WHERE NOT col2 < + - 43 * - 13 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT DISTINCT + COUNT( * ) * + 95 FROM tab0 cor0
----
285

skipif mysql # not compatible
query I rowsort label-2699
SELECT DISTINCT + COUNT ( * ) * + 95 FROM tab0 cor0
----
285

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2700
SELECT ALL * FROM tab0 AS cor0 WHERE - ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2700
SELECT ALL * FROM tab0 AS cor0 WHERE - ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT - + 24 + - col2 FROM tab1 AS cor0
----
-120
-83
-92

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE + col0 + + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT + 43 + + MIN( - 71 ) * + COUNT( * ) FROM tab0
----
-170

skipif mysql # not compatible
query I rowsort label-2703
SELECT + 43 + + MIN ( - 71 ) * + COUNT ( * ) FROM tab0
----
-170

query II rowsort
SELECT - col0 + - col2 AS col2, - col2 AS col1 FROM tab2
----
-104
-40
-133
-58
-69
-23

query I rowsort
SELECT ALL - 0 + + col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2706
SELECT ALL + MAX( ALL col1 ), + COUNT( * ) AS col2 FROM tab1
----
47
3

skipif mysql # not compatible
query II rowsort label-2706
SELECT ALL + MAX ( ALL col1 ), + COUNT ( * ) AS col2 FROM tab1
----
47
3

query III rowsort
SELECT * FROM tab1 WHERE - col0 * 84 * - 48 >= + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 + + 91 FROM tab2 AS cor0
----
114
131
149

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT ALL - MIN( - col1 ) + + 44 AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2709
SELECT ALL - MIN ( - col1 ) + + 44 AS col2 FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT + col0 + ( + + ( + 25 ) ) FROM tab0 AS cor0
----
112
122
40

query II rowsort
SELECT - col2 - - col1 * - + col0, 50 AS col2 FROM tab0
----
-1262
50
-1837
50
-196
50

query I rowsort
SELECT 23 + 11 AS col2 FROM tab0
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT COUNT( * ) AS col1 FROM tab0 WHERE - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2713
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE - col0 IS NOT NULL
----
3

query I rowsort
SELECT - 26 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT - - 49 FROM tab0 AS cor0 WHERE + col1 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2716
SELECT - 77 DIV - + 66 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2716
SELECT - 77 / - + 66 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + col0 * + + col0 * + col1 * - 37 AS col0 FROM tab0 AS cor0
----
-348133
-5881113
-674325

query I rowsort
SELECT AVG ( ALL - col1 ) AS col1 FROM tab1 AS cor0 WHERE 12 NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2719
SELECT 10 * - col1 + CAST( NULL AS SIGNED ) * + + 43 + - 92 * + col1 * - 92 col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2719
SELECT 10 * - col1 + CAST ( NULL AS INTEGER ) * + + 43 + - 92 * + col1 * - 92 col1 FROM tab1 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 58, col1 FROM tab0 AS cor0
----
58
1
58
21
58
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT ALL SUM( DISTINCT 45 ) * 58 + COUNT( * ) FROM tab1
----
2613

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL SUM ( DISTINCT 45 ) * 58 + COUNT ( * ) FROM tab1
----
2613

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT ALL COUNT( * ) * - MAX( 16 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-144

skipif mysql # not compatible
query I rowsort label-2722
SELECT ALL COUNT ( * ) * - MAX ( 16 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-144

onlyif mysql # DIV for integer division: 
query I rowsort label-2723
SELECT DISTINCT col0 DIV - 66 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-2723
SELECT DISTINCT col0 / - 66 FROM tab1
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2724
SELECT ALL + CAST( - ( + - col0 ) AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL + CAST ( - ( + - col0 ) AS INTEGER ) FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT - 39 * 63 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-2457

query I rowsort
SELECT - 14 FROM tab0 AS cor0 WHERE NOT col1 IN ( col0, ( col1 ), + 56, + col0 / - + 96, - col1 / ( col2 ) + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 + + + col0 col1 FROM tab2 AS cor0
----
-2555
-4414
-5865

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE + 58 + + - col2 + + 72 + col0 + + col2 - 23 + - 35 IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT + 96 * - col2 AS col1 FROM tab2 AS cor0
----
-2208
-3840
-5568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col2 + - col0 col1 FROM tab1 AS cor0
----
4845
4930
6097

query II rowsort
SELECT + ( + - col0 ), + col0 * - 43 + - col1 AS col0 FROM tab1 AS cor0
----
-51
-2207
-85
-3660
-91
-3960

query I rowsort
SELECT DISTINCT - - 79 + - + col2 * - 77 * col2 + + col0 + - col1 * + + col2 FROM tab0 AS cor0
----
166380
754754
7656

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT ALL + COUNT( * ) + - COUNT( + 96 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL + COUNT ( * ) + - COUNT ( + 96 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2734
SELECT DISTINCT + + 96 - + - 10 AS col2, COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - col2 + - 85 IS NULL
----
106
0

skipif mysql # not compatible
query II rowsort label-2734
SELECT DISTINCT + + 96 - + - 10 AS col2, COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - col2 + - 85 IS NULL
----
106
0

query II rowsort
SELECT DISTINCT + col2 + - - col2 AS col1, col2 + - 70 - + - 89 AS col2 FROM tab0 AS cor0
----
198
118
20
29
94
66

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * col2 * - + col1 / col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( - - col2 ) * - 74 * + 35 - + col0 NOT BETWEEN + + col0 + + 64 AND NULL
----

query I rowsort
SELECT - + AVG ( DISTINCT - 4 ) FROM tab2 WHERE col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT 23 + COUNT( * ) + - - SUM( + 36 ) AS col2 FROM tab0
----
134

skipif mysql # not compatible
query I rowsort label-2739
SELECT 23 + COUNT ( * ) + - - SUM ( + 36 ) AS col2 FROM tab0
----
134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 13 AS col0, + col0 col1 FROM tab2
----
-13
46
-13
64
-13
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2741
SELECT 26 DIV + 30 + SUM( - col1 ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2741
SELECT 26 / + 30 + SUM ( - col1 ) AS col0 FROM tab1
----
-66

query I rowsort
SELECT - 4 + col1 AS col2 FROM tab1
----
1
10
43

query I rowsort
SELECT DISTINCT + col2 * + - col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT - 73 - + - 59 AS col1 FROM tab2 AS cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT + + SUM( + col2 ) FROM tab2 WHERE + + col0 IS NOT NULL
----
121

skipif mysql # not compatible
query I rowsort label-2745
SELECT + + SUM ( + col2 ) FROM tab2 WHERE + + col0 IS NOT NULL
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT MIN( DISTINCT + 36 ) FROM tab0, tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-2746
SELECT MIN ( DISTINCT + 36 ) FROM tab0, tab1 AS cor0
----
36

query II rowsort
SELECT DISTINCT + + 82, + col0 * + col0 FROM tab0 WHERE - col0 * col1 + - - col0 > + col2
----

query I rowsort
SELECT - + 69 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT + COUNT( * ) - + + COUNT( * ) * - + ( + 13 ) FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-2749
SELECT + COUNT ( * ) - + + COUNT ( * ) * - + ( + 13 ) FROM tab1 AS cor0
----
42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2750
SELECT ALL + ( + col1 ) DIV - CAST( + - col0 AS SIGNED ) - + col2 FROM tab2 AS cor0
----
-22
-39
-58

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL + ( + col1 ) / - CAST ( + - col0 AS INTEGER ) - + col2 FROM tab2 AS cor0
----
-22
-39
-58

query I rowsort
SELECT 34 - - - ( col0 ) FROM tab0 AS cor0
----
-53
-63
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2752
SELECT ALL + col1 / + ( + + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL + col1 / + ( + + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - ( + - col2 ) ) FROM tab2 cor0
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 col1 FROM tab0
----
-97
-97
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-2755
SELECT col2 * + + col0 DIV - col0, + ( + col0 ) AS col2 FROM tab0
----
-10
87
-47
15
-99
97

skipif mysql # not compatible
query II rowsort label-2755
SELECT col2 * + + col0 / - col0, + ( + col0 ) AS col2 FROM tab0
----
-10
87
-47
15
-99
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2756
SELECT ALL 95 AS col0, ( + MIN( + col2 ) ) AS col1 FROM tab0
----
95
10

skipif mysql # not compatible
query II rowsort label-2756
SELECT ALL 95 AS col0, ( + MIN ( + col2 ) ) AS col1 FROM tab0
----
95
10

query II rowsort
SELECT col0 AS col1, - 94 * - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT - SUM( ALL + - col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2758
SELECT - SUM ( ALL + - col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL + - 48 FROM tab1 AS cor0 WHERE NULL < - col0
----

query I rowsort
SELECT ALL + 21 FROM tab2 cor0
----
21
21
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2761
SELECT ALL - COUNT( * ) AS col2, - 8 + - - COUNT( * ) + 73 DIV + - 63 AS col1 FROM tab1
----
-3
-6

skipif mysql # not compatible
query II rowsort label-2761
SELECT ALL - COUNT ( * ) AS col2, - 8 + - - COUNT ( * ) + 73 / + - 63 AS col1 FROM tab1
----
-3
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT ALL + SUM( + 79 ) * + SUM( DISTINCT - col0 ) AS col1 FROM tab1
----
-53799

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL + SUM ( + 79 ) * + SUM ( DISTINCT - col0 ) AS col1 FROM tab1
----
-53799

query II rowsort
SELECT ( + col0 ) AS col1, col0 AS col2 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT DISTINCT - 6 * - - 54 + - col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 4 + + ( col0 ) FROM tab2 AS cor0
----
42
60
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT - MAX( - 16 ) + + COUNT( * ) col0 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2766
SELECT - MAX ( - 16 ) + + COUNT ( * ) col0 FROM tab0 AS cor0
----
19

query I rowsort
SELECT - col1 * 9 + - + col0 AS col1 FROM tab1 cor0
----
-130
-177
-514

query I rowsort
SELECT DISTINCT col1 + + ( - col0 ) * + 38 + 74 AS col2 FROM tab0
----
-3211
-3611
-415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2769
SELECT + ( ( - CAST( NULL AS SIGNED ) ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2769
SELECT + ( ( - CAST ( NULL AS INTEGER ) ) ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 * - + 18 col2 FROM tab0
----
-648
-648
-648

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 98 - + - 84 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < 99 * - col1 - - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2773
SELECT ALL + - col1 DIV col0 + col1 + - 66 * + col1 * col2 FROM tab0 AS cor0
----
-13839
-251186
-6533

skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL + - col1 / col0 + col1 + - 66 * + col1 * col2 FROM tab0 AS cor0
----
-13839
-251186
-6533

query I rowsort
SELECT 90 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT DISTINCT - col0 - + - col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE ( - col0 ) IN ( - col1 * 50 - + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col1, 60 col0 FROM tab1
----
51
60
85
60
91
60

query I rowsort
SELECT ALL ( + col0 ) * ( - - col1 ) FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2779
SELECT ALL - 0 DIV + - ( - 60 ) + - + 52 AS col0 FROM tab2 AS cor0
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL - 0 / + - ( - 60 ) + - + 52 AS col0 FROM tab2 AS cor0
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-2780
SELECT ALL COUNT( * ), 55 AS col1 FROM tab1 AS cor0
----
3
55

skipif mysql # not compatible
query II rowsort label-2780
SELECT ALL COUNT ( * ), 55 AS col1 FROM tab1 AS cor0
----
3
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT + COUNT( DISTINCT + - col0 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2781
SELECT + COUNT ( DISTINCT + - col0 ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2782
SELECT ALL - col2, CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-2782
SELECT ALL - col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2783
SELECT + + ( + - col1 ) * + col1 AS col1, + col1 DIV col2 AS col2 FROM tab1 AS cor0
----
-196
0
-2209
0
-25
0

skipif mysql # not compatible
query II rowsort label-2783
SELECT + + ( + - col1 ) * + col1 AS col1, + col1 / col2 AS col2 FROM tab1 AS cor0
----
-196
0
-2209
0
-25
0

query II rowsort
SELECT - + col0 AS col2, ( - 16 ) AS col0 FROM tab2 AS cor0
----
-46
-16
-64
-16
-75
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2785
SELECT + CAST( NULL AS SIGNED ) * - + ( + col0 ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2785
SELECT + CAST ( NULL AS INTEGER ) * - + ( + col0 ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2786
SELECT ALL col0 / + CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2786
SELECT ALL col0 / + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2787
SELECT DISTINCT 20 DIV - ( + - 61 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2787
SELECT DISTINCT 20 / - ( + - 61 ) AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 WHERE - col0 * + - col1 + - - col0 IS NOT NULL
----
51
67
77

query II rowsort
SELECT + 92 * + col1 AS col0, 47 FROM tab0 AS cor0
----
1932
47
7452
47
92
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2790
SELECT ALL - col1 FROM tab2 AS cor0 WHERE + CAST( + col0 AS SIGNED ) - + + col2 NOT IN ( - col1, 69 * - 0 )
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL - col1 FROM tab2 AS cor0 WHERE + CAST ( + col0 AS INTEGER ) - + + col2 NOT IN ( - col1, 69 * - 0 )
----
-51
-67
-77

query I rowsort
SELECT col2 + col2 * + - 70 FROM tab2 AS cor0
----
-1587
-2760
-4002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2792
SELECT ALL + + 9 + + + ( 24 ) + + 44 + col0 - CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
114
121
157

skipif mysql # not compatible
query I rowsort label-2792
SELECT ALL + + 9 + + + ( 24 ) + + 44 + col0 - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
114
121
157

query I rowsort
SELECT DISTINCT col0 + + 5 + + ( col2 ) FROM tab1 AS cor0
----
149
152
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2794
SELECT COUNT( * ) DIV + COUNT( * ) + + CAST( - - 8 AS SIGNED ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2794
SELECT COUNT ( * ) / + COUNT ( * ) + + CAST ( - - 8 AS INTEGER ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT - 62 AS col0 FROM tab0 cor0
----
-62

query I rowsort
SELECT ALL + - 67 * col2 + + 72 + - - 15 + - col1 AS col2 FROM tab0 AS cor0
----
-3143
-604
-6547

query I rowsort
SELECT ALL col2 * + col2 + - col0 FROM tab0
----
13
2194
9704

query I rowsort
SELECT DISTINCT - 38 + + col1 FROM tab0
----
-17
-37
43

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 ) + + col2 NOT BETWEEN - + col2 + + 0 + ( - 58 ) AND NULL
----

query II rowsort
SELECT + col2, ( + + ( col0 ) ) * - col1 FROM tab0 WHERE NULL NOT IN ( - + 81 + col2, col2 * + - col0 * - + col1, - col0, + 22 + col1 + 40 + - - col2 / ( - 27 ), col1, - col1 )
----

query I rowsort
SELECT DISTINCT 26 - 79 FROM tab2
----
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 71 AS col2, ( - col1 ) col1 FROM tab0
----
71
-1
71
-21
71
-81

query II rowsort
SELECT - 65 + + col2, - col2 AS col2 FROM tab1
----
-6
-59
3
-68
31
-96

query I rowsort
SELECT DISTINCT 93 AS col0 FROM tab1 WHERE NULL IS NULL
----
93

query III rowsort
SELECT * FROM tab2 WHERE 35 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 80 + + col1 FROM tab1 AS cor0
----
127
85
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT MIN( DISTINCT + col0 ) FROM tab1 cor0 WHERE ( NOT col0 <> + 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2807
SELECT MIN ( DISTINCT + col0 ) FROM tab1 cor0 WHERE ( NOT col0 <> + 82 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2808
SELECT - 50 * CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2808
SELECT - 50 * CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 99 * 47 FROM tab2
----
4653
4653
4653

query I rowsort
SELECT 36 * + col0 AS col2 FROM tab1 AS cor0
----
1836
3060
3276

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 82 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 99 FROM tab1 cor0
----
-99

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - ( col1 ) + 82 * + col1 NOT BETWEEN ( NULL ) AND col2 )
----

query I rowsort
SELECT - + col0 FROM tab1 WHERE NOT + ( - col0 ) IS NULL
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 23 + col1 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 + + col2 * + col1 col2 FROM tab0 cor0
----
130
241
3838

query II rowsort
SELECT DISTINCT + col0 + col1 * col1 AS col0, + 23 FROM tab2 AS cor0
----
2647
23
4564
23
5993
23

query I rowsort
SELECT ALL col2 + + col1 * - col0 * + + ( - - col2 ) * col1 FROM tab2 AS cor0
----
-15178200
-19527092
-2751835

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 4 * + col2 col0 FROM tab1
----
236
272
384

query I rowsort
SELECT + 61 + + col0 FROM tab0 WHERE NOT 26 IS NULL
----
148
158
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT - COUNT( DISTINCT ( col0 ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2822
SELECT - COUNT ( DISTINCT ( col0 ) ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT 94 * 81 FROM tab0
----
7614

query I rowsort
SELECT 43 + col2 AS col2 FROM tab2
----
101
66
83

query I rowsort
SELECT + 83 * - col2 AS col0 FROM tab1
----
-4897
-5644
-7968

query I rowsort
SELECT ALL col0 - col2 * + 49 FROM tab1
----
-2806
-3241
-4653

query I rowsort
SELECT DISTINCT - col2 - - 32 AS col0 FROM tab1
----
-27
-36
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT 86 * COUNT( * ) FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-2828
SELECT 86 * COUNT ( * ) FROM tab1
----
258

onlyif mysql # DIV for integer division: 
query I rowsort label-2829
SELECT ALL col2 DIV + 49 FROM tab0 WHERE - col2 + + 61 * + 41 IS NOT NULL
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL col2 / + 49 FROM tab0 WHERE - col2 + + 61 * + 41 IS NOT NULL
----
0
0
2

query III rowsort
SELECT ALL * FROM tab0 WHERE 88 <> ( col0 + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT ALL + MAX( col2 ) + + COUNT( * ) AS col1 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL + MAX ( col2 ) + + COUNT ( * ) AS col1 FROM tab0
----
102

query I rowsort
SELECT - 91 * 59 FROM tab2
----
-5369
-5369
-5369

query I rowsort
SELECT + 8 * ( 63 ) FROM tab0
----
504
504
504

query I rowsort
SELECT - col1 * 42 FROM tab1
----
-1974
-210
-588

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 87 * - col1 ) NOT IN ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) >= ( col2 )
----

query I rowsort
SELECT col2 + - 50 AS col0 FROM tab2
----
-10
-27
8

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE NOT ( col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 0 * - ( col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND 54
----

query I rowsort
SELECT DISTINCT col1 * + 71 AS col0 FROM tab2
----
3621
4757
5467

onlyif mysql # DIV for integer division: 
query I rowsort label-2842
SELECT DISTINCT ( ( + 30 ) ) DIV col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2842
SELECT DISTINCT ( ( + 30 ) ) / col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2843
SELECT + CAST( + 84 AS SIGNED ) * 96 AS col1 FROM tab0 WHERE + col2 * col0 NOT BETWEEN NULL AND + col2
----
8064
8064
8064

skipif mysql # not compatible
query I rowsort label-2843
SELECT + CAST ( + 84 AS INTEGER ) * 96 AS col1 FROM tab0 WHERE + col2 * col0 NOT BETWEEN NULL AND + col2
----
8064
8064
8064

onlyif mysql # DIV for integer division: 
query I rowsort label-2844
SELECT ALL col0 DIV 4 FROM tab2
----
11
16
18

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL col0 / 4 FROM tab2
----
11
16
18

query I rowsort
SELECT - col1 * 6 + col0 * + 65 FROM tab1
----
3231
5495
5633

query I rowsort
SELECT DISTINCT + 2 * 91 AS col0 FROM tab2 WHERE NULL <= - col1 / ( col2 )
----

query I rowsort
SELECT ALL + ( 89 ) + + col0 * col0 AS col1 FROM tab1
----
2690
7314
8370

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 74 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 - col1 * + col0 FROM tab2 AS cor0
----
-2295
-4851
-4958

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 + + col1 FROM tab2 AS cor0 WHERE NOT - col2 * 61 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2852
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2853
SELECT - MIN( - col2 ) DIV 76 col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2853
SELECT - MIN ( - col2 ) / 76 col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT col2 * + 74 AS col1 FROM tab0 AS cor0
----
3478
7326
740

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) >= + ( + col2 ) * 27
----

query I rowsort
SELECT DISTINCT 8 AS col2 FROM tab2 WHERE + col0 >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 col1 FROM tab2
----
57
57
57

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT col2 * + col0 <> col0 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT - MIN( ALL + 17 ) AS col0 FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-2859
SELECT - MIN ( ALL + 17 ) AS col0 FROM tab2 AS cor0
----
-17

query I rowsort
SELECT ALL + 48 AS col1 FROM tab2 AS cor0 WHERE + col0 * 35 + + 75 IS NOT NULL
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT ALL - - COUNT( * ) * + 19 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-2861
SELECT ALL - - COUNT ( * ) * + 19 FROM tab1 AS cor0
----
57

query I rowsort
SELECT DISTINCT 78 * col1 FROM tab0 AS cor0
----
1638
6318
78

query I rowsort
SELECT 62 * - col2 FROM tab0 AS cor0
----
-2914
-6138
-620

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT MAX( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2864
SELECT MAX ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) = 97
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 FROM tab1 cor0 WHERE NOT + 57 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT DISTINCT - COUNT( * ) * + 7 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-2868
SELECT DISTINCT - COUNT ( * ) * + 7 FROM tab1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT DISTINCT MAX( + + col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2869
SELECT DISTINCT MAX ( + + col0 ) AS col0 FROM tab0
----
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2870
SELECT col1 AS col0 FROM tab2 WHERE NOT - CAST( NULL AS DECIMAL ) IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2870
SELECT col1 AS col0 FROM tab2 WHERE NOT - CAST ( NULL AS REAL ) IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2871
SELECT ALL - COUNT( + col1 ) DIV 79 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL - COUNT ( + col1 ) / 79 AS col2 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 <> ( NULL )
----

query I rowsort
SELECT ( col0 ) * col2 AS col2 FROM tab0
----
705
870
9603

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE 93 BETWEEN NULL AND ( - 57 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT COUNT( * ) * + COUNT( - col2 ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2875
SELECT COUNT ( * ) * + COUNT ( - col2 ) FROM tab1
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 33 < ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2877
SELECT ALL - 41 DIV - col1 + + col2 * - col2 FROM tab1 AS cor0
----
-3473
-4624
-9214

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL - 41 / - col1 + + col2 * - col2 FROM tab1 AS cor0
----
-3473
-4624
-9214

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 BETWEEN col2 AND + col2 / 15
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2879
SELECT DISTINCT COUNT( * ) * - 30 + 58 FROM tab2 AS cor0 WHERE ( 64 ) NOT BETWEEN ( CAST( NULL AS SIGNED ) ) AND - 36
----
-32

skipif mysql # not compatible
query I rowsort label-2879
SELECT DISTINCT COUNT ( * ) * - 30 + 58 FROM tab2 AS cor0 WHERE ( 64 ) NOT BETWEEN ( CAST ( NULL AS INTEGER ) ) AND - 36
----
-32

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN ( NULL ) AND ( 75 * col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col0 * + 87 + col0 ) NOT BETWEEN + col1 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2882
SELECT DISTINCT + col1 * 3 FROM tab1 WHERE NOT 52 * + CAST( - col1 / col1 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2882
SELECT DISTINCT + col1 * 3 FROM tab1 WHERE NOT 52 * + CAST ( - col1 / col1 AS REAL ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2883
SELECT DISTINCT * FROM tab0 WHERE NOT - - col2 = CAST( - 72 AS DECIMAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2883
SELECT DISTINCT * FROM tab0 WHERE NOT - - col2 = CAST ( - 72 AS REAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT MIN( DISTINCT 55 ) AS col1 FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-2884
SELECT MIN ( DISTINCT 55 ) AS col1 FROM tab0 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT ALL + + SUM( ALL - - 96 ) FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL + + SUM ( ALL - - 96 ) FROM tab1 AS cor0
----
288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col0 + - + col1 * - col2 col1 FROM tab0 AS cor0
----
1080
4512
9702

query I rowsort
SELECT - col1 AS col0 FROM tab2 cor0 WHERE NULL > + col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( col1 ) * 68 IS NULL
----

query I rowsort
SELECT + - col0 - col1 + - - 11 + 58 * col2 AS col0 FROM tab2 AS cor0
----
1248
2190
3233

query I rowsort
SELECT + col1 * col2 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col2 AND + col2 * + col1
----

query I rowsort
SELECT ALL 82 * col1 AS col1 FROM tab2 AS cor0
----
4182
5494
6314

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT - 53 - - COUNT( * ) FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-2893
SELECT - 53 - - COUNT ( * ) FROM tab0 AS cor0
----
-50

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL + - col0 AS col1 FROM tab0 AS cor0 WHERE 94 IS NOT NULL
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2896
SELECT DISTINCT - col0 * - col1 + + 74 * + col0 + - 12 DIV col0 AS col1 FROM tab1 cor0
----
11011
4488
6715

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT - col0 * - col1 + + 74 * + col0 + - 12 / col0 AS col1 FROM tab1 cor0
----
11011
4488
6715

query I rowsort
SELECT ( - col1 ) + - col2 AS col0 FROM tab0 WHERE ( NULL ) IS NULL
----
-100
-128
-31

query I rowsort
SELECT ALL 72 - - 87 + col0 AS col2 FROM tab2
----
205
223
234

query I rowsort
SELECT + + ( col1 ) FROM tab2 WHERE - col1 IS NOT NULL
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - + col1 * - + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT SUM( DISTINCT ( - col2 ) ) + - - 70 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2901
SELECT SUM ( DISTINCT ( - col2 ) ) + - - 70 FROM tab2
----
-51

query I rowsort
SELECT ALL + col2 + + + 16 + - + col2 + - col0 + + col1 * - col0 FROM tab1
----
-4352
-494
-749

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2903
SELECT DISTINCT + col1 / + CAST( NULL AS SIGNED ) - - + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT + col1 / + CAST ( NULL AS INTEGER ) - - + col0 FROM tab1
----
NULL

query I rowsort
SELECT - col0 + - 75 AS col2 FROM tab0
----
-162
-172
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT ALL SUM( DISTINCT + 88 ) FROM tab0 AS cor0 WHERE NOT ( col1 IS NULL )
----
88

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL SUM ( DISTINCT + 88 ) FROM tab0 AS cor0 WHERE NOT ( col1 IS NULL )
----
88

query II rowsort
SELECT ALL - ( + + col1 ), col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT 78 AS col1 FROM tab2 AS cor0 WHERE NOT col2 + col0 <= ( 57 * 50 + - 96 )
----

query I rowsort
SELECT col2 * + col2 * col2 AS col0 FROM tab1 AS cor0
----
205379
314432
884736

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 24 * - - 61 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2910
SELECT - CAST( NULL AS SIGNED ) * + col1 + 54 - 18 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2910
SELECT - CAST ( NULL AS INTEGER ) * + col1 + 54 - 18 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( - col2 )
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( + 55 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2913
SELECT DISTINCT col2 * col0 DIV 24 AS col0, + 44 * + 38 FROM tab0
----
29
1672
36
1672
400
1672

skipif mysql # not compatible
query II rowsort label-2913
SELECT DISTINCT col2 * col0 / 24 AS col0, + 44 * + 38 FROM tab0
----
29
1672
36
1672
400
1672

query I rowsort
SELECT DISTINCT - + col0 * + - 69 * + col2 FROM tab0 AS cor0
----
48645
60030
662607

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE ( ( + - col1 ) ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2916
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE - col1 <= + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE - col1 <= + col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2917
SELECT DISTINCT CAST( - col2 AS SIGNED ) FROM tab1 AS cor0 WHERE 73 <= - + col0 * + - col2
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2917
SELECT DISTINCT CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0 WHERE 73 <= - + col0 * + - col2
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2918
SELECT - CAST( + 64 AS SIGNED ) + + 38 * col0 col2 FROM tab2 AS cor0
----
1684
2368
2786

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2918
SELECT - CAST ( + 64 AS INTEGER ) + + 38 * col0 col2 FROM tab2 AS cor0
----
1684
2368
2786

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - col1 + + + 66 * - col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND + + col1 * - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 36 IS NOT NULL
----

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT ( ( + col0 ) ) IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2923
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, + 39 FROM tab1
----
NULL
39

skipif mysql # not compatible
query II rowsort label-2923
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, + 39 FROM tab1
----
NULL
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT ( - 1 ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2924
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT ( - 1 ) <> NULL
----
0

query I rowsort
SELECT DISTINCT ( - 50 ) + + col0 * - col1 AS col0 FROM tab0 WHERE NOT ( 69 ) IS NOT NULL
----

query I rowsort
SELECT 37 * - - 33 FROM tab0
----
1221
1221
1221

onlyif mysql # DIV for integer division: 
query I rowsort label-2927
SELECT - 78 DIV - col1 FROM tab0
----
0
3
78

skipif mysql # not compatible
query I rowsort label-2927
SELECT - 78 / - col1 FROM tab0
----
0
3
78

onlyif mysql # DIV for integer division: 
query II rowsort label-2928
SELECT col0, - col0 DIV - + col2 FROM tab2
----
46
2
64
1
75
1

skipif mysql # not compatible
query II rowsort label-2928
SELECT col0, - col0 / - + col2 FROM tab2
----
46
2
64
1
75
1

query I rowsort
SELECT 68 * + 40 FROM tab0
----
2720
2720
2720

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2930
SELECT DISTINCT 16 * + - 44 / 76 * CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT 16 * + - 44 / 76 * CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 82 IN ( - + col0 )
----

query I rowsort
SELECT DISTINCT - 64 + + col1 + 66 * + + 98 + + - 43 FROM tab0 AS cor0
----
6362
6382
6442

query I rowsort
SELECT ALL col0 + - ( - + col2 ) * - col1 FROM tab2 AS cor0
----
-1127
-3016
-3811

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2934
SELECT + ( + + COUNT( * ) ) DIV + CAST( - - 18 AS SIGNED ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2934
SELECT + ( + + COUNT ( * ) ) / + CAST ( - - 18 AS INTEGER ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 2 IN ( - + 16 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + 45
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2937
SELECT ALL + - COUNT( * ) * + - MIN( DISTINCT - - col0 ) DIV + + MAX( ALL + - col1 ) + - MAX( - 50 ) AS col1 FROM tab1 cor0
----
20

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL + - COUNT ( * ) * + - MIN ( DISTINCT - - col0 ) / + + MAX ( ALL + - col1 ) + - MAX ( - 50 ) AS col1 FROM tab1 cor0
----
20

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2938
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN + CAST( - col0 AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2938
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN + CAST ( - col0 AS REAL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 75 / + + 77 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT ALL COUNT( * ) + + - 97 FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL COUNT ( * ) + + - 97 FROM tab2 AS cor0
----
-94

query I rowsort
SELECT col2 * + - 78 - + col2 FROM tab1
----
-4661
-5372
-7584

query I rowsort
SELECT DISTINCT 83 + - col1 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2945
SELECT DISTINCT col2 DIV 64 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-2945
SELECT DISTINCT col2 / 64 FROM tab1
----
0
1

query II rowsort
SELECT DISTINCT 97 AS col0, + 45 * - col0 FROM tab1
----
97
-2295
97
-3825
97
-4095

query II rowsort
SELECT + + ( + ( col0 ) ) AS col1, - col1 - - + 73 FROM tab0 AS cor0
----
15
-8
87
52
97
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT ALL + MIN( ALL + col0 ) FROM tab0 AS cor0 WHERE ( + col2 + + ( col1 ) * - ( - ( - col1 ) ) * - 20 + + 52 * col2 + 79 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL + MIN ( ALL + col0 ) FROM tab0 AS cor0 WHERE ( + col2 + + ( col1 ) * - ( - ( - col1 ) ) * - 20 + + 52 * col2 + 79 ) IS NULL
----
NULL

query I rowsort
SELECT + col0 * - + 13 FROM tab0
----
-1131
-1261
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT + 48 + - + COUNT( * ) + COUNT( * ) FROM tab0, tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-2950
SELECT + 48 + - + COUNT ( * ) + COUNT ( * ) FROM tab0, tab2 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-2951
SELECT DISTINCT - + SUM( ALL + col2 ) AS col0, - COUNT( * ) AS col1 FROM tab1 cor0
----
-223
-3

skipif mysql # not compatible
query II rowsort label-2951
SELECT DISTINCT - + SUM ( ALL + col2 ) AS col0, - COUNT ( * ) AS col1 FROM tab1 cor0
----
-223
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 * + + col1 IS NULL
----

query II rowsort
SELECT - - ( + 50 ), + col0 FROM tab2 AS cor0
----
50
46
50
64
50
75

query I rowsort
SELECT DISTINCT - 97 + + col0 FROM tab2 AS cor0
----
-22
-33
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT + - COUNT( ALL + + 71 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2955
SELECT + - COUNT ( ALL + + 71 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col2 * - 21 + col2 FROM tab2 AS cor0
----
-1160
-460
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT ALL MAX( + - 40 ) AS col0 FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL MAX ( + - 40 ) AS col0 FROM tab0 AS cor0
----
-40

query I rowsort
SELECT ALL col2 + - 54 AS col1 FROM tab1 cor0
----
14
42
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2959
SELECT DISTINCT - + ( 9 ) + col2 * CAST( - + 70 AS SIGNED ) FROM tab1 AS cor0
----
-4139
-4769
-6729

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT - + ( 9 ) + col2 * CAST ( - + 70 AS INTEGER ) FROM tab1 AS cor0
----
-4139
-4769
-6729

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 72 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2961
SELECT ALL * FROM tab2 WHERE NOT - CAST( - - col2 AS SIGNED ) * - + 71 / - - col2 * col1 + + 74 + + - col1 IN ( + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2961
SELECT ALL * FROM tab2 WHERE NOT - CAST ( - - col2 AS INTEGER ) * - + 71 / - - col2 * col1 + + 74 + + - col1 IN ( + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT ALL - COUNT( * ) FROM tab2 WHERE - 12 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL - COUNT ( * ) FROM tab2 WHERE - 12 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT DISTINCT + SUM( - + 23 ) FROM tab1 WHERE NULL IS NULL AND NOT ( + 21 <> col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2963
SELECT DISTINCT + SUM ( - + 23 ) FROM tab1 WHERE NULL IS NULL AND NOT ( + 21 <> col1 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 10 col1 FROM tab2
----
510
670
770

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 ) <= NULL
----

query I rowsort
SELECT ALL + col1 * + 51 + + + 25 FROM tab2 AS cor0
----
2626
3442
3952

query I rowsort
SELECT + ( + + col0 ) + + - col1 AS col0 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT + + 92 + + - col2 * - - col1 AS col0 FROM tab2 AS cor0
----
-1081
-2988
-3794

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT COUNT( * ) * - + MIN( col2 ) + + MAX( 41 ) - + - SUM( col1 ) AS col0 FROM tab2 AS cor0
----
167

skipif mysql # not compatible
query I rowsort label-2969
SELECT COUNT ( * ) * - + MIN ( col2 ) + + MAX ( 41 ) - + - SUM ( col1 ) AS col0 FROM tab2 AS cor0
----
167

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 / + + col0 >= - ( - - 31 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 * col0 * - col1 + 69 + + - col0 * + 45 + ( + 35 ) FROM tab2
----
117680
333404
376680

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT ALL 74 - + COUNT( * ) * + COUNT( * ) AS col0 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-2972
SELECT ALL 74 - + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1
----
65

query II rowsort
SELECT col0 - - + 56 AS col1, col2 AS col1 FROM tab1 AS cor0
----
107
96
141
59
147
68

query II rowsort
SELECT col1 - - - col2, col2 AS col0 FROM tab2 AS cor0
----
28
23
37
40
9
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT ALL + - SUM( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL + - SUM ( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
-121

query II rowsort
SELECT DISTINCT - 85, col1 - - col0 AS col0 FROM tab0 AS cor0
----
-85
108
-85
96
-85
98

query II rowsort
SELECT col0 AS col0, - col2 + - col0 AS col0 FROM tab2 AS cor0
----
46
-69
64
-104
75
-133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2978
SELECT DISTINCT 47 * - - CAST( NULL AS SIGNED ) * + + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT 47 * - - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 65 * col1 * - col2 AS col1 FROM tab1
----
-19175
-207740
-87360

query II rowsort
SELECT - ( + col0 ), - col0 * - - col0 AS col0 FROM tab2
----
-46
-2116
-64
-4096
-75
-5625

onlyif mysql # aggregate syntax: 
query II rowsort label-2981
SELECT ( COUNT( * ) ) AS col2, - COUNT( * ) FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-2981
SELECT ( COUNT ( * ) ) AS col2, - COUNT ( * ) FROM tab2
----
3
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2982
SELECT DISTINCT + SUM( DISTINCT + - 75 ), COUNT( * ) * + 84 AS col2 FROM tab2
----
-75
252

skipif mysql # not compatible
query II rowsort label-2982
SELECT DISTINCT + SUM ( DISTINCT + - 75 ), COUNT ( * ) * + 84 AS col2 FROM tab2
----
-75
252

query I rowsort
SELECT DISTINCT - col2 * col2 AS col1 FROM tab2 WHERE ( NOT ( 98 ) IS NULL )
----
-1600
-3364
-529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 56 col2 FROM tab0 AS cor0
----
56
56
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2985
SELECT 86 * 63 DIV MIN( - + 9 ) col0 FROM tab1 cor0
----
-602

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2985
SELECT 86 * 63 / MIN ( - + 9 ) col0 FROM tab1 cor0
----
-602

onlyif mysql # DIV for integer division: 
query I rowsort label-2986
SELECT col1 * + 58 * + + col0 DIV - - col0 FROM tab1
----
2726
290
812

skipif mysql # not compatible
query I rowsort label-2986
SELECT col1 * + 58 * + + col0 / - - col0 FROM tab1
----
2726
290
812

query II rowsort
SELECT DISTINCT + 93 AS col1, + col1 * - col2 FROM tab2 AS cor0
----
93
-1173
93
-3080
93
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-2988
SELECT col0 + - ( + 58 ) + - + col2 DIV - - ( 73 ) FROM tab1 AS cor0
----
-8
27
33

skipif mysql # not compatible
query I rowsort label-2988
SELECT col0 + - ( + 58 ) + - + col2 / - - ( 73 ) FROM tab1 AS cor0
----
-8
27
33

onlyif mysql # DIV for integer division: 
query I rowsort label-2989
SELECT - + 90 DIV - - col0 + col1 col1 FROM tab2 AS cor0
----
50
66
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2989
SELECT - + 90 / - - col0 + col1 col1 FROM tab2 AS cor0
----
50
66
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT - MIN( - col1 ) + + + 64 * 89 FROM tab2 AS cor0
----
5773

skipif mysql # not compatible
query I rowsort label-2990
SELECT - MIN ( - col1 ) + + + 64 * 89 FROM tab2 AS cor0
----
5773

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT + MAX( ALL - - col2 ) + - ( + COUNT( DISTINCT + 60 ) ) FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-2991
SELECT + MAX ( ALL - - col2 ) + - ( + COUNT ( DISTINCT + 60 ) ) FROM tab1 AS cor0
----
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 16 col2 FROM tab0 cor0
----
16

query I rowsort
SELECT + 86 * col2 - col0 FROM tab1 AS cor0
----
4989
5757
8205

query I rowsort
SELECT + col2 - 54 AS col2 FROM tab1 cor0
----
14
42
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2995
SELECT ALL + CAST( col0 AS SIGNED ) - col1 FROM tab2 AS cor0
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL + CAST ( col0 AS INTEGER ) - col1 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT DISTINCT - col0 * + 46 + col1 * col2 FROM tab0 AS cor0
----
-3792
-4363
3117

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2998
SELECT DISTINCT + + 87 col2, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
87
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2998
SELECT DISTINCT + + 87 col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
87
-3

query I rowsort
SELECT + col0 * col2 - - col0 AS col0 FROM tab1 AS cor0
----
4947
5100
6279

query I rowsort
SELECT ALL 92 * + col2 FROM tab2 AS cor0
----
2116
3680
5336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3001
SELECT - ( - COUNT( * ) ) DIV + 91 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3001
SELECT - ( - COUNT ( * ) ) / + 91 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT 0 * + ( - col2 ) + col1 AS col1 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 59 NOT IN ( + + col2 / - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT ALL COUNT( * ) * + 75 AS col0 FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-3004
SELECT ALL COUNT ( * ) * + 75 AS col0 FROM tab0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT 10 * - - 43 * - SUM( ALL + col1 ) FROM tab0
----
-44290

skipif mysql # not compatible
query I rowsort label-3005
SELECT 10 * - - 43 * - SUM ( ALL + col1 ) FROM tab0
----
-44290

query II rowsort
SELECT ALL + col1 AS col1, 24 AS col2 FROM tab1
----
14
24
47
24
5
24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3007
SELECT ALL 89 / CAST( NULL AS DECIMAL ), + COUNT( * ) AS col1 FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3007
SELECT ALL 89 / CAST ( NULL AS REAL ), + COUNT ( * ) AS col1 FROM tab1
----
NULL
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3008
SELECT DISTINCT col0 DIV - + col1 AS col0 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-3008
SELECT DISTINCT col0 / - + col1 AS col0 FROM tab1
----
-1
-17
-3

query I rowsort
SELECT DISTINCT + + col0 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - + 14 FROM tab1 AS cor0
----
-1190
-1274
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT ALL - - 53 * + - SUM( DISTINCT + col1 ) FROM tab0 AS cor0
----
-5459

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL - - 53 * + - SUM ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-5459

query II rowsort
SELECT ALL - col0 + - 70 AS col1, col0 AS col0 FROM tab0 cor0
----
-157
87
-167
97
-85
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 11 * + ( - + col1 ) * + - col2 + 46 + - col1 col1, col1 FROM tab2 AS cor0
----
-12908
51
-33911
77
-42767
67

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( 30 + + + col0 / 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE + 13 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3015
SELECT + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE + 13 IS NULL
----
0

query II rowsort
SELECT ( - col2 ), ( + 91 ) AS col0 FROM tab1 AS cor0
----
-59
91
-68
91
-96
91

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 < 8
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3018
SELECT - MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) * - - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3018
SELECT - MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + - 21 * 30 FROM tab2 AS cor0
----
-572
-590
-607

query II rowsort
SELECT ALL col0 + + - col2 * col1 AS col1, col2 * + col1 + + col1 AS col0 FROM tab1 AS cor0
----
-1293
1358
-210
300
-3105
3243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3021
SELECT ALL 73 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE 28 * + + col1 + + col0 * col2 * - ( + col1 ) + - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL 73 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE 28 * + + col1 + + col0 * col2 * - ( + col1 ) + - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3022
SELECT AVG ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3022
SELECT AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL + col1 * + 94, + 61 AS col1 FROM tab0 WHERE ( + col1 ) BETWEEN NULL AND ( + ( + col0 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + + ( - col0 ) / - col2 - 13 AND - col2 * 38
----

query II rowsort
SELECT DISTINCT + 83, col0 AS col0 FROM tab1
----
83
51
83
85
83
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 AS col0, + col0 col1 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT COUNT( * ) + - - MAX( DISTINCT 44 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3027
SELECT COUNT ( * ) + - - MAX ( DISTINCT 44 ) AS col1 FROM tab1
----
47

query I rowsort
SELECT 88 + 75 * - col2 AS col2 FROM tab0
----
-3437
-662
-7337

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3029
SELECT + MIN( DISTINCT - 12 ) + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3029
SELECT + MIN ( DISTINCT - 12 ) + CAST ( NULL AS REAL ) FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT col1 AS col0, 40 AS col0 FROM tab0 AS cor0
----
1
40
21
40
81
40

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE - ( 76 ) > + + 45
----

query I rowsort
SELECT DISTINCT + col2 + - + col1 + col1 + 65 + col0 * - col2 * + + col1 FROM tab2 cor0
----
-197015
-291327
-53870

query I rowsort
SELECT col2 + col0 AS col0 FROM tab0 AS cor0 WHERE NULL IN ( col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + 6 )
----

query I rowsort
SELECT col1 - col1 * + col0 AS col0 FROM tab0
----
-1134
-1806
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3036
SELECT ALL * FROM tab1 WHERE + 45 + + + col2 = 5 + - + CAST( - - col2 AS SIGNED ) - - + col1
----

skipif mysql # not compatible
query III rowsort label-3036
SELECT ALL * FROM tab1 WHERE + 45 + + + col2 = 5 + - + CAST ( - - col2 AS INTEGER ) - - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT - MAX( ALL - - 99 ) FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-3037
SELECT - MAX ( ALL - - 99 ) FROM tab1
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3038
SELECT ALL SUM( - 31 ), + COUNT( * ) AS col0 FROM tab2
----
-93
3

skipif mysql # not compatible
query II rowsort label-3038
SELECT ALL SUM ( - 31 ), + COUNT ( * ) AS col0 FROM tab2
----
-93
3

query I rowsort
SELECT DISTINCT + + col0 * - + 68 FROM tab2 AS cor0
----
-3128
-4352
-5100

query I rowsort
SELECT ALL - col2 * col1 * col1 * 70 FROM tab1 AS cor0
----
-103250
-10514840
-1317120

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT ALL - - SUM( - 94 ) * + ( COUNT( * ) ) + + + 87 + - 86 * - MAX( - + 92 ) AS col2 FROM tab2 AS cor0 WHERE NOT - col0 - - 46 + col0 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL - - SUM ( - 94 ) * + ( COUNT ( * ) ) + + + 87 + - 86 * - MAX ( - + 92 ) AS col2 FROM tab2 AS cor0 WHERE NOT - col0 - - 46 + col0 NOT BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 / + 80 NOT BETWEEN + col2 AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3043
SELECT + CAST( ( - 18 ) AS SIGNED ) AS col0 FROM tab2
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-3043
SELECT + CAST ( ( - 18 ) AS INTEGER ) AS col0 FROM tab2
----
-18
-18
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3044
SELECT 72 DIV - SUM( DISTINCT col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3044
SELECT 72 / - SUM ( DISTINCT col2 ) FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3045
SELECT CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3045
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3046
SELECT ( ( - col2 ) ) DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3046
SELECT ( ( - col2 ) ) / + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + + ( - col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT ALL SUM( DISTINCT + col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL SUM ( DISTINCT + col2 ) AS col2 FROM tab1
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( + col2 ) * col1 col1 FROM tab0 cor0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3050
SELECT DISTINCT col1 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3050
SELECT DISTINCT col1 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3051
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3051
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - 58 AS col2, - 28 AS col0 FROM tab2
----
-58
-28
-58
-28
-58
-28

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * - 34 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3054
SELECT DISTINCT + 99, COUNT( * ) AS col1 FROM tab2
----
99
3

skipif mysql # not compatible
query II rowsort label-3054
SELECT DISTINCT + 99, COUNT ( * ) AS col1 FROM tab2
----
99
3

query I rowsort
SELECT + 68 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT DISTINCT + SUM( DISTINCT - 64 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-64

skipif mysql # not compatible
query I rowsort label-3056
SELECT DISTINCT + SUM ( DISTINCT - 64 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-64

query II rowsort
SELECT + 48 + + col0 AS col1, + col2 AS col0 FROM tab1 AS cor0
----
133
59
139
68
99
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 IN ( + col0 )
----

query II rowsort
SELECT 82, + col1 FROM tab1 AS cor0
----
82
14
82
47
82
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT DISTINCT 78 - COUNT( * ) FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-3060
SELECT DISTINCT 78 - COUNT ( * ) FROM tab0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT - COUNT( DISTINCT - 89 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3061
SELECT - COUNT ( DISTINCT - 89 ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT ALL 44 - - SUM( col0 ) FROM tab2
----
229

skipif mysql # not compatible
query I rowsort label-3062
SELECT ALL 44 - - SUM ( col0 ) FROM tab2
----
229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + col0 ) * + col2 * - ( 57 ) * + col1 col0 FROM tab1
----
1429275
16577652
3907008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * 97 col2, 28 FROM tab0
----
-4559
28
-9603
28
-970
28

query I rowsort
SELECT ALL ( - col0 ) * col2 * - + ( col1 ) + + col0 + ( col1 ) + + col1 FROM tab0
----
18399
57282
9702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3066
SELECT DISTINCT - col1 + - 36 + - 33 - - ( + CAST( - 8 AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
-124
-82
-91

skipif mysql # not compatible
query I rowsort label-3066
SELECT DISTINCT - col1 + - 36 + - 33 - - ( + CAST ( - 8 AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
-124
-82
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3067
SELECT DISTINCT + COUNT( * ) DIV - 81 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3067
SELECT DISTINCT + COUNT ( * ) / - 81 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col1 - + col2 AS col2 FROM tab0 AS cor0 WHERE NOT col1 = NULL
----

query II rowsort
SELECT + 90 AS col2, - 14 FROM tab1 cor0
----
90
-14
90
-14
90
-14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3070
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3070
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + + ( + ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query II rowsort
SELECT 90, - ( + + 19 ) AS col1 FROM tab1 AS cor0
----
90
-19
90
-19
90
-19

query I rowsort
SELECT - col1 * + + 74 * col2 * 22 * - col2 AS col2 FROM tab2 cor0
----
200569600
366931664
43921812

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT ALL 33 * - COUNT( * ) FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3075
SELECT ALL 33 * - COUNT ( * ) FROM tab1 AS cor0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 * + col1 * + + ( - 11 ) col0 FROM tab0
----
-25839
-319
-6699

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT col0 + - - col2 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT + COUNT( * ) * 14 FROM tab0 WHERE NOT ( NOT - col0 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3078
SELECT + COUNT ( * ) * 14 FROM tab0 WHERE NOT ( NOT - col0 IS NULL )
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 56 BETWEEN col2 - + col1 AND + + col2 * col1 * - 25 + + - 6
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 + - - col2 + + + 78 * + 66 AS col2 FROM tab1 AS cor0
----
5292
5295
5307

query I rowsort
SELECT DISTINCT ( + - ( + - col1 ) ) * - col2 + + 9 + + 21 - - col1 * - 4 + + - col0 FROM tab1
----
-1421
-3445
-370

onlyif mysql # aggregate syntax: 
query II rowsort label-3082
SELECT + COUNT( * ) * MAX( DISTINCT + - col2 ), + COUNT( * ) * + 93 AS col2 FROM tab2
----
-69
279

skipif mysql # not compatible
query II rowsort label-3082
SELECT + COUNT ( * ) * MAX ( DISTINCT + - col2 ), + COUNT ( * ) * + 93 AS col2 FROM tab2
----
-69
279

onlyif mysql # aggregate syntax: 
query II rowsort label-3083
SELECT DISTINCT + + 10 AS col0, COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
10
9

skipif mysql # not compatible
query II rowsort label-3083
SELECT DISTINCT + + 10 AS col0, COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
10
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3084
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + 20 col2 FROM tab2 WHERE NOT - + 47 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3084
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + 20 col2 FROM tab2 WHERE NOT - + 47 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3085
SELECT * FROM tab0 WHERE + + CAST( NULL AS SIGNED ) <> - col0
----

skipif mysql # not compatible
query III rowsort label-3085
SELECT * FROM tab0 WHERE + + CAST ( NULL AS INTEGER ) <> - col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3086
SELECT - CAST( + - 61 AS SIGNED ) DIV - col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3086
SELECT - CAST ( + - 61 AS INTEGER ) / - col0 FROM tab2
----
-1
0
0

query I rowsort
SELECT ALL col1 * + col1 * + + 56 AS col2 FROM tab0
----
24696
367416
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 53 col2, + col1 col2 FROM tab2 AS cor0
----
53
51
53
67
53
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT - + ( + COUNT( DISTINCT - - col1 ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3089
SELECT - + ( + COUNT ( DISTINCT - - col1 ) ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + 19 - col1 * + 87 FROM tab0 AS cor0
----
-1808
-68
-7028

onlyif mysql # DIV for integer division: 
query I rowsort label-3091
SELECT ALL - + col1 DIV col1 col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3091
SELECT ALL - + col1 / col1 col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 94 col0 FROM tab2
----
145
161
171

query I rowsort
SELECT DISTINCT + 21 FROM tab0 WHERE NULL IS NULL
----
21

query I rowsort
SELECT 39 + + col0 + 29 FROM tab0
----
155
165
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 12 * - col2 * - col0 col2 FROM tab2
----
-12696
-30720
-52200

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3097
SELECT ALL - 79 DIV - col2 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL - 79 / - col2 AS col0 FROM tab1
----
0
1
1

query I rowsort
SELECT 80 + + - col1 AS col0 FROM tab0
----
-1
59
79

query I rowsort
SELECT ALL - 68 - - - 87 FROM tab2
----
-155
-155
-155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3100
SELECT ALL CAST( + + col0 AS SIGNED ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3100
SELECT ALL CAST ( + + col0 AS INTEGER ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3101
SELECT DISTINCT - 63, + 30 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-3101
SELECT DISTINCT - 63, + 30 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
-63
NULL

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NULL = col0
----

query I rowsort
SELECT DISTINCT - - 77 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT + 30 * 21 * COUNT( * ) FROM tab0 AS cor0
----
1890

skipif mysql # not compatible
query I rowsort label-3104
SELECT + 30 * 21 * COUNT ( * ) FROM tab0 AS cor0
----
1890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3105
SELECT ALL 48 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col1 * - - CAST( NULL AS SIGNED ) + + - col2
----

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL 48 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col1 * - - CAST ( NULL AS INTEGER ) + + - col2
----

query I rowsort
SELECT 93 + - col0 * + - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
798
963
9696

query I rowsort
SELECT - col1 * - 58 FROM tab1
----
2726
290
812

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 35 col0, 26 - - col1 AS col1 FROM tab0
----
35
107
35
27
35
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3109
SELECT DISTINCT - MAX( ALL CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT - MAX ( ALL CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query I rowsort
SELECT 35 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - ( + + col0 )
----

query II rowsort
SELECT DISTINCT 5 AS col2, ( + col1 ) FROM tab0
----
5
1
5
21
5
81

query III rowsort
SELECT * FROM tab1 WHERE NOT 60 * + col0 = + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT + SUM( DISTINCT col1 ) * + + COUNT( * ) AS col2 FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-3113
SELECT + SUM ( DISTINCT col1 ) * + + COUNT ( * ) AS col2 FROM tab2
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT SUM( 50 ) FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-3114
SELECT SUM ( 50 ) FROM tab0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT 12 * COUNT( * ) FROM tab0 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3115
SELECT 12 * COUNT ( * ) FROM tab0 WHERE NOT + col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT ALL - + MIN( + - col0 ) AS col0 FROM tab2 AS cor0 WHERE NULL < + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL - + MIN ( + - col0 ) AS col0 FROM tab2 AS cor0 WHERE NULL < + 87
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3117
SELECT ALL CAST( - - col1 AS SIGNED ) + col0 + + - col2 FROM tab1 AS cor0
----
-31
31
70

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL CAST ( - - col1 AS INTEGER ) + col0 + + - col2 FROM tab1 AS cor0
----
-31
31
70

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3119
SELECT DISTINCT - CAST( 3 AS SIGNED ) * - - 36 + - - 49 AS col2 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3119
SELECT DISTINCT - CAST ( 3 AS INTEGER ) * - - 36 + - - 49 AS col2 FROM tab0 AS cor0
----
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-3120
SELECT ALL + ( + + col2 ) DIV - - 17 + - ( + 41 ) + - 40 * - - 88 + - 10, 92 + - col1 * + + col1 AS col0 FROM tab2 AS cor0
----
-3568
-4397
-3569
-5837
-3570
-2509

skipif mysql # not compatible
query II rowsort label-3120
SELECT ALL + ( + + col2 ) / - - 17 + - ( + 41 ) + - 40 * - - 88 + - 10, 92 + - col1 * + + col1 AS col0 FROM tab2 AS cor0
----
-3568
-4397
-3569
-5837
-3570
-2509

query I rowsort
SELECT DISTINCT col2 * 49 * + ( col2 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
164836
25921
78400

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT DISTINCT ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3122
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3123
SELECT - col0 * - 37 - ( + col1 ) * + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3123
SELECT - col0 * - 37 - ( + col1 ) * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( 70 ) + + col2 AS col0 FROM tab0
----
117
169
80

query I rowsort
SELECT - col2 + + + col0 + + + col1 AS col2 FROM tab2
----
101
74
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3126
SELECT DISTINCT col0 DIV - 72 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT col0 / - 72 FROM tab2
----
-1
0

query I rowsort
SELECT + 45 + + + col1 FROM tab2
----
112
122
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 AS cor0 WHERE - 5 IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3129
SELECT + - SUM( ALL + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3129
SELECT + - SUM ( ALL + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3130
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 + - 83 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3130
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 + - 83 AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3131
SELECT col0 DIV - + col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-3131
SELECT col0 / - + col1 FROM tab1 AS cor0
----
-1
-17
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3132
SELECT col0 DIV 73 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3132
SELECT col0 / 73 AS col2 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3133
SELECT + 17 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3133
SELECT + 17 / col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 75 * col2 + - col0 FROM tab2
----
1679
2936
4275

query II rowsort
SELECT + 44 AS col2, col1 + col2 FROM tab0
----
44
100
44
128
44
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - 13 col1 FROM tab1
----
-8
1
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3137
SELECT DISTINCT - COUNT( * ) DIV - + 5 col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3137
SELECT DISTINCT - COUNT ( * ) / - + 5 col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT - COUNT( * ) * - 70 AS col2 FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-3138
SELECT - COUNT ( * ) * - 70 AS col2 FROM tab1 AS cor0
----
210

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3139
SELECT - col2 * + col0 AS col0, col0 * + - CAST( + - 70 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT + 5 * + CAST( - 48 AS SIGNED ) + col1 > - col0
----
-4896
3570
-5015
5950
-6188
6370

skipif mysql # not compatible
query II rowsort label-3139
SELECT - col2 * + col0 AS col0, col0 * + - CAST ( + - 70 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT + 5 * + CAST ( - 48 AS INTEGER ) + col1 > - col0
----
-4896
3570
-5015
5950
-6188
6370

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT ( - 89 ) * + COUNT( * ) FROM tab0 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-3140
SELECT ( - 89 ) * + COUNT ( * ) FROM tab0 AS cor0
----
-267

onlyif mysql # DIV for integer division: 
query I rowsort label-3141
SELECT DISTINCT + 96 DIV col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT + 96 / col2 FROM tab1
----
1

query II rowsort
SELECT 69 * + - col1 AS col1, + col2 FROM tab1 AS cor0
----
-3243
68
-345
59
-966
96

query I rowsort
SELECT ALL 79 + - 75 FROM tab1 AS cor0
----
4
4
4

query II rowsort
SELECT - - col2, - col2 AS col0 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3145
SELECT ALL - - CAST( NULL AS SIGNED ), + col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-3145
SELECT ALL - - CAST ( NULL AS INTEGER ), + col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 21 col2 FROM tab0 cor0 WHERE col1 - + col1 > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3147
SELECT + - col1 AS col2, col0 DIV - col0 FROM tab0 AS cor0
----
-1
-1
-21
-1
-81
-1

skipif mysql # not compatible
query II rowsort label-3147
SELECT + - col1 AS col2, col0 / - col0 FROM tab0 AS cor0
----
-1
-1
-21
-1
-81
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT - + ( - SUM( DISTINCT + col2 ) ) AS col2 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-3148
SELECT - + ( - SUM ( DISTINCT + col2 ) ) AS col2 FROM tab0 cor0
----
156

query I rowsort
SELECT ALL + 39 * col2 * - col0 FROM tab2 AS cor0
----
-169650
-41262
-99840

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT ALL 70 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL 70 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-3151
SELECT DISTINCT - 12 DIV + col1 AS col1 FROM tab1
----
-2
0

skipif mysql # not compatible
query I rowsort label-3151
SELECT DISTINCT - 12 / + col1 AS col1 FROM tab1
----
-2
0

query I rowsort
SELECT ALL col2 * col0 + - col2 FROM tab2
----
1035
2520
4292

query III rowsort
SELECT * FROM tab2 WHERE + - 89 IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3154
SELECT - col1 + CAST( NULL AS SIGNED ) + + 45 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3154
SELECT - col1 + CAST ( NULL AS INTEGER ) + + 45 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT ALL + MIN( ALL col2 ) * - + COUNT( * ) + + COUNT( * ) FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL + MIN ( ALL col2 ) * - + COUNT ( * ) + + COUNT ( * ) FROM tab2
----
-66

query I rowsort
SELECT ( + col1 ) + - 56 FROM tab1
----
-42
-51
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT + - COUNT( * ) + - 73 FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-3157
SELECT + - COUNT ( * ) + - 73 FROM tab1 AS cor0
----
-76

query I rowsort
SELECT DISTINCT - 90 + - col0 AS col1 FROM tab1 AS cor0
----
-141
-175
-181

query I rowsort
SELECT ALL col2 + - 99 AS col2 FROM tab1
----
-3
-31
-40

query I rowsort
SELECT DISTINCT + col2 - - - col1 FROM tab1
----
21
54
82

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT - col0 + 24 * + col0 IS NULL
----
51
85
91

query I rowsort
SELECT col1 * - 21 - col2 - - col1 FROM tab2 AS cor0
----
-1043
-1398
-1580

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT 99 - + - SUM( 32 ) + MIN( + 98 ) + - 30 AS col0 FROM tab1 cor0
----
263

skipif mysql # not compatible
query I rowsort label-3163
SELECT 99 - + - SUM ( 32 ) + MIN ( + 98 ) + - 30 AS col0 FROM tab1 cor0
----
263

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3164
SELECT CAST( NULL AS SIGNED ) + + col1 * + col0 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3164
SELECT CAST ( NULL AS INTEGER ) + + col1 * + col0 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT - MIN( + 10 ) + - 32 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-3165
SELECT - MIN ( + 10 ) + - 32 FROM tab1 AS cor0
----
-42

query I rowsort
SELECT DISTINCT + ( col2 ) + - col0 FROM tab1 AS cor0
----
-23
-26
45

query III rowsort
SELECT * FROM tab1 WHERE NULL >= + 97
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + - 95 col0, col0 + + 65 FROM tab0
----
-14
80
-74
152
-94
162

onlyif mysql # DIV for integer division: 
query I rowsort label-3169
SELECT ALL col0 * + col2 * - + col2 DIV col2 * - + col1 FROM tab0
----
18270
57105
9603

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL col0 * + col2 * - + col2 / col2 * - + col1 FROM tab0
----
18270
57105
9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3170
SELECT DISTINCT - COUNT( * ) * AVG ( + 87 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3170
SELECT DISTINCT - COUNT ( * ) * AVG ( + 87 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE - col2 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3171
SELECT DISTINCT 94 * col0 DIV 78 FROM tab2
----
55
77
90

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT 94 * col0 / 78 FROM tab2
----
55
77
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT DISTINCT - MAX( DISTINCT 79 ) FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-3172
SELECT DISTINCT - MAX ( DISTINCT 79 ) FROM tab1
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3173
SELECT CAST( - ( + 9 ) AS SIGNED ) * - + 76 col1 FROM tab2 AS cor0
----
684
684
684

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3173
SELECT CAST ( - ( + 9 ) AS INTEGER ) * - + 76 col1 FROM tab2 AS cor0
----
684
684
684

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3175
SELECT ALL + 20 AS col0, COUNT( * ) FROM tab2
----
20
3

skipif mysql # not compatible
query II rowsort label-3175
SELECT ALL + 20 AS col0, COUNT ( * ) FROM tab2
----
20
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT SUM( DISTINCT - - col1 ) col1 FROM tab1
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3176
SELECT SUM ( DISTINCT - - col1 ) col1 FROM tab1
----
66

query I rowsort
SELECT ALL - 61 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3178
SELECT * FROM tab2 WHERE ( - CAST( - col2 AS DECIMAL ) + 86 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3178
SELECT * FROM tab2 WHERE ( - CAST ( - col2 AS REAL ) + 86 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3179
SELECT + 32 DIV + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3179
SELECT + 32 / + col2 AS col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 27 + - + 17 AS col1, - 30 * + - 27 col2 FROM tab0 AS cor0
----
10
810
10
810
10
810

onlyif mysql # DIV for integer division: 
query I rowsort label-3181
SELECT ALL - - col2 DIV - col2 + + 51 * ( - 19 ) FROM tab0 AS cor0
----
-970
-970
-970

skipif mysql # not compatible
query I rowsort label-3181
SELECT ALL - - col2 / - col2 + + 51 * ( - 19 ) FROM tab0 AS cor0
----
-970
-970
-970

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 BETWEEN col2 * + col2 + + col0 + + + col1 AND - col0
----

query I rowsort
SELECT DISTINCT - 62 + - 42 AS col1 FROM tab2
----
-104

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= - + 81
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3185
SELECT DISTINCT + 37 DIV 47, + COUNT( * ) * + COUNT( * ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3185
SELECT DISTINCT + 37 / 47, + COUNT ( * ) * + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3186
SELECT * FROM tab2 AS cor0 WHERE - col1 * - col0 NOT BETWEEN CAST( NULL AS SIGNED ) * + + ( - - CAST( col1 AS DECIMAL ) ) + + col2 + - col2 * + + 79 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3186
SELECT * FROM tab2 AS cor0 WHERE - col1 * - col0 NOT BETWEEN CAST ( NULL AS INTEGER ) * + + ( - - CAST ( col1 AS REAL ) ) + + col2 + - col2 * + + 79 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 + col2 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT DISTINCT COUNT( DISTINCT + + col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3188
SELECT DISTINCT COUNT ( DISTINCT + + col1 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + 37 * + col1 * - 29 * ( + - 51 ) FROM tab0 AS cor0
----
1149183
4432563
54723

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3190
SELECT ALL + COUNT( * ) * + + 92 DIV - + 4 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL + COUNT ( * ) * + + 92 / - + 4 FROM tab2
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 * - col1 col0 FROM tab1
----
266
893
95

onlyif mysql # aggregate syntax: 
query II rowsort label-3192
SELECT + 50 col0, COUNT( * ) FROM tab2
----
50
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3192
SELECT + 50 col0, COUNT ( * ) FROM tab2
----
50
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT + MAX( + + 42 ) FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-3193
SELECT + MAX ( + + 42 ) FROM tab0
----
42

query I rowsort
SELECT + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3195
SELECT DISTINCT + 48 DIV + 81 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3195
SELECT DISTINCT + 48 / + 81 FROM tab1 AS cor0
----
0

query II rowsort
SELECT + col2 AS col1, ( + col1 ) AS col0 FROM tab0 cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT DISTINCT - - COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3197
SELECT DISTINCT - - COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3198
SELECT * FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) * - col2 <> + 33
----

skipif mysql # not compatible
query III rowsort label-3198
SELECT * FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) * - col2 <> + 33
----

query I rowsort
SELECT ALL + ( - - 26 ) FROM tab0 AS cor0
----
26
26
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3200
SELECT ALL - - col1 * col2 DIV col1 * + col0 + + col1 * + col1 FROM tab1 AS cor0
----
5040
5092
8397

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL - - col1 * col2 / col1 * + col0 + + col1 * + col1 FROM tab1 AS cor0
----
5040
5092
8397

query I rowsort
SELECT ALL - - col1 * + + 23 FROM tab1 AS cor0
----
1081
115
322

query I rowsort
SELECT ALL - col1 + + 51 AS col2 FROM tab0 AS cor0
----
-30
30
50

query I rowsort
SELECT DISTINCT - - col1 + col1 * - col0 + ( - col1 ) * 22 FROM tab2 AS cor0
----
-3417
-6432
-6545

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 - - col2 - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3205
SELECT ALL + ( - col0 ) + - - col2 + - col2 * col0 DIV - col0 FROM tab2 AS cor0
----
0
16
41

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL + ( - col0 ) + - - col2 + - col2 * col0 / - col0 FROM tab2 AS cor0
----
0
16
41

query I rowsort
SELECT DISTINCT - 45 + 41 FROM tab2 AS cor0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3207
SELECT ALL + 92 + col1 DIV + + col0 + + + col1 FROM tab1
----
106
139
97

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL + 92 + col1 / + + col0 + + + col1 FROM tab1
----
106
139
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + col0 ) col1 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT ALL - ( + - COUNT( * ) ) + + 95 AS col2 FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL - ( + - COUNT ( * ) ) + + 95 AS col2 FROM tab1
----
98

query I rowsort
SELECT DISTINCT - 23 + - + ( col1 ) FROM tab0
----
-104
-24
-44

query I rowsort
SELECT + col2 + + 91 + col0 * 96 FROM tab0
----
1578
8453
9502

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 + - - col2 col1 FROM tab1 WHERE col2 <= - 97 - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT DISTINCT ( 65 ) * - 44 * 54 + + COUNT( * ) FROM tab1
----
-154437

skipif mysql # not compatible
query I rowsort label-3213
SELECT DISTINCT ( 65 ) * - 44 * 54 + + COUNT ( * ) FROM tab1
----
-154437

query I rowsort
SELECT ALL - col0 - + + col0 AS col2 FROM tab2
----
-128
-150
-92

query I rowsort
SELECT ALL 84 * - 13 FROM tab1
----
-1092
-1092
-1092

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT COUNT( * ) + + + 47 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-3216
SELECT COUNT ( * ) + + + 47 FROM tab2
----
50

query I rowsort
SELECT DISTINCT + 96 * - col1 FROM tab1
----
-1344
-4512
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT ALL ( + + 9 ) + - SUM( - - col2 ) AS col1 FROM tab0 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-3218
SELECT ALL ( + + 9 ) + - SUM ( - - col2 ) AS col1 FROM tab0 AS cor0
----
-147

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3219
SELECT - col0 + - ( + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3219
SELECT - col0 + - ( + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 99 + + + col2 FROM tab1 AS cor0
----
158
167
195

query I rowsort
SELECT DISTINCT + 50 + 56 FROM tab1 cor0
----
106

query I rowsort
SELECT + ( col0 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 58 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3224
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT - col1 BETWEEN NULL AND - - 26 * - - 91 * col1 + - col1 * + + ( col1 ) * col1 * - 93 OR NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT - col1 BETWEEN NULL AND - - 26 * - - 91 * col1 + - col1 * + + ( col1 ) * col1 * - 93 OR NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT ( - 54 ) * + - MIN( ALL - col0 ) FROM tab0 AS cor0
----
-5238

skipif mysql # not compatible
query I rowsort label-3226
SELECT ( - 54 ) * + - MIN ( ALL - col0 ) FROM tab0 AS cor0
----
-5238

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT - COUNT( - col2 ) + - 82 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-85

skipif mysql # not compatible
query I rowsort label-3227
SELECT - COUNT ( - col2 ) + - 82 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3228
SELECT CAST( - 63 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-3228
SELECT CAST ( - 63 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-3229
SELECT ALL - + COUNT( * ) AS col0, COUNT( * ) col1 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3229
SELECT ALL - + COUNT ( * ) AS col0, COUNT ( * ) col1 FROM tab0 AS cor0
----
-3
3

query II rowsort
SELECT ALL - + col2 AS col1, 30 AS col1 FROM tab2 AS cor0
----
-23
30
-40
30
-58
30

query I rowsort
SELECT - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT 61 + + col1 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT ALL + ( + - COUNT( * ) ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL + ( + - COUNT ( * ) ) AS col0 FROM tab1 cor0
----
-3

query I rowsort
SELECT col0 * - 23 AS col1 FROM tab1
----
-1173
-1955
-2093

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT + ( + COUNT( * ) ) * + - 93 FROM tab1
----
-279

skipif mysql # not compatible
query I rowsort label-3234
SELECT + ( + COUNT ( * ) ) * + - 93 FROM tab1
----
-279

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT SUM( - + 31 ) AS col2 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-3236
SELECT SUM ( - + 31 ) AS col2 FROM tab1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT ALL COUNT( + col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL COUNT ( + col0 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT - COUNT( ALL - 70 ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3238
SELECT - COUNT ( ALL - 70 ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3239
SELECT - 70 * 12 + - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2 WHERE NOT NULL <= - 17
----
-840

skipif mysql # not compatible
query I rowsort label-3239
SELECT - 70 * 12 + - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 WHERE NOT NULL <= - 17
----
-840

onlyif mysql # DIV for integer division: 
query I rowsort label-3240
SELECT + col1 DIV - - col1 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3240
SELECT + col1 / - - col1 AS col2 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3241
SELECT - COUNT( * ) + + - 78 + - - 4 AS col0, 98 FROM tab1
----
-77
98

skipif mysql # not compatible
query II rowsort label-3241
SELECT - COUNT ( * ) + + - 78 + - - 4 AS col0, 98 FROM tab1
----
-77
98

query III rowsort
SELECT * FROM tab2 WHERE - col2 NOT IN ( - + col2 + - 45, - col2, - - col0 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 50 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT ALL 32 * - 35 + + col1 AS col1 FROM tab0 AS cor0
----
-1039
-1099
-1119

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > 2 + col2
----

query I rowsort
SELECT ALL - col1 * + - col1 FROM tab0 cor0
----
1
441
6561

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= + 9
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col1 > + col2
----

query I rowsort
SELECT DISTINCT 97 + col2 * + col0 AS col1 FROM tab0 AS cor0
----
802
967
9700

query I rowsort
SELECT ALL - + col2 * - col2 + - - col2 FROM tab2 AS cor0
----
1640
3422
552

query I rowsort
SELECT DISTINCT 21 * - 48 * + 2 AS col0 FROM tab0
----
-2016

query I rowsort
SELECT DISTINCT 60 + + col1 - - col1 FROM tab1
----
154
70
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT ALL - COUNT( * ) * - + 58 AS col2 FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL - COUNT ( * ) * - + 58 AS col2 FROM tab0
----
174

query II rowsort
SELECT - col0 * col2 AS col1, col1 FROM tab1
----
-4896
14
-5015
5
-6188
47

query I rowsort
SELECT DISTINCT - col0 * + + 3 AS col0 FROM tab2
----
-138
-192
-225

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * + col0 + + col2 * - col1 BETWEEN 55 * - + col1 * - col0 * - 47 + + 15 AND + + 14 AND NOT col2 IS NULL
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT + - 6 + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
3

skipif mysql # not compatible
query I rowsort label-3257
SELECT + - 6 + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
3

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE NOT + col2 + col2 + + + col0 = + col1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3259
SELECT * FROM tab2 WHERE NOT - col1 IN ( - - col1, ( + - CAST( NULL AS SIGNED ) ) * - col0, - col2, - 76 * col1 - - + col1, - 69 * + - 79, 88 / + 41 )
----

skipif mysql # not compatible
query III rowsort label-3259
SELECT * FROM tab2 WHERE NOT - col1 IN ( - - col1, ( + - CAST ( NULL AS INTEGER ) ) * - col0, - col2, - 76 * col1 - - + col1, - 69 * + - 79, 88 / + 41 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3260
SELECT ALL - - COUNT( * ) DIV + + 23 + - COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3260
SELECT ALL - - COUNT ( * ) / + + 23 + - COUNT ( * ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + 75 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
75
75
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3262
SELECT + CAST( NULL AS SIGNED ) * + COUNT( DISTINCT + - ( - 20 ) ) / + - 71 + - COUNT( * ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3262
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT + - ( - 20 ) ) / + - 71 + - COUNT ( * ) col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3263
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3263
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3264
SELECT 27 DIV ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3264
SELECT 27 / ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3265
SELECT 67 DIV + col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3265
SELECT 67 / + col2 FROM tab2
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT ALL - 29 * - COUNT( * ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL - 29 * - COUNT ( * ) FROM tab1
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3267
SELECT ALL 7 AS col0, + MIN( + col0 ) FROM tab0
----
7
15

skipif mysql # not compatible
query II rowsort label-3267
SELECT ALL 7 AS col0, + MIN ( + col0 ) FROM tab0
----
7
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3268
SELECT DISTINCT * FROM tab2 WHERE - + col1 * + col2 + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3268
SELECT DISTINCT * FROM tab2 WHERE - + col1 * + col2 + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT ALL + SUM( ALL - 51 ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL + SUM ( ALL - 51 ) FROM tab1
----
-153

query II rowsort
SELECT 85 AS col1, + col1 AS col2 FROM tab2
----
85
51
85
67
85
77

query I rowsort
SELECT col1 * - - 96 * + + 14 * + + 56 * - col1 AS col0 FROM tab0 AS cor0
----
-33191424
-493807104
-75264

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 <= NULL
----

query I rowsort
SELECT DISTINCT col0 + 6 - 20 AS col1 FROM tab0 AS cor0
----
1
73
83

query I rowsort
SELECT - + col2 * - - 24 FROM tab0 cor0
----
-1128
-2376
-240

query I rowsort
SELECT ALL - ( col0 ) + + 49 FROM tab1 AS cor0
----
-2
-36
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3276
SELECT DISTINCT - col1 + CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3276
SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT - COUNT( * ) + - 78 AS col2 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3277
SELECT - COUNT ( * ) + - 78 AS col2 FROM tab0 cor0
----
-81

query I rowsort
SELECT ALL - - col1 + + ( 8 ) FROM tab1 cor0
----
13
22
55

query I rowsort
SELECT 17 AS col2 FROM tab0 WHERE 52 * - + col0 - 23 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - 77 * col0 - + 89 + + col0, - col0 - + - col1, + - 75, - 49 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT ALL ( + SUM( col2 ) ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL ( + SUM ( col2 ) ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3282
SELECT + COUNT( * ) DIV - - COUNT( DISTINCT + col2 ) AS col2, - COUNT( * ) AS col1 FROM tab2
----
1
-3

skipif mysql # not compatible
query II rowsort label-3282
SELECT + COUNT ( * ) / - - COUNT ( DISTINCT + col2 ) AS col2, - COUNT ( * ) AS col1 FROM tab2
----
1
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - + col0 * - col1 / + + col0 col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT + col2 * col1 + col0 + 57 + col2 AS col0 FROM tab2 AS cor0
----
1299
3241
4076

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab2 AS cor0 WHERE NULL <= col0 + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 23
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3288
SELECT DISTINCT - + 62 DIV - - 4 + + col1 FROM tab1 AS cor0
----
-1
-10
32

skipif mysql # not compatible
query I rowsort label-3288
SELECT DISTINCT - + 62 / - - 4 + + col1 FROM tab1 AS cor0
----
-1
-10
32

query I rowsort
SELECT ALL 74 + + col2 FROM tab1
----
133
142
170

query I rowsort
SELECT ALL - col2 * col2 - col2 * 80 FROM tab1
----
-10064
-16896
-8201

query I rowsort
SELECT ALL - 58 * - col1 AS col2 FROM tab0 WHERE ( + col0 ) IS NOT NULL
----
1218
4698
58

query I rowsort
SELECT ALL col2 * - 7 + + col2 AS col1 FROM tab2
----
-138
-240
-348

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE ( NULL ) IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3294
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 WHERE - col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT ( - 89 ) + - MAX( DISTINCT col0 ) * 97 AS col0 FROM tab0
----
-9498

skipif mysql # not compatible
query I rowsort label-3295
SELECT ( - 89 ) + - MAX ( DISTINCT col0 ) * 97 AS col0 FROM tab0
----
-9498

onlyif mysql # DIV for integer division: 
query I rowsort label-3296
SELECT col1 DIV 38 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3296
SELECT col1 / 38 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
1
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3297
SELECT DISTINCT 30 FROM tab2 WHERE NOT ( + CAST( col1 AS SIGNED ) * - col2 ) NOT BETWEEN - col0 AND + col0
----

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT 30 FROM tab2 WHERE NOT ( + CAST ( col1 AS INTEGER ) * - col2 ) NOT BETWEEN - col0 AND + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 95 ) col1 FROM tab1
----
-95
-95
-95

query I rowsort
SELECT - col0 + col0 * - 84 AS col0 FROM tab1
----
-4335
-7225
-7735

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 + col0 col0 FROM tab2
----
-1127
-3016
-3811

query I rowsort
SELECT DISTINCT - 14 FROM tab1 WHERE NOT NULL >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 / - 44 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 66 AS col0 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT + 42 / + MIN( ALL + col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3305
SELECT + 42 / + MIN ( ALL + col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3306
SELECT * FROM tab2 WHERE NOT - ( CAST( NULL AS DECIMAL ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3306
SELECT * FROM tab2 WHERE NOT - ( CAST ( NULL AS REAL ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT MIN( DISTINCT + 62 ) + 28 AS col1 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-3307
SELECT MIN ( DISTINCT + 62 ) + 28 AS col1 FROM tab0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3308
SELECT DISTINCT + COUNT( * ) DIV 80 + 63 AS col2 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-3308
SELECT DISTINCT + COUNT ( * ) / 80 + 63 AS col2 FROM tab1
----
63

query I rowsort
SELECT ALL col2 * + col0 + + col0 AS col1 FROM tab2
----
1104
2624
4425

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 / col0 + 2 ) = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( col2 * 21 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT - MAX( ALL - 75 ) col1 FROM tab0 cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3312
SELECT - MAX ( ALL - 75 ) col1 FROM tab0 cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 76 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1748
3040
4408

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT - MIN( + 39 ) AS col2 FROM tab2 AS cor0 WHERE NOT 6 < ( - col1 * - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT - MIN ( + 39 ) AS col2 FROM tab2 AS cor0 WHERE NOT 6 < ( - col1 * - col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3315
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) + 85 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3315
SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) + 85 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 * + col0 + - col2 FROM tab2 AS cor0
----
2093
4056
5567

query I rowsort
SELECT ALL col2 + 82 FROM tab1 AS cor0
----
141
150
178

query I rowsort
SELECT + col0 / + col1 FROM tab0 AS cor0 WHERE + 11 BETWEEN ( NULL ) AND + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = ( col1 )
----

query I rowsort
SELECT ALL col1 * 53 + - 59 FROM tab0 AS cor0
----
-6
1054
4234

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT DISTINCT + 43 * + COUNT( * ) FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-3321
SELECT DISTINCT + 43 * + COUNT ( * ) FROM tab0
----
129

query I rowsort
SELECT AVG ( col1 ) FROM tab0 WHERE ( NULL ) BETWEEN 72 AND 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT DISTINCT MAX( DISTINCT col2 ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-3323
SELECT DISTINCT MAX ( DISTINCT col2 ) AS col2 FROM tab2
----
58

query I rowsort
SELECT col0 AS col1 FROM tab1 cor0 WHERE col1 IS NOT NULL
----
51
85
91

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 89 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 30 * col0 IS NOT NULL
----

query I rowsort
SELECT ALL - ( + col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL <= col2 + + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 75 NOT BETWEEN ( col2 + col2 ) AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT ALL - COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL - COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE ( 92 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT COUNT( * ) - 65 * COUNT( * ) AS col1 FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-3331
SELECT COUNT ( * ) - 65 * COUNT ( * ) AS col1 FROM tab1
----
-192

query I rowsort
SELECT - col2 - - col0 * col1 FROM tab2
----
2323
4888
4967

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT DISTINCT + SUM( ALL + 70 ) AS col1 FROM tab2 WHERE NOT + ( + col0 ) / col2 - col0 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3333
SELECT DISTINCT + SUM ( ALL + 70 ) AS col1 FROM tab2 WHERE NOT + ( + col0 ) / col2 - col0 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT + 58 + ( COUNT( * ) ) AS col1 FROM tab2 WHERE + col2 IS NOT NULL
----
61

skipif mysql # not compatible
query I rowsort label-3334
SELECT + 58 + ( COUNT ( * ) ) AS col1 FROM tab2 WHERE + col2 IS NOT NULL
----
61

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 48 * - 20 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 + + 77 / + 24 )
----

query I rowsort
SELECT + - 82 * + col1 + - 40 AS col1 FROM tab0 AS cor0
----
-122
-1762
-6682

query I rowsort
SELECT DISTINCT + - 0 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - - 28 * + col2 * ( + 1 ) AS col2 FROM tab1 cor0
----
1652
1904
2688

query I rowsort
SELECT DISTINCT + col0 * + + 45 AS col0 FROM tab0 AS cor0
----
3915
4365
675

query I rowsort
SELECT + - 59 * - 85 FROM tab1 AS cor0
----
5015
5015
5015

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT ALL - - COUNT( 94 ) * + COUNT( DISTINCT col0 ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL - - COUNT ( 94 ) * + COUNT ( DISTINCT col0 ) FROM tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3343
SELECT ALL 17 DIV col0 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL 17 / col0 AS col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + 67 * - col1 FROM tab0
----
-1407
-5427
-67

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( - + col1 * - 22 )
----

query II rowsort
SELECT DISTINCT + 86 AS col0, - ( 74 ) FROM tab2
----
86
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT - + 14 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-3347
SELECT - + 14 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT - MIN( ALL 37 ) AS col0 FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-3348
SELECT - MIN ( ALL 37 ) AS col0 FROM tab1 AS cor0
----
-37

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col0 BETWEEN col0 AND ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * 3 * - - 5 AS col1 FROM tab2 cor0
----
345
600
870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3351
SELECT ALL + MIN( - CAST( NULL AS SIGNED ) ) / + 90 * - + 13 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL + MIN ( - CAST ( NULL AS INTEGER ) ) / + 90 * - + 13 AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3352
SELECT * FROM tab0 WHERE NOT + col1 * - + 25 + - CAST( 14 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3352
SELECT * FROM tab0 WHERE NOT + col1 * - + 25 + - CAST ( 14 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3353
SELECT DISTINCT 73 DIV col2 FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-3353
SELECT DISTINCT 73 / col2 FROM tab0
----
0
1
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3354
SELECT DISTINCT - col2 DIV - col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT - col2 / - col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
0
1
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3355
SELECT + col1 * + + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3355
SELECT + col1 * + + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 49 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 92 * - ( col0 ) FROM tab2
----
-4232
-5888
-6900

query II rowsort
SELECT - ( - - col1 ) AS col0, + col0 * 78 AS col0 FROM tab0
----
-1
7566
-21
6786
-81
1170

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3359
SELECT ALL * FROM tab1 WHERE NOT ( + + col0 + - - CAST( 40 AS SIGNED ) ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-3359
SELECT ALL * FROM tab1 WHERE NOT ( + + col0 + - - CAST ( 40 AS INTEGER ) ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3360
SELECT - AVG ( - CAST( + ( col0 ) AS SIGNED ) ) + 64 AS col2 FROM tab2 AS cor0 WHERE ( NOT col1 NOT BETWEEN 69 AND 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT - AVG ( - CAST ( + ( col0 ) AS INTEGER ) ) + 64 AS col2 FROM tab2 AS cor0 WHERE ( NOT col1 NOT BETWEEN 69 AND 18 )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + col2 - - - 37 AND NULL
----

query I rowsort
SELECT - - 54 + - col2 - - col0 * 41 FROM tab1 AS cor0
----
2049
3480
3717

query I rowsort
SELECT ALL 8 + - 70 FROM tab0 AS cor0
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT ALL + - COUNT( * ) FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3364
SELECT ALL + - COUNT ( * ) FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT ALL - col0 + + - 20 FROM tab1
----
-105
-111
-71

query I rowsort
SELECT ALL + ( + 63 ) AS col2 FROM tab2
----
63
63
63

query I rowsort
SELECT - col0 * - 14 - col1 FROM tab0 AS cor0 WHERE + 81 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3368
SELECT DISTINCT + 49 * - - SUM( ALL + 5 ) + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT + 49 * - - SUM ( ALL + 5 ) + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT + + 9 - - SUM( + col1 ) * COUNT( * ) col1 FROM tab1 cor0
----
207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3369
SELECT + + 9 - - SUM ( + col1 ) * COUNT ( * ) col1 FROM tab1 cor0
----
207

query I rowsort
SELECT + - 78 * + col0 - col1 FROM tab1 cor0
----
-3992
-6635
-7145

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 37 - - col2 + + col1 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3372
SELECT + 78 - - + col0 + col0 DIV col1 DIV + + col0 * + ( - col0 * - col2 ) AS col1 FROM tab2 AS cor0
----
124
142
153

skipif mysql # not compatible
query I rowsort label-3372
SELECT + 78 - - + col0 + col0 / col1 / + + col0 * + ( - col0 * - col2 ) AS col1 FROM tab2 AS cor0
----
124
142
153

query I rowsort
SELECT DISTINCT + - col2 + + col0 * - 81 FROM tab2 AS cor0
----
-3749
-5224
-6133

query I rowsort
SELECT - col0 - 68 + - col1 + - ( + ( col0 ) ) * col2 * col2 FROM tab0 AS cor0
----
-33299
-8876
-950863

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT + + 91 + - 19 * - - COUNT( * ) FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-3375
SELECT + + 91 + - 19 * - - COUNT ( * ) FROM tab1 AS cor0
----
34

query II rowsort
SELECT ( - 43 ), 7 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + + 2 * + + col1 >= 30 AND NOT col1 IS NULL
----
15
81
47
87
21
10

query I rowsort
SELECT - - 21 + 22 AS col0 FROM tab2 cor0
----
43
43
43

query III rowsort
SELECT * FROM tab1 WHERE + - ( - 73 ) NOT IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 2 * - 59 AS col1 FROM tab0 WHERE + - col1 + 70 IS NOT NULL
----
-118
-118
-118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3381
SELECT ALL + CAST( - 48 AS SIGNED ) + - ( col1 ) * - col2 AS col2 FROM tab1 WHERE NULL = + 38
----

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL + CAST ( - 48 AS INTEGER ) + - ( col1 ) * - col2 AS col2 FROM tab1 WHERE NULL = + 38
----

query I rowsort
SELECT + col0 / col0 FROM tab0 WHERE - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT DISTINCT COUNT( + 74 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT COUNT ( + 74 ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 IN ( - 31 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 44 * - col0 + col1 AS col0 FROM tab0 AS cor0 WHERE ( NOT NULL NOT IN ( - col2 * + 16, col2 ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3387
SELECT ALL - SUM( + ( col1 ) ) AS col2, 68 FROM tab1
----
-66
68

skipif mysql # not compatible
query II rowsort label-3387
SELECT ALL - SUM ( + ( col1 ) ) AS col2, 68 FROM tab1
----
-66
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT + MAX( + ( - - 33 ) ) * + ( - 36 ) * - SUM( col0 ) AS col0 FROM tab1
----
269676

skipif mysql # not compatible
query I rowsort label-3388
SELECT + MAX ( + ( - - 33 ) ) * + ( - 36 ) * - SUM ( col0 ) AS col0 FROM tab1
----
269676

query III rowsort
SELECT * FROM tab1 WHERE + + col0 * col1 - - col1 IS NULL
----

query I rowsort
SELECT 29 * - 65 AS col1 FROM tab1
----
-1885
-1885
-1885

query II rowsort
SELECT ALL col1, - col2 AS col1 FROM tab2
----
51
-23
67
-58
77
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT ALL + COUNT( * ) * MIN( - 63 ) AS col2 FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL + COUNT ( * ) * MIN ( - 63 ) AS col2 FROM tab2
----
-189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3393
SELECT + CAST( - ( + - CAST( NULL AS SIGNED ) ) AS SIGNED ) * - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3393
SELECT + CAST ( - ( + - CAST ( NULL AS INTEGER ) ) AS INTEGER ) * - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3394
SELECT ALL 67 AS col1, - COUNT( + ( + 92 ) ) FROM tab2
----
67
-3

skipif mysql # not compatible
query II rowsort label-3394
SELECT ALL 67 AS col1, - COUNT ( + ( + 92 ) ) FROM tab2
----
67
-3

query I rowsort
SELECT - col0 * - ( - col0 ) AS col2 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT DISTINCT + ( - + col2 ) * - col1 FROM tab1
----
1344
295
3196

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col2 + - 97 * - 22 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 24 + + 79 FROM tab0 AS cor0
----
103
103
103

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3399
SELECT 28 DIV + + 40 + - CAST( + 78 AS SIGNED ) AS col0 FROM tab1
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-3399
SELECT 28 / + + 40 + - CAST ( + 78 AS INTEGER ) AS col0 FROM tab1
----
-78
-78
-78

query I rowsort
SELECT col2 * - 9 + - col2 * - + 36 + 67 FROM tab2
----
1147
1633
688

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) < + 46
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3402
SELECT - CAST( NULL AS SIGNED ) + - + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3402
SELECT - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT ALL + COUNT( + ( 40 ) ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3403
SELECT ALL + COUNT ( + ( 40 ) ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT + 8 - + + 92 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3405
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) FROM tab2 cor0
----
9

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( col0 / - col0 ) <= - col2 - - col1
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 col0 FROM tab1 AS cor0 WHERE - col0 BETWEEN - 48 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1, - col2 * - - col0 * + - col1 - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT + + COUNT( - + 81 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3409
SELECT + + COUNT ( - + 81 ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col1 < - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 33 - + 47 * + 0 AS col1 FROM tab1 AS cor0
----
33
33
33

onlyif mysql # DIV for integer division: 
query I rowsort label-3412
SELECT col1 DIV - + 51 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3412
SELECT col1 / - + 51 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3413
SELECT + 33 col1, - 59 * + MIN( col1 ) AS col1 FROM tab2
----
33
-3009

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3413
SELECT + 33 col1, - 59 * + MIN ( col1 ) AS col1 FROM tab2
----
33
-3009

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT + SUM( ALL - - 54 ) FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-3414
SELECT + SUM ( ALL - - 54 ) FROM tab1
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ALL - COUNT( * ) * - 47 AS col2 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL - COUNT ( * ) * - 47 AS col2 FROM tab1 AS cor0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT SUM( DISTINCT col0 ) * - MAX( ALL - col0 ) FROM tab1 AS cor0
----
11577

skipif mysql # not compatible
query I rowsort label-3416
SELECT SUM ( DISTINCT col0 ) * - MAX ( ALL - col0 ) FROM tab1 AS cor0
----
11577

query I rowsort
SELECT - - ( - + 78 ) AS col1 FROM tab0 AS cor0
----
-78
-78
-78

query I rowsort
SELECT + + col2 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab1 WHERE NOT 75 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3420
SELECT col0 * CAST( col0 AS SIGNED ) AS col1 FROM tab0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-3420
SELECT col0 * CAST ( col0 AS INTEGER ) AS col1 FROM tab0
----
225
7569
9409

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3421
SELECT col1 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN col0 AND ( - + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-3421
SELECT col1 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN col0 AND ( - + CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3422
SELECT + - CAST( NULL AS SIGNED ), + col0 col1 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3422
SELECT + - CAST ( NULL AS INTEGER ), + col0 col1 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 22 NOT IN ( - col2 )
----

query II rowsort
SELECT - 3 AS col2, 24 AS col0 FROM tab0 cor0
----
-3
24
-3
24
-3
24

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT col0 * + col2 + + + col1 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT ALL + COUNT( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL + COUNT ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT col2 / + + col0 * + 64 AS col1 FROM tab2 AS cor0 WHERE 54 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3428
SELECT + - CAST( + 15 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-3428
SELECT + - CAST ( + 15 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-15
-15
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3429
SELECT + + col2 AS col1, + CAST( NULL AS SIGNED ) * + - col1 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-3429
SELECT + + col2 AS col1, + CAST ( NULL AS INTEGER ) * + - col1 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

query II rowsort
SELECT + 80, + col1 FROM tab1 AS cor0
----
80
14
80
47
80
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - ( + - col2 ) ) / + 86 <= - + col2 - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE 27 + - + col1 + + col0 * - - 99 * + 57 IN ( + ( + 78 ) * - 79 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT + - COUNT( + col2 ) + - 83 AS col1 FROM tab2 WHERE - + col1 = NULL
----
-83

skipif mysql # not compatible
query I rowsort label-3433
SELECT + - COUNT ( + col2 ) + - 83 AS col1 FROM tab2 WHERE - + col1 = NULL
----
-83

query I rowsort
SELECT 19 AS col0 FROM tab1 WHERE ( - 77 BETWEEN - - col0 AND + 53 )
----

query I rowsort
SELECT col2 + + ( + - 76 ) FROM tab2
----
-18
-36
-53

query III rowsort
SELECT * FROM tab1 WHERE NULL = 34
----

query I rowsort
SELECT ALL + col0 * - ( - - 62 ) FROM tab2
----
-2852
-3968
-4650

onlyif mysql # DIV for integer division: 
query I rowsort label-3438
SELECT ALL - - col2 DIV - + col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL - - col2 / - + col2 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3439
SELECT + col0 + + CAST( + + col0 AS SIGNED ) * - + col2 - - 68 FROM tab1 AS cor0
----
-4777
-4862
-6029

skipif mysql # not compatible
query I rowsort label-3439
SELECT + col0 + + CAST ( + + col0 AS INTEGER ) * - + col2 - - 68 FROM tab1 AS cor0
----
-4777
-4862
-6029

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + + col0 * - 54 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3441
SELECT ALL + + col1 + + 62 + + - col1 DIV - col0 AS col1 FROM tab2 AS cor0
----
114
129
140

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL + + col1 + + 62 + + - col1 / - col0 AS col1 FROM tab2 AS cor0
----
114
129
140

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE col0 * + + 45 IS NULL
----

query III rowsort
SELECT ALL + col1 + + col2 AS col0, + 98 AS col2, - + col1 FROM tab1 cor0
----
9 values hashing to 58cc1b553a0e8bb71043d43a260665af

onlyif mysql # DIV for integer division: 
query I rowsort label-3444
SELECT ALL 69 DIV 80 * + col0 + + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL 69 / 80 * + col0 + + col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT + COUNT( + - 65 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3445
SELECT + COUNT ( + - 65 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT COUNT( - - col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3446
SELECT COUNT ( - - col1 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL + col2 * - - 7 AS col2 FROM tab0
----
329
693
70

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( 97 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT - + COUNT( * ) + - - MAX( - ( 17 ) ) FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3449
SELECT - + COUNT ( * ) + - - MAX ( - ( 17 ) ) FROM tab2 AS cor0
----
-20

query I rowsort
SELECT DISTINCT + col2 * col1 FROM tab0 AS cor0 WHERE NOT + col1 IN ( - col0 )
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 84 * col0 col0, 68 AS col0 FROM tab0
----
1260
68
7308
68
8148
68

query I rowsort
SELECT ALL - 73 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 14 * - - col0 col0 FROM tab1
----
-1190
-1274
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT ALL MAX( DISTINCT 4 ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-3454
SELECT ALL MAX ( DISTINCT 4 ) FROM tab0
----
4

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 <= ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT MIN( + - col1 ) col0 FROM tab2
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3456
SELECT MIN ( + - col1 ) col0 FROM tab2
----
-77

query I rowsort
SELECT DISTINCT 11 AS col2 FROM tab2 cor0
----
11

query II rowsort
SELECT DISTINCT col2, col2 + - - col2 FROM tab0
----
10
20
47
94
99
198

query II rowsort
SELECT ALL + col1, 95 FROM tab1 AS cor0
----
14
95
47
95
5
95

query II rowsort
SELECT ALL - - col0 + col2 AS col0, + 45 FROM tab1 AS cor0 WHERE col2 * + 55 * - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 >= + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - col2 AND ( col1 )
----

query I rowsort
SELECT + - col0 FROM tab0 WHERE - col2 > 95 + - ( - col2 ) * - + col0
----
-15
-87
-97

query I rowsort
SELECT ALL + + col0 FROM tab0 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 + + col1 col0 FROM tab0
----
-60
-80
0

query I rowsort
SELECT DISTINCT col1 * + col1 * + col1 AS col2 FROM tab2
----
132651
300763
456533

query I rowsort
SELECT DISTINCT - col0 * 96 FROM tab2 WHERE 39 * - + col0 * col0 < col1
----
-4416
-6144
-7200

query I rowsort
SELECT ALL 8 + - col0 + - col1 - + col2 * - 52 FROM tab2
----
1107
1947
2882

query I rowsort
SELECT DISTINCT + 54 * - 28 AS col2 FROM tab1
----
-1512

query I rowsort
SELECT 44 + + col1 AS col0 FROM tab1 AS cor0
----
49
58
91

query I rowsort
SELECT 24 + 17 AS col0 FROM tab2 AS cor0
----
41
41
41

query I rowsort
SELECT ALL col2 + - 89 * - + col2 + + - 88 AS col0 FROM tab0
----
4142
812
8822

query I rowsort
SELECT + - col0 * - + ( col2 ) FROM tab2 AS cor0
----
1058
2560
4350

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 94 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 * - + 5 AS col0 FROM tab0 AS cor0
----
-435
-485
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3476
SELECT - - CAST( NULL AS SIGNED ) * - - 9 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3476
SELECT - - CAST ( NULL AS INTEGER ) * - - 9 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 83 * - col2 AS col2 FROM tab1 AS cor0
----
4897
5644
7968

query I rowsort
SELECT + - ( - + col0 ) * + ( - 10 ) FROM tab1 AS cor0
----
-510
-850
-910

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT 12 * COUNT( + 24 ) AS col2 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-3479
SELECT 12 * COUNT ( + 24 ) AS col2 FROM tab2 AS cor0
----
36

query I rowsort
SELECT + col2 * - 67 + 46 FROM tab0 AS cor0
----
-3103
-624
-6587

query I rowsort
SELECT DISTINCT + 80 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 > col2
----
80

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( + col1 ) NOT BETWEEN NULL AND 30
----

query I rowsort
SELECT DISTINCT - ( col0 ) * + + col0 AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

query II rowsort
SELECT 64, - col2 AS col0 FROM tab0
----
64
-10
64
-47
64
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3485
SELECT col0 / 25 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3485
SELECT col0 / 25 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3486
SELECT ALL 34, - COUNT( * ) AS col0 FROM tab1
----
34
-3

skipif mysql # not compatible
query II rowsort label-3486
SELECT ALL 34, - COUNT ( * ) AS col0 FROM tab1
----
34
-3

query I rowsort
SELECT DISTINCT + + 19 AS col1 FROM tab2 AS cor0
----
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 29 col2, - col1 * + - col1 + - col0 FROM tab0 AS cor0
----
29
-96
29
354
29
6546

onlyif mysql # aggregate syntax: 
query II rowsort label-3489
SELECT + COUNT( * ), + 74 col2 FROM tab2 AS cor0
----
3
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3489
SELECT + COUNT ( * ), + 74 col2 FROM tab2 AS cor0
----
3
74

query I rowsort
SELECT - + ( 25 ) * + + col0 FROM tab0 AS cor0
----
-2175
-2425
-375

query I rowsort
SELECT ALL col1 * col1 * - col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-132651
-300763
-456533

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + - - ( col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3493
SELECT DISTINCT MIN( - col1 ) DIV - CAST( COUNT( DISTINCT col0 ) AS SIGNED ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-3493
SELECT DISTINCT MIN ( - col1 ) / - CAST ( COUNT ( DISTINCT col0 ) AS INTEGER ) FROM tab0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3494
SELECT - ( - col0 ) AS col1, + CAST( NULL AS SIGNED ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-3494
SELECT - ( - col0 ) AS col1, + CAST ( NULL AS INTEGER ) FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3495
SELECT DISTINCT - + CAST( 95 AS SIGNED ) col2 FROM tab1 cor0
----
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3495
SELECT DISTINCT - + CAST ( 95 AS INTEGER ) col2 FROM tab1 cor0
----
-95

query I rowsort
SELECT DISTINCT 65 + - - col0 AS col0 FROM tab2 AS cor0
----
111
129
140

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT + + MAX( + 81 ) FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3497
SELECT + + MAX ( + 81 ) FROM tab1 AS cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3498
SELECT - 74 DIV + col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3498
SELECT - 74 / + col1 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL - col2 + - col1 * - 49 FROM tab1 AS cor0
----
186
2235
590

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT DISTINCT - + MIN( DISTINCT 7 ) FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-3500
SELECT DISTINCT - + MIN ( DISTINCT 7 ) FROM tab1 AS cor0
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + 96 col1 FROM tab0 AS cor0
----
-3
49
86

query I rowsort
SELECT ALL + col0 - - 87 + + - col2 + 24 FROM tab1
----
134
137
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT DISTINCT MIN( ALL - 60 ) * + + 5 + - COUNT( * ) AS col0 FROM tab2
----
-303

skipif mysql # not compatible
query I rowsort label-3503
SELECT DISTINCT MIN ( ALL - 60 ) * + + 5 + - COUNT ( * ) AS col0 FROM tab2
----
-303

query I rowsort
SELECT + col1 * + col0 FROM tab0 WHERE col2 IS NOT NULL
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT ALL 72 + - MIN( DISTINCT + col2 ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL 72 + - MIN ( DISTINCT + col2 ) FROM tab1
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 94 * col1 + + + 0, 29 col0 FROM tab2
----
4794
29
6298
29
7238
29

query I rowsort
SELECT DISTINCT - col0 / + - col1 / col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 68 AS col1 FROM tab2, tab1 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT col1 * + 30 - + col0 + 44 + - col2 AS col2 FROM tab2 AS cor0
----
1505
1921
2250

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT - COUNT( * ) * + 73 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-3510
SELECT - COUNT ( * ) * + 73 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT COUNT( * ) * - - 1 AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3511
SELECT COUNT ( * ) * - - 1 AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT ALL COUNT( * ) * - MAX( col2 ) AS col1 FROM tab2 cor0
----
-174

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL COUNT ( * ) * - MAX ( col2 ) AS col1 FROM tab2 cor0
----
-174

query I rowsort
SELECT DISTINCT + col2 * + + col1 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT ALL + 88 * 59 * + ( col2 ) * + col2 + col2 AS col0 FROM tab1
----
18073411
24007876
47849568

onlyif mysql # DIV for integer division: 
query I rowsort label-3515
SELECT ALL - 54 DIV + - 69 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3515
SELECT ALL - 54 / + - 69 col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3516
SELECT DISTINCT - CAST( + + 76 AS SIGNED ) AS col0 FROM tab1
----
-76

skipif mysql # not compatible
query I rowsort label-3516
SELECT DISTINCT - CAST ( + + 76 AS INTEGER ) AS col0 FROM tab1
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3517
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + col0 + - col1 NOT IN ( - - ( - - col2 ) / + 51, - 38 * + col2 )
----

skipif mysql # not compatible
query I rowsort label-3517
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + col0 + - col1 NOT IN ( - - ( - - col2 ) / + 51, - 38 * + col2 )
----

query I rowsort
SELECT ALL + 31 * - col0 FROM tab0
----
-2697
-3007
-465

query I rowsort
SELECT - col2 + - - 54 FROM tab0 WHERE NOT - - col2 IS NOT NULL
----

query I rowsort
SELECT + 57 * - col0 AS col1 FROM tab1
----
-2907
-4845
-5187

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT ALL COUNT( * ) * - - SUM( col0 ) FROM tab2 AS cor0 WHERE NULL IN ( 81 * - col2 + col0, col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL COUNT ( * ) * - - SUM ( col0 ) FROM tab2 AS cor0 WHERE NULL IN ( 81 * - col2 + col0, col2 )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( NULL NOT BETWEEN NULL AND + col1 ) )
----

query I rowsort
SELECT - 48 + + + col1 FROM tab2
----
19
29
3

query I rowsort
SELECT DISTINCT 97 * - col2 AS col1 FROM tab0
----
-4559
-9603
-970

onlyif mysql # DIV for integer division: 
query I rowsort label-3525
SELECT - col2 * - col0 + 16 - - + col1 DIV + 76 - + col0 AS col2 FROM tab1
----
4861
4946
6113

skipif mysql # not compatible
query I rowsort label-3525
SELECT - col2 * - col0 + 16 - - + col1 / + 76 - + col0 AS col2 FROM tab1
----
4861
4946
6113

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 NOT IN ( - col1, col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + ( + + col1 ) - - 69, + 1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 49 * + - col2 AND col1 * 83
----

query I rowsort
SELECT DISTINCT - col1 + - 12 AS col1 FROM tab2 AS cor0
----
-63
-79
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-3529
SELECT - col1 DIV - - 66 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3529
SELECT - col1 / - - 66 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3530
SELECT + CAST( col0 AS DECIMAL ) FROM tab0 cor0 WHERE col1 * + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3530
SELECT + CAST ( col0 AS REAL ) FROM tab0 cor0 WHERE col1 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT - SUM( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3531
SELECT - SUM ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
195

query I rowsort
SELECT DISTINCT + 25 + col1 AS col1 FROM tab0 AS cor0
----
106
26
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3533
SELECT ALL + col0 + - + col2 + + + 74 + - 72 DIV col1 AS col2 FROM tab0 WHERE - col1 IS NOT NULL
----
0
148
42

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL + col0 + - + col2 + + + 74 + - 72 / col1 AS col2 FROM tab0 WHERE - col1 IS NOT NULL
----
0
148
42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3534
SELECT col1 * - + col2 / - col2 + CAST( NULL AS DECIMAL ) * + 62 FROM tab0 WHERE + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3534
SELECT col1 * - + col2 / - col2 + CAST ( NULL AS REAL ) * + 62 FROM tab0 WHERE + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - col2 col1 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT - COUNT( * ) + - 19 FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-3536
SELECT - COUNT ( * ) + - 19 FROM tab1 AS cor0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3537
SELECT + COUNT( * ) + + - CAST( 95 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-3537
SELECT + COUNT ( * ) + + - CAST ( 95 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-92

query I rowsort
SELECT + + ( - ( - 48 ) ) AS col2 FROM tab0 AS cor0
----
48
48
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3539
SELECT col1 DIV + 98 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3539
SELECT col1 / + 98 FROM tab1
----
0
0
0

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT ALL - MIN( col1 ) FROM tab2 cor0 WHERE NULL BETWEEN + col0 AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL - MIN ( col1 ) FROM tab2 cor0 WHERE NULL BETWEEN + col0 AND + col2
----
NULL

query II rowsort
SELECT DISTINCT + + col2 AS col0, + 54 FROM tab2 AS cor0
----
23
54
40
54
58
54

query II rowsort
SELECT ALL - col2 AS col0, + col2 * + 60 AS col1 FROM tab2 AS cor0
----
-23
1380
-40
2400
-58
3480

query I rowsort
SELECT DISTINCT - col0 * + 57 AS col2 FROM tab1 AS cor0
----
-2907
-4845
-5187

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 + - col2 + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-3546
SELECT 72 col0, ( COUNT( * ) ) * + COUNT( * ) FROM tab2 AS cor0
----
72
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3546
SELECT 72 col0, ( COUNT ( * ) ) * + COUNT ( * ) FROM tab2 AS cor0
----
72
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col0, - col0 AS col0 FROM tab2
----
-46
-46
-64
-64
-75
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3548
SELECT ALL + ( CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3548
SELECT ALL + ( CAST ( NULL AS REAL ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col0, 52 * col1 AS col2 FROM tab0
----
15
4212
87
1092
97
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT DISTINCT COUNT( + + ( + - col1 ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT COUNT ( + + ( + - col1 ) ) AS col1 FROM tab0
----
3

query I rowsort
SELECT ( + 68 ) AS col0 FROM tab1
----
68
68
68

query I rowsort
SELECT col0 * + 79 FROM tab2
----
3634
5056
5925

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT COUNT( * ) + COUNT( + col1 ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-3553
SELECT COUNT ( * ) + COUNT ( + col1 ) FROM tab0 cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL COUNT( ALL ( - col2 ) ) + - 75 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL COUNT ( ALL ( - col2 ) ) + - 75 FROM tab0
----
-72

query I rowsort
SELECT DISTINCT - + 26 AS col1 FROM tab1 WHERE NOT ( NOT + col0 - col0 - - ( 40 ) IS NOT NULL )
----
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 * col0 col1 FROM tab2
----
1564
2176
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT - COUNT( * ) + - + 87 - + + ( - 39 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-57

skipif mysql # not compatible
query I rowsort label-3557
SELECT - COUNT ( * ) + - + 87 - + + ( - 39 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT ALL + 16 * COUNT( * ) col2 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3558
SELECT ALL + 16 * COUNT ( * ) col2 FROM tab1 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT MAX( ALL col0 ) AS col2 FROM tab0 cor0 WHERE ( ( col0 ) ) NOT IN ( 79, 53 + - col0 + col1 + - - col2, + col1 )
----
97

skipif mysql # not compatible
query I rowsort label-3559
SELECT MAX ( ALL col0 ) AS col2 FROM tab0 cor0 WHERE ( ( col0 ) ) NOT IN ( 79, 53 + - col0 + col1 + - - col2, + col1 )
----
97

query I rowsort
SELECT ALL + - 97 FROM tab1 AS cor0 WHERE NOT col0 < NULL
----

query I rowsort
SELECT ALL col0 + + - col2 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3562
SELECT DISTINCT ( - 22 ) DIV - 65 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3562
SELECT DISTINCT ( - 22 ) / - 65 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 87 * col0 + col0 + + col0 * + + col1 * col2 + + col1 AS col1 FROM tab0 AS cor0
----
18140
25947
58506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3564
SELECT ALL - col2 + + - col1 - + + col1 - + col0 + + col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL - col2 + + - col1 - + + col1 - + col0 + + col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3565
SELECT ALL - - COUNT( * ) DIV 64 - + 22 * - - 58 col1 FROM tab1 cor0
----
-1276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3565
SELECT ALL - - COUNT ( * ) / 64 - + 22 * - - 58 col1 FROM tab1 cor0
----
-1276

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 93 IS NULL
----

query I rowsort
SELECT DISTINCT - ( + - 28 ) FROM tab1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT + COUNT( DISTINCT - + col2 ) * 2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3568
SELECT + COUNT ( DISTINCT - + col2 ) * 2 FROM tab2 AS cor0
----
6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + col2 + col0 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 * col1 col0 FROM tab0 AS cor0
----
-1365
-5265
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 6 col2 FROM tab0 cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3572
SELECT + SUM( ALL + 64 ) * - + CAST( - 35 AS SIGNED ) + - 19 - - ( + + ( COUNT( * ) ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
20150

skipif mysql # not compatible
query I rowsort label-3572
SELECT + SUM ( ALL + 64 ) * - + CAST ( - 35 AS INTEGER ) + - 19 - - ( + + ( COUNT ( * ) ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
20150

query I rowsort
SELECT - 53 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 57 * 25 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL + 60 AS col2 FROM tab1 AS cor0 WHERE NOT + 83 + 44 NOT BETWEEN - col0 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT DISTINCT - COUNT( * ) * 34 + + 50 FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT - COUNT ( * ) * 34 + + 50 FROM tab1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT COUNT( * ) * + 53 * + ( - MIN( DISTINCT col1 ) ) FROM tab0
----
-159

skipif mysql # not compatible
query I rowsort label-3577
SELECT COUNT ( * ) * + 53 * + ( - MIN ( DISTINCT col1 ) ) FROM tab0
----
-159

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 46 * + 17 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3579
SELECT ( - + CAST( + ( + ( - - COUNT( * ) ) ) AS SIGNED ) ) AS col1, - 88 AS col1 FROM tab1
----
-3
-88

skipif mysql # not compatible
query II rowsort label-3579
SELECT ( - + CAST ( + ( + ( - - COUNT ( * ) ) ) AS INTEGER ) ) AS col1, - 88 AS col1 FROM tab1
----
-3
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT DISTINCT - MIN( + 97 ) AS col1 FROM tab1
----
-97

skipif mysql # not compatible
query I rowsort label-3580
SELECT DISTINCT - MIN ( + 97 ) AS col1 FROM tab1
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 83 * - ( + - col2 ) col0, 26 AS col2 FROM tab0
----
-3901
26
-8217
26
-830
26

onlyif mysql # aggregate syntax: 
query II rowsort label-3582
SELECT DISTINCT + 52 AS col2, + COUNT( * ) FROM tab2 AS cor0
----
52
3

skipif mysql # not compatible
query II rowsort label-3582
SELECT DISTINCT + 52 AS col2, + COUNT ( * ) FROM tab2 AS cor0
----
52
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT ALL + COUNT( + 39 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3583
SELECT ALL + COUNT ( + 39 ) AS col1 FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT 47 * - - ( + + 64 ) + - - col1 AS col1 FROM tab1 cor0
----
3013
3022
3055

query II rowsort
SELECT DISTINCT - 74, + ( col2 ) AS col0 FROM tab0 AS cor0 WHERE 32 > NULL
----

query I rowsort
SELECT - - 69 + - - ( 69 ) AS col0 FROM tab0 AS cor0
----
138
138
138

onlyif mysql # DIV for integer division: 
query I rowsort label-3587
SELECT col1 DIV + + 30 + - col0 + col0 * - col0 FROM tab1
----
-2652
-7310
-8371

skipif mysql # not compatible
query I rowsort label-3587
SELECT col1 / + + 30 + - col0 + col0 * - col0 FROM tab1
----
-2652
-7310
-8371

query I rowsort
SELECT ALL - 87 - - col0 AS col2 FROM tab2
----
-12
-23
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3589
SELECT - col2 * col0 + + CAST( - 39 AS SIGNED ) FROM tab2 AS cor0 WHERE ( - 49 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-3589
SELECT - col2 * col0 + + CAST ( - 39 AS INTEGER ) FROM tab2 AS cor0 WHERE ( - 49 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> - 20
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3591
SELECT + col1 DIV - col0 + + col2 FROM tab2 AS cor0
----
22
39
58

skipif mysql # not compatible
query I rowsort label-3591
SELECT + col1 / - col0 + + col2 FROM tab2 AS cor0
----
22
39
58

query I rowsort
SELECT ALL - + col0 + - - col0 + - 96 AS col2 FROM tab1 AS cor0
----
-96
-96
-96

query III rowsort
SELECT + + col1 AS col0, col0 AS col2, 24 * + + col1 FROM tab0 AS cor0
----
9 values hashing to 6da96d22f18ae3f419917ae94beb806a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3594
SELECT + CAST( NULL AS SIGNED ) / col2 FROM tab1 AS cor0 WHERE NULL >= - col1
----

skipif mysql # not compatible
query I rowsort label-3594
SELECT + CAST ( NULL AS INTEGER ) / col2 FROM tab1 AS cor0 WHERE NULL >= - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3595
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 - - + CAST( NULL AS SIGNED ) + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3595
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 - - + CAST ( NULL AS INTEGER ) + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 + col1 / - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3596
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 + col1 / - col2 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col2 - - - 39 + - col0 * + col2 AS col2 FROM tab2
----
-1074
-2559
-4331

query I rowsort
SELECT ALL col0 + - - ( + + col1 ) FROM tab2
----
141
142
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 - + ( col1 ) col1 FROM tab1
----
42
75
84

query I rowsort
SELECT - col1 - + 68 FROM tab0
----
-149
-69
-89

query I rowsort
SELECT - col2 - - ( 38 ) AS col1 FROM tab1
----
-21
-30
-58

query III rowsort
SELECT * FROM tab2 WHERE NOT - 59 BETWEEN NULL AND 23
----

query I rowsort
SELECT DISTINCT - col1 / col2 + + col0 AS col2 FROM tab0 WHERE col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( 47 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT DISTINCT + MIN( DISTINCT + 81 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3605
SELECT DISTINCT + MIN ( DISTINCT + 81 ) AS col0 FROM tab0
----
81

query I rowsort
SELECT ALL + + 88 FROM tab1 WHERE - 72 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 - - col2 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 2 AS col0, col0 * col1 col1 FROM tab0 AS cor0
----
-2
1215
-2
1827
-2
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3609
SELECT + CAST( NULL AS SIGNED ) * - 13 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3609
SELECT + CAST ( NULL AS INTEGER ) * - 13 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 53 * - 2 AS col2 FROM tab2 AS cor0
----
-106
-106
-106

query I rowsort
SELECT - 94 * - col1 FROM tab2
----
4794
6298
7238

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT DISTINCT + MIN( - + col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-3612
SELECT DISTINCT + MIN ( - + col2 ) FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT DISTINCT MAX( + + col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT MAX ( + + col1 ) AS col2 FROM tab0
----
81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 + + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3615
SELECT col2 + - + col0 DIV + + CAST( - ( - 70 ) AS SIGNED ) AS col0 FROM tab1
----
58
67
96

skipif mysql # not compatible
query I rowsort label-3615
SELECT col2 + - + col0 / + + CAST ( - ( - 70 ) AS INTEGER ) AS col0 FROM tab1
----
58
67
96

query II rowsort
SELECT - col1 + + col1 AS col1, 25 AS col0 FROM tab2
----
0
25
0
25
0
25

query I rowsort
SELECT DISTINCT 47 * + col1 + - col1 + - col1 AS col1 FROM tab0 AS cor0 WHERE NOT - 16 / + - 36 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3618
SELECT ALL - 82 DIV - ( col0 ) + - 3 * + col2 * + 63 AS col0 FROM tab2 AS cor0
----
-10961
-4346
-7559

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL - 82 / - ( col0 ) + - 3 * + col2 * + 63 AS col0 FROM tab2 AS cor0
----
-10961
-4346
-7559

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT ALL + + COUNT( * ) * 85 + 6 * - 59 AS col1 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3619
SELECT ALL + + COUNT ( * ) * 85 + 6 * - 59 AS col1 FROM tab2 AS cor0
----
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 95 <= + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 90 AS col2 FROM tab2 WHERE + col0 > + + col2
----
-90
-90
-90

query I rowsort
SELECT col0 * - col2 - - - col0 AS col1 FROM tab2 AS cor0
----
-1104
-2624
-4425

onlyif mysql # aggregate syntax: 
query II rowsort label-3623
SELECT COUNT( * ), COUNT( * ) FROM tab1 AS cor0 WHERE ( col1 ) IS NOT NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-3623
SELECT COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 WHERE ( col1 ) IS NOT NULL
----
3
3

query I rowsort
SELECT - 70 - 31 * - - 66 + col1 FROM tab2 AS cor0
----
-2039
-2049
-2065

query I rowsort
SELECT - + col2 * col0 - 93 * - col0 * + col2 FROM tab0 AS cor0
----
64860
80040
883476

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN NULL AND + col0 + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 74 col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0 + - + col2
----

query I rowsort
SELECT ALL + col1 * + - 89 * + col2 AS col0 FROM tab0
----
-18690
-338823
-8811

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( NOT - col2 IS NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3630
SELECT DISTINCT + col1 DIV + - 69 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-3630
SELECT DISTINCT + col1 / + - 69 FROM tab2
----
-1
0

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT COUNT( - 73 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3632
SELECT COUNT ( - 73 ) FROM tab2
----
3

query II rowsort
SELECT DISTINCT - 20 AS col0, 75 + + col0 * - col0 FROM tab0
----
-20
-150
-20
-7494
-20
-9334

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT + SUM( - + 38 ) AS col0 FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-3634
SELECT + SUM ( - + 38 ) AS col0 FROM tab2
----
-114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 21 col0, ( col2 ) AS col1 FROM tab0
----
21
10
21
47
21
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT ALL + SUM( ALL + - col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL + SUM ( ALL + - col1 ) AS col2 FROM tab1 AS cor0
----
-66

query II rowsort
SELECT DISTINCT col2 * - - 27, 10 AS col0 FROM tab1 cor0
----
1593
10
1836
10
2592
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3638
SELECT DISTINCT 83 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT 83 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col1, - 36, - col2 )
----

query II rowsort
SELECT DISTINCT + 3 AS col0, col0 - + col0 * + col1 * - - 86 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3641
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) / + col2 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3641
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) / + col2 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - col0 + + - 10 + + ( - 78 ) * col1 FROM tab1 cor0
----
-1051
-315
-3585

query I rowsort
SELECT DISTINCT 98 * - - col0 * 73 - - + col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( ( col2 = NULL ) )
----

query I rowsort
SELECT DISTINCT col0 * col2 AS col0 FROM tab0 cor0 WHERE + col2 + + col1 IS NULL
----

query I rowsort
SELECT ALL col1 + 0 * - + 64 FROM tab2
----
51
67
77

query I rowsort
SELECT + col0 * + - ( + col2 ) FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT + 14 + + col2 FROM tab1
----
110
73
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3648
SELECT DISTINCT CAST( + 32 AS SIGNED ) FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-3648
SELECT DISTINCT CAST ( + 32 AS INTEGER ) FROM tab0
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, + col0 * - col0 FROM tab0
----
-10
-7569
-47
-225
-99
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 * + + 11 col2 FROM tab2
----
495
495
495

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT - MAX( ALL - + col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3651
SELECT - MAX ( ALL - + col1 ) FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 18 col1, - col0 col0 FROM tab2 cor0
----
18
-46
18
-64
18
-75

query II rowsort
SELECT col2 + 41 * - col2 - - 46 AS col1, - 8 FROM tab0 AS cor0
----
-1834
-8
-354
-8
-3914
-8

query II rowsort
SELECT - col0 + + + col1 + + col0 - - 58, + col2 FROM tab0 AS cor0
----
139
47
59
99
79
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT ALL - COUNT( * ) + + + 6 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL - COUNT ( * ) + + + 6 FROM tab1 AS cor0
----
3

query I rowsort
SELECT col1 + + 32 AS col2 FROM tab0 AS cor0
----
113
33
53

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE ( NOT ( NULL ) <> ( NULL ) )
----

query I rowsort
SELECT - ( 10 ) AS col2 FROM tab1 AS cor0
----
-10
-10
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3659
SELECT + + CAST( - + 39 AS SIGNED ) * + col2 AS col1 FROM tab1 AS cor0
----
-2301
-2652
-3744

skipif mysql # not compatible
query I rowsort label-3659
SELECT + + CAST ( - + 39 AS INTEGER ) * + col2 AS col1 FROM tab1 AS cor0
----
-2301
-2652
-3744

onlyif mysql # DIV for integer division: 
query I rowsort label-3660
SELECT - col2 DIV - - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3660
SELECT - col2 / - - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3661
SELECT DISTINCT + - MAX( ALL + CAST( + col2 AS SIGNED ) ) * - 63 FROM tab2 AS cor0
----
3654

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT + - MAX ( ALL + CAST ( + col2 AS INTEGER ) ) * - 63 FROM tab2 AS cor0
----
3654

query I rowsort
SELECT ( col0 ) * + - col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3663
SELECT 92 DIV COUNT( * ) AS col0 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-3663
SELECT 92 / COUNT ( * ) AS col0 FROM tab1
----
30

query I rowsort
SELECT ALL ( + 39 ) AS col2 FROM tab2
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT ALL MAX( - 13 ) AS col1 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL MAX ( - 13 ) AS col1 FROM tab1
----
-13

query II rowsort
SELECT ALL - col0 * - + 58 * + col0 AS col1, - 19 FROM tab0 cor0
----
13050
-19
439002
-19
545722
-19

query I rowsort
SELECT col0 * + col0 * + - 99 * - col2 AS col1 FROM tab0 AS cor0
----
1046925
7493310
92217609

query I rowsort
SELECT DISTINCT ( 53 ) FROM tab1 AS cor0
----
53

query II rowsort
SELECT + 75 AS col0, col0 FROM tab2 AS cor0
----
75
46
75
64
75
75

query I rowsort
SELECT - 80 * - 13 FROM tab1 AS cor0
----
1040
1040
1040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3671
SELECT CAST( + MIN( DISTINCT + col2 ) AS SIGNED ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3671
SELECT CAST ( + MIN ( DISTINCT + col2 ) AS INTEGER ) FROM tab0
----
10

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 >= - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 51 AS col0 FROM tab2 WHERE NOT - - ( 8 ) = - col2 * col1 + - col1 * 68 * + + 52
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-3674
SELECT ALL + COUNT( * ) col0, 96 * MAX( ALL - + 31 ) FROM tab2
----
3
-2976

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3674
SELECT ALL + COUNT ( * ) col0, 96 * MAX ( ALL - + 31 ) FROM tab2
----
3
-2976

query II rowsort
SELECT - col1 * + col2 AS col2, + col0 FROM tab1 AS cor0
----
-1344
51
-295
85
-3196
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT + MAX( - col0 ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3676
SELECT + MAX ( - col0 ) FROM tab1 cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 15 AS col1, + col2 col1 FROM tab2 AS cor0
----
-15
23
-15
40
-15
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 59 * - col2 col0, + 73 FROM tab0 AS cor0 WHERE ( + + ( + col1 ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3679
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL <= - CAST( - - ( col0 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3679
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL <= - CAST ( - - ( col0 ) AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3680
SELECT col1, + col0 DIV + + col1 AS col0 FROM tab1 AS cor0
----
14
3
47
1
5
17

skipif mysql # not compatible
query II rowsort label-3680
SELECT col1, + col0 / + + col1 AS col0 FROM tab1 AS cor0
----
14
3
47
1
5
17

query I rowsort
SELECT - col1 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - col2 * col2 + - ( col1 ) AS col1 FROM tab0
----
-121
-2290
-9802

query I rowsort
SELECT ALL col1 * col2 * - col1 + 59 FROM tab2
----
-237101
-260303
-59764

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT DISTINCT COUNT( 89 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3684
SELECT DISTINCT COUNT ( 89 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE ( ( ( NOT + col0 * 54 + ( + + 5 ) NOT BETWEEN NULL AND ( + col0 + + + col0 ) ) ) )
----

query II rowsort
SELECT ALL col1 * col0 AS col2, + 43 + 61 FROM tab1
----
425
104
4277
104
714
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3687
SELECT ALL - CAST( + + col1 AS SIGNED ) * col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL - CAST ( + + col1 AS INTEGER ) * col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT + 66 * col1 FROM tab2 AS cor0
----
3366
4422
5082

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3689
SELECT + CAST( - 91 AS SIGNED ) FROM tab2 AS cor0
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-3689
SELECT + CAST ( - 91 AS INTEGER ) FROM tab2 AS cor0
----
-91
-91
-91

query I rowsort
SELECT ALL 55 + + - 49 * + + col1 FROM tab2 AS cor0
----
-2444
-3228
-3718

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 col2 FROM tab2 cor0
----
84
84
84

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col1 * col0 <= - ( + 76 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3693
SELECT DISTINCT CAST( - 31 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-3693
SELECT DISTINCT CAST ( - 31 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT DISTINCT + MAX( ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3694
SELECT DISTINCT + MAX ( ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT SUM( ALL + 82 ) FROM tab1 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-3696
SELECT SUM ( ALL + 82 ) FROM tab1 AS cor0
----
246

query I rowsort
SELECT + + col0 + + + col1 + col2 * + col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( ( 60 * col2 > NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT ALL - COUNT( + col2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL - COUNT ( + col2 ) AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 / - 68 + + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3700
SELECT DISTINCT + 44 * - - col2 * - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3700
SELECT DISTINCT + 44 * - - col2 * - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 - + 70 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3702
SELECT 61 DIV 39 DIV + + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3702
SELECT 61 / 39 / + + col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3703
SELECT MAX( ALL - CAST( - col1 AS SIGNED ) ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3703
SELECT MAX ( ALL - CAST ( - col1 AS INTEGER ) ) AS col2 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT MAX( ALL + - 0 ) col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3704
SELECT MAX ( ALL + - 0 ) col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3705
SELECT - CAST( + col0 AS SIGNED ) * - ( + - col0 ) + - col1 + 83 * + ( - + col2 ) - + - col2 FROM tab0
----
-17528
-4160
-8410

skipif mysql # not compatible
query I rowsort label-3705
SELECT - CAST ( + col0 AS INTEGER ) * - ( + - col0 ) + - col1 + 83 * + ( - + col2 ) - + - col2 FROM tab0
----
-17528
-4160
-8410

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT - MAX( ALL + + col1 ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3707
SELECT - MAX ( ALL + + col1 ) AS col0 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT 56 + + 43 - col2 + + col2 AS col2 FROM tab0
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT COUNT( * ) + + 94 AS col1 FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3709
SELECT COUNT ( * ) + + 94 AS col1 FROM tab1 AS cor0
----
97

query I rowsort
SELECT DISTINCT + col2 * - + 31 + - - 87 FROM tab2 AS cor0
----
-1153
-1711
-626

query I rowsort
SELECT ALL + col2 + + 42 AS col1 FROM tab1 AS cor0
----
101
110
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT ALL ( + + COUNT( * ) ) col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3712
SELECT ALL ( + + COUNT ( * ) ) col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE - 32 IS NOT NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3714
SELECT ALL + 7 DIV + + 88 * + + 53 + + col0 FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3714
SELECT ALL + 7 / + + 88 * + + 53 + + col0 FROM tab0 cor0
----
15
87
97

query II rowsort
SELECT + - 76, + col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3716
SELECT + 58 AS col0 FROM tab2 AS cor0 WHERE - CAST( NULL AS DECIMAL ) * col0 IS NULL
----
58
58
58

skipif mysql # not compatible
query I rowsort label-3716
SELECT + 58 AS col0 FROM tab2 AS cor0 WHERE - CAST ( NULL AS REAL ) * col0 IS NULL
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT + MAX( ALL col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3717
SELECT + MAX ( ALL col1 ) AS col2 FROM tab0
----
81

query I rowsort
SELECT DISTINCT + 20 + - col1 FROM tab2
----
-31
-47
-57

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 WHERE col0 IS NULL
----

query II rowsort
SELECT ALL + col1, + col2 AS col2 FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT ALL 52 + 2 * - - 25 FROM tab2
----
102
102
102

query I rowsort
SELECT ALL col2 + + - col1 + - 95 AS col2 FROM tab1
----
-13
-41
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3723
SELECT COUNT( + + CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3723
SELECT COUNT ( + + CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

query I rowsort
SELECT - ( + 2 ) AS col0 FROM tab2 WHERE NULL > col2
----

query I rowsort
SELECT ALL col0 * + col1 - 26 FROM tab2
----
2320
4902
4999

query I rowsort
SELECT 44 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
44
44
44

query I rowsort
SELECT DISTINCT - 75 + - - 52 AS col2 FROM tab1 AS cor0
----
-23

query I rowsort
SELECT - col0 * + + col2 + - col1 AS col1 FROM tab2 AS cor0
----
-1109
-2637
-4417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3729
SELECT - - CAST( NULL AS SIGNED ) / + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3729
SELECT - - CAST ( NULL AS INTEGER ) / + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3730
SELECT DISTINCT - + SUM( DISTINCT col0 ) col0, CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-185
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3730
SELECT DISTINCT - + SUM ( DISTINCT col0 ) col0, CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-185
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3731
SELECT - col0 * + + ( - + col2 ) * - 40 * + 48 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3731
SELECT - col0 * + + ( - + col2 ) * - 40 * + 48 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3732
SELECT - 94 DIV MIN( ALL - col0 ) + + + COUNT( * ) * - ( - COUNT( * ) ) FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3732
SELECT - 94 / MIN ( ALL - col0 ) + + + COUNT ( * ) * - ( - COUNT ( * ) ) FROM tab2 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT + + 62 * + COUNT( * ) + - 53 * + 60 FROM tab0 AS cor0
----
-2994

skipif mysql # not compatible
query I rowsort label-3733
SELECT + + 62 * + COUNT ( * ) + - 53 * + 60 FROM tab0 AS cor0
----
-2994

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 col1 FROM tab2 AS cor0
----
23

query I rowsort
SELECT + 35 * + 63 * + - col2 FROM tab1
----
-130095
-149940
-211680

query I rowsort
SELECT + col1 * 80 AS col0 FROM tab1
----
1120
3760
400

query I rowsort
SELECT 23 * col2 + + 78 AS col0 FROM tab1 WHERE NOT - col1 / + + col1 < ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 * - 69 + col2 AS col1 FROM tab2 WHERE NOT NULL BETWEEN + 71 * - + col0 + - 11 * - ( col2 ) * + ( + - col1 ) AND - + col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 39 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-3740
SELECT + col0 * col2 DIV - col1 + - - 56, + col0 col1 FROM tab1 AS cor0
----
-293
51
-75
91
-947
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3740
SELECT + col0 * col2 / - col1 + - - 56, + col0 col1 FROM tab1 AS cor0
----
-293
51
-75
91
-947
85

query I rowsort
SELECT ALL - + ( - 47 ) * 80 + - - col2 FROM tab0 AS cor0
----
3770
3807
3859

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3742
SELECT DISTINCT - + CAST( - + col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3742
SELECT DISTINCT - + CAST ( - + col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT 98 - 26 * - 68 AS col1 FROM tab1
----
1866
1866
1866

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE col0 + + 55 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3744
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE col0 + + 55 IS NULL
----
0

query I rowsort
SELECT ALL + col0 + 4 AS col1 FROM tab0
----
101
19
91

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > + col2 * col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 / + col0 = 7 * - ( 60 / - 30 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT DISTINCT 20 * - MIN( ALL col0 * col2 ) AS col0 FROM tab0
----
-14100

skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT 20 * - MIN ( ALL col0 * col2 ) AS col0 FROM tab0
----
-14100

query I rowsort
SELECT ALL 92 + col0 AS col0 FROM tab1 WHERE NOT NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT + COUNT( * ) + - ( - COUNT( * ) ) AS col2 FROM tab0 WHERE col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3751
SELECT + COUNT ( * ) + - ( - COUNT ( * ) ) AS col2 FROM tab0 WHERE col1 < NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3752
SELECT SUM( DISTINCT + 54 ) * 52 FROM tab0 WHERE NOT ( 54 + + col0 ) > ( col0 + + CAST( - 69 - + 41 AS SIGNED ) * col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3752
SELECT SUM ( DISTINCT + 54 ) * 52 FROM tab0 WHERE NOT ( 54 + + col0 ) > ( col0 + + CAST ( - 69 - + 41 AS INTEGER ) * col2 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3753
SELECT + COUNT( * ) DIV - 30 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3753
SELECT + COUNT ( * ) / - 30 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3754
SELECT - 55 DIV + ( - COUNT( * ) ) AS col2 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-3754
SELECT - 55 / + ( - COUNT ( * ) ) AS col2 FROM tab0
----
18

query I rowsort
SELECT ALL + 57 * + 93 + - 60 FROM tab1
----
5241
5241
5241

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3756
SELECT * FROM tab2 WHERE ( + CAST( NULL AS SIGNED ) ) BETWEEN col0 AND - col0 / ( CAST( - col2 AS SIGNED ) / col2 ) + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3756
SELECT * FROM tab2 WHERE ( + CAST ( NULL AS INTEGER ) ) BETWEEN col0 AND - col0 / ( CAST ( - col2 AS INTEGER ) / col2 ) + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( 41 ) * col2 < col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 64 + + ( + col1 ) FROM tab0 WHERE ( + col1 ) <> col2
----
145
65
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT ALL COUNT( * ) * COUNT( * ) FROM tab2 WHERE ( + col0 + + 34 ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL COUNT ( * ) * COUNT ( * ) FROM tab2 WHERE ( + col0 + + 34 ) IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT SUM( + 42 ) * + 6 FROM tab2
----
756

skipif mysql # not compatible
query I rowsort label-3760
SELECT SUM ( + 42 ) * + 6 FROM tab2
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT DISTINCT COUNT( * ) + - COUNT( ALL col1 + 66 ) * + 69 FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-3761
SELECT DISTINCT COUNT ( * ) + - COUNT ( ALL col1 + 66 ) * + 69 FROM tab1
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT ALL + MAX( DISTINCT - col2 ) + + COUNT( * ) col2 FROM tab2
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3762
SELECT ALL + MAX ( DISTINCT - col2 ) + + COUNT ( * ) col2 FROM tab2
----
-20

query I rowsort
SELECT + 85 + col1 AS col1 FROM tab2
----
136
152
162

query I rowsort
SELECT DISTINCT 69 * col2 AS col1 FROM tab1 WHERE NOT ( NULL ) BETWEEN ( - col1 / col2 ) AND ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3765
SELECT * FROM tab0 WHERE NULL NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3765
SELECT * FROM tab0 WHERE NULL NOT IN ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3766
SELECT DISTINCT ( + col1 ) DIV + col0 FROM tab0
----
0
5

skipif mysql # not compatible
query I rowsort label-3766
SELECT DISTINCT ( + col1 ) / + col0 FROM tab0
----
0
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3767
SELECT DISTINCT 65 DIV - col2 col0 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3767
SELECT DISTINCT 65 / - col2 col0 FROM tab0
----
-1
-6
0

query I rowsort
SELECT - ( 12 ) AS col0 FROM tab2 AS cor0
----
-12
-12
-12

query I rowsort
SELECT DISTINCT ( - 16 ) AS col2 FROM tab1 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT ALL + SUM( ALL col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-3770
SELECT ALL + SUM ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT DISTINCT + MAX( DISTINCT col1 ) AS col0 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT + MAX ( DISTINCT col1 ) AS col0 FROM tab1 cor0
----
47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 > ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT DISTINCT + - MAX( + col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3774
SELECT DISTINCT + - MAX ( + col0 ) AS col2 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT 78 AS col2 FROM tab2 cor0
----
78

query I rowsort
SELECT ALL - ( + col2 ) * - col2 AS col0 FROM tab0 AS cor0
----
100
2209
9801

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 76 <= + col0 * + 59 + - 20 / ( col2 * - col0 + + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= ( NULL )
----

query I rowsort
SELECT ALL + 94 * - 69 AS col0 FROM tab0 AS cor0
----
-6486
-6486
-6486

onlyif mysql # DIV for integer division: 
query I rowsort label-3780
SELECT - + 54 DIV - col0 AS col2 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3780
SELECT - + 54 / - col0 AS col2 FROM tab0 AS cor0
----
0
0
3

query I rowsort
SELECT - ( + 47 ) * - col1 FROM tab1 AS cor0
----
2209
235
658

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 35 - + 58 ) = NULL
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE NOT col2 * 50 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT 5 * MAX( ALL - 40 ) FROM tab2
----
-200

skipif mysql # not compatible
query I rowsort label-3784
SELECT 5 * MAX ( ALL - 40 ) FROM tab2
----
-200

query I rowsort
SELECT + ( - 32 ) * 82 AS col1 FROM tab2
----
-2624
-2624
-2624

onlyif mysql # DIV for integer division: 
query I rowsort label-3786
SELECT - 53 DIV col0 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3786
SELECT - 53 / col0 AS col1 FROM tab1
----
-1
0
0

query I rowsort
SELECT - col0 * - 25 * col2 FROM tab2
----
108750
26450
64000

query I rowsort
SELECT - col1 * + 11 + - col2 FROM tab0 WHERE NOT + col0 BETWEEN NULL AND col0 * + col2
----

query I rowsort
SELECT DISTINCT 98 * + 67 FROM tab0
----
6566

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE NOT col2 + + ( - 28 ) IS NULL
----
10
47
99

query I rowsort
SELECT + 18 * + ( col1 ) AS col2 FROM tab0
----
1458
18
378

query I rowsort
SELECT + col2 AS col0 FROM tab0 cor0 WHERE NOT - 51 IS NULL
----
10
47
99

query I rowsort
SELECT ALL - + col1 + - col2 + - col1 AS col1 FROM tab1 AS cor0
----
-124
-162
-69

query I rowsort
SELECT col2 + - 30 AS col0 FROM tab0
----
-20
17
69

query IIIIII rowsort
SELECT * FROM tab2 cor0 LEFT OUTER JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT DISTINCT + SUM( - 69 ) FROM tab1 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-3796
SELECT DISTINCT + SUM ( - 69 ) FROM tab1 AS cor0
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT + SUM( + 0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3797
SELECT + SUM ( + 0 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 82 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT - - MIN( ALL 0 ) * COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3799
SELECT - - MIN ( ALL 0 ) * COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - - 49 * + - 19 + + 36 FROM tab1 AS cor0
----
-895
-895
-895

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3801
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( CAST( - col1 AS SIGNED ) ) NOT BETWEEN NULL AND ( col0 * col0 )
----

skipif mysql # not compatible
query III rowsort label-3801
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( CAST ( - col1 AS INTEGER ) ) NOT BETWEEN NULL AND ( col0 * col0 )
----

query I rowsort
SELECT DISTINCT - + 47 + + 59 + col2 * col0 * + col0 AS col0 FROM tab2 AS cor0
----
163852
326262
48680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3803
SELECT ALL 39 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3803
SELECT ALL 39 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL <> ( + col1 * + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE + 26 + - - 81 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3806
SELECT 83 - - - col1 + col0 * - col0 DIV col0 * + ( - col1 + - col1 ) FROM tab1
----
1497
8590
928

skipif mysql # not compatible
query I rowsort label-3806
SELECT 83 - - - col1 + col0 * - col0 / col0 * + ( - col1 + - col1 ) FROM tab1
----
1497
8590
928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 32 * - + 92 - - 12 * - - 69 - + 32 col0 FROM tab0
----
3740
3740
3740

query I rowsort
SELECT DISTINCT + 42 + + col0 + - col2 * 84 * - col0 + - ( - col2 ) AS col0 FROM tab0
----
59324
73219
806890

query II rowsort
SELECT col1 - + - 98, - col2 AS col2 FROM tab1
----
103
-59
112
-96
145
-68

query I rowsort
SELECT DISTINCT - col1 * - - col1 * col2 * - col1 * col0 - - 41 AS col2 FROM tab2
----
1168724521
1308319091
140344799

query I rowsort
SELECT ALL col1 * 8 - + + 91 FROM tab1
----
-51
21
285

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT ALL + COUNT( col0 ) * - 79 - + - 45 col0 FROM tab1
----
-192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3812
SELECT ALL + COUNT ( col0 ) * - 79 - + - 45 col0 FROM tab1
----
-192

query I rowsort
SELECT ALL - + 15 AS col0 FROM tab0 AS cor0
----
-15
-15
-15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( ( - col2 ) NOT IN ( - col1 * - col2 - col0 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT + - 91 * 5 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-1365

skipif mysql # not compatible
query I rowsort label-3815
SELECT + - 91 * 5 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-1365

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3816
SELECT + 0 DIV + MAX( ALL col1 ) AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3816
SELECT + 0 / + MAX ( ALL col1 ) AS col0 FROM tab2 cor0
----
0

query II rowsort
SELECT 35, - col1 AS col1 FROM tab2
----
35
-51
35
-67
35
-77

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL < 37
----

query II rowsort
SELECT - + 69, + col1 AS col0 FROM tab1 AS cor0
----
-69
14
-69
47
-69
5

query I rowsort
SELECT DISTINCT + - 94 * + col1 AS col0 FROM tab0 AS cor0
----
-1974
-7614
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-3821
SELECT COUNT( * ) AS col1, - 43 AS col2 FROM tab0 AS cor0
----
3
-43

skipif mysql # not compatible
query II rowsort label-3821
SELECT COUNT ( * ) AS col1, - 43 AS col2 FROM tab0 AS cor0
----
3
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT + COUNT( * ) * - 99 FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-3822
SELECT + COUNT ( * ) * - 99 FROM tab0 AS cor0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT ALL + 57 * + 49 + - MAX( ALL - col0 ) FROM tab2 AS cor0
----
2839

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL + 57 * + 49 + - MAX ( ALL - col0 ) FROM tab2 AS cor0
----
2839

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3824
SELECT * FROM tab1 cor0 WHERE NOT col0 BETWEEN + col0 + CAST( + 28 AS SIGNED ) AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3824
SELECT * FROM tab1 cor0 WHERE NOT col0 BETWEEN + col0 + CAST ( + 28 AS INTEGER ) AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 28 - + 7 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT DISTINCT + 68 + + - 31 FROM tab1 AS cor0
----
37

query II rowsort
SELECT ALL col2, - 63 FROM tab0
----
10
-63
47
-63
99
-63

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3829
SELECT DISTINCT - CAST( + - COUNT( * ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3830
SELECT ALL - COUNT( * ) DIV + + 26 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL - COUNT ( * ) / + + 26 FROM tab1
----
0

query I rowsort
SELECT col0 * + + ( 18 ) + + col2 FROM tab1
----
1014
1589
1706

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 < + col2
----

query I rowsort
SELECT DISTINCT col0 + + col1 + - col2 + col0 + - col1 / col0 FROM tab2 WHERE - col2 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND - col2 * - col2 / + ( + col0 ) + 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT + + SUM( - 84 ) + + 54 + 28 col0 FROM tab2 AS cor0
----
-170

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3835
SELECT + + SUM ( - 84 ) + + 54 + 28 col0 FROM tab2 AS cor0
----
-170

query I rowsort
SELECT ALL - + ( + col2 ) + + + ( - col1 ) + - col2 AS col2 FROM tab0 cor0
----
-175
-199
-41

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 + - + ( - col0 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IS NOT NULL OR 96 - - col1 - + col1 + - 28 * + col0 <> ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT + COUNT( * ) col1 FROM tab2 WHERE NOT - + 46 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3839
SELECT + COUNT ( * ) col1 FROM tab2 WHERE NOT - + 46 IS NULL
----
3

query I rowsort
SELECT ALL - - col2 / + col1 AS col0 FROM tab2 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3841
SELECT + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) * MAX( ALL - col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3841
SELECT + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) * MAX ( ALL - col0 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT DISTINCT COUNT( col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3842
SELECT DISTINCT COUNT ( col2 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT - MIN( ALL + + col0 ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3843
SELECT - MIN ( ALL + + col0 ) AS col0 FROM tab0 AS cor0
----
-15

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 / + 9 + - col2 BETWEEN col1 AND + col1 + + col2 + - 25 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - col2 ) + 45 - - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT DISTINCT COUNT( DISTINCT 20 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT COUNT ( DISTINCT 20 ) AS col0 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3847
SELECT ( - - col1 ) / CAST( NULL AS SIGNED ) * + - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3847
SELECT ( - - col1 ) / CAST ( NULL AS INTEGER ) * + - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col0 AS col0, - 50 FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3849
SELECT ALL 21 DIV - col2 AS col0 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL 21 / - col2 AS col0 FROM tab0 AS cor0
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col2 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-118
-136
-192

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3851
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( + + col1 AS SIGNED ) * - 90 * 15 BETWEEN NULL AND ( + + col1 )
----

skipif mysql # not compatible
query III rowsort label-3851
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( + + col1 AS INTEGER ) * - 90 * 15 BETWEEN NULL AND ( + + col1 )
----

query I rowsort
SELECT + 4 * 37 + - col1 + + col1 + - + 59 + + + col2 * col0 + - col0 + - col2 * - col0 AS col2 FROM tab0 AS cor0
----
1484
1742
19198

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( + col2 ) + - - col1 BETWEEN - 37 AND NULL
----

query I rowsort
SELECT col2 * + - col1 * - + col1 AS col0 FROM tab1
----
1475
150212
18816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3855
SELECT 35 DIV - - SUM( ALL + 74 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3855
SELECT 35 / - - SUM ( ALL + 74 ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col0 * ( col0 ) FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT MAX( ALL - col0 ) * - COUNT( * ) FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-3857
SELECT MAX ( ALL - col0 ) * - COUNT ( * ) FROM tab2
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3858
SELECT DISTINCT CAST( MIN( + 49 ) AS SIGNED ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-3858
SELECT DISTINCT CAST ( MIN ( + 49 ) AS INTEGER ) FROM tab2
----
49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3859
SELECT - AVG ( CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3859
SELECT - AVG ( CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT - - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - - 71
----
0

skipif mysql # not compatible
query I rowsort label-3860
SELECT - - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - - 71
----
0

query I rowsort
SELECT DISTINCT 0 * 67 - col1 AS col0 FROM tab0 cor0 WHERE ( NULL ) > - col1 + + 10 - 84
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3862
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3862
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT + 99 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT DISTINCT + col2 * - - ( + - col1 ) FROM tab2
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, 82 FROM tab1 AS cor0
----
59
82
68
82
96
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT - 76 + - - COUNT( * ) FROM tab2 cor0 WHERE ( NULL ) BETWEEN ( col1 + + + col0 * + + col1 ) AND - col1
----
-76

skipif mysql # not compatible
query I rowsort label-3866
SELECT - 76 + - - COUNT ( * ) FROM tab2 cor0 WHERE ( NULL ) BETWEEN ( col1 + + + col0 * + + col1 ) AND - col1
----
-76

query I rowsort
SELECT DISTINCT - - 9 FROM tab1 cor0
----
9

query II rowsort
SELECT DISTINCT - 17, + col1 FROM tab0 AS cor0
----
-17
1
-17
21
-17
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3869
SELECT + + CAST( col0 AS SIGNED ), 8 + + 58 DIV + + col2 col2 FROM tab0 AS cor0
----
15
9
87
13
97
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3869
SELECT + + CAST ( col0 AS INTEGER ), 8 + + 58 / + + col2 col2 FROM tab0 AS cor0
----
15
9
87
13
97
8

query I rowsort
SELECT - - col1 * - col2 AS col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT - - ( + 58 ) FROM tab1 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT MAX( + + col2 ) FROM tab1 AS cor0 WHERE NOT - col1 + col0 * + col2 * + + ( col2 ) * + + 39 + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3872
SELECT MAX ( + + col2 ) FROM tab1 AS cor0 WHERE NOT - col1 + col0 * + col2 * + + ( col2 ) * + + 39 + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - - col1 * + col1 FROM tab0 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 35 * 61 AS col1 FROM tab2 AS cor0
----
-2135
-2135
-2135

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3876
SELECT - - COUNT( * ) DIV + COUNT( * ), COUNT( * ) AS col1 FROM tab2 AS cor0
----
1
3

skipif mysql # not compatible
query II rowsort label-3876
SELECT - - COUNT ( * ) / + COUNT ( * ), COUNT ( * ) AS col1 FROM tab2 AS cor0
----
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3877
SELECT ALL + 88 / CAST( - + col2 AS SIGNED ) FROM tab1 WHERE NOT - + col1 / + 81 + - 65 + + + col2 > NULL
----

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL + 88 / CAST ( - + col2 AS INTEGER ) FROM tab1 WHERE NOT - + col1 / + 81 + - 65 + + + col2 > NULL
----

query I rowsort
SELECT DISTINCT - - 13 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
13

query II rowsort
SELECT col2 AS col1, + col1 + + - col2 * col2 + + col1 AS col1 FROM tab2
----
23
-427
40
-1446
58
-3230

query I rowsort
SELECT ALL + col0 * + - col0 * + - col1 + col2 AS col1 FROM tab1 AS cor0
----
36184
36510
389275

query II rowsort
SELECT - col1 AS col1, + col2 * + col1 FROM tab0 AS cor0
----
-1
99
-21
210
-81
3807

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( col0 ) col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3883
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) + col2 + + col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3883
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) + col2 + + col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 / ( + - col0 ) IS NULL
----

query I rowsort
SELECT ALL + 28 + - col1 AS col0 FROM tab0 AS cor0
----
-53
27
7

query I rowsort
SELECT DISTINCT + col0 * col0 + + - ( - col1 ) AS col2 FROM tab0 AS cor0
----
306
7590
9410

query I rowsort
SELECT - 36 FROM tab2 WHERE NULL IS NULL
----
-36
-36
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * col2 * + col0, + col0 col0 FROM tab2 WHERE + 14 / col2 IS NOT NULL
----
-197120
64
-291450
75
-53958
46

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT ALL + 67 * + - MAX( 67 ) AS col1 FROM tab2 AS cor0
----
-4489

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL + 67 * + - MAX ( 67 ) AS col1 FROM tab2 AS cor0
----
-4489

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col0 / + col0 + + - col2 + - + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3891
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col0 / + col0 + + - col2 + - + col1 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * col1 col0, 15 FROM tab0 AS cor0
----
-1
15
-441
15
-6561
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT ALL - + COUNT( * ) - + 22 FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL - + COUNT ( * ) - + 22 FROM tab1 AS cor0
----
-25

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3895
SELECT DISTINCT - col1 * - ( + + col2 ) FROM tab2 AS cor0 WHERE + + CAST( NULL AS SIGNED ) IS NOT NULL OR NOT + - col1 / + - col0 IS NULL
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT - col1 * - ( + + col2 ) FROM tab2 AS cor0 WHERE + + CAST ( NULL AS INTEGER ) IS NOT NULL OR NOT + - col1 / + - col0 IS NULL
----
1173
3080
3886

query I rowsort
SELECT 87 + + - col1 * - col0 FROM tab1 AS cor0
----
4364
512
801

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT DISTINCT SUM( + 46 ) FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-3897
SELECT DISTINCT SUM ( + 46 ) FROM tab1 AS cor0
----
138

query II rowsort
SELECT DISTINCT col2 AS col2, + 49 AS col0 FROM tab2 AS cor0 WHERE NOT + 13 <> NULL
----

query II rowsort
SELECT ALL col2 AS col1, col1 + - - col2 FROM tab1
----
59
64
68
115
96
110

query I rowsort
SELECT + ( + - 32 ) AS col2 FROM tab0
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT COUNT( + - col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3901
SELECT COUNT ( + - col0 ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3902
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * - CAST( NULL AS SIGNED ) > + - 11
----

skipif mysql # not compatible
query III rowsort label-3902
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * - CAST ( NULL AS INTEGER ) > + - 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT DISTINCT - COUNT( * ) * ( + 74 ) FROM tab1
----
-222

skipif mysql # not compatible
query I rowsort label-3903
SELECT DISTINCT - COUNT ( * ) * ( + 74 ) FROM tab1
----
-222

query I rowsort
SELECT - 87 * col2 FROM tab2 WHERE NOT - col1 IS NULL
----
-2001
-3480
-5046

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * + + ( col0 ) * + col1 AS col1 FROM tab1
----
36125
36414
389207

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 > + 98
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 58 FROM tab0 AS cor0 WHERE NULL IS NULL
----
58
58
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * 67 - + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * + col2 + + + col2 FROM tab0 AS cor0
----
-2162
-90
-9702

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 <> 97
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 18 * - - 80 AS col0 FROM tab2
----
1440
1440
1440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3913
SELECT - CAST( - - ( - col2 ) AS SIGNED ) * - ( + - col2 ) FROM tab2
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-3913
SELECT - CAST ( - - ( - col2 ) AS INTEGER ) * - ( + - col2 ) FROM tab2
----
1600
3364
529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + - col1 col1 FROM tab2
----
1173
3080
3886

query II rowsort
SELECT ALL ( 4 ) * 66, col1 + + 9 AS col1 FROM tab1
----
264
14
264
23
264
56

query I rowsort
SELECT ALL ( col1 ) * - col0 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 89 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT + 9 + MIN( ALL - 26 ) FROM tab2 cor0
----
-17

skipif mysql # not compatible
query I rowsort label-3918
SELECT + 9 + MIN ( ALL - 26 ) FROM tab2 cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT COUNT( * ) + - + 24 AS col1 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-3919
SELECT COUNT ( * ) + - + 24 AS col1 FROM tab0 AS cor0
----
-21

query I rowsort
SELECT - 23 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT ALL col2 * + ( + 20 ) + + col1 FROM tab0 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 49 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 99 IN ( 54 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT - + ( COUNT( * ) ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3923
SELECT - + ( COUNT ( * ) ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * + col1 + - + 92 NOT IN ( - - col0, - 16 * - col1, col0 / ( 88 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3925
SELECT - 46 * MIN( ALL + col2 ) DIV COUNT( * ) DIV COUNT( * ) FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-3925
SELECT - 46 * MIN ( ALL + col2 ) / COUNT ( * ) / COUNT ( * ) FROM tab2 AS cor0
----
-117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3926
SELECT - - ( + - CAST( NULL AS SIGNED ) ) * - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3926
SELECT - - ( + - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3927
SELECT 11 * - + CAST( + + COUNT( * ) AS SIGNED ) - + ( - + 13 ) FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3927
SELECT 11 * - + CAST ( + + COUNT ( * ) AS INTEGER ) - + ( - + 13 ) FROM tab2 AS cor0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3928
SELECT - CAST( - MIN( ALL - + 86 ) AS SIGNED ) + - 3 AS col0 FROM tab0 cor0 WHERE NOT ( ( - col0 * ( - 41 ) + - - 76 + - col0 IS NOT NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3928
SELECT - CAST ( - MIN ( ALL - + 86 ) AS INTEGER ) + - 3 AS col0 FROM tab0 cor0 WHERE NOT ( ( - col0 * ( - 41 ) + - - 76 + - col0 IS NOT NULL ) )
----
NULL

query I rowsort
SELECT ALL + + 90 * + + col0 + + - 96 FROM tab0 AS cor0
----
1254
7734
8634

query I rowsort
SELECT + col2 * col2 + - ( 14 ) FROM tab2 AS cor0
----
1586
3350
515

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col0, + 40 * - 72 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT + 31 * + + 84 * + COUNT( * ) FROM tab0 AS cor0
----
7812

skipif mysql # not compatible
query I rowsort label-3932
SELECT + 31 * + + 84 * + COUNT ( * ) FROM tab0 AS cor0
----
7812

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + 16 ) col2 FROM tab1 AS cor0 WHERE NOT ( - col2 IS NOT NULL )
----

query I rowsort
SELECT ALL - 79 * col2 FROM tab0
----
-3713
-7821
-790

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT - ( ( - COUNT( * ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3935
SELECT - ( ( - COUNT ( * ) ) ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col2, - col2 col0 FROM tab2
----
46
-23
64
-40
75
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3937
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE ( + col2 / col2 * - col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3937
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE ( + col2 / col2 * - col0 ) IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 74 * 20 - - 8 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3939
SELECT + 86 DIV + col0 AS col2 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3939
SELECT + 86 / + col0 AS col2 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - 84 * + - 16 AS col1 FROM tab1 AS cor0
----
1344

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> ( + 12 )
----

query I rowsort
SELECT DISTINCT ( + 37 ) AS col1 FROM tab0
----
37

query I rowsort
SELECT + + col2 AS col0 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT 21 * ( col0 ) + 8 FROM tab2 AS cor0
----
1352
1583
974

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT - MIN( 95 ) FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-3945
SELECT - MIN ( 95 ) FROM tab2 AS cor0
----
-95

query I rowsort
SELECT - + 64 + col0 FROM tab2 AS cor0
----
-18
0
11

query I rowsort
SELECT ALL + col2 + - col2 * - - ( col0 ) * col2 + - 70 AS col1 FROM tab0 AS cor0
----
-33158
-8760
-950668

query I rowsort
SELECT ALL + + 59 + + col0 FROM tab0 AS cor0
----
146
156
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT ALL + SUM( - 89 ) + - ( COUNT( * ) ) FROM tab2 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL + SUM ( - 89 ) + - ( COUNT ( * ) ) FROM tab2 AS cor0
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT DISTINCT - 46 + + MIN( ALL + 89 ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-3950
SELECT DISTINCT - 46 + + MIN ( ALL + 89 ) FROM tab2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT DISTINCT MAX( 28 ) AS col0 FROM tab0 WHERE NOT col0 * - col1 + + - 56 + + - col2 <> - - col2 * - col2 + - 91 * - + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3951
SELECT DISTINCT MAX ( 28 ) AS col0 FROM tab0 WHERE NOT col0 * - col1 + + - 56 + + - col2 <> - - col2 * - col2 + - 91 * - + col0
----
NULL

query I rowsort
SELECT DISTINCT - ( - 45 ) + + col2 - - - col0 FROM tab0
----
-32
47
77

query II rowsort
SELECT + col2 * col0 + - col0 AS col0, col2 * - + col2 * + col0 FROM tab2
----
1012
-24334
2496
-102400
4275
-252300

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT + 85 - - - COUNT( * ) * MIN( DISTINCT ( - col1 ) ) AS col1 FROM tab1 cor0
----
226

skipif mysql # not compatible
query I rowsort label-3954
SELECT + 85 - - - COUNT ( * ) * MIN ( DISTINCT ( - col1 ) ) AS col1 FROM tab1 cor0
----
226

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( + col1 * - col0 ) AND - col1 + col2 + - - col0 - col2
----

query II rowsort
SELECT 29, - col2 + + - 63 AS col0 FROM tab1
----
29
-122
29
-131
29
-159

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3957
SELECT ALL * FROM tab0 WHERE + ( col1 ) NOT BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3957
SELECT ALL * FROM tab0 WHERE + ( col1 ) NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3958
SELECT + + ( - - 95 ) * + COUNT( * ) col1 FROM tab2 WHERE NOT ( 89 ) + col1 + - ( + - col0 ) * CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3958
SELECT + + ( - - 95 ) * + COUNT ( * ) col1 FROM tab2 WHERE NOT ( 89 ) + col1 + - ( + - col0 ) * CAST ( NULL AS INTEGER ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3959
SELECT ALL - 40 DIV - 72 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3959
SELECT ALL - 40 / - 72 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ( - + 27 ) FROM tab0
----
-27
-27
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3961
SELECT 76 AS col2, + ( + - 90 ) DIV + + MIN( ALL + + col2 ) FROM tab0 AS cor0
----
76
-9

skipif mysql # not compatible
query II rowsort label-3961
SELECT 76 AS col2, + ( + - 90 ) / + + MIN ( ALL + + col2 ) FROM tab0 AS cor0
----
76
-9

query I rowsort
SELECT 85 FROM tab2 AS cor0 WHERE NOT NULL <= + 28
----

query I rowsort
SELECT ALL - 50 * 17 AS col1 FROM tab2 AS cor0
----
-850
-850
-850

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 * + - col2 + + 39 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 28 * + col2 FROM tab2 cor0
----
1120
1624
644

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT ALL - - 19 * 47 * - 54 + + - COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
-48222

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL - - 19 * 47 * - 54 + + - COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
-48222

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT - 67 * + SUM( DISTINCT - col1 ) AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) IN ( + col2, col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3967
SELECT - 67 * + SUM ( DISTINCT - col1 ) AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) IN ( + col2, col0 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3968
SELECT DISTINCT - 61 DIV - col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3968
SELECT DISTINCT - 61 / - col2 FROM tab1 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT ALL 68 * 64 * + COUNT( * ) AS col2 FROM tab0
----
13056

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL 68 * 64 * + COUNT ( * ) AS col2 FROM tab0
----
13056

query I rowsort
SELECT ALL + 44 * + col2 * - ( - + 84 ) FROM tab0
----
173712
365904
36960

query II rowsort
SELECT ALL ( - col2 ), - 69 AS col2 FROM tab2
----
-23
-69
-40
-69
-58
-69

query II rowsort
SELECT DISTINCT col0 * + 66 AS col1, - 37 * + 94 AS col0 FROM tab0
----
5742
-3478
6402
-3478
990
-3478

query I rowsort
SELECT DISTINCT + 99 * + col2 * col1 FROM tab2 AS cor0
----
116127
304920
384714

query I rowsort
SELECT ALL col0 + col1 * + - 76 * - col2 * 68 FROM tab1 cor0
----
1524645
16517019
6945843

query I rowsort
SELECT DISTINCT 1 + col0 FROM tab2
----
47
65
76

query I rowsort
SELECT DISTINCT - 53 + - + 48 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-101

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3977
SELECT CAST( NULL AS DECIMAL ) * - CAST( NULL AS SIGNED ) + + 50 + + 58 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3977
SELECT CAST ( NULL AS REAL ) * - CAST ( NULL AS INTEGER ) + + 50 + + 58 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 51 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT + COUNT( * ) + 11 AS col0 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-3979
SELECT + COUNT ( * ) + 11 AS col0 FROM tab1 AS cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3980
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - CAST( NULL AS SIGNED ), + 25, + col2, + CAST( NULL AS SIGNED ), - col0 )
----

skipif mysql # not compatible
query III rowsort label-3980
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - CAST ( NULL AS INTEGER ), + 25, + col2, + CAST ( NULL AS INTEGER ), - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT ALL + COUNT( * ) + - 96 AS col1 FROM tab2 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL + COUNT ( * ) + - 96 AS col1 FROM tab2 cor0
----
-93

query I rowsort
SELECT DISTINCT - 6 + + col0 AS col2 FROM tab1 AS cor0
----
45
79
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT MAX( + - 25 ) AS col0 FROM tab2 cor0 WHERE 9 * - 28 NOT IN ( - col2, - col0, col1 )
----
-25

skipif mysql # not compatible
query I rowsort label-3983
SELECT MAX ( + - 25 ) AS col0 FROM tab2 cor0 WHERE 9 * - 28 NOT IN ( - col2, - col0, col1 )
----
-25

query I rowsort
SELECT 35 - - 49 AS col2 FROM tab2
----
84
84
84

query I rowsort
SELECT ALL col1 - + 52 * + col1 FROM tab1
----
-2397
-255
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-3986
SELECT + col0 * + col2 - + col1 DIV - col0 AS col0 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-3986
SELECT + col0 * + col2 - + col1 / - col0 AS col0 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT + + col2 FROM tab0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT + 40 - - ( + - COUNT( * ) ) AS col1 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-3988
SELECT + 40 - - ( + - COUNT ( * ) ) AS col1 FROM tab1
----
37

query I rowsort
SELECT DISTINCT - 84 - col2 FROM tab0
----
-131
-183
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-3990
SELECT DISTINCT - - 61 AS col0, COUNT( * ) col0 FROM tab1 AS cor0
----
61
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3990
SELECT DISTINCT - - 61 AS col0, COUNT ( * ) col0 FROM tab1 AS cor0
----
61
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3991
SELECT DISTINCT - 13 AS col2, MIN( + 32 ) AS col1 FROM tab0 AS cor0
----
-13
32

skipif mysql # not compatible
query II rowsort label-3991
SELECT DISTINCT - 13 AS col2, MIN ( + 32 ) AS col1 FROM tab0 AS cor0
----
-13
32

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 45 * - col2 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= NULL
----

query I rowsort
SELECT + 64 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3995
SELECT - - 88 * COUNT( * ) DIV + 41 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
19

skipif mysql # not compatible
query I rowsort label-3995
SELECT - - 88 * COUNT ( * ) / + 41 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
19

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL < - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col0 - + 93
----

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT - col0 / + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3999
SELECT - + 13 * 19 AS col0, - COUNT( * ) FROM tab0 AS cor0
----
-247
-3

skipif mysql # not compatible
query II rowsort label-3999
SELECT - + 13 * 19 AS col0, - COUNT ( * ) FROM tab0 AS cor0
----
-247
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4000
SELECT CAST( - 59 AS SIGNED ) FROM tab1 AS cor0
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-4000
SELECT CAST ( - 59 AS INTEGER ) FROM tab1 AS cor0
----
-59
-59
-59

query I rowsort
SELECT - col1 * - 70 FROM tab2 AS cor0
----
3570
4690
5390

query II rowsort
SELECT DISTINCT + col2 AS col1, + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 NOT IN ( col0, col1 * + 87 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + + 26 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4005
SELECT DISTINCT COUNT( * ) AS col0, + 46 * - - COUNT( * ) AS col1 FROM tab1
----
3
138

skipif mysql # not compatible
query II rowsort label-4005
SELECT DISTINCT COUNT ( * ) AS col0, + 46 * - - COUNT ( * ) AS col1 FROM tab1
----
3
138

query III rowsort
SELECT * FROM tab1 WHERE NOT - 80 * - 92 + + 46 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT DISTINCT - MIN( + 80 ) AS col2 FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT - MIN ( + 80 ) AS col2 FROM tab0
----
-80

query II rowsort
SELECT DISTINCT - col1 AS col1, + 5 AS col1 FROM tab1
----
-14
5
-47
5
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT ALL - MAX( - + 89 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL - MAX ( - + 89 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - col0 / col2 + + + 34 + col0 FROM tab2 WHERE NOT NULL < 83
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4011
SELECT col2 + + + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4011
SELECT col2 + + + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 64 * - 65 AS col2 FROM tab1
----
-4160
-4160
-4160

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT MAX( DISTINCT - - col2 ) + + 6 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-4013
SELECT MAX ( DISTINCT - - col2 ) + + 6 FROM tab2
----
64

query I rowsort
SELECT + col0 + 58 AS col1 FROM tab2 AS cor0
----
104
122
133

query II rowsort
SELECT - 21 * col1 * - col1 AS col0, 7 * 93 AS col1 FROM tab0 cor0
----
137781
651
21
651
9261
651

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL = ( NULL )
----

query I rowsort
SELECT ALL col2 + + 18 + - 81 AS col1 FROM tab1
----
-4
33
5

query I rowsort
SELECT DISTINCT + - col2 * + 97 * + + col2 AS col1 FROM tab2 AS cor0
----
-155200
-326308
-51313

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT + MIN( DISTINCT - + col0 ) - - + 17 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-4019
SELECT + MIN ( DISTINCT - + col0 ) - - + 17 FROM tab1 AS cor0
----
-74

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 ) / + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + col1 * + col0 * + col0 FROM tab0 AS cor0
----
158949
18225
9409

query I rowsort
SELECT ALL - col0 + - ( + - col0 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT MAX( - ( + col0 ) ) + - 95 * + 58 AS col2 FROM tab1 AS cor0
----
-5561

skipif mysql # not compatible
query I rowsort label-4023
SELECT MAX ( - ( + col0 ) ) + - 95 * + 58 AS col2 FROM tab1 AS cor0
----
-5561

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 * 75, - col2, - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 52 + 84 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4026
SELECT ALL + col2 DIV - col0 - + ( + + col2 ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4026
SELECT ALL + col2 / - col0 - + ( + + col2 ) FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-4027
SELECT DISTINCT MAX( 22 ) AS col2, COUNT( * ) AS col0 FROM tab2, tab1 AS cor0
----
22
9

skipif mysql # not compatible
query II rowsort label-4027
SELECT DISTINCT MAX ( 22 ) AS col2, COUNT ( * ) AS col0 FROM tab2, tab1 AS cor0
----
22
9

query I rowsort
SELECT DISTINCT - ( - + 95 ) AS col2 FROM tab0
----
95

query I rowsort
SELECT DISTINCT - 94 * + + 40 FROM tab0
----
-3760

query I rowsort
SELECT DISTINCT + 83 - col0 AS col0 FROM tab1
----
-2
-8
32

query II rowsort
SELECT 35 * col1 * col0 * - - col1 * - col0, + 3 AS col1 FROM tab0
----
-116827515
3
-329315
3
-51667875
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 < + col1
----
75
67
58

query I rowsort
SELECT ALL - - 42 AS col1 FROM tab1 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab1 AS cor0 WHERE ( NOT col0 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4035
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 <= CAST( NULL AS SIGNED ) - + col1
----

skipif mysql # not compatible
query III rowsort label-4035
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 <= CAST ( NULL AS INTEGER ) - + col1
----

query I rowsort
SELECT DISTINCT ( + 58 ) FROM tab2 cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT ALL - MAX( ALL + 97 ) FROM tab2 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL - MAX ( ALL + 97 ) FROM tab2 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT COUNT( * ) * + - 51 AS col2 FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-4038
SELECT COUNT ( * ) * + - 51 AS col2 FROM tab1
----
-153

query I rowsort
SELECT 19 * + col2 * 48 * + 58 FROM tab1
----
3120864
3596928
5078016

onlyif mysql # aggregate syntax: 
query II rowsort label-4040
SELECT ALL + COUNT( * ) * - 83 AS col0, - COUNT( * ) * - 12 FROM tab1
----
-249
36

skipif mysql # not compatible
query II rowsort label-4040
SELECT ALL + COUNT ( * ) * - 83 AS col0, - COUNT ( * ) * - 12 FROM tab1
----
-249
36

onlyif mysql # DIV for integer division: 
query I rowsort label-4041
SELECT - 7 DIV - 27 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4041
SELECT - 7 / - 27 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4042
SELECT + CAST( - COUNT( * ) AS SIGNED ) * + 78 FROM tab2
----
-234

skipif mysql # not compatible
query I rowsort label-4042
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) * + 78 FROM tab2
----
-234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4043
SELECT CAST( NULL AS SIGNED ) / + - 88 AS col2, COUNT( ALL + 68 ) + - + 86 FROM tab1 AS cor0
----
NULL
-83

skipif mysql # not compatible
query II rowsort label-4043
SELECT CAST ( NULL AS INTEGER ) / + - 88 AS col2, COUNT ( ALL + 68 ) + - + 86 FROM tab1 AS cor0
----
NULL
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + + + 45 col2, col0 FROM tab0 AS cor0
----
-36
15
24
87
44
97

query II rowsort
SELECT DISTINCT 47 - + ( - + col2 ) AS col1, - col0 AS col2 FROM tab2
----
105
-75
70
-46
87
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4046
SELECT ALL - CAST( NULL AS SIGNED ) * - 51 AS col0 FROM tab1 WHERE NOT ( col0 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL - CAST ( NULL AS INTEGER ) * - 51 AS col0 FROM tab1 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4047
SELECT ALL 93 DIV - col2 FROM tab0
----
-1
-9
0

skipif mysql # not compatible
query I rowsort label-4047
SELECT ALL 93 / - col2 FROM tab0
----
-1
-9
0

query I rowsort
SELECT DISTINCT - ( + 70 ) * + 7 + - col2 * + - 21 FROM tab0 AS cor0
----
-280
1589
497

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT ALL 75 * + + COUNT( * ) AS col0 FROM tab2 cor0
----
225

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL 75 * + + COUNT ( * ) AS col0 FROM tab2 cor0
----
225

query I rowsort
SELECT DISTINCT + col1 * - col2 + + - 63 + 93 + - col0 FROM tab1 AS cor0
----
-1365
-3257
-350

query II rowsort
SELECT - col2, + 3 AS col2 FROM tab1 AS cor0
----
-59
3
-68
3
-96
3

query II rowsort
SELECT ALL - 85 * col1 + + col1 * + - col0, ( + 74 ) AS col2 FROM tab0 AS cor0
----
-182
74
-3612
74
-8100
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT + - COUNT( * ) * - 50 + + 19 - - 40 FROM tab2 AS cor0
----
209

skipif mysql # not compatible
query I rowsort label-4053
SELECT + - COUNT ( * ) * - 50 + + 19 - - 40 FROM tab2 AS cor0
----
209

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT 10 - - + COUNT( * ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-4054
SELECT 10 - - + COUNT ( * ) FROM tab1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4055
SELECT CAST( - + COUNT( * ) AS SIGNED ) col2, - 83 * - 2 AS col2 FROM tab2
----
-3
166

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4055
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) col2, - 83 * - 2 AS col2 FROM tab2
----
-3
166

query I rowsort
SELECT + + col0 * col2 + 69 FROM tab0 WHERE NOT + col2 + - - ( - col2 ) < NULL
----

query I rowsort
SELECT DISTINCT + 66 * + 37 * - + col2 AS col1 FROM tab0
----
-114774
-241758
-24420

query II rowsort
SELECT ( - + col0 ), col1 FROM tab2
----
-46
51
-64
77
-75
67

query I rowsort
SELECT ALL + 72 * col0 * - 49 FROM tab2
----
-162288
-225792
-264600

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT DISTINCT MAX( 56 ) AS col1 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-4060
SELECT DISTINCT MAX ( 56 ) AS col1 FROM tab1 AS cor0
----
56

query I rowsort
SELECT DISTINCT - col1 * - + 6 * - col0 AS col1 FROM tab2
----
-14076
-29568
-30150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 1 ) col2 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT DISTINCT - ( SUM( ALL + - col0 ) ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT - ( SUM ( ALL + - col0 ) ) AS col1 FROM tab1
----
227

query III rowsort
SELECT * FROM tab1 WHERE NOT - 64 * - col0 + + col1 + col2 IS NOT NULL
----

query II rowsort
SELECT col2 * + - ( - - col0 ), col2 AS col2 FROM tab1 cor0
----
-4896
96
-5015
59
-6188
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4066
SELECT ALL + 83 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL + 83 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 col0, - col0 - + col0 AS col1 FROM tab0 AS cor0
----
-10
-174
-47
-30
-99
-194

query I rowsort
SELECT ALL - 5 + + + col1 + + - col1 FROM tab2 AS cor0
----
-5
-5
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4069
SELECT DISTINCT * FROM tab0 WHERE NOT + - ( - col1 ) + + ( - CAST( NULL AS DECIMAL ) ) + + 51 IN ( 12 )
----

skipif mysql # not compatible
query III rowsort label-4069
SELECT DISTINCT * FROM tab0 WHERE NOT + - ( - col1 ) + + ( - CAST ( NULL AS REAL ) ) + + 51 IN ( 12 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4070
SELECT COUNT( * ) AS col2, - 80 * - COUNT( * ) AS col0 FROM tab1
----
3
240

skipif mysql # not compatible
query II rowsort label-4070
SELECT COUNT ( * ) AS col2, - 80 * - COUNT ( * ) AS col0 FROM tab1
----
3
240

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT DISTINCT - - COUNT( * ) FROM tab0 WHERE NOT NULL = - col0
----
0

skipif mysql # not compatible
query I rowsort label-4071
SELECT DISTINCT - - COUNT ( * ) FROM tab0 WHERE NOT NULL = - col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4072
SELECT DISTINCT 56 AS col1, + 37 AS col1, - CAST( NULL AS SIGNED ) * - col2 + 11 AS col1 FROM tab2
----
56
37
NULL

skipif mysql # not compatible
query III rowsort label-4072
SELECT DISTINCT 56 AS col1, + 37 AS col1, - CAST ( NULL AS INTEGER ) * - col2 + 11 AS col1 FROM tab2
----
56
37
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 + - col2 col2 FROM tab1 AS cor0
----
-18
-46
-9

query I rowsort
SELECT DISTINCT - 33 * + col0 AS col2 FROM tab0 AS cor0
----
-2871
-3201
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT DISTINCT - COUNT( * ) FROM tab2 cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4075
SELECT DISTINCT - COUNT ( * ) FROM tab2 cor0 WHERE NOT - col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4076
SELECT DISTINCT + + ( 12 ) + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT + + ( 12 ) + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4077
SELECT ALL - CAST( NULL AS SIGNED ) - + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL - CAST ( NULL AS INTEGER ) - + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 - - + 91 FROM tab2
----
16
27
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4079
SELECT 72 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4079
SELECT 72 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT + - MAX( DISTINCT + + 20 ) + + 44 AS col2 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4080
SELECT + - MAX ( DISTINCT + + 20 ) + + 44 AS col2 FROM tab1 AS cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 + + - col2 * - 50 + + 68 + - 20 col2 FROM tab1 AS cor0
----
3075
3525
4925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4082
SELECT ALL + - 77 * - CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL + - 77 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT + col0 * - + ( col1 ) AS col0, col2 AS col0 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-1215
47
-1827
10
-97
99

query I rowsort
SELECT - + ( + 1 ) + - + 17 FROM tab1 AS cor0
----
-18
-18
-18

query I rowsort
SELECT ALL 56 + - + ( + 90 ) * - - col1 AS col1 FROM tab2 AS cor0
----
-4534
-5974
-6874

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 = 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT DISTINCT COUNT( * ) * - 72 * - + COUNT( * ) col1 FROM tab1 AS cor0
----
648

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4087
SELECT DISTINCT COUNT ( * ) * - 72 * - + COUNT ( * ) col1 FROM tab1 AS cor0
----
648

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4088
SELECT DISTINCT - ( + COUNT( * ) ) DIV + 26 - + + MAX( ALL + col2 ) col1 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4088
SELECT DISTINCT - ( + COUNT ( * ) ) / + 26 - + + MAX ( ALL + col2 ) col1 FROM tab2
----
-58

query I rowsort
SELECT DISTINCT 9 * 58 AS col2 FROM tab2
----
522

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4090
SELECT - ( - + 89 ) * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4090
SELECT - ( - + 89 ) * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - - 85 FROM tab2
----
1955
3400
4930

onlyif mysql # DIV for integer division: 
query II rowsort label-4092
SELECT + 25, + col2 DIV col0 * 89 AS col2 FROM tab1 AS cor0
----
25
0
25
0
25
89

skipif mysql # not compatible
query II rowsort label-4092
SELECT + 25, + col2 / col0 * 89 AS col2 FROM tab1 AS cor0
----
25
0
25
0
25
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT DISTINCT + - COUNT( * ) col2 FROM tab0 cor0 WHERE + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4093
SELECT DISTINCT + - COUNT ( * ) col2 FROM tab0 cor0 WHERE + col1 IS NOT NULL
----
-3

query I rowsort
SELECT ALL + 95 * - col2 AS col2 FROM tab1
----
-5605
-6460
-9120

onlyif mysql # DIV for integer division: 
query I rowsort label-4095
SELECT col2 DIV - 86 col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4095
SELECT col2 / - 86 col0 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT - 95 * - COUNT( * ) FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-4096
SELECT - 95 * - COUNT ( * ) FROM tab2
----
285

query I rowsort
SELECT col2 + - - 99 FROM tab2 AS cor0
----
122
139
157

query I rowsort
SELECT + + col0 + + col2 * + - col0 AS col0 FROM tab1 AS cor0
----
-4845
-4930
-6097

query I rowsort
SELECT ALL + col1 * - + ( 76 ) AS col2 FROM tab2 AS cor0
----
-3876
-5092
-5852

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE - col1 * + col2 IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL - ( + 42 ) AS col0 FROM tab2 cor0
----
-42
-42
-42

query I rowsort
SELECT ALL - 6 + - col1 + + 71 * + col0 * 56 - + ( + - 25 ) AS col0 FROM tab1 AS cor0
----
202781
337974
361788

query I rowsort
SELECT 26 FROM tab0 AS cor0 WHERE NULL >= col2
----

query I rowsort
SELECT DISTINCT + 56 + + col2 * + ( + col1 ) FROM tab1 AS cor0
----
1400
3252
351

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 55 - col1 / - - 84 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4106
SELECT ALL + 45 DIV + ( col1 ) + + - col1 FROM tab1 cor0
----
-11
-47
4

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL + 45 / + ( col1 ) + + - col1 FROM tab1 cor0
----
-11
-47
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4107
SELECT * FROM tab2 WHERE - CAST( + 72 AS SIGNED ) >= 75
----

skipif mysql # not compatible
query III rowsort label-4107
SELECT * FROM tab2 WHERE - CAST ( + 72 AS INTEGER ) >= 75
----

query III rowsort
SELECT * FROM tab1 WHERE - - 67 * - + 44 + - + ( - 88 ) / + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT DISTINCT + 5 + - + ( + SUM( + col2 ) ) AS col2 FROM tab2
----
-116

skipif mysql # not compatible
query I rowsort label-4109
SELECT DISTINCT + 5 + - + ( + SUM ( + col2 ) ) AS col2 FROM tab2
----
-116

onlyif mysql # DIV for integer division: 
query I rowsort label-4110
SELECT DISTINCT 0 DIV col0 * - 74 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4110
SELECT DISTINCT 0 / col0 * - 74 AS col2 FROM tab1
----
0

query I rowsort
SELECT - 68 * + col0 FROM tab2
----
-3128
-4352
-5100

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT ALL MIN( ALL - 7 ) AS col2 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL MIN ( ALL - 7 ) AS col2 FROM tab0
----
-7

query II rowsort
SELECT + col2 / col0 + + col0 - - - col2 - col2 * col1 AS col1, + col0 AS col2 FROM tab2 WHERE - 66 * - col2 IS NULL
----

query I rowsort
SELECT ALL + 87 * + col0 + + 27 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 <= - 78
----
7596
8466

onlyif mysql # DIV for integer division: 
query I rowsort label-4115
SELECT col1 + - - col2 * 21 * + + col1 + + - col1 DIV col2 * - - ( + col1 ) AS col2 FROM tab2 cor0
----
24582
64680
81606

skipif mysql # not compatible
query I rowsort label-4115
SELECT col1 + - - col2 * 21 * + + col1 + + - col1 / col2 * - - ( + col1 ) AS col2 FROM tab2 cor0
----
24582
64680
81606

query I rowsort
SELECT 70 + - col0 AS col0 FROM tab0 AS cor0 WHERE + col0 * + 46 * - - 11 + col0 IS NULL
----

query I rowsort
SELECT - col0 + - + 8 AS col1 FROM tab0 AS cor0
----
-105
-23
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT 46 + + COUNT( * ) AS col1 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-4118
SELECT 46 + + COUNT ( * ) AS col1 FROM tab2
----
49

query I rowsort
SELECT DISTINCT + 74 AS col1 FROM tab0 WHERE + 89 <= - col1
----

query I rowsort
SELECT + col2 AS col1 FROM tab0 cor0 WHERE NOT col1 * col0 <> + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, - col1 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT + 65 AS col0 FROM tab1 AS cor0 WHERE NOT col0 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4123
SELECT + - col2 * col0 * 0 * + + 33 DIV - + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4123
SELECT + - col2 * col0 * 0 * + + 33 / - + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL ( 37 ) AS col0 FROM tab1
----
37
37
37

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= 78 * + col1 + + 90 + 23
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4126
SELECT - + SUM( + + col1 ) col2, 90 AS col1 FROM tab1 AS cor0
----
-66
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4126
SELECT - + SUM ( + + col1 ) col2, 90 AS col1 FROM tab1 AS cor0
----
-66
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4127
SELECT * FROM tab0 cor0 WHERE NOT + col2 * 54 NOT BETWEEN - + col2 / - CAST( NULL AS SIGNED ) - + col2 * - col1 - + + col1 AND + + col2
----

skipif mysql # not compatible
query III rowsort label-4127
SELECT * FROM tab0 cor0 WHERE NOT + col2 * 54 NOT BETWEEN - + col2 / - CAST ( NULL AS INTEGER ) - + col2 * - col1 - + + col1 AND + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT + - COUNT( * ) + + + ( SUM( ALL - col0 ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-202

skipif mysql # not compatible
query I rowsort label-4128
SELECT + - COUNT ( * ) + + + ( SUM ( ALL - col0 ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-202

query II rowsort
SELECT + 24 AS col0, col2 AS col0 FROM tab0 AS cor0
----
24
10
24
47
24
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( 2 ) <> + 84
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4131
SELECT + CAST( NULL AS SIGNED ) * - col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4131
SELECT + CAST ( NULL AS INTEGER ) * - col1 FROM tab1 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 9, col2 AS col1 FROM tab0 AS cor0
----
9
10
9
47
9
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( - col0 ) + - col2 AND - + col1 / - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4134
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) < - 44 + - - col1
----

skipif mysql # not compatible
query III rowsort label-4134
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) < - 44 + - - col1
----

query I rowsort
SELECT + 5 + - col1 * + - col2 * - 98 AS col2 FROM tab1 AS cor0
----
-131707
-28905
-313203

query I rowsort
SELECT ALL 32 FROM tab0 WHERE NULL BETWEEN NULL AND - 90
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4137
SELECT ALL CAST( + col1 AS SIGNED ) + + col2 * - 95 FROM tab0
----
-4384
-929
-9404

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL CAST ( + col1 AS INTEGER ) + + col2 * - 95 FROM tab0
----
-4384
-929
-9404

query I rowsort
SELECT + 9 FROM tab2 WHERE NULL IS NULL
----
9
9
9

query I rowsort
SELECT DISTINCT + ( + - col2 ) + + col2 AS col1 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 19 * - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT DISTINCT + SUM( - col1 ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT + SUM ( - col1 ) AS col1 FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT + COUNT( * ) * + MAX( - 50 ) FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-4142
SELECT + COUNT ( * ) * + MAX ( - 50 ) FROM tab0 AS cor0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT ( - MIN( DISTINCT + 46 ) ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4143
SELECT ( - MIN ( DISTINCT + 46 ) ) AS col0 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT DISTINCT - + ( ( + COUNT( * ) ) ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT - + ( ( + COUNT ( * ) ) ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4145
SELECT ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4145
SELECT ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT - MIN( ALL + + col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4146
SELECT - MIN ( ALL + + col1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ALL - - 40 * - + COUNT( * ) FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL - - 40 * - + COUNT ( * ) FROM tab2 AS cor0
----
-120

query I rowsort
SELECT DISTINCT col1 * - 49 FROM tab1 AS cor0
----
-2303
-245
-686

onlyif mysql # DIV for integer division: 
query II rowsort label-4149
SELECT col0 AS col0, col1 - col2 + + - 10 * + 35 * col1 * - 43 * col2 + + + ( + col2 ) DIV + 66 FROM tab0 AS cor0
----
15
57295384
87
3160511
97
1489853

skipif mysql # not compatible
query II rowsort label-4149
SELECT col0 AS col0, col1 - col2 + + - 10 * + 35 * col1 * - 43 * col2 + + + ( + col2 ) / + 66 FROM tab0 AS cor0
----
15
57295384
87
3160511
97
1489853

query II rowsort
SELECT ALL - col2 AS col1, + ( + 36 ) * + + 94 FROM tab0 cor0
----
-10
3384
-47
3384
-99
3384

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT DISTINCT COUNT( + 37 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4151
SELECT DISTINCT COUNT ( + 37 ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4152
SELECT ALL 44 * + - 65 + + + col0 FROM tab1 WHERE - 9 - 37 - - col0 * col2 + - CAST( NULL AS DECIMAL ) IS NULL
----
-2769
-2775
-2809

skipif mysql # not compatible
query I rowsort label-4152
SELECT ALL 44 * + - 65 + + + col0 FROM tab1 WHERE - 9 - 37 - - col0 * col2 + - CAST ( NULL AS REAL ) IS NULL
----
-2769
-2775
-2809

onlyif mysql # DIV for integer division: 
query I rowsort label-4153
SELECT - col2 DIV ( col0 ) AS col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4153
SELECT - col2 / ( col0 ) AS col0 FROM tab0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4154
SELECT 39, + COUNT( * ) AS col2 FROM tab2
----
39
3

skipif mysql # not compatible
query II rowsort label-4154
SELECT 39, + COUNT ( * ) AS col2 FROM tab2
----
39
3

query I rowsort
SELECT DISTINCT - col0 + - + col2 + - + col1 + col2 / 68 FROM tab1 WHERE NOT - col1 NOT BETWEEN col0 AND col2
----

query I rowsort
SELECT + ( + ( - col2 ) ) AS col2 FROM tab0
----
-10
-47
-99

query II rowsort
SELECT ALL - col0, + ( + 27 ) AS col0 FROM tab0
----
-15
27
-87
27
-97
27

query I rowsort
SELECT DISTINCT 70 * + col2 FROM tab2
----
1610
2800
4060

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( - - col2 ) ) <= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4160
SELECT - col0 + + - col0 * col2 FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( - CAST( NULL AS SIGNED ) + - 43 + - col2 / + col2 )
----

skipif mysql # not compatible
query I rowsort label-4160
SELECT - col0 + + - col0 * col2 FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( - CAST ( NULL AS INTEGER ) + - 43 + - col2 / + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT - COUNT( - + col1 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4161
SELECT - COUNT ( - + col1 ) AS col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 88 - - 78 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4163
SELECT ALL col1 * + - col0 * - CAST( NULL AS SIGNED ) - - ( col2 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL col1 * + - col0 * - CAST ( NULL AS INTEGER ) - - ( col2 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4164
SELECT DISTINCT - + 1 * - 42 DIV - COUNT( * ) col1 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4164
SELECT DISTINCT - + 1 * - 42 / - COUNT ( * ) col1 FROM tab2 AS cor0
----
-14

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + 65, + 74, - col1 * + col0 * col2, + 8 + + - col0, 90 + - col1 + - + col1 * - - col1 - + - 80 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT DISTINCT + SUM( DISTINCT + + ( - col2 ) ) + + 96 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-4166
SELECT DISTINCT + SUM ( DISTINCT + + ( - col2 ) ) + + 96 FROM tab0 AS cor0
----
-60

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 <= col0
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4168
SELECT - - CAST( NULL AS SIGNED ) * 23 AS col0 FROM tab1 AS cor0 WHERE + 36 + - ( + + col2 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4168
SELECT - - CAST ( NULL AS INTEGER ) * 23 AS col0 FROM tab1 AS cor0 WHERE + 36 + - ( + + col2 ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4169
SELECT DISTINCT + ( + col2 ) * + CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4169
SELECT DISTINCT + ( + col2 ) * + CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT - 20, 15 + + 52 AS col0 FROM tab1
----
-20
67
-20
67
-20
67

query I rowsort
SELECT 47 * - 84 AS col1 FROM tab2 WHERE ( NULL IS NULL )
----
-3948
-3948
-3948

query III rowsort
SELECT * FROM tab2 WHERE NULL < + 61 / 19
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 - + 32 * - 5 col1 FROM tab0
----
209
209
209

query I rowsort
SELECT + 82 FROM tab0 WHERE ( NOT - col1 IS NULL )
----
82
82
82

onlyif mysql # DIV for integer division: 
query II rowsort label-4175
SELECT DISTINCT 25 DIV ( + 13 ) + + + col2 AS col2, + col0 AS col0 FROM tab0 AS cor0
----
100
97
11
87
48
15

skipif mysql # not compatible
query II rowsort label-4175
SELECT DISTINCT 25 / ( + 13 ) + + + col2 AS col2, + col0 AS col0 FROM tab0 AS cor0
----
100
97
11
87
48
15

query I rowsort
SELECT - - 53 + 85 - + ( + col2 ) AS col0 FROM tab1 AS cor0
----
42
70
79

onlyif mysql # aggregate syntax: 
query II rowsort label-4177
SELECT ALL + 33 AS col0, COUNT( * ) FROM tab2 AS cor0
----
33
3

skipif mysql # not compatible
query II rowsort label-4177
SELECT ALL + 33 AS col0, COUNT ( * ) FROM tab2 AS cor0
----
33
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT ALL MAX( ALL 45 ) AS col2 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-4178
SELECT ALL MAX ( ALL 45 ) AS col2 FROM tab1
----
45

query III rowsort
SELECT * FROM tab1 WHERE ( 17 ) > NULL
----

query I rowsort
SELECT + col1 FROM tab0 WHERE ( - col2 * 49 ) IS NULL
----

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE ( 13 + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT - 67 * + COUNT( * ) + 80 FROM tab1
----
-121

skipif mysql # not compatible
query I rowsort label-4182
SELECT - 67 * + COUNT ( * ) + 80 FROM tab1
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-4183
SELECT ALL + col1 + col2 DIV - 2 AS col1 FROM tab1
----
-24
-34
13

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL + col1 + col2 / - 2 AS col1 FROM tab1
----
-24
-34
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4184
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE NOT col2 BETWEEN ( + CAST( NULL AS SIGNED ) + 62 ) AND col1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE NOT col2 BETWEEN ( + CAST ( NULL AS INTEGER ) + 62 ) AND col1
----
59
68
96

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT 55 * + col1 NOT IN ( + col2 + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 6 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 16 col1 FROM tab2 WHERE NULL BETWEEN 14 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( 9 * col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4188
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( 9 * col0 ) IS NULL
----
0

query I rowsort
SELECT col1 + col2 AS col0 FROM tab2 AS cor0 WHERE NOT col2 + - col1 IN ( 34 - col0 )
----
117
125
74

query I rowsort
SELECT DISTINCT + col1 + - col2 * + 70 FROM tab0 AS cor0
----
-3209
-679
-6929

query I rowsort
SELECT col0 * + 63 AS col1 FROM tab2
----
2898
4032
4725

query I rowsort
SELECT DISTINCT col2 * col0 FROM tab1 WHERE NOT ( + col2 ) IS NULL
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT - COUNT( - 36 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4193
SELECT - COUNT ( - 36 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col2 * col1 - + col0 AS col2 FROM tab0 AS cor0
----
123
2
3792

query I rowsort
SELECT DISTINCT col0 / 98 FROM tab0 AS cor0 WHERE NOT 41 * - 76 BETWEEN ( NULL ) AND col0
----

query I rowsort
SELECT DISTINCT - 6 + + 23 AS col2 FROM tab2 AS cor0 WHERE NULL <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT DISTINCT + - 78 + + ( COUNT( col0 ) ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT + - 78 + + ( COUNT ( col0 ) ) AS col0 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT ALL - col2 * + 11 FROM tab2 AS cor0
----
-253
-440
-638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4199
SELECT col0 + CAST( 42 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
106
117
88

skipif mysql # not compatible
query I rowsort label-4199
SELECT col0 + CAST ( 42 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
106
117
88

query I rowsort
SELECT - 82 * + 58 + - col0 FROM tab0 AS cor0
----
-4771
-4843
-4853

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4201
SELECT * FROM tab2 AS cor0 WHERE CAST( col1 AS SIGNED ) IN ( 59 )
----

skipif mysql # not compatible
query III rowsort label-4201
SELECT * FROM tab2 AS cor0 WHERE CAST ( col1 AS INTEGER ) IN ( 59 )
----

query I rowsort
SELECT 30 + col2 * 30 AS col0 FROM tab2 AS cor0
----
1230
1770
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4203
SELECT ALL + 61 + - CAST( - col1 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
1276
158
1888

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL + 61 + - CAST ( - col1 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
1276
158
1888

query I rowsort
SELECT 66 + + col0 AS col1 FROM tab0 AS cor0
----
153
163
81

query I rowsort
SELECT ALL col0 + 35 + - col2 AS col1 FROM tab0
----
112
3
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4206
SELECT ALL CAST( col0 AS SIGNED ) FROM tab2 WHERE ( - col0 - - col1 ) NOT IN ( col0 )
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL CAST ( col0 AS INTEGER ) FROM tab2 WHERE ( - col0 - - col1 ) NOT IN ( col0 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT DISTINCT - COUNT( ALL + 3 ) * 93 + - 20 FROM tab2
----
-299

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT - COUNT ( ALL + 3 ) * 93 + - 20 FROM tab2
----
-299

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT ( 27 ) + - COUNT( * ) col2 FROM tab2
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4208
SELECT ( 27 ) + - COUNT ( * ) col2 FROM tab2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4209
SELECT ALL CAST( col0 AS SIGNED ) * + 28 AS col0 FROM tab0
----
2436
2716
420

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL CAST ( col0 AS INTEGER ) * + 28 AS col0 FROM tab0
----
2436
2716
420

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 <= + col1 + 29
----

query III rowsort
SELECT * FROM tab1 WHERE col0 * 69 + - col0 IN ( col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 ) = + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - col0 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT - COUNT( * ) * 74 FROM tab0
----
-222

skipif mysql # not compatible
query I rowsort label-4214
SELECT - COUNT ( * ) * 74 FROM tab0
----
-222

onlyif mysql # DIV for integer division: 
query I rowsort label-4215
SELECT DISTINCT 71 DIV + col1 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-4215
SELECT DISTINCT 71 / + col1 FROM tab2
----
0
1

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT NULL IS NULL OR col2 + col0 < col1 * 9
----
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4217
SELECT ALL + 70 DIV - 59 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL + 70 / - 59 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT DISTINCT - + MIN( ALL - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT - + MIN ( ALL - col2 ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL - col2 * + col0 + - 34 FROM tab1 cor0
----
-4930
-5049
-6222

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = - ( + 16 ) - col1
----

query I rowsort
SELECT DISTINCT + col0 * + 88 * - 80 AS col1 FROM tab0
----
-105600
-612480
-682880

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4222
SELECT DISTINCT - 25 AS col1, + CAST( - + 68 AS SIGNED ) - - col1 DIV col2 FROM tab0
----
-25
-66
-25
-67
-25
-68

skipif mysql # not compatible
query II rowsort label-4222
SELECT DISTINCT - 25 AS col1, + CAST ( - + 68 AS INTEGER ) - - col1 / col2 FROM tab0
----
-25
-66
-25
-67
-25
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4223
SELECT - col2, 84 + + - ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-4223
SELECT - col2, 84 + + - ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4224
SELECT DISTINCT COUNT( * ) + + CAST( 61 AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
70

skipif mysql # not compatible
query I rowsort label-4224
SELECT DISTINCT COUNT ( * ) + + CAST ( 61 AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4225
SELECT DISTINCT COUNT( * ) col1, - 10 * - 5 FROM tab0 AS cor0
----
3
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4225
SELECT DISTINCT COUNT ( * ) col1, - 10 * - 5 FROM tab0 AS cor0
----
3
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT DISTINCT + ( ( + COUNT( * ) ) ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4226
SELECT DISTINCT + ( ( + COUNT ( * ) ) ) AS col0 FROM tab0 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col1 * col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) <> + col1
----

query I rowsort
SELECT col0 FROM tab2 WHERE NOT + col2 + - 82 >= ( NULL )
----

query I rowsort
SELECT + 86 FROM tab2 WHERE NOT - col2 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4231
SELECT DISTINCT col2 * col1 DIV + - col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT col2 * col1 / + - col1 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT + MIN( ALL 33 ) FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-4232
SELECT + MIN ( ALL 33 ) FROM tab2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT ALL - MIN( ( + col0 ) ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL - MIN ( ( + col0 ) ) AS col1 FROM tab1
----
-51

query I rowsort
SELECT + - ( 0 ) + 1 * - col0 FROM tab1 cor0
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 < - 65
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * - 83 FROM tab1
----
-4233
-7055
-7553

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4237
SELECT - 86 + + 29 / SUM( + CAST( NULL AS SIGNED ) + - CAST( col1 + ( + 81 ) * 48 AS SIGNED ) * CAST( + 49 AS SIGNED ) ) FROM tab0 cor0 WHERE - 42 BETWEEN + col2 + - - 75 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4237
SELECT - 86 + + 29 / SUM ( + CAST ( NULL AS INTEGER ) + - CAST ( col1 + ( + 81 ) * 48 AS INTEGER ) * CAST ( + 49 AS INTEGER ) ) FROM tab0 cor0 WHERE - 42 BETWEEN + col2 + - - 75 AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4238
SELECT + col0 * CAST( 97 AS SIGNED ) - - 2 FROM tab0
----
1457
8441
9411

skipif mysql # not compatible
query I rowsort label-4238
SELECT + col0 * CAST ( 97 AS INTEGER ) - - 2 FROM tab0
----
1457
8441
9411

query III rowsort
SELECT * FROM tab2 WHERE NULL > - col2 * col1
----

query I rowsort
SELECT + 30 - - col0 AS col1 FROM tab2
----
105
76
94

query I rowsort
SELECT - 76 FROM tab2 AS cor0 WHERE NOT + col0 * + 17 * + 29 * - + col2 + + 27 * - ( - 13 - 58 ) IS NULL
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT ALL + + MAX( + 83 ) AS col2 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL + + MAX ( + 83 ) AS col2 FROM tab2 AS cor0
----
83

query II rowsort
SELECT DISTINCT + ( 42 ), + ( - col1 ) AS col1 FROM tab1 AS cor0
----
42
-14
42
-47
42
-5

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT MIN( DISTINCT - col0 ) * + 61 + + 76 FROM tab2 AS cor0
----
-4499

skipif mysql # not compatible
query I rowsort label-4245
SELECT MIN ( DISTINCT - col0 ) * + 61 + + 76 FROM tab2 AS cor0
----
-4499

query II rowsort
SELECT - col0 AS col2, + col1 * col0 AS col0 FROM tab1 AS cor0
----
-51
714
-85
425
-91
4277

query II rowsort
SELECT col0, - col0 AS col1 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT 30 * + col1 + + ( + + 8 ) IN ( - col1 )
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT ALL + ( + MAX( + + col2 ) ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL + ( + MAX ( + + col2 ) ) FROM tab0 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 + - 5 * - 47 + col1 col2 FROM tab2 AS cor0
----
2632
5240
5327

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT ALL - + COUNT( - 89 ) * - COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL - + COUNT ( - 89 ) * - COUNT ( * ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT - ( + 66 ) * + 23 AS col0 FROM tab0 AS cor0
----
-1518

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL ) IN ( + col1 ) )
----

query I rowsort
SELECT - 33 * 10 AS col1 FROM tab0
----
-330
-330
-330

onlyif mysql # DIV for integer division: 
query I rowsort label-4256
SELECT ALL - col2 DIV 12 AS col1 FROM tab1
----
-4
-5
-8

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL - col2 / 12 AS col1 FROM tab1
----
-4
-5
-8

query I rowsort
SELECT - col2 + 70 + - col0 * - col1 FROM tab1
----
4279
436
688

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4258
SELECT ALL + col1, - 62 * + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-4258
SELECT ALL + col1, - 62 * + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT DISTINCT 72 * - - ( COUNT( - 45 ) ) * + ( + ( + 3 ) ) FROM tab0 AS cor0
----
648

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT 72 * - - ( COUNT ( - 45 ) ) * + ( + ( + 3 ) ) FROM tab0 AS cor0
----
648

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4260
SELECT - col2 AS col2, - CAST( NULL AS SIGNED ) * + 69 * - 9 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-4260
SELECT - col2 AS col2, - CAST ( NULL AS INTEGER ) * + 69 * - 9 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT DISTINCT 5 + - col2 AS col2 FROM tab1
----
-54
-63
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4262
SELECT 65 DIV + col2 + + 34 * + 49 AS col1 FROM tab2 AS cor0
----
1667
1667
1668

skipif mysql # not compatible
query I rowsort label-4262
SELECT 65 / + col2 + + 34 * + 49 AS col1 FROM tab2 AS cor0
----
1667
1667
1668

query I rowsort
SELECT - col1 + ( 12 ) + 80 AS col1 FROM tab0 cor0
----
11
71
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - ( + + col1 ) ) BETWEEN - 36 / - - ( - + col1 ) AND 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT - + COUNT( * ) + + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4265
SELECT - + COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col0 + - - col0 AS col2 FROM tab2 AS cor0 WHERE ( - col0 ) / col1 - - col0 > 79 + col2
----

query I rowsort
SELECT col2 + 43 FROM tab1 AS cor0
----
102
111
139

query I rowsort
SELECT + 3 FROM tab1 cor0 WHERE NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4269
SELECT DISTINCT - 21 + + ( + col1 ) + - col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
-19
1
61

skipif mysql # not compatible
query I rowsort label-4269
SELECT DISTINCT - 21 + + ( + col1 ) + - col0 / - col0 AS col0 FROM tab0 AS cor0
----
-19
1
61

query I rowsort
SELECT + - ( - - col2 ) * col2 + 40 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3441
-4584
-9176

query I rowsort
SELECT + - col0 FROM tab2 WHERE NOT + col1 IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4272
SELECT ALL SUM( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4272
SELECT ALL SUM ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL ( - + 89 ) AS col2 FROM tab2 WHERE NULL IN ( - col0 * - + col0, - 77 )
----

query II rowsort
SELECT DISTINCT + 96 AS col1, - col2 * - col2 FROM tab0 AS cor0
----
96
100
96
2209
96
9801

onlyif mysql # aggregate syntax: 
query II rowsort label-4275
SELECT 68 AS col0, - MAX( + col1 ) * 1 + - + MAX( col2 ) AS col0 FROM tab1 AS cor0
----
68
-143

skipif mysql # not compatible
query II rowsort label-4275
SELECT 68 AS col0, - MAX ( + col1 ) * 1 + - + MAX ( col2 ) AS col0 FROM tab1 AS cor0
----
68
-143

query II rowsort
SELECT - col0 * col0 + col1, col0 FROM tab0 cor0
----
-144
15
-7548
87
-9408
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT ALL + COUNT( * ) * + 80 FROM tab0 cor0
----
240

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL + COUNT ( * ) * + 80 FROM tab0 cor0
----
240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, + ( - col2 ) AS col0 FROM tab2
----
46
-23
64
-40
75
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + + 26 * col0 col0 FROM tab2 AS cor0
----
1242
1728
2025

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NULL AND ( + col0 + - col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT DISTINCT - + 52 * ( - + COUNT( * ) ) * + + COUNT( * ) + - MAX( DISTINCT 44 ) AS col2 FROM tab1 AS cor0
----
424

skipif mysql # not compatible
query I rowsort label-4281
SELECT DISTINCT - + 52 * ( - + COUNT ( * ) ) * + + COUNT ( * ) + - MAX ( DISTINCT 44 ) AS col2 FROM tab1 AS cor0
----
424

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 + + + 44 FROM tab2 AS cor0
----
-2
-20
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT - SUM( + col2 ) AS col0 FROM tab0 cor0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4284
SELECT - SUM ( + col2 ) AS col0 FROM tab0 cor0 WHERE col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT ( - + 66 ) * + col2 + - - 47 * col2 + - + col1 + + ( + col0 ) + + - col1 * + + col0 AS col2 FROM tab1
----
-1466
-2501
-5525

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT + COUNT( * ) FROM tab2, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4286
SELECT + COUNT ( * ) FROM tab2, tab0 cor0
----
9

query I rowsort
SELECT - + 92 FROM tab2 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4288
SELECT - col0 * - CAST( + col0 AS SIGNED ) * col2 AS col2 FROM tab0
----
10575
75690
931491

skipif mysql # not compatible
query I rowsort label-4288
SELECT - col0 * - CAST ( + col0 AS INTEGER ) * col2 AS col2 FROM tab0
----
10575
75690
931491

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4289
SELECT - COUNT( DISTINCT ( - col2 ) ) DIV + SUM( - 5 ) col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4289
SELECT - COUNT ( DISTINCT ( - col2 ) ) / + SUM ( - 5 ) col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 * + 0 * + - col1 col2 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + ( - - col0 ) * 74 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT ALL - COUNT( * ) + + 51 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL - COUNT ( * ) + + 51 FROM tab1 AS cor0
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 * - col2 + - 8 * col0 col2 FROM tab2 AS cor0
----
1104
2048
3112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - ( + col1 ) ) * 94 + + 95 col1 FROM tab1
----
1411
4513
565

query I rowsort
SELECT - + 89 FROM tab2 WHERE - col2 + 73 IS NOT NULL
----
-89
-89
-89

query I rowsort
SELECT 6 + - + col1 FROM tab2
----
-45
-61
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT - 83 * + COUNT( * ) FROM tab1
----
-249

skipif mysql # not compatible
query I rowsort label-4297
SELECT - 83 * + COUNT ( * ) FROM tab1
----
-249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * - 45 * - col0 * 58 + 20 - col0 * col0 col2 FROM tab1 AS cor0
----
18850045
21605149
6786029

query I rowsort
SELECT DISTINCT col0 * - - col2 FROM tab1 AS cor0 WHERE - col0 * - col1 / + col2 = NULL
----

query II rowsort
SELECT DISTINCT + 46 AS col2, + col2 AS col1 FROM tab1 AS cor0
----
46
59
46
68
46
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4301
SELECT + + MIN( DISTINCT col0 ) - CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-4301
SELECT + + MIN ( DISTINCT col0 ) - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
43

query II rowsort
SELECT + col0, - 89 FROM tab0 AS cor0
----
15
-89
87
-89
97
-89

query II rowsort
SELECT ALL col0 AS col0, + col1 + col0 - + col0 FROM tab0 cor0
----
15
81
87
21
97
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + ( col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT DISTINCT + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( col0 ) * - 64 * 25 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4305
SELECT DISTINCT + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( col0 ) * - 64 * 25 IS NULL
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 * + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4307
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( + col1 ) AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4307
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( + col1 ) AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT ALL - + ( SUM( 81 ) ) FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL - + ( SUM ( 81 ) ) FROM tab0 AS cor0
----
-243

query I rowsort
SELECT ALL 40 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 93 ) col2 FROM tab2
----
93
93
93

query I rowsort
SELECT DISTINCT + 17 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-4312
SELECT - COUNT( * ) * + ( - COUNT( * ) ), COUNT( DISTINCT - + 33 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
81
1

skipif mysql # not compatible
query II rowsort label-4312
SELECT - COUNT ( * ) * + ( - COUNT ( * ) ), COUNT ( DISTINCT - + 33 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
81
1

query I rowsort
SELECT DISTINCT + ( + 97 ) * + - 49 FROM tab1 AS cor0
----
-4753

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4314
SELECT ALL + + MAX( - 85 ) + - ( + - COUNT( * ) ) + + + COUNT( * ) DIV 46 * - COUNT( * ) FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL + + MAX ( - 85 ) + - ( + - COUNT ( * ) ) + + + COUNT ( * ) / 46 * - COUNT ( * ) FROM tab0 AS cor0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4315
SELECT CAST( NULL AS SIGNED ) + - 46 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4315
SELECT CAST ( NULL AS INTEGER ) + - 46 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4317
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) + + ( + - SUM( - col0 ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4317
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) + + ( + - SUM ( - col0 ) ) AS col0 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + - col0 ) NOT BETWEEN NULL AND + 51
----

query I rowsort
SELECT ALL ( - col2 ) + + - 82 FROM tab0
----
-129
-181
-92

query I rowsort
SELECT col1 + - - 57 + + col0 FROM tab2
----
154
198
199

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT ALL 95 * + - ( + ( + COUNT( * ) ) ) AS col1 FROM tab1
----
-285

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL 95 * + - ( + ( + COUNT ( * ) ) ) AS col1 FROM tab1
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT 70 + + COUNT( * ) - - - 60 * + COUNT( * ) - + ( - COUNT( * ) ) AS col2 FROM tab0
----
-104

skipif mysql # not compatible
query I rowsort label-4322
SELECT 70 + + COUNT ( * ) - - - 60 * + COUNT ( * ) - + ( - COUNT ( * ) ) AS col2 FROM tab0
----
-104

query I rowsort
SELECT ALL - 39 * + 37 AS col0 FROM tab1 AS cor0
----
-1443
-1443
-1443

query I rowsort
SELECT col2 * + + 60 * - col1 + + - col1 AS col1 FROM tab2 AS cor0
----
-184877
-233227
-70431

query I rowsort
SELECT ALL + - 80 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4326
SELECT DISTINCT + ( + col0 ) DIV + - col1 AS col2 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT + ( + col0 ) / + - col1 AS col2 FROM tab0 AS cor0
----
-4
-97
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 95 IS NULL
----

query I rowsort
SELECT - 72 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-72
-72
-72

query I rowsort
SELECT ALL + col0 * - 26 - + 56 + - col2 AS col1 FROM tab2
----
-1275
-1760
-2064

query II rowsort
SELECT DISTINCT 85 - + - 68 AS col2, 81 * + col1 AS col0 FROM tab1
----
153
1134
153
3807
153
405

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT COUNT( * ) + + - 17 col1 FROM tab0
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4331
SELECT COUNT ( * ) + + - 17 col1 FROM tab0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT + 67 * - MAX( ALL + 89 ) + 63 FROM tab1 AS cor0
----
-5900

skipif mysql # not compatible
query I rowsort label-4332
SELECT + 67 * - MAX ( ALL + 89 ) + 63 FROM tab1 AS cor0
----
-5900

query I rowsort
SELECT ALL - + 18 * + + col1 AS col1 FROM tab2 AS cor0
----
-1206
-1386
-918

query II rowsort
SELECT - 73 * - col0 AS col1, - 39 AS col1 FROM tab0 AS cor0
----
1095
-39
6351
-39
7081
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - ( + col1 ), + 61 col1, + 41 * + - 40 * - col2 * + - 19 AS col0 FROM tab0 AS cor0
----
9 values hashing to d351f4985674287dd612baa88117f3c2

onlyif mysql # aggregate syntax: 
query II rowsort label-4336
SELECT + - COUNT( * ) * ( - 36 ) AS col2, COUNT( DISTINCT 53 ) AS col1 FROM tab2 cor0
----
108
1

skipif mysql # not compatible
query II rowsort label-4336
SELECT + - COUNT ( * ) * ( - 36 ) AS col2, COUNT ( DISTINCT 53 ) AS col1 FROM tab2 cor0
----
108
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4337
SELECT - 63 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4337
SELECT - 63 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT ALL 9, col1 + 55 FROM tab1 AS cor0 WHERE NOT col2 * + col1 * + - 24 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 48, + 65 * - 74 * col2 col0 FROM tab2
----
48
-110630
48
-192400
48
-278980

query I rowsort
SELECT DISTINCT - col2 * + - 90 FROM tab2
----
2070
3600
5220

onlyif mysql # DIV for integer division: 
query I rowsort label-4341
SELECT 61 DIV col1 AS col2 FROM tab0
----
0
2
61

skipif mysql # not compatible
query I rowsort label-4341
SELECT 61 / col1 AS col2 FROM tab0
----
0
2
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4342
SELECT 66, + COUNT( * ) AS col0 FROM tab1
----
66
3

skipif mysql # not compatible
query II rowsort label-4342
SELECT 66, + COUNT ( * ) AS col0 FROM tab1
----
66
3

query I rowsort
SELECT ALL - 42 FROM tab1 WHERE NULL IS NULL
----
-42
-42
-42

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 AS cor0 WHERE col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT DISTINCT + + ( + MIN( ALL - col1 ) ) AS col2 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4345
SELECT DISTINCT + + ( + MIN ( ALL - col1 ) ) AS col2 FROM tab0 cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT DISTINCT + COUNT( DISTINCT + col0 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT + COUNT ( DISTINCT + col0 ) AS col0 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4347
SELECT * FROM tab0 WHERE NOT col1 + - col1 + + - col0 * - + CAST( NULL AS SIGNED ) <> col0 / + col0
----

skipif mysql # not compatible
query III rowsort label-4347
SELECT * FROM tab0 WHERE NOT col1 + - col1 + + - col0 * - + CAST ( NULL AS INTEGER ) <> col0 / + col0
----

query I rowsort
SELECT + 5 * - col2 * + col0 * - col0 * - 78 AS col1 FROM tab0
----
-29519100
-363281490
-4124250

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4349
SELECT ALL col1 * + col1 + + - 34 + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL col1 * + col1 + + - 34 + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 col2 FROM tab0
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT - COUNT( * ) + COUNT( - col0 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4351
SELECT - COUNT ( * ) + COUNT ( - col0 ) AS col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 39 + - col1 > NULL
----

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4354
SELECT DISTINCT + + ( - CAST( NULL AS SIGNED ) ) * COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4354
SELECT DISTINCT + + ( - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NULL < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4355
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL < ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT DISTINCT - COUNT( * ) + - + MIN( - - col2 ) AS col0 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-4356
SELECT DISTINCT - COUNT ( * ) + - + MIN ( - - col2 ) AS col0 FROM tab0 AS cor0
----
-13

query I rowsort
SELECT ALL + 31 * col1 FROM tab2
----
1581
2077
2387

query II rowsort
SELECT ALL 20 AS col0, + col2 FROM tab2
----
20
23
20
40
20
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4359
SELECT ( + - ( + COUNT( * ) ) ) AS col1, COUNT( * ) FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-4359
SELECT ( + - ( + COUNT ( * ) ) ) AS col1, COUNT ( * ) FROM tab1
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 96 - - col1 col1 FROM tab2
----
-19
-29
-45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4361
SELECT * FROM tab0 WHERE NULL < ( - col1 ) + + 68 + - col0 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4361
SELECT * FROM tab0 WHERE NULL < ( - col1 ) + + 68 + - col0 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4362
SELECT col0 DIV - - col1 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4362
SELECT col0 / - - col1 AS col2 FROM tab2
----
0
0
1

query I rowsort
SELECT + 37 - - 48 AS col2 FROM tab2
----
85
85
85

query I rowsort
SELECT DISTINCT col0 - + - col0 FROM tab1
----
102
170
182

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col1 + 78 >= 21
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT ( - MIN( - 2 ) ) - + 62 FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-4366
SELECT ( - MIN ( - 2 ) ) - + 62 FROM tab2
----
-60

query I rowsort
SELECT ALL + 69 * - col2 FROM tab0
----
-3243
-6831
-690

query II rowsort
SELECT DISTINCT + col1 + - - col0, - col0 AS col2 FROM tab0 WHERE NOT + ( + col1 ) * + + col2 * + 87 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 + + 59 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4370
SELECT DISTINCT + 36 * + + COUNT( - col1 ) AS col0, + COUNT( ALL - + col2 ) FROM tab2
----
108
3

skipif mysql # not compatible
query II rowsort label-4370
SELECT DISTINCT + 36 * + + COUNT ( - col1 ) AS col0, + COUNT ( ALL - + col2 ) FROM tab2
----
108
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4371
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND NULL AND - col2 + + col2 + - col2 - + CAST( NULL AS SIGNED ) * col2 * - 34 IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND NULL AND - col2 + + col2 + - col2 - + CAST ( NULL AS INTEGER ) * col2 * - 34 IN ( col2 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4372
SELECT DISTINCT - 59 + + CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4372
SELECT DISTINCT - 59 + + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + 90 + - col1 * 65 FROM tab0 cor0
----
-1275
-5175
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4374
SELECT ALL 90 + + - col1 * - CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
2691
4579
6019

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL 90 + + - col1 * - CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
2691
4579
6019

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4375
SELECT + col1 * + col0 AS col2 FROM tab0 WHERE - col0 >= - + ( - 89 ) * CAST( - 76 AS SIGNED )
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-4375
SELECT + col1 * + col0 AS col2 FROM tab0 WHERE - col0 >= - + ( - 89 ) * CAST ( - 76 AS INTEGER )
----
1215
1827
97

query I rowsort
SELECT 65 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 55 + + col1 NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 32 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query III rowsort
SELECT * FROM tab1 WHERE NOT + 36 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4380
SELECT DISTINCT - - ( COUNT( * ) ) AS col2, COUNT( * ) * - ( + 39 ) FROM tab1 AS cor0
----
3
-117

skipif mysql # not compatible
query II rowsort label-4380
SELECT DISTINCT - - ( COUNT ( * ) ) AS col2, COUNT ( * ) * - ( + 39 ) FROM tab1 AS cor0
----
3
-117

query II rowsort
SELECT DISTINCT - col1, - 40 AS col0 FROM tab1 AS cor0
----
-14
-40
-47
-40
-5
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT - MIN( ALL + - 30 ) AS col2 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-4382
SELECT - MIN ( ALL + - 30 ) AS col2 FROM tab1
----
30

onlyif mysql # DIV for integer division: 
query II rowsort label-4383
SELECT ALL - 30 DIV + - 6, + 26 AS col1 FROM tab0
----
5
26
5
26
5
26

skipif mysql # not compatible
query II rowsort label-4383
SELECT ALL - 30 / + - 6, + 26 AS col1 FROM tab0
----
5
26
5
26
5
26

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( col1 ) BETWEEN NULL AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT ( + 51 ) AS col0, - 77 FROM tab2
----
51
-77

query I rowsort
SELECT - col2 * + ( - - 57 ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-2679
-5643
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 5 col0 FROM tab0 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4388
SELECT - CAST( + 22 AS SIGNED ) * 50 FROM tab2 AS cor0
----
-1100
-1100
-1100

skipif mysql # not compatible
query I rowsort label-4388
SELECT - CAST ( + 22 AS INTEGER ) * 50 FROM tab2 AS cor0
----
-1100
-1100
-1100

onlyif mysql # DIV for integer division: 
query I rowsort label-4389
SELECT ALL col2 DIV + 61 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL col2 / + 61 FROM tab1
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4390
SELECT - 45 DIV ( - col2 ) + - + col2 + + + 11 FROM tab0 WHERE NULL IS NULL
----
-36
-88
5

skipif mysql # not compatible
query I rowsort label-4390
SELECT - 45 / ( - col2 ) + - + col2 + + + 11 FROM tab0 WHERE NULL IS NULL
----
-36
-88
5

query I rowsort
SELECT ALL + ( + + 21 ) FROM tab2 cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT - MIN( + 29 ) FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-4392
SELECT - MIN ( + 29 ) FROM tab0 AS cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT ALL - COUNT( * ) + - - SUM( ALL col0 ) AS col1 FROM tab1 AS cor0
----
224

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL - COUNT ( * ) + - - SUM ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT + 66 * + COUNT( * ) + - ( + COUNT( * ) ) AS col2 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-4394
SELECT + 66 * + COUNT ( * ) + - ( + COUNT ( * ) ) AS col2 FROM tab2 cor0
----
195

query I rowsort
SELECT - + col2 + + 45 * col0 FROM tab0 AS cor0
----
3905
4266
628

query I rowsort
SELECT - - 26 + + col1 FROM tab1 cor0
----
31
40
73

query I rowsort
SELECT DISTINCT - 36 + - col1 FROM tab0 AS cor0
----
-117
-37
-57

query I rowsort
SELECT DISTINCT + + 19 * + ( col1 ) + + 22 + - col2 + - ( + 84 ) AS col2 FROM tab2 cor0
----
1153
1361
884

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT ALL + + 92 * + - 72 + + - COUNT( * ) - 97 AS col2 FROM tab2 AS cor0
----
-6724

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL + + 92 * + - 72 + + - COUNT ( * ) - 97 AS col2 FROM tab2 AS cor0
----
-6724

query I rowsort
SELECT ALL + + col0 + - col1 AS col0 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT 86 + COUNT( * ) FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-4401
SELECT 86 + COUNT ( * ) FROM tab0 AS cor0
----
89

query I rowsort
SELECT DISTINCT - 35 + 19 AS col2 FROM tab1
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab1 WHERE NULL < - + 6 / - col1 * + 21
----

query I rowsort
SELECT ALL col1 - + 30 + 53 * - + 7 AS col0 FROM tab2
----
-324
-334
-350

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 * + ( + col1 ) * + - 43 + - col2 <= - ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2 + + col2 * 76
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( - col2 ) >= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT DISTINCT COUNT( ALL + - 67 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4408
SELECT DISTINCT COUNT ( ALL + - 67 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * - - ( - + col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL + 30 * + + col1 * + + col1 FROM tab0
----
13230
196830
30

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 = + 6 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4412
SELECT ( CAST( NULL AS SIGNED ) ) * + 41 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4412
SELECT ( CAST ( NULL AS INTEGER ) ) * + 41 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT - 13 * MIN( col0 ) AS col2 FROM tab0 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4413
SELECT - 13 * MIN ( col0 ) AS col2 FROM tab0 AS cor0
----
-195

query II rowsort
SELECT DISTINCT - - col2, col2 AS col0 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4415
SELECT ALL CAST( NULL AS SIGNED ) * + + col1 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL CAST ( NULL AS INTEGER ) * + + col1 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + col2 ) * 21 AS col0 FROM tab2 cor0
----
-1218
-483
-840

query I rowsort
SELECT ALL - - ( + col0 ) * 65 * + 7 + - + col0 AS col0 FROM tab1 AS cor0
----
23154
38590
41314

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT 99 BETWEEN NULL AND ( + col1 ) )
----

query II rowsort
SELECT ALL col2, col0 + - + col1 AS col0 FROM tab2 WHERE NOT NULL <= + col2
----

query I rowsort
SELECT ALL - 2 * - + col0 FROM tab0
----
174
194
30

onlyif mysql # DIV for integer division: 
query I rowsort label-4421
SELECT + 59 DIV + - col2 AS col1 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-4421
SELECT + 59 / + - col2 AS col1 FROM tab0
----
-1
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT MAX( col0 ) * COUNT( * ) col1 FROM tab2
----
225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4422
SELECT MAX ( col0 ) * COUNT ( * ) col1 FROM tab2
----
225

query II rowsort
SELECT ALL - col2 AS col0, col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

onlyif mysql # aggregate syntax: 
query III rowsort label-4424
SELECT + - MAX( + + col0 ) AS col2, - COUNT( ALL col2 ), + + 78 AS col0 FROM tab2 AS cor0
----
-75
-3
78

skipif mysql # not compatible
query III rowsort label-4424
SELECT + - MAX ( + + col0 ) AS col2, - COUNT ( ALL col2 ), + + 78 AS col0 FROM tab2 AS cor0
----
-75
-3
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4425
SELECT ALL + COUNT( * ) / + CAST( NULL AS SIGNED ) + - MIN( DISTINCT - - ( + - col2 ) ) * - SUM( DISTINCT 52 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL + COUNT ( * ) / + CAST ( NULL AS INTEGER ) + - MIN ( DISTINCT - - ( + - col2 ) ) * - SUM ( DISTINCT 52 ) AS col2 FROM tab2 AS cor0
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 cor1 WHERE + 56 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT DISTINCT - SUM( + col0 ) + + 78 * - + SUM( ALL - col2 ) - - 7 col1 FROM tab1
----
17174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4427
SELECT DISTINCT - SUM ( + col0 ) + + 78 * - + SUM ( ALL - col2 ) - - 7 col1 FROM tab1
----
17174

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT MAX( ALL 56 ) + 38 + + 10 FROM tab0
----
104

skipif mysql # not compatible
query I rowsort label-4428
SELECT MAX ( ALL 56 ) + 38 + + 10 FROM tab0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT 97 + - MAX( + - 58 ) col0 FROM tab2
----
155

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4429
SELECT 97 + - MAX ( + - 58 ) col0 FROM tab2
----
155

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - - ( - - 6 ) col1 FROM tab1
----
354
408
576

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT ( - MAX( + col0 ) ) * + + COUNT( * ) + COUNT( * ) * COUNT( * ) AS col0 FROM tab0
----
-282

skipif mysql # not compatible
query I rowsort label-4431
SELECT ( - MAX ( + col0 ) ) * + + COUNT ( * ) + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0
----
-282

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 < - - col0
----

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE NULL IN ( col1, + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * - col2 >= - 88
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 95 + + 95 * + col2 AS col0, + 32 * - 35 * - + col0 col1 FROM tab1 cor0
----
5700
95200
6555
101920
9215
57120

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4436
SELECT - CAST( NULL AS DECIMAL ) / col1 col2, 84 FROM tab2 AS cor0
----
NULL
84
NULL
84
NULL
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4436
SELECT - CAST ( NULL AS REAL ) / col1 col2, 84 FROM tab2 AS cor0
----
NULL
84
NULL
84
NULL
84

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 * 65 IS NULL
----

query I rowsort
SELECT ALL - col1 + - 24 + - 28 FROM tab1 AS cor0
----
-57
-66
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 27 * + - col2 - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 + ( + 91 ) AS col1 FROM tab0 AS cor0
----
106
178
188

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT 18 * - SUM( + + col1 ) FROM tab2 WHERE - col0 + - col0 BETWEEN 97 + + - 17 AND + + col1 + + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4441
SELECT 18 * - SUM ( + + col1 ) FROM tab2 WHERE - col0 + - col0 BETWEEN 97 + + - 17 AND + + col1 + + + 59
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4442
SELECT - MIN( + col1 ) - - 78 + - - 37 - - + 91 + + - CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
202

skipif mysql # not compatible
query I rowsort label-4442
SELECT - MIN ( + col1 ) - - 78 + - - 37 - - + 91 + + - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
202

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 36 - - 8 col0 FROM tab2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT ALL - COUNT( * ) - COUNT( * ) col0 FROM tab1
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4444
SELECT ALL - COUNT ( * ) - COUNT ( * ) col0 FROM tab1
----
-6

query I rowsort
SELECT - col0 - - + ( - col1 ) AS col0 FROM tab2
----
-141
-142
-97

query I rowsort
SELECT col1 - - + col2 AS col1 FROM tab1
----
110
115
64

query III rowsort
SELECT * FROM tab1 WHERE - col1 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 30 + col1 + - + col0 FROM tab1
----
-14
-50
-7

query III rowsort
SELECT * FROM tab2 WHERE - col0 / - col2 <> ( NULL )
----

query II rowsort
SELECT ALL - col1 AS col0, + 12 FROM tab2
----
-51
12
-67
12
-77
12

query II rowsort
SELECT ALL + col2 - - col0 * - + 78, - 94 AS col2 FROM tab2 AS cor0
----
-3565
-94
-4952
-94
-5792
-94

query I rowsort
SELECT DISTINCT - 35 * + 27 FROM tab1 AS cor0
----
-945

query I rowsort
SELECT 88 * - - 20 * - 62 AS col0 FROM tab2
----
-109120
-109120
-109120

query I rowsort
SELECT ALL + + 18 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 BETWEEN col0 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT ALL ( SUM( - 8 ) ) AS col1 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL ( SUM ( - 8 ) ) AS col1 FROM tab0
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-4457
SELECT ALL + col1 * + + 37 + + 79 DIV col1 FROM tab2 AS cor0
----
1888
2480
2850

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL + col1 * + + 37 + + 79 / col1 FROM tab2 AS cor0
----
1888
2480
2850

query I rowsort
SELECT DISTINCT - + col2 * - col2 AS col0 FROM tab1 cor0
----
3481
4624
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) * - 95 col2 FROM tab0 AS cor0
----
-1425
-8265
-9215

query I rowsort
SELECT 13 * + col0 AS col2 FROM tab0 AS cor0
----
1131
1261
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4461
SELECT + col2 * + ( - - 90 ) / - - col0 + + - col1 + + col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4461
SELECT + col2 * + ( - - 90 ) / - - col0 + + - col1 + + col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4462
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 + - - col0 + - - col0 BETWEEN + 16 AND - 37 * + 48 - - + 65 / + col1 + col2 + CAST( + 0 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4462
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 + - - col0 + - - col0 BETWEEN + 16 AND - 37 * + 48 - - + 65 / + col1 + col2 + CAST ( + 0 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4463
SELECT CAST( - - 12 AS SIGNED ) DIV col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4463
SELECT CAST ( - - 12 AS INTEGER ) / col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT SUM( ALL + - col2 ) col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4464
SELECT SUM ( ALL + - col2 ) col0 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT DISTINCT 75 * + - col1 AS col1 FROM tab1
----
-1050
-3525
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT DISTINCT + MIN( ALL - 76 ) FROM tab0
----
-76

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT + MIN ( ALL - 76 ) FROM tab0
----
-76

onlyif mysql # DIV for integer division: 
query II rowsort label-4467
SELECT 67, + col2 - col2 + col1 DIV - col1 + + col2 + + 75 AS col2 FROM tab1
----
67
133
67
142
67
170

skipif mysql # not compatible
query II rowsort label-4467
SELECT 67, + col2 - col2 + col1 / - col1 + + col2 + + 75 AS col2 FROM tab1
----
67
133
67
142
67
170

query I rowsort
SELECT DISTINCT + 29 + + 98 AS col2 FROM tab0, tab2 AS cor0
----
127

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT col0 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 / - col0 = col0 * - col1 + + col2 + + col2 * col1 + 43 - + col2 + + col0 / + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN + - 87 AND NULL
----

query I rowsort
SELECT ALL + + 51 * + 92 FROM tab0 cor0
----
4692
4692
4692

query I rowsort
SELECT - 57 + + 75 AS col0 FROM tab2 AS cor0
----
18
18
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 + col2 col1 FROM tab1 AS cor0
----
-1
36
8

query I rowsort
SELECT ALL 32 * + col2 AS col2 FROM tab2 AS cor0
----
1280
1856
736

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT ALL + ( COUNT( col1 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL + ( COUNT ( col1 ) ) FROM tab2
----
3

query I rowsort
SELECT ALL + col0 * - col0 * + 49 + + col0 AS col0 FROM tab1
----
-127398
-353940
-405678

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4478
SELECT + CAST( + 54 AS SIGNED ) + - - col1 FROM tab2 WHERE - col2 * + ( + col0 ) + - col0 + - + col2 IS NOT NULL
----
105
121
131

skipif mysql # not compatible
query I rowsort label-4478
SELECT + CAST ( + 54 AS INTEGER ) + - - col1 FROM tab2 WHERE - col2 * + ( + col0 ) + - col0 + - + col2 IS NOT NULL
----
105
121
131

query I rowsort
SELECT - 2 - + col0 FROM tab2 AS cor0
----
-48
-66
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-4480
SELECT DISTINCT + - col2 AS col2, - col2 DIV - + col0 FROM tab0 AS cor0
----
-10
0
-47
3
-99
1

skipif mysql # not compatible
query II rowsort label-4480
SELECT DISTINCT + - col2 AS col2, - col2 / - + col0 FROM tab0 AS cor0
----
-10
0
-47
3
-99
1

query II rowsort
SELECT ALL - 92, col1 FROM tab1 AS cor0
----
-92
14
-92
47
-92
5

query I rowsort
SELECT + col1 + + - col0 + - col1 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL 79 + - - 21 + col1 + + col2 * - col1 FROM tab0 AS cor0
----
-3626
-89
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4484
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( ( + ( col0 ) * - - col1 * CAST( col1 AS SIGNED ) - - + 48 ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-4484
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( ( + ( col0 ) * - - col1 * CAST ( col1 AS INTEGER ) - - + 48 ) IS NOT NULL )
----

query I rowsort
SELECT - col2 + 97 AS col2 FROM tab0 cor0
----
-2
50
87

query I rowsort
SELECT ALL ( + 48 ) + - 92 AS col1 FROM tab2 AS cor0
----
-44
-44
-44

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - - 36 < ( + + col2 + + ( - + col1 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT + + 17 + + + COUNT( * ) + + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-4488
SELECT + + 17 + + + COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
17

query I rowsort
SELECT DISTINCT - + 22 + 23 FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 + + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + ( col1 ), 35 AS col0 FROM tab2
----
51
35
67
35
77
35

query III rowsort
SELECT * FROM tab0 WHERE + col0 / + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT DISTINCT - 52 * + MIN( DISTINCT + col1 ) FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-4493
SELECT DISTINCT - 52 * + MIN ( DISTINCT + col1 ) FROM tab0
----
-52

query I rowsort
SELECT col1 * - col1 * col0 AS col0 FROM tab2
----
-119646
-336675
-379456

query III rowsort
SELECT * FROM tab0 WHERE NOT 70 NOT IN ( - - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4496
SELECT - ( + CAST( + MIN( ALL - col1 ) AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4496
SELECT - ( + CAST ( + MIN ( ALL - col1 ) AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
81

query I rowsort
SELECT DISTINCT ( + 39 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT DISTINCT + ( + + COUNT( * ) ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4498
SELECT DISTINCT + ( + + COUNT ( * ) ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 col2 FROM tab1 WHERE NOT col1 + + ( - - col0 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 55 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND + col2 + + + 67
----

query II rowsort
SELECT col2 AS col2, - 28 AS col2 FROM tab2 cor0
----
23
-28
40
-28
58
-28

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 = + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4504
SELECT DISTINCT + col0 AS col1, CAST( col2 AS SIGNED ) DIV + col1 FROM tab0 cor0
----
15
0
87
0
97
99

skipif mysql # not compatible
query II rowsort label-4504
SELECT DISTINCT + col0 AS col1, CAST ( col2 AS INTEGER ) / + col1 FROM tab0 cor0
----
15
0
87
0
97
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4505
SELECT + - 37 AS col2, + COUNT( * ) FROM tab2 AS cor0
----
-37
3

skipif mysql # not compatible
query II rowsort label-4505
SELECT + - 37 AS col2, + COUNT ( * ) FROM tab2 AS cor0
----
-37
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4506
SELECT - SUM( - 52 ), + 52 AS col1 FROM tab0
----
156
52

skipif mysql # not compatible
query II rowsort label-4506
SELECT - SUM ( - 52 ), + 52 AS col1 FROM tab0
----
156
52

query I rowsort
SELECT - 54 * - - ( + col2 ) AS col2 FROM tab2
----
-1242
-2160
-3132

onlyif mysql # DIV for integer division: 
query II rowsort label-4508
SELECT col2 DIV + - col2 AS col0, col1 + 47 AS col0 FROM tab2
----
-1
114
-1
124
-1
98

skipif mysql # not compatible
query II rowsort label-4508
SELECT col2 / + - col2 AS col0, col1 + 47 AS col0 FROM tab2
----
-1
114
-1
124
-1
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT + MAX( DISTINCT - - col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4509
SELECT + MAX ( DISTINCT - - col2 ) AS col2 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT MAX( - 8 ) AS col0 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-4510
SELECT MAX ( - 8 ) AS col0 FROM tab1
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4511
SELECT COUNT( * ) DIV + - SUM( ALL - - col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4511
SELECT COUNT ( * ) / + - SUM ( ALL - - col2 ) FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4512
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN - - 93 AND - col0
----

skipif mysql # not compatible
query I rowsort label-4512
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN - - 93 AND - col0
----

query I rowsort
SELECT 82 * - + col2 AS col1 FROM tab1
----
-4838
-5576
-7872

query I rowsort
SELECT ALL + + 80 + + col2 AS col0 FROM tab0 AS cor0
----
127
179
90

query I rowsort
SELECT DISTINCT + - col1 + col2 - + col1 FROM tab2 AS cor0
----
-114
-76
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4516
SELECT - col0 + - CAST( ( - col1 ) AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-4516
SELECT - col0 + - CAST ( ( - col1 ) AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-37
-44
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-4517
SELECT DISTINCT - col0 DIV - col0 col0 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4517
SELECT DISTINCT - col0 / - col0 col0 FROM tab2
----
1

query I rowsort
SELECT + 28 AS col0 FROM tab2 AS cor0 WHERE col0 * - col0 IS NULL
----

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT - col1 + + - col0 - + - col1 * + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT DISTINCT - MAX( - + ( + - ( col1 ) ) ) + + ( + ( - 44 ) ) FROM tab0 AS cor0
----
-125

skipif mysql # not compatible
query I rowsort label-4520
SELECT DISTINCT - MAX ( - + ( + - ( col1 ) ) ) + + ( + ( - 44 ) ) FROM tab0 AS cor0
----
-125

query I rowsort
SELECT + ( - - col0 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4522
SELECT - col0 - - CAST( - + 99 AS SIGNED ) + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-1203
-2723
-4524

skipif mysql # not compatible
query I rowsort label-4522
SELECT - col0 - - CAST ( - + 99 AS INTEGER ) + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-1203
-2723
-4524

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4523
SELECT - 32 - - 63 + + + 55 DIV MIN( - col2 ) FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-4523
SELECT - 32 - - 63 + + + 55 / MIN ( - col2 ) FROM tab1 AS cor0
----
31

query I rowsort
SELECT ALL + col2 + 16 AS col0 FROM tab2 AS cor0
----
39
56
74

query I rowsort
SELECT ALL - 41 + + 22 FROM tab2 AS cor0
----
-19
-19
-19

query I rowsort
SELECT DISTINCT + col2 - + - col2 + 50 * + + col2 FROM tab1 AS cor0
----
3068
3536
4992

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT DISTINCT + 91 * - - MAX( - 46 ) AS col1 FROM tab0
----
-4186

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT + 91 * - - MAX ( - 46 ) AS col1 FROM tab0
----
-4186

query I rowsort
SELECT col1 * - 47 AS col0 FROM tab0
----
-3807
-47
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT DISTINCT - ( - COUNT( * ) ) col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4529
SELECT DISTINCT - ( - COUNT ( * ) ) col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4530
SELECT + - col1 DIV ( - 18 ) FROM tab0 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4530
SELECT + - col1 / ( - 18 ) FROM tab0 AS cor0
----
0
1
4

onlyif mysql # DIV for integer division: 
query II rowsort label-4531
SELECT - - col2 DIV - col1 AS col1, col1 AS col0 FROM tab0 AS cor0
----
-99
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-4531
SELECT - - col2 / - col1 AS col1, col1 AS col0 FROM tab0 AS cor0
----
-99
1
0
21
0
81

query II rowsort
SELECT DISTINCT + col0 + + col2 AS col2, - col1 AS col2 FROM tab0 AS cor0
----
196
-1
62
-81
97
-21

query I rowsort
SELECT ALL 56 + + 23 FROM tab2 AS cor0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT ALL + MIN( DISTINCT + - 42 ) AS col1 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL + MIN ( DISTINCT + - 42 ) AS col1 FROM tab2
----
-42

query I rowsort
SELECT ALL + + col0 - + col0 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
0
0

query II rowsort
SELECT ALL + col0, 75 + col0 + + 20 AS col1 FROM tab2
----
46
141
64
159
75
170

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT DISTINCT - MAX( ALL 3 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4537
SELECT DISTINCT - MAX ( ALL 3 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT - - SUM( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4538
SELECT - - SUM ( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
156

query I rowsort
SELECT + col1 * + - col0 + - 31 + + col1 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-1165
-127
-1837

query II rowsort
SELECT - + col1, col2 FROM tab0 cor0
----
-1
99
-21
10
-81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4541
SELECT ALL col2 * CAST( NULL AS SIGNED ) + col1 / - - col2 * 24 - + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4541
SELECT ALL col2 * CAST ( NULL AS INTEGER ) + col1 / - - col2 * 24 - + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4542
SELECT ALL ( + col2 ) DIV - col2 + - col0 FROM tab0 AS cor0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-4542
SELECT ALL ( + col2 ) / - col2 + - col0 FROM tab0 AS cor0
----
-16
-88
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT - COUNT( DISTINCT + col2 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4543
SELECT - COUNT ( DISTINCT + col2 ) AS col1 FROM tab2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4544
SELECT - 77 * - 88 AS col2, + MAX( ALL - CAST( 62 AS SIGNED ) ) * CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
6776
-558

skipif mysql # not compatible
query II rowsort label-4544
SELECT - 77 * - 88 AS col2, + MAX ( ALL - CAST ( 62 AS INTEGER ) ) * CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
6776
-558

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT DISTINCT - - COUNT( * ) FROM tab2 cor0 WHERE NOT - ( - col0 ) * - 81 * - col0 * 96 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4545
SELECT DISTINCT - - COUNT ( * ) FROM tab2 cor0 WHERE NOT - ( - col0 ) * - 81 * - col0 * 96 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4546
SELECT + col1 + + CAST( - - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
102
134
154

skipif mysql # not compatible
query I rowsort label-4546
SELECT + col1 + + CAST ( - - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT 77 * col1 + - col2 * - col0 FROM tab0 AS cor0
----
2487
6942
9680

query II rowsort
SELECT ALL col0, + col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
81
87
21
97
1

query II rowsort
SELECT ALL - col0 * - col0, col0 AS col0 FROM tab2 AS cor0
----
2116
46
4096
64
5625
75

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + ( col2 ) ) + col0 + - - col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT ALL 67 * MIN( col0 ) FROM tab2
----
3082

skipif mysql # not compatible
query I rowsort label-4551
SELECT ALL 67 * MIN ( col0 ) FROM tab2
----
3082

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT ALL + 25 * - - COUNT( * ) FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL + 25 * - - COUNT ( * ) FROM tab1
----
75

query I rowsort
SELECT 27 * + - 71 FROM tab2
----
-1917
-1917
-1917

query II rowsort
SELECT ALL - col1 * - ( - - 54 ), col1 AS col0 FROM tab1
----
2538
47
270
5
756
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4555
SELECT + SUM( ALL - CAST( + + col0 AS SIGNED ) ) AS col1, + COUNT( * ) col0 FROM tab1
----
-227
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4555
SELECT + SUM ( ALL - CAST ( + + col0 AS INTEGER ) ) AS col1, + COUNT ( * ) col0 FROM tab1
----
-227
3

query I rowsort
SELECT DISTINCT ( 22 ) FROM tab2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT + MIN( + + col2 ) col2 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4557
SELECT + MIN ( + + col2 ) col2 FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4558
SELECT ALL CAST( + col2 AS SIGNED ) DIV + col1 + + 97 AS col2 FROM tab0
----
196
97
97

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL CAST ( + col2 AS INTEGER ) / + col1 + + 97 AS col2 FROM tab0
----
196
97
97

query I rowsort
SELECT ALL + + col1 FROM tab2 WHERE - + 51 * - ( - col0 ) IS NULL
----

query I rowsort
SELECT col2 * col0 * + - ( - col2 ) FROM tab2 AS cor0
----
102400
24334
252300

query II rowsort
SELECT DISTINCT col2 AS col2, 16 FROM tab0
----
10
16
47
16
99
16

onlyif mysql # DIV for integer division: 
query I rowsort label-4562
SELECT - ( + + col2 ) DIV + 34 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4562
SELECT - ( + + col2 ) / + 34 FROM tab2
----
-1
-1
0

query I rowsort
SELECT + 39 + + + ( 10 ) + 48 * col0 * - + col2 * - + col2 - + 58 AS col0 FROM tab0
----
1590471
417591
45633447

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 3 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4565
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4565
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT ALL + - COUNT( * ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4566
SELECT ALL + - COUNT ( * ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4567
SELECT - - 61 AS col1, + 92 * + - AVG ( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) + - + col2 <= - col2 / - col0
----
61
NULL

skipif mysql # not compatible
query II rowsort label-4567
SELECT - - 61 AS col1, + 92 * + - AVG ( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - + col2 <= - col2 / - col0
----
61
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( NOT - col0 * + - 99 NOT BETWEEN NULL AND + + col2 + - 34 )
----

query I rowsort
SELECT + 10 * - 98 - + + 87 * - col2 + - col1 AS col0 FROM tab2
----
2423
3999
970

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT SUM( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4570
SELECT SUM ( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE NULL > NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4571
SELECT 22 + + - 72 DIV col1 + - 60 FROM tab0
----
-110
-38
-41

skipif mysql # not compatible
query I rowsort label-4571
SELECT 22 + + - 72 / col1 + - 60 FROM tab0
----
-110
-38
-41

query I rowsort
SELECT 42 FROM tab2 WHERE ( - col0 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4573
SELECT CAST( MAX( - 9 ) AS SIGNED ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4573
SELECT CAST ( MAX ( - 9 ) AS INTEGER ) FROM tab2
----
-9

query I rowsort
SELECT DISTINCT ( - 46 ) AS col2 FROM tab1 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT ALL - - MIN( DISTINCT + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL - - MIN ( DISTINCT + col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4576
SELECT + CAST( NULL AS DECIMAL ) / + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4576
SELECT + CAST ( NULL AS REAL ) / + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - 26 FROM tab0 AS cor0
----
-2262
-2522
-390

query I rowsort
SELECT - 14 * - 18 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
252
252
252

onlyif mysql # DIV for integer division: 
query I rowsort label-4579
SELECT + 6 DIV 66 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4579
SELECT + 6 / 66 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 col0 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT ALL 98 * - 58 * col0 AS col0 FROM tab1
----
-289884
-483140
-517244

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT DISTINCT MIN( ALL - - ( - - 5 ) ) AS col1 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT MIN ( ALL - - ( - - 5 ) ) AS col1 FROM tab2
----
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 <> 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT - - MAX( + ( - - 72 ) ) FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4584
SELECT - - MAX ( + ( - - 72 ) ) FROM tab1 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT ALL COUNT( * ) * 48 FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL COUNT ( * ) * 48 FROM tab1 AS cor0
----
144

query I rowsort
SELECT - 8 * col0 AS col1 FROM tab1 cor0
----
-408
-680
-728

query I rowsort
SELECT DISTINCT 43 AS col2 FROM tab2 AS cor0 WHERE NULL > col1
----

query I rowsort
SELECT - col0 + - 84 AS col0 FROM tab1 AS cor0
----
-135
-169
-175

query I rowsort
SELECT DISTINCT - col2 + - - col0 AS col2 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT col1 + - col1 - 36 AS col1 FROM tab1 AS cor0
----
-36
-36
-36

query I rowsort
SELECT DISTINCT 93 + - - col2 FROM tab1 AS cor0
----
152
161
189

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + - + col0 * - col1 * 78 * - - col2 * - col1 + - + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-4593
SELECT + 68 + - col2 + 27 + 91 + - + col1 * col0 col1, CAST( col2 AS SIGNED ) AS col0, + - 80 DIV + col1 AS col1 FROM tab1 cor0
----
9 values hashing to 9565586d5b982d26a4b8b79f1e93b77c

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-4593
SELECT + 68 + - col2 + 27 + 91 + - + col1 * col0 col1, CAST ( col2 AS INTEGER ) AS col0, + - 80 / + col1 AS col1 FROM tab1 cor0
----
9 values hashing to 9565586d5b982d26a4b8b79f1e93b77c

query I rowsort
SELECT DISTINCT - col2 * + - 61 + - col2 AS col2 FROM tab0 AS cor0
----
2820
5940
600

query II rowsort
SELECT col1 + - - col0 * 72 AS col2, - col1 AS col2 FROM tab1 AS cor0
----
3686
-14
6125
-5
6599
-47

query I rowsort
SELECT ALL - 92 * 88 + - - 7 * - 85 FROM tab1 AS cor0
----
-8691
-8691
-8691

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT - 15 + - COUNT( * ) + + + 99 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4597
SELECT - 15 + - COUNT ( * ) + + + 99 FROM tab0
----
81

query I rowsort
SELECT DISTINCT + 98 FROM tab2 WHERE NOT - col0 + + ( col1 ) * - - 61 <> col0 / col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col2 <> + + col0
----

query I rowsort
SELECT DISTINCT - + 56 FROM tab2 cor0
----
-56

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) <= - + col2 - - + 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT - - MIN( - col0 ) * 18 FROM tab2 AS cor0
----
-1350

skipif mysql # not compatible
query I rowsort label-4602
SELECT - - MIN ( - col0 ) * 18 FROM tab2 AS cor0
----
-1350

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT - + ( - + col0 ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 13 FROM tab2 AS cor0 WHERE NOT NULL IN ( col2, col1, col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4605
SELECT + CAST( ( - 57 ) AS SIGNED ) - - MAX( ALL col1 ) AS col0 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4605
SELECT + CAST ( ( - 57 ) AS INTEGER ) - - MAX ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + + 33 col2 FROM tab1 AS cor0
----
-18
-52
-58

query I rowsort
SELECT - 39 AS col1 FROM tab2 WHERE + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT - COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-4608
SELECT - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
-9

query I rowsort
SELECT - 87 * - col1 FROM tab1
----
1218
4089
435

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - 85 * + 57 col2 FROM tab2 AS cor0
----
-247095
-324615
-373065

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4611
SELECT ALL + - CAST( - - col2 AS SIGNED ) col1, - col2 AS col1 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4611
SELECT ALL + - CAST ( - - col2 AS INTEGER ) col1, - col2 AS col1 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4612
SELECT ALL col0 * + CAST( + col1 AS SIGNED ) + col0 FROM tab0 AS cor0
----
1230
1914
194

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL col0 * + CAST ( + col1 AS INTEGER ) + col0 FROM tab0 AS cor0
----
1230
1914
194

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT - 75 * - COUNT( * ) col0 FROM tab1 AS cor0
----
225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4613
SELECT - 75 * - COUNT ( * ) col0 FROM tab1 AS cor0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT - MIN( + 57 ) FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-4614
SELECT - MIN ( + 57 ) FROM tab1
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4615
SELECT - ( col2 ) * + 67 AS col1, CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
-3953
NULL
-4556
NULL
-6432
NULL

skipif mysql # not compatible
query II rowsort label-4615
SELECT - ( col2 ) * + 67 AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
-3953
NULL
-4556
NULL
-6432
NULL

query II rowsort
SELECT ALL + col2 * - + 31 + - col0 AS col2, - 63 + - 93 AS col2 FROM tab0 AS cor0
----
-1472
-156
-3166
-156
-397
-156

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 60 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + + 17 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
17
17
17

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT - 7 * - COUNT( * ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-4620
SELECT - 7 * - COUNT ( * ) FROM tab1
----
21

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > ( - 53 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE ( - col2 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4622
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE ( - col2 ) = NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4623
SELECT - col2 * + ( col1 DIV 75 ) AS col1 FROM tab0
----
-47
0
0

skipif mysql # not compatible
query I rowsort label-4623
SELECT - col2 * + ( col1 / 75 ) AS col1 FROM tab0
----
-47
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT + 97 * COUNT( * ) AS col2 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-4624
SELECT + 97 * COUNT ( * ) AS col2 FROM tab0
----
291

query I rowsort
SELECT ALL + ( + 27 ) FROM tab1 WHERE ( NULL ) IS NULL
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT - 86 * + COUNT( * ) AS col1 FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-4626
SELECT - 86 * + COUNT ( * ) AS col1 FROM tab2
----
-258

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 ) IN ( + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4628
SELECT 3 DIV 52 + col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4628
SELECT 3 / 52 + col0 FROM tab0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col0 * col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT COUNT( * ) FROM tab0 WHERE - col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4630
SELECT COUNT ( * ) FROM tab0 WHERE - col2 <> NULL
----
0

query I rowsort
SELECT DISTINCT - 6 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL ( col0 ) * ( col0 ) AS col0 FROM tab1
----
2601
7225
8281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4633
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 WHERE NOT ( col2 * + col2 ) = ( + CAST( NULL AS SIGNED ) - col2 * 45 )
----
0

skipif mysql # not compatible
query I rowsort label-4633
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( col2 * + col2 ) = ( + CAST ( NULL AS INTEGER ) - col2 * 45 )
----
0

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT col1 NOT BETWEEN ( col1 ) AND - col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 10 * col2 ) BETWEEN col2 AND 42
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 45 + - col2 AS col1 FROM tab1
----
-14
-23
-51

query I rowsort
SELECT DISTINCT + 2 * col0 AS col2 FROM tab2
----
128
150
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4638
SELECT CAST( - col0 AS SIGNED ) FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4638
SELECT CAST ( - col0 AS INTEGER ) FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT BETWEEN - col0 AND ( 36 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4640
SELECT - SUM( DISTINCT 62 ) DIV - SUM( DISTINCT col1 * col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4640
SELECT - SUM ( DISTINCT 62 ) / - SUM ( DISTINCT col1 * col0 ) FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 13 NOT BETWEEN col0 AND 71
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE - col2 + col0 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4643
SELECT DISTINCT COUNT( * ) DIV 25 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4643
SELECT DISTINCT COUNT ( * ) / 25 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - ( 22 ) AS col0 FROM tab2 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT MAX( - 68 ) + 36 AS col0 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-4645
SELECT MAX ( - 68 ) + 36 AS col0 FROM tab0 AS cor0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4646
SELECT ALL col2 + CAST( ( col0 ) - - col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( 85 ) NOT IN ( 52 )
----

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL col2 + CAST ( ( col0 ) - - col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( 85 ) NOT IN ( 52 )
----

query I rowsort
SELECT + 38 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # DIV for integer division: 
query I rowsort label-4648
SELECT DISTINCT - col0 DIV 68 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-4648
SELECT DISTINCT - col0 / 68 FROM tab1
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4649
SELECT ALL + 66 / - col2 FROM tab1 AS cor0 WHERE col0 + CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL + 66 / - col2 FROM tab1 AS cor0 WHERE col0 + CAST ( NULL AS INTEGER ) = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 * 72 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT + 43 IN ( 97 )
----
-15
-87
-97

query I rowsort
SELECT ALL - ( + 37 ) AS col1 FROM tab2 cor0
----
-37
-37
-37

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + ( + col2 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT + SUM( ALL col0 ) col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4654
SELECT + SUM ( ALL col0 ) col1 FROM tab1 AS cor0
----
227

query I rowsort
SELECT + + 51 * col1 FROM tab0 AS cor0
----
1071
4131
51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 + + col1 <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT DISTINCT MAX( col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4657
SELECT DISTINCT MAX ( col2 ) FROM tab1 AS cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 * + ( - col2 ) col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-322
-560
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT + COUNT( * ) * + 75 FROM tab0 cor0
----
225

skipif mysql # not compatible
query I rowsort label-4659
SELECT + COUNT ( * ) * + 75 FROM tab0 cor0
----
225

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 * - col2 AND ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 87 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col2 / + col1 + col0 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT DISTINCT + MIN( - col0 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4663
SELECT DISTINCT + MIN ( - col0 ) AS col0 FROM tab1
----
-91

query I rowsort
SELECT col2 + - col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) * col1 col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # DIV for integer division: 
query I rowsort label-4666
SELECT ALL + 46 + - col2 DIV 25 AS col2 FROM tab1 AS cor0
----
43
44
44

skipif mysql # not compatible
query I rowsort label-4666
SELECT ALL + 46 + - col2 / 25 AS col2 FROM tab1 AS cor0
----
43
44
44

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 88 NOT IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4668
SELECT ALL col2 * + CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL col2 * + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT - ( 67 ) FROM tab0 AS cor0 WHERE NOT - ( - col2 ) IS NULL
----
-67
-67
-67

query I rowsort
SELECT DISTINCT 2 + + col2 AS col0 FROM tab0 AS cor0
----
101
12
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT + - MIN( - 39 ) AS col2 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-4671
SELECT + - MIN ( - 39 ) AS col2 FROM tab2 AS cor0
----
39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4672
SELECT ALL + col1 + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL + col1 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 98 + col1 FROM tab0 cor0 WHERE ( 87 + 26 * + col0 ) IS NOT NULL
----
119
179
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT ALL + MIN( ALL - + col0 ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL + MIN ( ALL - + col0 ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-72

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 <= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4676
SELECT - 75 - + COUNT( * ) DIV - MIN( DISTINCT + col1 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-4676
SELECT - 75 - + COUNT ( * ) / - MIN ( DISTINCT + col1 ) FROM tab2
----
-75

query I rowsort
SELECT ALL - 21 + + 4 * - col2 AS col0 FROM tab2 AS cor0 WHERE NULL <> + col2
----

query I rowsort
SELECT ALL + 82 * col2 FROM tab2 cor0
----
1886
3280
4756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4679
SELECT + 43 + - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4679
SELECT + 43 + - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4680
SELECT col0 DIV - - ( + col0 ) + col2 AS col0 FROM tab1 AS cor0
----
60
69
97

skipif mysql # not compatible
query I rowsort label-4680
SELECT col0 / - - ( + col0 ) + col2 AS col0 FROM tab1 AS cor0
----
60
69
97

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 14 IN ( 42 )
----

query I rowsort
SELECT ALL + + col1 + - 49 + + ( 92 ) + col1 FROM tab0 AS cor0
----
205
45
85

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE + ( - col1 ) * + 10 > NULL
----

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE col1 IS NOT NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - + col2 * + - 38 + + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT + + COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND + 15
----
0

skipif mysql # not compatible
query I rowsort label-4686
SELECT + + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND + 15
----
0

query II rowsort
SELECT ALL + col0 - + col1 AS col2, - col0 AS col1 FROM tab0
----
-66
-15
66
-87
96
-97

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 - - col2 ) IN ( col1 )
----

query I rowsort
SELECT ALL 63 * - ( + + col1 ) AS col1 FROM tab2
----
-3213
-4221
-4851

onlyif mysql # DIV for integer division: 
query I rowsort label-4690
SELECT DISTINCT 81 DIV - col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT 81 / - col0 FROM tab1
----
-1
0

query III rowsort
SELECT * FROM tab1 WHERE + + 67 + col1 * + col0 IN ( + col2 )
----

query I rowsort
SELECT 94 * - col1 * + + col1 AS col1 FROM tab1
----
-18424
-207646
-2350

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( - col2 / - 80 IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT COUNT( * ) - COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4694
SELECT COUNT ( * ) - COUNT ( * ) FROM tab0 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 * - ( - - 46 ) * col1 + col1 col1 FROM tab2 AS cor0
----
-218127
-286559
-329329

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 ) <> col0
----

query I rowsort
SELECT col0 / - col0 + 22 AS col1 FROM tab2 WHERE NOT NULL IN ( col0 * + - col0 )
----

query I rowsort
SELECT + 95 AS col0 FROM tab1 AS cor0 WHERE NOT col0 * - + col1 IS NULL
----
95
95
95

query I rowsort
SELECT ALL + - col1 * - 47 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3807
47
987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4700
SELECT DISTINCT CAST( - - col2 AS SIGNED ) col1 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4700
SELECT DISTINCT CAST ( - - col2 AS INTEGER ) col1 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL - + 56 AS col2 FROM tab0 cor0 WHERE NULL <= + 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT DISTINCT + ( - COUNT( DISTINCT + col2 ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT + ( - COUNT ( DISTINCT + col2 ) ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT 60 * + col1 AS col0 FROM tab2
----
3060
4020
4620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4704
SELECT CAST( NULL AS SIGNED ) AS col1, - 56 * + MIN( col2 ) * + COUNT( * ) - - ( - 54 ) col0 FROM tab1
----
NULL
-9966

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4704
SELECT CAST ( NULL AS INTEGER ) AS col1, - 56 * + MIN ( col2 ) * + COUNT ( * ) - - ( - 54 ) col0 FROM tab1
----
NULL
-9966

query III rowsort
SELECT * FROM tab1 WHERE NOT 37 <= - col2 / - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col1 AS col0, + 13 + 44 AS col0 FROM tab0
----
1
57
21
57
81
57

query II rowsort
SELECT DISTINCT + col2 AS col1, 97 FROM tab1
----
59
97
68
97
96
97

query I rowsort
SELECT ALL 81 + + - col0 * col1 AS col1 FROM tab0
----
-1134
-16
-1746

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( + col1 - col0 - + + col0 ) AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT DISTINCT - MAX( ALL + + 91 ) AS col0 FROM tab0 WHERE 71 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT - MAX ( ALL + + 91 ) AS col0 FROM tab0 WHERE 71 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN 44 + - col2 AND NULL
----

query II rowsort
SELECT ALL 35 AS col1, col1 FROM tab0 AS cor0
----
35
1
35
21
35
81

query I rowsort
SELECT DISTINCT - col0 + 83 FROM tab0 AS cor0
----
-14
-4
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT DISTINCT - ( + 27 ) + - MAX( + 13 ) AS col0 FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-4714
SELECT DISTINCT - ( + 27 ) + - MAX ( + 13 ) AS col0 FROM tab2
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-4715
SELECT 23 + - - 49 + - + col1 DIV + 9 FROM tab2
----
64
65
67

skipif mysql # not compatible
query I rowsort label-4715
SELECT 23 + - - 49 + - + col1 / + 9 FROM tab2
----
64
65
67

query I rowsort
SELECT ALL col2 + 79 + + 18 AS col0 FROM tab1
----
156
165
193

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT - SUM( ALL - col2 ) * - - 59 + - COUNT( * ) FROM tab0
----
9201

skipif mysql # not compatible
query I rowsort label-4717
SELECT - SUM ( ALL - col2 ) * - - 59 + - COUNT ( * ) FROM tab0
----
9201

onlyif mysql # DIV for integer division: 
query I rowsort label-4718
SELECT + 53 DIV + col0 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4718
SELECT + 53 / + col0 AS col2 FROM tab2
----
0
0
1

query I rowsort
SELECT DISTINCT 35 * + col0 + + + col1 FROM tab2 AS cor0
----
1661
2317
2692

query I rowsort
SELECT + ( + col2 ) AS col1 FROM tab0 AS cor0 WHERE + 82 IS NULL
----

query I rowsort
SELECT + - col1 * - + 65 * - - 34 FROM tab0 AS cor0
----
179010
2210
46410

query I rowsort
SELECT ALL ( - + col1 ) FROM tab0 AS cor0 WHERE NULL = NULL
----

query II rowsort
SELECT ALL + - col1 + - col0 AS col2, col2 AS col0 FROM tab1 AS cor0
----
-138
68
-65
96
-90
59

query I rowsort
SELECT col2 - + 38 FROM tab1
----
21
30
58

query I rowsort
SELECT + 26 - + col1 AS col2 FROM tab1
----
-21
12
21

query I rowsort
SELECT - ( + col2 ) FROM tab2 WHERE NULL NOT IN ( - - 60 + - + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4727
SELECT DISTINCT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4727
SELECT DISTINCT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 16 * + - ( - - col0 ) - + 84 ) >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col1, col0 * + + col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
2346
-40
4928
-58
5025

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4730
SELECT ALL + col1 * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL + col1 * + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4731
SELECT - 67 * col1 DIV 58 DIV col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4731
SELECT - 67 * col1 / 58 / col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL 9 + - 11 AS col2 FROM tab0 AS cor0 WHERE NOT col0 + - ( - col0 ) < - ( - - col1 ) - + col2
----
-2
-2
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4733
SELECT DISTINCT col2 DIV - + col0 AS col1 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4733
SELECT DISTINCT col2 / - + col0 AS col1 FROM tab0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT - + MAX( - - 70 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4734
SELECT - + MAX ( - - 70 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

query I rowsort
SELECT ALL 18 + + col0 AS col2 FROM tab1 AS cor0
----
103
109
69

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) NOT IN ( + col1 )
----

query I rowsort
SELECT DISTINCT - col1 + - 91 * - col0 * - col1 * 74 FROM tab0 AS cor0
----
-12303039
-653199
-8181891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 99 * + col1 + + + 48 - - col1 + + col1 + + + col1 * - col1 + - col2 + + + col2 + - col2 * col0 * col2 col2 FROM tab0 AS cor0
----
-11130
-47505
-950747

onlyif mysql # DIV for integer division: 
query I rowsort label-4739
SELECT DISTINCT 91 DIV col2 * - - col2 * + col2 FROM tab1
----
0
3481
4624

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT 91 / col2 * - - col2 * + col2 FROM tab1
----
0
3481
4624

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT SUM( + 81 ) + - 72 + COUNT( * ) AS col0 FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-4740
SELECT SUM ( + 81 ) + - 72 + COUNT ( * ) AS col0 FROM tab0
----
174

onlyif mysql # DIV for integer division: 
query I rowsort label-4741
SELECT DISTINCT + col0 DIV - + 56 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT + col0 / - + 56 FROM tab2
----
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4742
SELECT DISTINCT 38 AS col0, COUNT( * ) AS col2 FROM tab1
----
38
3

skipif mysql # not compatible
query II rowsort label-4742
SELECT DISTINCT 38 AS col0, COUNT ( * ) AS col2 FROM tab1
----
38
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 95 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 + col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, col0 AS col1 FROM tab1
----
-51
51
-85
85
-91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col2 * col0 * + col1 col2 FROM tab2 AS cor0
----
197056
291375
53912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + - + 22 + + col1 * col0 col0 FROM tab1 AS cor0
----
4346
488
743

query I rowsort
SELECT DISTINCT - 89 - col0 - + - ( 12 ) FROM tab0 AS cor0
----
-164
-174
-92

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 AS cor0 WHERE ( NOT NULL > - ( + ( col1 ) ) )
----

query III rowsort
SELECT * FROM tab2 WHERE + ( + - 27 ) + - col2 + + 21 IN ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 71 IN ( col1, 13 * - col0 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT ALL + SUM( - col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL + SUM ( - col1 ) FROM tab2 AS cor0
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-4753
SELECT col1 DIV - + col1 + + col1 AS col2 FROM tab2 AS cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-4753
SELECT col1 / - + col1 + + col1 AS col2 FROM tab2 AS cor0
----
50
66
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4754
SELECT + - 97 * - CAST( col0 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
1440
8352
9312

skipif mysql # not compatible
query I rowsort label-4754
SELECT + - 97 * - CAST ( col0 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
1440
8352
9312

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * - - col2 >= NULL
----

query I rowsort
SELECT DISTINCT + + 64 - + 30 + - - col0 FROM tab1 AS cor0
----
119
125
85

onlyif mysql # DIV for integer division: 
query I rowsort label-4757
SELECT 38 DIV 58 * - + col0 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4757
SELECT 38 / 58 * - + col0 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL 15 * - + col2 AS col2 FROM tab0
----
-1485
-150
-705

onlyif mysql # aggregate syntax: 
query II rowsort label-4759
SELECT COUNT( ALL - col0 ), + COUNT( - - 90 ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-4759
SELECT COUNT ( ALL - col0 ), + COUNT ( - - 90 ) FROM tab2
----
3
3

query I rowsort
SELECT DISTINCT + - 70 + - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - ( - 67 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT ALL COUNT( * ) * MIN( ALL + ( - col1 ) ) AS col0 FROM tab1 cor0
----
-141

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL COUNT ( * ) * MIN ( ALL + ( - col1 ) ) AS col0 FROM tab1 cor0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT DISTINCT - COUNT( * ) * - 93 + + 50 AS col2 FROM tab0 cor0
----
329

skipif mysql # not compatible
query I rowsort label-4762
SELECT DISTINCT - COUNT ( * ) * - 93 + + 50 AS col2 FROM tab0 cor0
----
329

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4763
SELECT + col1 AS col0 FROM tab0 WHERE NOT + 28 + col2 BETWEEN + CAST( 52 AS SIGNED ) + + - 36 + + 33 + - col2 * - 98 + - col1 AND NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4763
SELECT + col1 AS col0 FROM tab0 WHERE NOT + 28 + col2 BETWEEN + CAST ( 52 AS INTEGER ) + + - 36 + + 33 + - col2 * - 98 + - col1 AND NULL
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4764
SELECT - ( + - MIN( DISTINCT CAST( NULL AS SIGNED ) ) ) + - SUM( - + ( + 44 ) ) * + COUNT( * ) + - 2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4764
SELECT - ( + - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) ) + - SUM ( - + ( + 44 ) ) * + COUNT ( * ) + - 2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT - - col0 FROM tab2 WHERE NOT + col0 / - - 96 + - + 23 / - 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT DISTINCT + ( - SUM( - 70 ) ) AS col0 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-4766
SELECT DISTINCT + ( - SUM ( - 70 ) ) AS col0 FROM tab0
----
210

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 ) IN ( - 33 - col1 * - + col0 )
----

query I rowsort
SELECT - 5 + - - 12 AS col0 FROM tab1 cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT DISTINCT 72 * - COUNT( * ) AS col1 FROM tab1 cor0
----
-216

skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT 72 * - COUNT ( * ) AS col1 FROM tab1 cor0
----
-216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4770
SELECT + CAST( NULL AS SIGNED ) + + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4770
SELECT + CAST ( NULL AS INTEGER ) + + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + + + 1 FROM tab2 cor0
----
24
41
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + + col0 BETWEEN - col1 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 20 + + col0 col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT DISTINCT 61 + - COUNT( + - col0 ) AS col2 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-4774
SELECT DISTINCT 61 + - COUNT ( + - col0 ) AS col2 FROM tab1
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4775
SELECT ( - col2 ) * + + col0 * + col2 + 83 + - 77 * 17 DIV col0 + col1 AS col2 FROM tab1
----
-295812
-420668
-469944

skipif mysql # not compatible
query I rowsort label-4775
SELECT ( - col2 ) * + + col0 * + col2 + 83 + - 77 * 17 / col0 + col1 AS col2 FROM tab1
----
-295812
-420668
-469944

query II rowsort
SELECT ALL - 2 * col0 * + 76 - - + ( - - 40 ), + 15 * + col1 * - col2 + - col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 16 col2 FROM tab1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4778
SELECT + col1 * ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4778
SELECT + col1 * ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * col0 * + + col0 FROM tab0
----
-3375
-658503
-912673

query I rowsort
SELECT - col0 + + 71 AS col1 FROM tab1 AS cor0
----
-14
-20
20

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 46 + - 97 col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5d22e9b37e9805edddb9e73cd1fddaac

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4783
SELECT ALL - ( + AVG ( DISTINCT - - 95 ) ) / CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL - ( + AVG ( DISTINCT - - 95 ) ) / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT + col0 * col1 + - col1 AS col1 FROM tab0 cor0
----
1134
1806
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT ALL MAX( ALL col1 ) col2 FROM tab0 cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4785
SELECT ALL MAX ( ALL col1 ) col2 FROM tab0 cor0
----
81

query I rowsort
SELECT ALL + - col1 * - - 72 - + + col1 AS col1 FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN 52 AND - + 10
----
-1022
-3431
-365

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT + 63 * - 10 + - + COUNT( * ) + - 94 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-351

skipif mysql # not compatible
query I rowsort label-4787
SELECT + 63 * - 10 + - + COUNT ( * ) + - 94 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-351

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT + SUM( + - 50 ) AS col0 FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-4788
SELECT + SUM ( + - 50 ) AS col0 FROM tab0 AS cor0
----
-150

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 <> + - col2
----

query II rowsort
SELECT ALL - col1 AS col1, col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query IIIIII rowsort
SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL NOT IN ( 58 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4792
SELECT CAST( NULL AS SIGNED ) + col0 * col2 col0 FROM tab0 WHERE NOT - col0 + - 4 + + + col0 + + + 18 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4792
SELECT CAST ( NULL AS INTEGER ) + col0 * col2 col0 FROM tab0 WHERE NOT - col0 + - 4 + + + col0 + + + 18 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 85 AS col1 FROM tab2 WHERE NOT ( - - col0 ) IS NULL
----
85
85
85

query I rowsort
SELECT ALL + col1 + - 49 FROM tab2 AS cor0
----
18
2
28

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 41 + + col2 + - 5 = - col0
----

query I rowsort
SELECT ALL + + col0 + - 74 + + col0 + + 76 FROM tab1 AS cor0
----
104
172
184

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT ALL - - COUNT( * ) * + + 48 * + 26 * + 77 * + 52 FROM tab2 AS cor0
----
14990976

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL - - COUNT ( * ) * + + 48 * + 26 * + 77 * + 52 FROM tab2 AS cor0
----
14990976

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT - COUNT( * ) * - 91 * + COUNT( * ) col2 FROM tab2 AS cor0
----
819

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4798
SELECT - COUNT ( * ) * - 91 * + COUNT ( * ) col2 FROM tab2 AS cor0
----
819

query I rowsort
SELECT - col0 - - col0 AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col2 * - + col2 AS col1, - 82 FROM tab2 AS cor0
----
-1600
-82
-3364
-82
-529
-82

query I rowsort
SELECT ALL - 73 + col1 * 99 AS col0 FROM tab0 AS cor0
----
2006
26
7946

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 + 36 col1 FROM tab0 AS cor0
----
36
36
36

query II rowsort
SELECT DISTINCT 51 AS col1, col1 AS col2 FROM tab2
----
51
51
51
67
51
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 83 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( NOT NULL NOT IN ( 60, 97 + + col2 ) ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4806
SELECT col0 col2, 42 DIV + ( + 45 ) * + col0 FROM tab2 cor0
----
46
0
64
0
75
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4806
SELECT col0 col2, 42 / + ( + 45 ) * + col0 FROM tab2 cor0
----
46
0
64
0
75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT - MAX( - - col2 ) AS col0 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4807
SELECT - MAX ( - - col2 ) AS col0 FROM tab1 cor0
----
-96

query I rowsort
SELECT ALL col2 + 10 FROM tab1 AS cor0
----
106
69
78

query I rowsort
SELECT ALL + 40 * + 70 + + ( 12 ) * 52 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 4816714e5fa5b4fe3417b821651a7f91

query I rowsort
SELECT - 74 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

onlyif mysql # DIV for integer division: 
query I rowsort label-4811
SELECT ALL + col1 DIV + - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL + col1 / + - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( + 9 ) > - 17 )
----

query I rowsort
SELECT ALL 34 FROM tab0 AS cor0 WHERE NOT ( - col0 ) >= NULL
----

query I rowsort
SELECT - ( + 97 ) * - + col2 FROM tab1 AS cor0
----
5723
6596
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT + COUNT( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4815
SELECT + COUNT ( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4816
SELECT ALL CAST( + 3 AS SIGNED ) + + COUNT( * ) + - 17 AS col0 FROM tab0 WHERE NOT NULL <> - - col2
----
-14

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL CAST ( + 3 AS INTEGER ) + + COUNT ( * ) + - 17 AS col0 FROM tab0 WHERE NOT NULL <> - - col2
----
-14

query I rowsort
SELECT DISTINCT col2 * + + col1 AS col2 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT - MIN( + 88 ) AS col0 FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-4818
SELECT - MIN ( + 88 ) AS col0 FROM tab0
----
-88

query II rowsort
SELECT col2, ( ( 55 ) ) FROM tab0
----
10
55
47
55
99
55

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) >= ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - - col1 - col0 - + col0 * - col2 * - + 52 * col1, + 98 + + + col2, - col1 + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4822
SELECT DISTINCT * FROM tab0 WHERE NOT - - col2 + - - col0 + - 78 + + CAST( NULL AS SIGNED ) + - col1 NOT BETWEEN ( + + 95 / 51 ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4822
SELECT DISTINCT * FROM tab0 WHERE NOT - - col2 + - - col0 + - 78 + + CAST ( NULL AS INTEGER ) + - col1 NOT BETWEEN ( + + 95 / 51 ) AND ( NULL )
----

query I rowsort
SELECT - 83 + - col1 + + - col2 FROM tab1
----
-147
-193
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT DISTINCT + COUNT( ALL + - 52 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4824
SELECT DISTINCT + COUNT ( ALL + - 52 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT + col1 + + col0 + + - col0 AS col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL + col1 + 27 AS col1 FROM tab1 cor0
----
32
41
74

query I rowsort
SELECT ALL - 66 + + 67 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 74 col2 FROM tab2 AS cor0
----
74
74
74

query I rowsort
SELECT DISTINCT - col2 * + col0 + 14 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 / + - 40 IS NULL
----
-1044
-2546
-4336

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT - COUNT( - + 70 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4830
SELECT - COUNT ( - + 70 ) FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4831
SELECT ALL 81 + + col2 DIV 79 AS col1 FROM tab2
----
81
81
81

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL 81 + + col2 / 79 AS col1 FROM tab2
----
81
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4832
SELECT DISTINCT ( 67 ) * + 28 + + - col2 + - - col0 / 42 * CAST( NULL AS SIGNED ) * col2 * + - 54 * - col1 - + col2 + - col1 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4832
SELECT DISTINCT ( 67 ) * + 28 + + - col2 + - - col0 / 42 * CAST ( NULL AS INTEGER ) * col2 * + - 54 * - col1 - + col2 + - col1 AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT MIN( - 58 ) - + ( - - MIN( DISTINCT col0 ) ) * - COUNT( * ) AS col2 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-4833
SELECT MIN ( - 58 ) - + ( - - MIN ( DISTINCT col0 ) ) * - COUNT ( * ) AS col2 FROM tab0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT ALL - 81 * - 93 - + + MAX( + col1 ) AS col1 FROM tab0
----
7452

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL - 81 * - 93 - + + MAX ( + col1 ) AS col1 FROM tab0
----
7452

query I rowsort
SELECT DISTINCT - 94 * 14 FROM tab0
----
-1316

query I rowsort
SELECT 94 FROM tab2 WHERE col1 >= - col0 + col1 + + 30
----
94
94
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 WHERE ( NULL ) IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE ( NOT - + col2 <= - + col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-4838
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NOT - + col2 <= - + col1 )
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4839
SELECT ALL - - 57 DIV 59 AS col1, - COUNT( ALL + col1 ) FROM tab2 cor0
----
0
-3

skipif mysql # not compatible
query II rowsort label-4839
SELECT ALL - - 57 / 59 AS col1, - COUNT ( ALL + col1 ) FROM tab2 cor0
----
0
-3

query I rowsort
SELECT col1 + 5 FROM tab1 cor0
----
10
19
52

query II rowsort
SELECT ALL + 40 + + col2 AS col2, + col0 AS col1 FROM tab0 AS cor0
----
139
97
50
87
87
15

query I rowsort
SELECT DISTINCT - col1 + 62 AS col0 FROM tab2 AS cor0
----
-15
-5
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4843
SELECT COUNT( * ) DIV + - 32 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4843
SELECT COUNT ( * ) / + - 32 AS col0 FROM tab2
----
0

query II rowsort
SELECT 58, + 98 AS col2 FROM tab0
----
58
98
58
98
58
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4845
SELECT + CAST( NULL AS SIGNED ) * - 13 AS col1 FROM tab0 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-4845
SELECT + CAST ( NULL AS INTEGER ) * - 13 AS col1 FROM tab0 WHERE NULL >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - 38 ) * 45 IS NULL
----

query I rowsort
SELECT + + col2 * - 51 * - col1 AS col0 FROM tab2 AS cor0
----
157080
198186
59823

query II rowsort
SELECT DISTINCT + col1 AS col1, + 72 FROM tab1 AS cor0
----
14
72
47
72
5
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT ALL + 8 * + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col1 + col1 >= + col0
----
16

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL + 8 * + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col1 + col1 >= + col0
----
16

query II rowsort
SELECT DISTINCT - col1, col2 + - 24 * - + ( + 44 ) + col1 + + 15 AS col0 FROM tab0 cor0
----
-1
1171
-21
1102
-81
1199

query I rowsort
SELECT col0 * - col1 * - col2 * - - col2 FROM tab2 AS cor0
----
1241034
16904100
7884800

query I rowsort
SELECT + - col2 * - col0 - - 79 FROM tab0 AS cor0
----
784
949
9682

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT - MAX( DISTINCT + 41 ) FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-4853
SELECT - MAX ( DISTINCT + 41 ) FROM tab1
----
-41

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + 45 - - col1 * 84 / - col2 >= NULL
----

query I rowsort
SELECT DISTINCT + col2 * + 13 * + + 1 FROM tab2
----
299
520
754

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( NULL ) >= NULL )
----

query I rowsort
SELECT ALL 72 * + + 38 FROM tab1
----
2736
2736
2736

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT 3 IS NULL )
----

query I rowsort
SELECT - 58 FROM tab1 WHERE NOT 83 + ( + 54 ) / + + col1 + - 19 IS NULL
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT DISTINCT ( COUNT( - - col2 ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4860
SELECT DISTINCT ( COUNT ( - - col2 ) ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 26 * + - 44 * - col2 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-109824
-67496
-77792

query II rowsort
SELECT ALL - + 49 AS col2, - 47 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 770929335199358f1f27dd77ae9752d4

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT COUNT( * ) + + 43 col1 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4863
SELECT COUNT ( * ) + + 43 col1 FROM tab1 AS cor0
----
46

query I rowsort
SELECT - col0 + + col2 FROM tab1 AS cor0 WHERE - 78 * col2 = + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + ( + col2 ) * + col1 col0 FROM tab0 AS cor0
----
123
2
3792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4866
SELECT ALL + col2 * + CAST( NULL AS SIGNED ) * col2 * - - col0 * - 0 + - 84 / + col0 + - 40 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) * col2 * - - col0 * - 0 + - 84 / + col0 + - 40 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE - 45 IS NULL
----

query I rowsort
SELECT - col1 + + 74 FROM tab1 AS cor0
----
27
60
69

query I rowsort
SELECT DISTINCT + + col1 + - ( 43 ) FROM tab1 AS cor0
----
-29
-38
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 30 col1 FROM tab0
----
-15
57
67

query I rowsort
SELECT ALL 90 - - col2 + + 33 * col1 * col2 AS col0 FROM tab2
----
101770
128386
38822

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4872
SELECT ALL * FROM tab2 WHERE - col0 + - 12 IS NULL OR NULL < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4872
SELECT ALL * FROM tab2 WHERE - col0 + - 12 IS NULL OR NULL < + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col1 + + ( col2 ) + 91 FROM tab2
----
165
208
216

query I rowsort
SELECT + col0 * col2 * + col0 * col2 * + + col1 FROM tab0
----
15894900
40259025
92217609

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT + 38 + COUNT( + col2 ) + MIN( ALL + col1 ) - - COUNT( * ) + - 99 FROM tab1 WHERE NULL IS NULL
----
-50

skipif mysql # not compatible
query I rowsort label-4875
SELECT + 38 + COUNT ( + col2 ) + MIN ( ALL + col1 ) - - COUNT ( * ) + - 99 FROM tab1 WHERE NULL IS NULL
----
-50

query I rowsort
SELECT DISTINCT + - 60 AS col1 FROM tab2 AS cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4877
SELECT - - CAST( NULL AS SIGNED ) * col0 - + col2 - 38 + - 9 / col2 * + col1 / + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT - - CAST ( NULL AS INTEGER ) * col0 - + col2 - 38 + - 9 / col2 * + col1 / + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 - - col0 + + 34 col0 FROM tab1 cor0
----
41
75
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE + - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4879
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE + - col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT + col1 * - + col0 AS col2 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-4881
SELECT ALL + 61 DIV 29 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL + 61 / 29 FROM tab2
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4882
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4882
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT ALL + - col1 * - col0 AS col2, + 17 FROM tab2 AS cor0
----
2346
17
4928
17
5025
17

query I rowsort
SELECT - col2 * - col0 + + + col2 AS col2 FROM tab1 AS cor0
----
4992
5074
6256

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT + + MIN( DISTINCT - col1 ) * + 31 AS col2 FROM tab0 AS cor0
----
-2511

skipif mysql # not compatible
query I rowsort label-4885
SELECT + + MIN ( DISTINCT - col1 ) * + 31 AS col2 FROM tab0 AS cor0
----
-2511

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT DISTINCT + 4 * MAX( ALL + col2 ) FROM tab0 AS cor0
----
396

skipif mysql # not compatible
query I rowsort label-4886
SELECT DISTINCT + 4 * MAX ( ALL + col2 ) FROM tab0 AS cor0
----
396

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4887
SELECT + - CAST( NULL AS SIGNED ) * - - ( col1 ) AS col1, col0 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-4887
SELECT + - CAST ( NULL AS INTEGER ) * - - ( col1 ) AS col1, col0 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT ALL 64 AS col0 FROM tab1 cor0
----
64
64
64

query I rowsort
SELECT + 7 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 >= - - 57
----
51
14
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4891
SELECT 50 / - COUNT( * ) * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4891
SELECT 50 / - COUNT ( * ) * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4892
SELECT ALL 29 DIV - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL 29 / - COUNT ( * ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT + 49 * + - COUNT( * ) FROM tab2
----
-147

skipif mysql # not compatible
query I rowsort label-4893
SELECT + 49 * + - COUNT ( * ) FROM tab2
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4894
SELECT - col2 AS col2, CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-4894
SELECT - col2 AS col2, CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4895
SELECT 99 DIV - col2 AS col1 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-4895
SELECT 99 / - col2 AS col1 FROM tab2
----
-1
-2
-4

query I rowsort
SELECT ALL 15 + - 71 + + col2 AS col0 FROM tab1
----
12
3
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT ALL ( - + 61 ) + + - 24 - + - COUNT( * ) FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL ( - + 61 ) + + - 24 - + - COUNT ( * ) FROM tab0 AS cor0
----
-82

query I rowsort
SELECT - col1 + + - 20 AS col2 FROM tab0 AS cor0
----
-101
-21
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4899
SELECT DISTINCT 86 * - col2 * + 86 / - 78 + - + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4899
SELECT DISTINCT 86 * - col2 * + 86 / - 78 + - + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT ALL 81 + 23 + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
113

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL 81 + 23 + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 98 col2 FROM tab2 cor0
----
-98
-98
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4902
SELECT DISTINCT + + col1 + - col1, CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4902
SELECT DISTINCT + + col1 + - col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT DISTINCT - - SUM( ALL col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4903
SELECT DISTINCT - - SUM ( ALL col1 ) AS col0 FROM tab1 AS cor0
----
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 69 > NULL
----

query I rowsort
SELECT DISTINCT - - 4 * - col2 - col1 * + 0 FROM tab2 AS cor0
----
-160
-232
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT - COUNT( * ) - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4906
SELECT - COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT + 69 - COUNT( + + col2 ) + - COUNT( * ) AS col0 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-4907
SELECT + 69 - COUNT ( + + col2 ) + - COUNT ( * ) AS col0 FROM tab0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT + + COUNT( * ) AS col2 FROM tab0 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4908
SELECT + + COUNT ( * ) AS col2 FROM tab0 WHERE col2 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT MIN( 7 ) + + + COUNT( * ) + + 2 AS col1 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-4909
SELECT MIN ( 7 ) + + + COUNT ( * ) + + 2 AS col1 FROM tab1
----
12

query I rowsort
SELECT + 53 + + - col1 FROM tab0
----
-28
32
52

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN ( col2 ) AND col1
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - - col2 + + + ( 36 ) col0 FROM tab1 AS cor0
----
4932
5051
6224

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT DISTINCT ( + MIN( + col0 ) ) col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4913
SELECT DISTINCT ( + MIN ( + col0 ) ) col2 FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL + 72 AS col0 FROM tab1 cor0
----
72
72
72

onlyif mysql # aggregate syntax: 
query II rowsort label-4915
SELECT DISTINCT + 7 AS col2, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
7
-3

skipif mysql # not compatible
query II rowsort label-4915
SELECT DISTINCT + 7 AS col2, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
7
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT col1, col0 col0, + col1 FROM tab0
----
9 values hashing to 3e61e0cb76f22a0c9aa0bf645cb73bb2

query I rowsort
SELECT DISTINCT - + 6 AS col0 FROM tab2 cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 - - col1 + + 33 BETWEEN - col0 AND ( col2 * - col1 * + col2 * ( + + 85 ) / col0 )
----
3

skipif mysql # not compatible
query I rowsort label-4918
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 - - col1 + + 33 BETWEEN - col0 AND ( col2 * - col1 * + col2 * ( + + 85 ) / col0 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT DISTINCT ( + - ( + COUNT( * ) ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT ( + - ( + COUNT ( * ) ) ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-4920
SELECT - col2, - col0 DIV + 18 AS col0 FROM tab2 AS cor0
----
-23
-2
-40
-3
-58
-4

skipif mysql # not compatible
query II rowsort label-4920
SELECT - col2, - col0 / + 18 AS col0 FROM tab2 AS cor0
----
-23
-2
-40
-3
-58
-4

query I rowsort
SELECT 92 * + + 27 FROM tab2 AS cor0
----
2484
2484
2484

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4922
SELECT + 64 * - + CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
2944
4096
4800

skipif mysql # not compatible
query I rowsort label-4922
SELECT + 64 * - + CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
2944
4096
4800

query I rowsort
SELECT - col0 * - + col1 + + 27 * + + 72 + col0 FROM tab2 AS cor0
----
4336
6936
7044

query I rowsort
SELECT col2 + - + 94 FROM tab2
----
-36
-54
-71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4925
SELECT - ( + col2 ) + - CAST( NULL AS DECIMAL ) * 45 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4925
SELECT - ( + col2 ) + - CAST ( NULL AS REAL ) * 45 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 17 = col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT ALL - COUNT( * ) * + - COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4927
SELECT ALL - COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab0
----
9

query I rowsort
SELECT + col0 + + ( + 13 ) AS col1 FROM tab0
----
100
110
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT DISTINCT - COUNT( ALL + - col2 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT - COUNT ( ALL + - col2 ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT COUNT( + 76 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4931
SELECT COUNT ( + 76 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT SUM( + ( - + 51 ) ) AS col1 FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-4932
SELECT SUM ( + ( - + 51 ) ) AS col1 FROM tab2
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT DISTINCT - COUNT( * ) * - - 4 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-4933
SELECT DISTINCT - COUNT ( * ) * - - 4 FROM tab1 AS cor0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-4934
SELECT - col0 + - col2 DIV + - col2 AS col2 FROM tab0 AS cor0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-4934
SELECT - col0 + - col2 / + - col2 AS col2 FROM tab0 AS cor0
----
-14
-86
-96

query I rowsort
SELECT ALL - ( - 47 ) * + col2 FROM tab0 AS cor0
----
2209
4653
470

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4936
SELECT col1 * + CAST( 25 AS SIGNED ) + + 66 + + + col1 DIV + - col0, 44 AS col2 FROM tab1 AS cor0
----
1241
44
191
44
416
44

skipif mysql # not compatible
query II rowsort label-4936
SELECT col1 * + CAST ( 25 AS INTEGER ) + + 66 + + + col1 / + - col0, 44 AS col2 FROM tab1 AS cor0
----
1241
44
191
44
416
44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4937
SELECT - CAST( - col2 AS SIGNED ) + - - col2 + 31 * 84 DIV + 79, - col0 col1 FROM tab1 AS cor0
----
150
-85
168
-91
224
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4937
SELECT - CAST ( - col2 AS INTEGER ) + - - col2 + 31 * 84 / + 79, - col0 col1 FROM tab1 AS cor0
----
150
-85
168
-91
224
-51

query I rowsort
SELECT col1 + 36 + + + col0 + - col2 AS col0 FROM tab2 AS cor0
----
110
120
137

query I rowsort
SELECT DISTINCT + col0 + + ( - + col0 ) AS col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - 75 col1 FROM tab1
----
-24
10
16

query I rowsort
SELECT DISTINCT col1 + 33 FROM tab2
----
100
110
84

query II rowsort
SELECT DISTINCT + ( - col0 ) AS col2, col2 AS col1 FROM tab0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT + 5 FROM tab1 AS cor0 WHERE NOT ( + - col0 IS NULL )
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT MAX( DISTINCT + col0 ) AS col2 FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-4944
SELECT MAX ( DISTINCT + col0 ) AS col2 FROM tab1 cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT DISTINCT - + SUM( DISTINCT - ( + 84 ) ) FROM tab1 cor0
----
84

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT - + SUM ( DISTINCT - ( + 84 ) ) FROM tab1 cor0
----
84

query I rowsort
SELECT DISTINCT + - 97 * + 40 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-3880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4947
SELECT SUM( ALL + + CAST( + + 59 AS SIGNED ) ) FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-4947
SELECT SUM ( ALL + + CAST ( + + 59 AS INTEGER ) ) FROM tab0
----
177

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( 54 ) NOT IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col2 * 26 AS col2 FROM tab1 cor0 WHERE NOT - 12 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 66 + + + col2 FROM tab1 AS cor0
----
125
134
162

query I rowsort
SELECT 51 * - col2 + - col2 + + ( + col0 ) - - col2 * + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN + 32 AND + ( + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4953
SELECT DISTINCT - 47 / ( + + CAST( NULL AS SIGNED ) ) + + - 45 FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4953
SELECT DISTINCT - 47 / ( + + CAST ( NULL AS INTEGER ) ) + + - 45 FROM tab1, tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4954
SELECT + COUNT( - + CAST( + col2 AS SIGNED ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4954
SELECT + COUNT ( - + CAST ( + col2 AS INTEGER ) ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4955
SELECT + 8 DIV + - col1 * + col1 FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-4955
SELECT + 8 / + - col1 * + col1 FROM tab0
----
-8
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT ALL + MIN( ALL - ( col1 ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL + MIN ( ALL - ( col1 ) ) FROM tab0
----
-81

query I rowsort
SELECT ALL + col2 * - 46 * col2 * + col2 AS col1 FROM tab2
----
-2944000
-559682
-8975152

onlyif mysql # DIV for integer division: 
query I rowsort label-4958
SELECT DISTINCT - 50 + - ( col2 ) DIV - col2 AS col2 FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-4958
SELECT DISTINCT - 50 + - ( col2 ) / - col2 AS col2 FROM tab1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT + MAX( 57 ) AS col1 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-4959
SELECT + MAX ( 57 ) AS col1 FROM tab1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4960
SELECT + - CAST( 53 AS SIGNED ) * + col0 - col0 + col2 + - ( + col0 ) AS col1 FROM tab2 AS cor0
----
-2507
-3480
-4067

skipif mysql # not compatible
query I rowsort label-4960
SELECT + - CAST ( 53 AS INTEGER ) * + col0 - col0 + col2 + - ( + col0 ) AS col1 FROM tab2 AS cor0
----
-2507
-3480
-4067

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 24 * + col0 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * 51 * + col0 AS col0 FROM tab1 cor0
----
21675
218127
36414

query I rowsort
SELECT - 84 * col1 + + - col0 AS col1 FROM tab1
----
-1227
-4039
-505

onlyif mysql # DIV for integer division: 
query I rowsort label-4964
SELECT 98 DIV + 45 + - col0 col2 FROM tab0
----
-13
-85
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4964
SELECT 98 / + 45 + - col0 col2 FROM tab0
----
-13
-85
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT SUM( + 54 ) * 6 FROM tab2
----
972

skipif mysql # not compatible
query I rowsort label-4965
SELECT SUM ( + 54 ) * 6 FROM tab2
----
972

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NOT NULL = - 32 )
----

query II rowsort
SELECT DISTINCT + col0 + - col0 AS col1, + col0 + + 56 * + 85 * - 21 AS col2 FROM tab1 cor0
----
0
-99869
0
-99875
0
-99909

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( - col2 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT ( + + col2 IS NULL )
----
23
40
58

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + + ( - col2 ) AND 44
----

query I rowsort
SELECT - 23 - - 76 FROM tab1 AS cor0
----
53
53
53

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT - col0 NOT IN ( - 87 * + col0, - 19 * + 33 + - + 77, + 29, ( - - col1 ) )
----

query I rowsort
SELECT col1 * - 74 * - - col0 AS col0 FROM tab2 cor0 WHERE col0 + - col0 IS NOT NULL
----
-173604
-364672
-371850

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL < NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 18 - - + col1 col0 FROM tab2 AS cor0
----
33
49
59

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 + 45 <> ( + col0 )
----

query II rowsort
SELECT - col1 AS col1, + col1 * - 45 AS col2 FROM tab1
----
-14
-630
-47
-2115
-5
-225

query I rowsort
SELECT ALL col1 * + 18 AS col2 FROM tab2
----
1206
1386
918

query I rowsort
SELECT ALL - 87 * + - col1 * col1 + - + col2 AS col0 FROM tab1 WHERE + ( - col0 ) + - - ( + 69 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4980
SELECT ALL - CAST( NULL AS SIGNED ) * - ( + - CAST( NULL AS SIGNED ) ) * + col0 + - CAST( - CAST( 75 AS SIGNED ) AS SIGNED ) + + 99 col1 FROM tab1 WHERE + + col0 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4980
SELECT ALL - CAST ( NULL AS INTEGER ) * - ( + - CAST ( NULL AS INTEGER ) ) * + col0 + - CAST ( - CAST ( 75 AS INTEGER ) AS INTEGER ) + + 99 col1 FROM tab1 WHERE + + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) * + col0 col0 FROM tab0 WHERE NOT NULL <= + + col1 + + 11 * - 8
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( col0, col1 * - - col2, + + ( col1 ), ( + + col1 ) / - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col0 * col2 * col0 FROM tab2 cor0
----
-163840
-326250
-48668

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT + 44 * COUNT( * ) * - MIN( 80 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-31680

skipif mysql # not compatible
query I rowsort label-4984
SELECT + 44 * COUNT ( * ) * - MIN ( 80 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-31680

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - col1 AND - + 47
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 56 * + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 65 IS NULL
----

query I rowsort
SELECT DISTINCT - + 74 + + col0 FROM tab2 AS cor0
----
-10
-28
1

query I rowsort
SELECT DISTINCT - - 61 AS col1 FROM tab1 cor0 WHERE NOT col2 = col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT + MIN( DISTINCT ( - 46 ) ) AS col0 FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4990
SELECT + MIN ( DISTINCT ( - 46 ) ) AS col0 FROM tab0 AS cor0
----
-46

query I rowsort
SELECT ALL col2 * - 41 + col0 + - - 91 AS col1 FROM tab2 AS cor0
----
-1485
-2212
-806

query II rowsort
SELECT + + col0 + + 77 AS col2, 12 + - col2 FROM tab1 AS cor0
----
128
-84
162
-47
168
-56

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL = ( col2 )
----

query II rowsort
SELECT + + col0 + + - col2 AS col2, col2 AS col0 FROM tab1 AS cor0
----
-45
96
23
68
26
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col1, 82 col0 FROM tab2
----
-51
82
-67
82
-77
82

query I rowsort
SELECT ALL - col2 * - + 19 AS col0 FROM tab0
----
1881
190
893

query I rowsort
SELECT + col0 * 75 / - col1 * col1 AS col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND - - 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT + COUNT( * ) + 48 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4998
SELECT + COUNT ( * ) + 48 FROM tab1
----
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + - col2 * - 87 * col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 18 * + 26 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 14 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5002
SELECT AVG ( + - 14 ) col2 FROM tab2 cor0 WHERE CAST( + col2 AS SIGNED ) + - 86 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5002
SELECT AVG ( + - 14 ) col2 FROM tab2 cor0 WHERE CAST ( + col2 AS INTEGER ) + - 86 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 ) + - 72 > NULL
----

query I rowsort
SELECT ALL col2 - 55 FROM tab2
----
-15
-32
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5005
SELECT ALL - CAST( - + col0 AS SIGNED ) * col0 * - 74 - - col1 AS col1 FROM tab1
----
-192460
-534645
-612747

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL - CAST ( - + col0 AS INTEGER ) * col0 * - 74 - - col1 AS col1 FROM tab1
----
-192460
-534645
-612747

query I rowsort
SELECT ( col0 ) + - + col2 FROM tab0
----
-2
-32
77

query I rowsort
SELECT - - col1 + 24 FROM tab0 AS cor0
----
105
25
45

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > + col0 + + - 15
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * + col2 IS NULL
----

query I rowsort
SELECT ALL - 54 + + + col0 AS col1 FROM tab2 AS cor0
----
-8
10
21

onlyif mysql # DIV for integer division: 
query I rowsort label-5011
SELECT - col1 DIV - 80 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5011
SELECT - col1 / - 80 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5012
SELECT * FROM tab0 cor0 WHERE NOT col1 * ( + ( + CAST( - col0 AS SIGNED ) ) ) = 25 * - - col2 / + col1 + - 20
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5012
SELECT * FROM tab0 cor0 WHERE NOT col1 * ( + ( + CAST ( - col0 AS INTEGER ) ) ) = 25 * - - col2 / + col1 + - 20
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 + + + col1 / + - 84 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT ALL - - SUM( DISTINCT + + 87 ) AS col0 FROM tab2 cor0
----
87

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL - - SUM ( DISTINCT + + 87 ) AS col0 FROM tab2 cor0
----
87

query I rowsort
SELECT ALL + 91 * - col0 + + 66 AS col0 FROM tab1 AS cor0
----
-4575
-7669
-8215

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT ALL + COUNT( * ) AS col2 FROM tab0 WHERE + + col1 / - ( col0 ) <> - 42 * + col2
----
3

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 WHERE + + col1 / - ( col0 ) <> - 42 * + col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT DISTINCT + MAX( DISTINCT - + col1 ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5017
SELECT DISTINCT + MAX ( DISTINCT - + col1 ) AS col2 FROM tab1
----
-5

query I rowsort
SELECT ALL - - 53 + + - col1 FROM tab0 AS cor0
----
-28
32
52

query II rowsort
SELECT ALL + col2 AS col0, - 61 * - ( 88 ) AS col0 FROM tab2 AS cor0
----
23
5368
40
5368
58
5368

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab0 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 + + 14 FROM tab2 AS cor0
----
65
81
91

query I rowsort
SELECT 51 * - col0 - - col2 * - col2 * col0 FROM tab2
----
-105664
-256125
-26680

query I rowsort
SELECT DISTINCT + + col1 * col1 + - - 73 * - + col0 AS col2 FROM tab1 AS cor0
----
-3527
-4434
-6180

query I rowsort
SELECT ALL + 8 + - - col2 AS col2 FROM tab0 AS cor0
----
107
18
55

query I rowsort
SELECT DISTINCT + - ( + - 82 ) FROM tab1 cor0
----
82

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE NOT ( - col0 ) = - col1
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5027
SELECT + + 78 DIV + - MIN( ALL + col0 ) FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5027
SELECT + + 78 / + - MIN ( ALL + col0 ) FROM tab0 AS cor0
----
-5

query I rowsort
SELECT col2 + + col2 / - 62 FROM tab1 AS cor0 WHERE NOT + col0 >= + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 * + col0 col0 FROM tab0 cor0
----
18270
57105
9603

query I rowsort
SELECT col1 * + col1 * + col2 * - ( + - col1 ) AS col2 FROM tab0 AS cor0
----
24977727
92610
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5031
SELECT ALL - + col0 DIV col0 + 16 FROM tab0 AS cor0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL - + col0 / col0 + 16 FROM tab0 AS cor0
----
15
15
15

query I rowsort
SELECT ALL 72 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
72
72
72

query II rowsort
SELECT ALL col2, - 23 FROM tab2
----
23
-23
40
-23
58
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5034
SELECT ALL + 12 DIV - + COUNT( * ) FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL + 12 / - + COUNT ( * ) FROM tab2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5035
SELECT CAST( + col2 AS SIGNED ) * + col0 AS col2 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-5035
SELECT CAST ( + col2 AS INTEGER ) * + col0 AS col2 FROM tab1
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-5036
SELECT DISTINCT + col1 * - + col1 DIV + + col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5036
SELECT DISTINCT + col1 * - + col1 / + + col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + ( 19 ) - 3 AS col0 FROM tab0 WHERE - - ( + col0 ) NOT BETWEEN NULL AND - col2
----
16

query II rowsort
SELECT ALL 27 AS col0, - col1 - + col0 FROM tab1
----
27
-138
27
-65
27
-90

query I rowsort
SELECT ALL 24 * - - col0 * col0 AS col1 FROM tab1 cor0
----
173400
198744
62424

query I rowsort
SELECT DISTINCT - 73 * col2 AS col1 FROM tab1 AS cor0
----
-4307
-4964
-7008

query I rowsort
SELECT - col1 * 72 FROM tab1 AS cor0
----
-1008
-3384
-360

query II rowsort
SELECT col1, 77 FROM tab2 AS cor0
----
51
77
67
77
77
77

query I rowsort
SELECT ALL - - 78 * - col2 * - col0 * + + col1 FROM tab1 AS cor0
----
1955850
22685208
5346432

query I rowsort
SELECT + col1 * + + ( - col0 ) AS col0 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT col0 + - 3 * + ( - 79 ) AS col2 FROM tab0 AS cor0
----
252
324
334

query I rowsort
SELECT + col0 + + col1 + + col2 AS col2 FROM tab2 AS cor0
----
120
181
200

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT ALL - + 75 * SUM( ALL - 61 ) AS col2 FROM tab2 AS cor0
----
13725

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL - + 75 * SUM ( ALL - 61 ) AS col2 FROM tab2 AS cor0
----
13725

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 + - + col2 * col2 col1 FROM tab0 AS cor0
----
-2169
-60
-9761

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5049
SELECT DISTINCT + col0 + CAST( col0 AS SIGNED ) + + + 41 DIV col0 AS col1, col0 + - - col2 + col2 * ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
102
NULL
170
NULL
182
NULL

skipif mysql # not compatible
query II rowsort label-5049
SELECT DISTINCT + col0 + CAST ( col0 AS INTEGER ) + + + 41 / col0 AS col1, col0 + - - col2 + col2 * ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
102
NULL
170
NULL
182
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT ALL + COUNT( * ) - - + SUM( + + ( + 65 ) ) FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL + COUNT ( * ) - - + SUM ( + + ( + 65 ) ) FROM tab2 AS cor0
----
198

query I rowsort
SELECT - col0 FROM tab2 WHERE + 94 NOT BETWEEN - col1 * + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT ALL - MIN( ALL 37 ) AS col1 FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL - MIN ( ALL 37 ) AS col1 FROM tab0
----
-37

query I rowsort
SELECT DISTINCT ( + col2 ) - + col0 FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-5054
SELECT ALL + + COUNT( * ), + 85 AS col1 FROM tab2 cor0
----
3
85

skipif mysql # not compatible
query II rowsort label-5054
SELECT ALL + + COUNT ( * ), + 85 AS col1 FROM tab2 cor0
----
3
85

query II rowsort
SELECT ALL - + col2, + col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 28 NOT BETWEEN - 34 AND + 76
----

query I rowsort
SELECT DISTINCT + col1 / - 13 AS col0 FROM tab1 WHERE ( NULL ) NOT IN ( - col1 + 88 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT DISTINCT - 98 + + COUNT( * ) FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-5058
SELECT DISTINCT - 98 + + COUNT ( * ) FROM tab2
----
-95

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 ) NOT IN ( + ( ( - col1 ) ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 88 NOT IN ( col1 )
----

query I rowsort
SELECT ALL col0 + + 90 FROM tab1
----
141
175
181

query I rowsort
SELECT + 59 * + col1 + - col2 * - 67 AS col0 FROM tab1
----
4248
7258
7329

query III rowsort
SELECT * FROM tab2 WHERE ( 73 ) BETWEEN ( NULL ) AND + 78 + col2
----

query I rowsort
SELECT - ( - col2 ) + 39 AS col0 FROM tab1
----
107
135
98

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5065
SELECT CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5065
SELECT CAST ( CAST ( NULL AS REAL ) AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 17 AS col2 FROM tab1 WHERE NOT col1 BETWEEN NULL AND col1 * col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 + + col1 > NULL
----

query I rowsort
SELECT ALL - col0 - + col1 AS col0 FROM tab2
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT ALL SUM( ALL 70 ) AS col2 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL SUM ( ALL 70 ) AS col2 FROM tab0
----
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5070
SELECT DISTINCT - col0 FROM tab1 WHERE NOT + CAST( col2 AS SIGNED ) > + col2 * col0 + col0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT - col0 FROM tab1 WHERE NOT + CAST ( col2 AS INTEGER ) > + col2 * col0 + col0
----
-51
-85
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5071
SELECT * FROM tab1 WHERE NOT 14 NOT BETWEEN - ( + col1 ) AND ( CAST( NULL AS DECIMAL ) * ( col2 ) + col0 )
----

skipif mysql # not compatible
query III rowsort label-5071
SELECT * FROM tab1 WHERE NOT 14 NOT BETWEEN - ( + col1 ) AND ( CAST ( NULL AS REAL ) * ( col2 ) + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT DISTINCT MAX( ( 87 ) ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-5072
SELECT DISTINCT MAX ( ( 87 ) ) FROM tab1
----
87

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 / + col1 > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5074
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / col0 >= ( 64 / + 27 )
----

skipif mysql # not compatible
query III rowsort label-5074
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / col0 >= ( 64 / + 27 )
----

query I rowsort
SELECT + 37 + ( col0 ) AS col2 FROM tab0
----
124
134
52

query I rowsort
SELECT DISTINCT 19 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col0 + col2 ) NOT IN ( 35 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN 65 * col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT - - MIN( DISTINCT 60 ) col0 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5079
SELECT - - MIN ( DISTINCT 60 ) col0 FROM tab2 AS cor0
----
60

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( + col0 ) * col2 BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5081
SELECT * FROM tab1 AS cor0 WHERE ( + 30 + - 22 * + ( CAST( - col2 AS SIGNED ) ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5081
SELECT * FROM tab1 AS cor0 WHERE ( + 30 + - 22 * + ( CAST ( - col2 AS INTEGER ) ) ) IS NULL
----

query I rowsort
SELECT + 64 + + col0 FROM tab2 AS cor0 WHERE + col2 NOT IN ( - 81 * col1 + + 85 )
----
110
128
139

onlyif mysql # DIV for integer division: 
query I rowsort label-5083
SELECT DISTINCT - - col0 DIV 72 + col0 FROM tab2 AS cor0
----
46
64
76

skipif mysql # not compatible
query I rowsort label-5083
SELECT DISTINCT - - col0 / 72 + col0 FROM tab2 AS cor0
----
46
64
76

query I rowsort
SELECT DISTINCT 37 - + 62 FROM tab1 AS cor0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5085
SELECT + 38 * + CAST( + col1 * col2 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE + 86 + + col2 * col1 IS NOT NULL
----
144666
3762
7980

skipif mysql # not compatible
query I rowsort label-5085
SELECT + 38 * + CAST ( + col1 * col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE + 86 + + col2 * col1 IS NOT NULL
----
144666
3762
7980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5086
SELECT ALL - 14 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL - 14 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT ALL - - 10 - - COUNT( * ) FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL - - 10 - - COUNT ( * ) FROM tab0 AS cor0
----
13

query I rowsort
SELECT col2 - - + 40 FROM tab1
----
108
136
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5089
SELECT - col1 * - col1 - - col1 DIV col1 FROM tab0
----
2
442
6562

skipif mysql # not compatible
query I rowsort label-5089
SELECT - col1 * - col1 - - col1 / col1 FROM tab0
----
2
442
6562

query I rowsort
SELECT 17 - - col0 AS col1 FROM tab1
----
102
108
68

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 49 NOT BETWEEN ( + col2 + 76 ) AND 33 + 55 / ( ( ( 6 ) ) )
----

query I rowsort
SELECT ALL 98 + col0 FROM tab2 WHERE ( col0 ) IS NOT NULL
----
144
162
173

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT ALL MAX( DISTINCT - 39 ) FROM tab0 WHERE NOT 35 IS NULL
----
-39

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL MAX ( DISTINCT - 39 ) FROM tab0 WHERE NOT 35 IS NULL
----
-39

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 84 * col1 IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT DISTINCT MIN( DISTINCT - + col2 ) FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5095
SELECT DISTINCT MIN ( DISTINCT - + col2 ) FROM tab2 cor0
----
-58

query I rowsort
SELECT ALL col2 * 87 FROM tab1 cor0
----
5133
5916
8352

query I rowsort
SELECT DISTINCT + 39 * col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 28 + - col1 ) IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( + 68 ) IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT - COUNT( * ) * 66 FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-5100
SELECT - COUNT ( * ) * 66 FROM tab1 AS cor0
----
-198

query I rowsort
SELECT + col1 * - + col1 + + 18 FROM tab1 AS cor0
----
-178
-2191
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5102
SELECT ALL CAST( + col0 AS SIGNED ) + + CAST( ( col1 ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE ( + 95 ) BETWEEN - 81 AND + 72 * - col0 - 3 * - col0 OR NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5102
SELECT ALL CAST ( + col0 AS INTEGER ) + + CAST ( ( col1 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE ( + 95 ) BETWEEN - 81 AND + 72 * - col0 - 3 * - col0 OR NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5103
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5103
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IN ( - CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - - col2 col2 FROM tab0 cor0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT DISTINCT MIN( - col2 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-5105
SELECT DISTINCT MIN ( - col2 ) AS col1 FROM tab2
----
-58

query I rowsort
SELECT + col2 * - 17 AS col2 FROM tab1
----
-1003
-1156
-1632

query III rowsort
SELECT * FROM tab1 WHERE NOT + 39 * ( col2 ) + 61 >= NULL
----

query I rowsort
SELECT DISTINCT col0 - col2 * - col2 AS col0 FROM tab1 WHERE NOT - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT DISTINCT - SUM( DISTINCT 10 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-5109
SELECT DISTINCT - SUM ( DISTINCT 10 ) AS col1 FROM tab0
----
-10

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT - col1 IS NOT NULL AND NOT - col0 IN ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5111
SELECT - CAST( 19 AS SIGNED ) + + col0 AS col2 FROM tab1
----
32
66
72

skipif mysql # not compatible
query I rowsort label-5111
SELECT - CAST ( 19 AS INTEGER ) + + col0 AS col2 FROM tab1
----
32
66
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5112
SELECT ALL MAX( DISTINCT + CAST( + + ( - ( 41 ) ) AS SIGNED ) ) * - COUNT( * ) AS col2 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL MAX ( DISTINCT + CAST ( + + ( - ( 41 ) ) AS INTEGER ) ) * - COUNT ( * ) AS col2 FROM tab2
----
123

query II rowsort
SELECT - ( + col2 ) AS col2, col0 AS col2 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT ALL + + col0 + - + 22 FROM tab1 cor0
----
29
63
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 56, ( - 18 ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
56
-18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5116
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) < ( - 54 / + col2 - col1 )
----

skipif mysql # not compatible
query III rowsort label-5116
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) < ( - 54 / + col2 - col1 )
----

query I rowsort
SELECT ALL + col0 * 69 FROM tab0
----
1035
6003
6693

query I rowsort
SELECT DISTINCT + - 17 + + col0 FROM tab1 AS cor0
----
34
68
74

query I rowsort
SELECT ALL - 15 + - 88 FROM tab0 AS cor0
----
-103
-103
-103

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE 83 * 16 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5121
SELECT - col0 + + + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5121
SELECT - col0 + + + CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5122
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - + col1 * + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5122
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - + col1 * + + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 * - col0 IN ( 8 )
----

query I rowsort
SELECT ALL + ( + + col1 ) * + 41 / ( col2 ) + 22 FROM tab0 AS cor0 WHERE NULL = - 40
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5125
SELECT ALL + col2 + + col1 + + col1 * + + col0 DIV - col0 AS col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL + col2 + + col1 + + col1 * + + col0 / - col0 AS col0 FROM tab1
----
59
68
96

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NOT 0 IS NOT NULL
----

query I rowsort
SELECT - - 57 AS col1 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT 86 * - col1 FROM tab0
----
-1806
-6966
-86

query I rowsort
SELECT - col2 * + 3 FROM tab0 AS cor0
----
-141
-297
-30

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * + col1 + + - col1 IS NOT NULL
----

query I rowsort
SELECT 61 * + col2 - col1 + + + col2 FROM tab1 AS cor0
----
3653
4169
5938

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT - 50 * COUNT( * ) col0 FROM tab2 cor0
----
-150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5132
SELECT - 50 * COUNT ( * ) col0 FROM tab2 cor0
----
-150

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 * - + col1 + + col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5134
SELECT MIN( - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5134
SELECT MIN ( - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL ( 44 ) AS col2, + col2 AS col2 FROM tab2 AS cor0
----
44
23
44
40
44
58

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 61 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( - 72 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT - - COUNT( + col1 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5138
SELECT - - COUNT ( + col1 ) col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT + + MAX( 59 ) AS col1 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5139
SELECT + + MAX ( 59 ) AS col1 FROM tab2 AS cor0
----
59

query I rowsort
SELECT ALL - 87 * - col0 AS col0 FROM tab1 cor0
----
4437
7395
7917

query I rowsort
SELECT DISTINCT + - 11 AS col1 FROM tab1 cor0
----
-11

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 < col1
----

query II rowsort
SELECT ALL + 51 AS col2, + col0 AS col1 FROM tab0
----
51
15
51
87
51
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5144
SELECT DISTINCT - col0 AS col0, + CAST( NULL AS SIGNED ) FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-5144
SELECT DISTINCT - col0 AS col0, + CAST ( NULL AS INTEGER ) FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5145
SELECT + 69 col1, CAST( NULL AS SIGNED ) + 47 - - + 47 AS col2 FROM tab1
----
69
NULL
69
NULL
69
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5145
SELECT + 69 col1, CAST ( NULL AS INTEGER ) + 47 - - + 47 AS col2 FROM tab1
----
69
NULL
69
NULL
69
NULL

query I rowsort
SELECT ALL - 74 * + col1 AS col1 FROM tab0
----
-1554
-5994
-74

query I rowsort
SELECT - AVG ( DISTINCT - col1 ) FROM tab0 WHERE 35 + + col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT ( - 49 ) * - COUNT( * ) FROM tab1
----
147

skipif mysql # not compatible
query I rowsort label-5148
SELECT ( - 49 ) * - COUNT ( * ) FROM tab1
----
147

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 IS NULL AND NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 + - - col2 * - 31 + - ( + 19 ) - - col2 * + col0 * - - col0 AS col0 FROM tab0 AS cor0
----
75448
9114
928500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + + ( - 53 ) col2 FROM tab1 AS cor0
----
-112
-121
-149

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE NOT ( ( - col1 ) BETWEEN - col0 * - 1 * + col0 * - 17 / - col1 AND + 45 )
----
15
87
97

query I rowsort
SELECT + 57 + col1 * + 80 * 41 FROM tab2
----
167337
219817
252617

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5154
SELECT ALL - ( CAST( NULL AS SIGNED ) ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT ALL + col1 * col2 * - ( + + col2 ) + - col2, ( 78 ) AS col2 FROM tab1 AS cor0
----
-129120
78
-17464
78
-217396
78

onlyif mysql # aggregate syntax: 
query II rowsort label-5156
SELECT DISTINCT + MIN( DISTINCT - col1 ) col0, MIN( - + col2 ) col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-81
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5156
SELECT DISTINCT + MIN ( DISTINCT - col1 ) col0, MIN ( - + col2 ) col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-81
-99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 85 * - - 46 BETWEEN NULL AND 99
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 - ( - 14 ) / - + col1 < col0 * col0 + + col0 - + col2 / col0 / col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 84 AS col2 FROM tab1 AS cor0 WHERE col1 BETWEEN ( - col2 * - col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT col0 * - col1 + col0 + col1 AS col1 FROM tab0
----
-1119
-1719
1

query II rowsort
SELECT DISTINCT 10 - + col1 + 18, + col0 FROM tab2
----
-23
46
-39
75
-49
64

query I rowsort
SELECT ALL + 68 - + - col2 AS col2 FROM tab1
----
127
136
164

query I rowsort
SELECT - col2 + ( - 93 ) + - 16 AS col2 FROM tab1
----
-168
-177
-205

query I rowsort
SELECT col1 + + col0 + - col2 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> col1 * - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5166
SELECT DISTINCT + 10 + + + 59 + 41 DIV + + col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
69

skipif mysql # not compatible
query I rowsort label-5166
SELECT DISTINCT + 10 + + + 59 + 41 / + + col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
69

query I rowsort
SELECT ALL + + col1 * - - col2 AS col1 FROM tab1 WHERE NOT ( col2 + + - ( - col2 ) ) BETWEEN col1 / + 21 AND - 32
----
1344
295
3196

query I rowsort
SELECT col0 * + 90 - + col1 FROM tab1 AS cor0
----
4576
7645
8143

query II rowsort
SELECT + col1 AS col0, + 62 AS col1 FROM tab0 AS cor0
----
1
62
21
62
81
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5170
SELECT ALL CAST( + 44 AS SIGNED ) * - + col2 FROM tab1 AS cor0
----
-2596
-2992
-4224

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL CAST ( + 44 AS INTEGER ) * - + col2 FROM tab1 AS cor0
----
-2596
-2992
-4224

query I rowsort
SELECT 62 * + 10 FROM tab0
----
620
620
620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5172
SELECT COUNT( * ) AS col1, SUM( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5172
SELECT COUNT ( * ) AS col1, SUM ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT ALL - - SUM( ALL - - col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL - - SUM ( ALL - - col0 ) FROM tab2 AS cor0
----
185

query II rowsort
SELECT DISTINCT + - col0, - col0 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

query I rowsort
SELECT DISTINCT + + 58 + - ( - + col0 ) FROM tab1 AS cor0
----
109
143
149

query I rowsort
SELECT - - col0 * + 83 FROM tab1 cor0
----
4233
7055
7553

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5177
SELECT DISTINCT + 51 AS col0, CAST( NULL AS SIGNED ) + - 19 + - + col2 + - + 11 * + col1 AS col0 FROM tab1 AS cor0
----
51
NULL

skipif mysql # not compatible
query II rowsort label-5177
SELECT DISTINCT + 51 AS col0, CAST ( NULL AS INTEGER ) + - 19 + - + col2 + - + 11 * + col1 AS col0 FROM tab1 AS cor0
----
51
NULL

query II rowsort
SELECT - 80 AS col2, col0 + col0 AS col2 FROM tab2 AS cor0
----
-80
128
-80
150
-80
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5179
SELECT ALL + ( col1 ) + col1 + - CAST( col0 AS SIGNED ) col1 FROM tab0 AS cor0
----
-45
-95
147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5179
SELECT ALL + ( col1 ) + col1 + - CAST ( col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
-45
-95
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT + COUNT( * ) FROM tab2 WHERE ( NOT - ( + 49 ) IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-5180
SELECT + COUNT ( * ) FROM tab2 WHERE ( NOT - ( + 49 ) IS NULL )
----
3

query III rowsort
SELECT * FROM tab1 WHERE ( NULL NOT BETWEEN - col0 AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5182
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col0 OR NOT ( NULL ) >= 58 + 30 AND 84 * + - ( ( col1 ) ) * CAST( 54 AS SIGNED ) = ( ( col1 ) )
----

skipif mysql # not compatible
query III rowsort label-5182
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col0 OR NOT ( NULL ) >= 58 + 30 AND 84 * + - ( ( col1 ) ) * CAST ( 54 AS INTEGER ) = ( ( col1 ) )
----

query I rowsort
SELECT ALL - col0 * - 13 + - col1 AS col0 FROM tab0 AS cor0
----
1110
114
1260

query I rowsort
SELECT DISTINCT - 36 + - + col1 + col0 FROM tab0 AS cor0
----
-102
30
60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5185
SELECT + col1 DIV + + 72 + - 38 AS col1, CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab0 AS cor0
----
-37
NULL
-38
NULL
-38
NULL

skipif mysql # not compatible
query II rowsort label-5185
SELECT + col1 / + + 72 + - 38 AS col1, CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab0 AS cor0
----
-37
NULL
-38
NULL
-38
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT + ( - - SUM( - 32 ) ) + - + 64 col2 FROM tab0 AS cor0
----
-160

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5186
SELECT + ( - - SUM ( - 32 ) ) + - + 64 col2 FROM tab0 AS cor0
----
-160

query I rowsort
SELECT - 60 * + 63 FROM tab1 AS cor0
----
-3780
-3780
-3780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5188
SELECT + 64 DIV COUNT( * ) FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-5188
SELECT + 64 / COUNT ( * ) FROM tab0 AS cor0
----
21

query II rowsort
SELECT col0 AS col2, - col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col1 * + - col0 col0 FROM tab1 AS cor0
----
-201019
-2125
-9996

query II rowsort
SELECT + col0, ( col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT + 42 IN ( + col1, + ( 69 ) * - 92 - - + col1, - col0 )
----
46
46
64
64
75
75

query I rowsort
SELECT DISTINCT - 7 * + - col1 FROM tab0
----
147
567
7

query I rowsort
SELECT DISTINCT 7 * 7 AS col1 FROM tab0
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 col2 FROM tab0 WHERE NOT - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT + SUM( + - 64 ) col1 FROM tab2
----
-192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5195
SELECT + SUM ( + - 64 ) col1 FROM tab2
----
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 17 col1 FROM tab1
----
-238
-799
-85

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col1 NOT BETWEEN - + ( + col0 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5198
SELECT ALL + + ( - col2 ) DIV - - col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL + + ( - col2 ) / - - col0 FROM tab0 AS cor0
----
-1
-3
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN 64 AND ( + col1 / - 50 / + col0 + + - col1 + + 84 + + col1 * + + col0 - - col0 + + 62 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5200
SELECT - 18 AS col0, + MIN( - - CAST( NULL AS SIGNED ) ) col0 FROM tab2
----
-18
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5200
SELECT - 18 AS col0, + MIN ( - - CAST ( NULL AS INTEGER ) ) col0 FROM tab2
----
-18
NULL

query I rowsort
SELECT + 46 + + col0 FROM tab0
----
133
143
61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5202
SELECT - CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5202
SELECT - CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 87 < ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT ALL - 14 + - COUNT( * ) col1 FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5204
SELECT ALL - 14 + - COUNT ( * ) col1 FROM tab1 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-5205
SELECT + COUNT( * ) AS col0, - 59 * ( COUNT( * ) ) FROM tab1
----
3
-177

skipif mysql # not compatible
query II rowsort label-5205
SELECT + COUNT ( * ) AS col0, - 59 * ( COUNT ( * ) ) FROM tab1
----
3
-177

query I rowsort
SELECT DISTINCT + AVG ( - - col1 ) FROM tab0 WHERE 22 IS NULL
----
NULL

query II rowsort
SELECT 35, + 79 AS col1 FROM tab1
----
35
79
35
79
35
79

query I rowsort
SELECT - 51 * 64 AS col0 FROM tab0
----
-3264
-3264
-3264

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + 39 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5210
SELECT - COUNT( - col1 ) DIV + COUNT( * ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5210
SELECT - COUNT ( - col1 ) / + COUNT ( * ) FROM tab2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5211
SELECT DISTINCT ( + 10 ) AS col1 FROM tab1 WHERE NOT - col0 >= + 41 * col2 * - + 66 / col0 + - - 32 - + - CAST( NULL AS SIGNED ) * col1
----

skipif mysql # not compatible
query I rowsort label-5211
SELECT DISTINCT ( + 10 ) AS col1 FROM tab1 WHERE NOT - col0 >= + 41 * col2 * - + 66 / col0 + - - 32 - + - CAST ( NULL AS INTEGER ) * col1
----

query III rowsort
SELECT * FROM tab2 WHERE + 90 / - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT + COUNT( * ) * + - COUNT( * ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5213
SELECT + COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab0
----
-9

query I rowsort
SELECT DISTINCT - 79 * + 92 FROM tab0
----
-7268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5215
SELECT + col2 - + col0 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5215
SELECT + col2 - + col0 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 >= + col2 + - col0
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT - 34 * + 65 * + COUNT( * ) FROM tab1 AS cor0
----
-6630

skipif mysql # not compatible
query I rowsort label-5217
SELECT - 34 * + 65 * + COUNT ( * ) FROM tab1 AS cor0
----
-6630

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - - col1 * - col0 * col2 - - 57 - ( + 92 ) * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT - MIN( - 15 ) AS col0 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-5219
SELECT - MIN ( - 15 ) AS col0 FROM tab2
----
15

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT NULL <= + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5221
SELECT ( 81 ) DIV col2 AS col1 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5221
SELECT ( 81 ) / col2 AS col1 FROM tab2
----
1
2
3

query II rowsort
SELECT - col1 AS col0, 27 * - 85 * ( - - 42 ) AS col2 FROM tab0
----
-1
-96390
-21
-96390
-81
-96390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5223
SELECT ALL + 71 + 32 AS col1 FROM tab1 WHERE + ( - CAST( NULL AS SIGNED ) ) > + - CAST( + ( - - col1 ) AS SIGNED ) / + ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-5223
SELECT ALL + 71 + 32 AS col1 FROM tab1 WHERE + ( - CAST ( NULL AS INTEGER ) ) > + - CAST ( + ( - - col1 ) AS INTEGER ) / + ( + col2 )
----

query I rowsort
SELECT + - col1 AS col2 FROM tab0 WHERE NOT NULL <> col1 + col1
----

query I rowsort
SELECT ALL + ( 18 ) FROM tab0 AS cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT + COUNT( * ) FROM tab1 WHERE NOT + 66 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5226
SELECT + COUNT ( * ) FROM tab1 WHERE NOT + 66 IS NULL
----
3

query I rowsort
SELECT - col1 * col1 * + col2 + 12 + col2 * + col2 AS col2 FROM tab2 cor0 WHERE ( col2 + col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5228
SELECT ALL + - col0 + + 14 DIV + col0 * + col0, 47 AS col1 FROM tab0 AS cor0
----
-15
47
-87
47
-97
47

skipif mysql # not compatible
query II rowsort label-5228
SELECT ALL + - col0 + + 14 / + col0 * + col0, 47 AS col1 FROM tab0 AS cor0
----
-15
47
-87
47
-97
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT DISTINCT - 15 + + COUNT( * ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT - 15 + + COUNT ( * ) FROM tab0 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT + ( + + MAX( DISTINCT col0 ) ) + - 33 AS col0 FROM tab1 cor0
----
58

skipif mysql # not compatible
query I rowsort label-5230
SELECT + ( + + MAX ( DISTINCT col0 ) ) + - 33 AS col0 FROM tab1 cor0
----
58

query I rowsort
SELECT - - col0 + - - 37 FROM tab0 AS cor0
----
124
134
52

query I rowsort
SELECT + 99 + col1 * + + col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - 47 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5234
SELECT DISTINCT - - col1 DIV col0 + + - col0 + + col1 FROM tab2 AS cor0
----
-8
14
6

skipif mysql # not compatible
query I rowsort label-5234
SELECT DISTINCT - - col1 / col0 + + - col0 + + col1 FROM tab2 AS cor0
----
-8
14
6

query I rowsort
SELECT ALL + + col2 + - 88 AS col0 FROM tab1 AS cor0
----
-20
-29
8

query I rowsort
SELECT DISTINCT - 45 + - 3 - - col0 * + - col0 AS col1 FROM tab0
----
-273
-7617
-9457

query I rowsort
SELECT 56 * + col1 - - + 17 FROM tab2 WHERE + col1 * - - col1 > NULL
----

query I rowsort
SELECT DISTINCT 96 * + ( 71 ) FROM tab1
----
6816

onlyif mysql # DIV for integer division: 
query II rowsort label-5239
SELECT ALL + + 49 DIV col2 col0, - col1 col2 FROM tab0 WHERE NOT col0 BETWEEN NULL AND - col0
----
0
-1
1
-81
4
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5239
SELECT ALL + + 49 / col2 col0, - col1 col2 FROM tab0 WHERE NOT col0 BETWEEN NULL AND - col0
----
0
-1
1
-81
4
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5240
SELECT DISTINCT + 80 DIV - ( MIN( ALL - - 43 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5240
SELECT DISTINCT + 80 / - ( MIN ( ALL - - 43 ) ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT ALL MIN( DISTINCT + + 53 ) * 92 * COUNT( * ) FROM tab1
----
14628

skipif mysql # not compatible
query I rowsort label-5241
SELECT ALL MIN ( DISTINCT + + 53 ) * 92 * COUNT ( * ) FROM tab1
----
14628

query III rowsort
SELECT * FROM tab0 WHERE + 43 * - 31 BETWEEN - 91 AND + 61 * 94 + col2
----

query I rowsort
SELECT ALL + - col2 + + 29 FROM tab0 AS cor0
----
-18
-70
19

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE - 51 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT - - 37 * 92 AS col0 FROM tab0 AS cor0
----
3404
3404
3404

onlyif mysql # DIV for integer division: 
query I rowsort label-5246
SELECT ALL col1 DIV col1 * - col2 col1 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5246
SELECT ALL col1 / col1 * - col2 col1 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT ALL 20 FROM tab1 AS cor0 WHERE NOT 56 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5248
SELECT - SUM( - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5248
SELECT - SUM ( - - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5249
SELECT ALL COUNT( * ) + 69 FROM tab2 WHERE + ( + + CAST( NULL AS DECIMAL ) ) IS NULL
----
72

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL COUNT ( * ) + 69 FROM tab2 WHERE + ( + + CAST ( NULL AS REAL ) ) IS NULL
----
72

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - 84 AND + + 66
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5251
SELECT DISTINCT + col0 DIV + col0 + - 49, 54 AS col2 FROM tab0 cor0
----
-48
54

skipif mysql # not compatible
query II rowsort label-5251
SELECT DISTINCT + col0 / + col0 + - 49, 54 AS col2 FROM tab0 cor0
----
-48
54

query I rowsort
SELECT ALL - ( + col0 ) FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT ALL + COUNT( * ) * - 52 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL + COUNT ( * ) * - 52 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT + MAX( + 13 ) FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-5254
SELECT + MAX ( + 13 ) FROM tab1 AS cor0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5255
SELECT ALL CAST( NULL AS SIGNED ) * col0 * - col0 + + + 4 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5255
SELECT ALL CAST ( NULL AS INTEGER ) * col0 * - col0 + + + 4 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 28 * ( + + col0 ) col1 FROM tab2 AS cor0
----
-1288
-1792
-2100

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN + col2 AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5258
SELECT - col1 DIV + + col0 FROM tab0 cor0 WHERE NULL IS NULL
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-5258
SELECT - col1 / + + col0 FROM tab0 cor0 WHERE NULL IS NULL
----
-5
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT ALL - 79 - COUNT( * ) AS col2 FROM tab2
----
-82

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL - 79 - COUNT ( * ) AS col2 FROM tab2
----
-82

query I rowsort
SELECT DISTINCT - 46 * 48 AS col0 FROM tab1
----
-2208

query I rowsort
SELECT - 5 - - - 6 AS col2 FROM tab1
----
-11
-11
-11

query I rowsort
SELECT 97 + col1 FROM tab0
----
118
178
98

query I rowsort
SELECT 63 + col1 FROM tab2 WHERE NULL >= + col0
----

query I rowsort
SELECT col0 + - 48 + + 78 AS col2 FROM tab1
----
115
121
81

query I rowsort
SELECT ALL col0 - + 1 FROM tab2
----
45
63
74

query I rowsort
SELECT + col1 + + 63 * - 39 AS col0 FROM tab2
----
-2380
-2390
-2406

query I rowsort
SELECT DISTINCT - 83 * - + 11 AS col0 FROM tab2
----
913

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT DISTINCT + + MAX( - 37 ) * - ( 2 ) + - 44 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-5268
SELECT DISTINCT + + MAX ( - 37 ) * - ( 2 ) + - 44 FROM tab2 AS cor0
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * + + col1 col0, col0 + + 86 col1 FROM tab0 AS cor0
----
1215
101
1827
173
97
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5270
SELECT DISTINCT + CAST( - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5270
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT - 91 * + col1 * - col1 * - 37 - - col2 + + - col2 + col1 * + + col1 AS col0 FROM tab0 AS cor0
----
-1484406
-22084326
-3366

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT - MIN( DISTINCT - 46 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5272
SELECT - MIN ( DISTINCT - 46 ) AS col2 FROM tab2
----
46

query I rowsort
SELECT DISTINCT - 0 * - - 18 * + col0 AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL - 6 * - col1 FROM tab1
----
282
30
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5275
SELECT ALL COUNT( * ) DIV COUNT( * ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5275
SELECT ALL COUNT ( * ) / COUNT ( * ) AS col2 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT - COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5276
SELECT - COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5277
SELECT ALL - 59 * + col0 + CAST( NULL AS SIGNED ), col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-5277
SELECT ALL - 59 * + col0 + CAST ( NULL AS INTEGER ), col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
23
NULL
40
NULL
58

query II rowsort
SELECT col1 * - col2 * + - col1, + col1 AS col2 FROM tab1 AS cor0
----
1475
5
150212
47
18816
14

query I rowsort
SELECT - 16 AS col0 FROM tab0 AS cor0 WHERE NOT - 71 * - col1 * - - ( - - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT DISTINCT MIN( 49 ) FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT MIN ( 49 ) FROM tab2 AS cor0
----
49

query I rowsort
SELECT DISTINCT - col2 * - 38 FROM tab1 AS cor0
----
2242
2584
3648

onlyif mysql # aggregate syntax: 
query II rowsort label-5282
SELECT ALL - COUNT( * ) AS col1, + COUNT( * ) FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-5282
SELECT ALL - COUNT ( * ) AS col1, + COUNT ( * ) FROM tab1
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT DISTINCT COUNT( + - 39 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5283
SELECT DISTINCT COUNT ( + - 39 ) FROM tab1
----
3

query I rowsort
SELECT 63 FROM tab2 WHERE NOT - col2 NOT BETWEEN - + col2 * col1 AND NULL
----

query I rowsort
SELECT DISTINCT + - 35 * - - col1 AS col2 FROM tab1 WHERE + col2 + + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5286
SELECT DISTINCT col2 DIV - ( - col1 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5286
SELECT DISTINCT col2 / - ( - col1 ) AS col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * + + 57 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col2 AS col0, - 73 AS col2 FROM tab1 AS cor0
----
59
-73
68
-73
96
-73

query II rowsort
SELECT DISTINCT col1, - col0 FROM tab2 cor0
----
51
-46
67
-75
77
-64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT DISTINCT - - COUNT( * ) FROM tab0 cor0 WHERE NOT col0 + - + 97 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT - - COUNT ( * ) FROM tab0 cor0 WHERE NOT col0 + - + 97 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT DISTINCT + - COUNT( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5292
SELECT DISTINCT + - COUNT ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT 77 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT 64 IS NULL )
----

query I rowsort
SELECT - 98 * + ( col0 ) + + col2 FROM tab0 cor0
----
-1423
-8516
-9407

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE + 68 + + 84 IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5297
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) AS col0, + ( + + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5297
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0, + ( + + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
NULL
3

query I rowsort
SELECT ALL - + col0 + 68 FROM tab2 AS cor0
----
-7
22
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT DISTINCT - MAX( ALL + - col1 ) * - - COUNT( col1 ) AS col2 FROM tab1 AS cor0 WHERE col1 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5300
SELECT DISTINCT - MAX ( ALL + - col1 ) * - - COUNT ( col1 ) AS col2 FROM tab1 AS cor0 WHERE col1 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT 97 + COUNT( * ) AS col1 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-5301
SELECT 97 + COUNT ( * ) AS col1 FROM tab0
----
100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + col1 col2 FROM tab2
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT DISTINCT COUNT( * ) * 18 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-5303
SELECT DISTINCT COUNT ( * ) * 18 FROM tab2
----
54

onlyif mysql # DIV for integer division: 
query II rowsort label-5304
SELECT ALL + col2, 85 DIV + - 34 FROM tab1
----
59
-2
68
-2
96
-2

skipif mysql # not compatible
query II rowsort label-5304
SELECT ALL + col2, 85 / + - 34 FROM tab1
----
59
-2
68
-2
96
-2

query I rowsort
SELECT - + col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT ALL MIN( ALL + col0 ) - COUNT( * ) * - 62 AS col1 FROM tab0
----
201

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL MIN ( ALL + col0 ) - COUNT ( * ) * - 62 AS col1 FROM tab0
----
201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5307
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 ) * + col2 / - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5309
SELECT - ( col2 ) * - 78 - CAST( + 85 AS SIGNED ) - - col0, - col2 - - + col1 AS col0 FROM tab0 AS cor0
----
3596
34
7734
-98
782
11

skipif mysql # not compatible
query II rowsort label-5309
SELECT - ( col2 ) * - 78 - CAST ( + 85 AS INTEGER ) - - col0, - col2 - - + col1 AS col0 FROM tab0 AS cor0
----
3596
34
7734
-98
782
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5310
SELECT + + col2 / CAST( NULL AS SIGNED ) * - - col0 + - col1 + + + col0 - 80 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5310
SELECT + + col2 / CAST ( NULL AS INTEGER ) * - - col0 + - col1 + + + col0 - 80 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE ( NOT - + col1 IS NULL )
----
59
68
96

query II rowsort
SELECT - - col1 * + + col0 - col0, + col1 AS col2 FROM tab2 cor0
----
2300
51
4864
77
4950
67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5313
SELECT - CAST( NULL AS DECIMAL ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5313
SELECT - CAST ( NULL AS REAL ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT - + SUM( DISTINCT - col0 ) AS col2 FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-5314
SELECT - + SUM ( DISTINCT - col0 ) AS col2 FROM tab0 cor0
----
199

query I rowsort
SELECT + - col2 * - ( + col0 ) AS col2 FROM tab0 AS cor0
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 * + - col2 col2 FROM tab0 AS cor0
----
4230
8910
900

query I rowsort
SELECT ALL - ( + col0 ) * + 5 FROM tab0 cor0
----
-435
-485
-75

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE NOT + - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5319
SELECT + col1 DIV + - col0 AS col2 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-5319
SELECT + col1 / + - col0 AS col2 FROM tab0
----
-5
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5320
SELECT DISTINCT - 90 DIV - + 50 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5320
SELECT DISTINCT - 90 / - + 50 FROM tab0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5321
SELECT CAST( NULL AS SIGNED ) * MAX( ALL - - col1 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5321
SELECT CAST ( NULL AS INTEGER ) * MAX ( ALL - - col1 ) AS col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5322
SELECT + ( - col2 ) DIV col1 AS col0 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-5322
SELECT + ( - col2 ) / col1 AS col0 FROM tab0
----
-99
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5323
SELECT - col1 AS col0, - ( - col0 ) DIV 42 FROM tab0 cor0
----
-1
2
-21
2
-81
0

skipif mysql # not compatible
query II rowsort label-5323
SELECT - col1 AS col0, - ( - col0 ) / 42 FROM tab0 cor0
----
-1
2
-21
2
-81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + ( + + ( + 12 ) ) - - col2 + + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5324
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + ( + + ( + 12 ) ) - - col2 + + col2 IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5325
SELECT ALL + COUNT( * ) DIV COUNT( * ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5325
SELECT ALL + COUNT ( * ) / COUNT ( * ) FROM tab0 cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5326
SELECT CAST( NULL AS SIGNED ) + - COUNT( * ) * - - CAST( NULL AS SIGNED ) + - COUNT( - ( col0 ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5326
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) + - COUNT ( - ( col0 ) ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 54, + 42 col1 FROM tab2
----
-54
42

query II rowsort
SELECT ALL col0, 5 AS col1 FROM tab1
----
51
5
85
5
91
5

query II rowsort
SELECT DISTINCT + - 23 + - 44 AS col0, - 94 AS col2 FROM tab1 AS cor0 WHERE - 27 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5330
SELECT DISTINCT + 28 + - 36 + - col2 DIV + col1 AS col1 FROM tab1 AS cor0
----
-14
-19
-9

skipif mysql # not compatible
query I rowsort label-5330
SELECT DISTINCT + 28 + - 36 + - col2 / + col1 AS col1 FROM tab1 AS cor0
----
-14
-19
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT ALL + 8 * 68 + COUNT( * ) + + ( + 89 ) * + 28 FROM tab1 AS cor0
----
3039

skipif mysql # not compatible
query I rowsort label-5331
SELECT ALL + 8 * 68 + COUNT ( * ) + + ( + 89 ) * + 28 FROM tab1 AS cor0
----
3039

onlyif mysql # aggregate syntax: 
query II rowsort label-5332
SELECT COUNT( * ) AS col2, + MIN( + 25 ) + 88 FROM tab1 AS cor0
----
3
113

skipif mysql # not compatible
query II rowsort label-5332
SELECT COUNT ( * ) AS col2, + MIN ( + 25 ) + 88 FROM tab1 AS cor0
----
3
113

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT + col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE - + 17 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col1 - + - 55 AS col2, + 94 FROM tab2
----
-12
94
-22
94
4
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT DISTINCT + 20 * - 97 + MIN( ALL + - col2 ) FROM tab1
----
-2036

skipif mysql # not compatible
query I rowsort label-5336
SELECT DISTINCT + 20 * - 97 + MIN ( ALL + - col2 ) FROM tab1
----
-2036

query I rowsort
SELECT ALL - 1 - - - 80 * + col1 AS col2 FROM tab2
----
-4081
-5361
-6161

query I rowsort
SELECT ALL - col2 + - 39 AS col2 FROM tab0
----
-138
-49
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT DISTINCT COUNT( DISTINCT + col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5339
SELECT DISTINCT COUNT ( DISTINCT + col1 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5340
SELECT ALL col0 - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL col0 - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT - 71, + col0 FROM tab2
----
-71
46
-71
64
-71
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab1 cor0 WHERE NOT - col0 > col0 * + col2
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5343
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - 59 * - 59 AS col1 FROM tab1 AS cor0
----
3481
3481
3481

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5345
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN + CAST( 20 AS SIGNED ) / + col2 / - col1 + col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5345
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN + CAST ( 20 AS INTEGER ) / + col2 / - col1 + col1 AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5346
SELECT DISTINCT - 46 * - col2 * - 4 * + - col0 DIV - col0 AS col2 FROM tab2 cor0
----
-10672
-4232
-7360

skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT - 46 * - col2 * - 4 * + - col0 / - col0 AS col2 FROM tab2 cor0
----
-10672
-4232
-7360

query I rowsort
SELECT ALL - col1 * col1 FROM tab2 AS cor0 WHERE 8 - - col2 IS NULL
----

query II rowsort
SELECT col2, ( - - 15 ) FROM tab2 AS cor0
----
23
15
40
15
58
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5349
SELECT DISTINCT 39 DIV 63 DIV + 66, - CAST( - COUNT( * ) AS SIGNED ) - - MAX( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
0
50

skipif mysql # not compatible
query II rowsort label-5349
SELECT DISTINCT 39 / 63 / + 66, - CAST ( - COUNT ( * ) AS INTEGER ) - - MAX ( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
0
50

query I rowsort
SELECT - + col1 * - 37 * + + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-10915
-118252
-49728

query I rowsort
SELECT - ( - 29 ) + + 72 AS col2 FROM tab2
----
101
101
101

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5352
SELECT col0 + - + ( + CAST( + 15 AS SIGNED ) ), col2 FROM tab1
----
36
96
70
59
76
68

skipif mysql # not compatible
query II rowsort label-5352
SELECT col0 + - + ( + CAST ( + 15 AS INTEGER ) ), col2 FROM tab1
----
36
96
70
59
76
68

query I rowsort
SELECT - - col2 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 84 + - + col1 + - 6 FROM tab1
----
-104
-137
-95

query I rowsort
SELECT ALL + col2 * + col0 * + 63 * + + 42 * col1 AS col2 FROM tab0
----
151099830
25409538
48342420

query II rowsort
SELECT ALL - 2 * + col1 + - - 55 - + 37, - col1 + - col1 AS col2 FROM tab1 AS cor0
----
-10
-28
-76
-94
8
-10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= - col2 + - col0
----

query I rowsort
SELECT DISTINCT + ( col0 ) + - - col2 AS col2 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5359
SELECT DISTINCT - 69 - + CAST( NULL AS SIGNED ) * + MIN( DISTINCT col2 ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5359
SELECT DISTINCT - 69 - + CAST ( NULL AS INTEGER ) * + MIN ( DISTINCT col2 ) col1 FROM tab0
----
NULL

query I rowsort
SELECT - - 71 + - col2 FROM tab0 AS cor0
----
-28
24
61

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 57 = NULL
----

query I rowsort
SELECT col1 + 43 AS col1 FROM tab0 AS cor0
----
124
44
64

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 / + - col0 + col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 32, 39 * col1 * 74 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 - + + col2 + - - col1 * + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5366
SELECT + - 98 DIV col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5366
SELECT + - 98 / col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5367
SELECT MAX( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5367
SELECT MAX ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5368
SELECT ALL - 8 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL - 8 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 col1 FROM tab2 AS cor0 WHERE 12 IS NOT NULL
----
88

query I rowsort
SELECT DISTINCT - col0 - + 95 FROM tab2 AS cor0
----
-141
-159
-170

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 27 + 33 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT DISTINCT ( ( + ( - - COUNT( + - col1 ) ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5372
SELECT DISTINCT ( ( + ( - - COUNT ( + - col1 ) ) ) ) FROM tab1
----
3

query I rowsort
SELECT - col1 * - col0 * + col1 FROM tab0
----
38367
97
98415

query I rowsort
SELECT 58 * - - col2 FROM tab2
----
1334
2320
3364

query I rowsort
SELECT + 96 * + + col0 + - col1 AS col0 FROM tab0 cor0
----
1359
8331
9311

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5376
SELECT - ( - - CAST( + col0 AS SIGNED ) ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5376
SELECT - ( - - CAST ( + col0 AS INTEGER ) ) FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( NULL ) IS NULL ) OR col1 = - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col2 FROM tab0 WHERE NOT - col2 <> + 81 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT - 53 - + - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-44

skipif mysql # not compatible
query I rowsort label-5379
SELECT - 53 - + - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT DISTINCT + 82 + + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
91

skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT + 82 + + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
91

query I rowsort
SELECT ALL 46 * - col1 AS col1 FROM tab2 AS cor0
----
-2346
-3082
-3542

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5382
SELECT + col2 * CAST( NULL AS SIGNED ) AS col1, ( + - col2 ) AS col2 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-5382
SELECT + col2 * CAST ( NULL AS INTEGER ) AS col1, ( + - col2 ) AS col2 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 18 NOT BETWEEN + - ( - col0 ) AND - - col0
----

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5385
SELECT DISTINCT + ( CAST( col1 AS SIGNED ) ) * 46 * + + col1 * - + col2 AS col2 FROM tab1 AS cor0
----
-67850
-6909752
-865536

skipif mysql # not compatible
query I rowsort label-5385
SELECT DISTINCT + ( CAST ( col1 AS INTEGER ) ) * 46 * + + col1 * - + col2 AS col2 FROM tab1 AS cor0
----
-67850
-6909752
-865536

query I rowsort
SELECT - col0 * - 69 AS col2 FROM tab0 AS cor0
----
1035
6003
6693

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5387
SELECT ALL - SUM( ALL CAST( NULL AS SIGNED ) ) col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5387
SELECT ALL - SUM ( ALL CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 col1 FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT - 80 * + 58 AS col2 FROM tab0
----
-4640
-4640
-4640

query I rowsort
SELECT DISTINCT 68 * + + 65 AS col2 FROM tab2
----
4420

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5392
SELECT ALL - ( + + col1 ) * + + col0 * + col1 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL - ( + + col1 ) * + + col0 * + col1 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - 38 ) FROM tab1 AS cor0
----
38
38
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5394
SELECT DISTINCT + col2 * col0 FROM tab2 WHERE - - 19 - - CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5394
SELECT DISTINCT + col2 * col0 FROM tab2 WHERE - - 19 - - CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 32 - - - col1 + + - col2 * - 40 FROM tab0
----
1831
3991
411

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= col0 * - col0
----

query I rowsort
SELECT ALL - 80 + - col2 + 76 * - - 86 + 13 FROM tab1 AS cor0
----
6373
6401
6410

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * + - col2 * - ( - + col2 ) <= + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5399
SELECT + ( - + col0 ) DIV 68 AS col2 FROM tab0 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5399
SELECT + ( - + col0 ) / 68 AS col2 FROM tab0 cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5400
SELECT - 85 AS col1, + MAX( + + col0 ) col0 FROM tab1
----
-85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5400
SELECT - 85 AS col1, + MAX ( + + col0 ) col0 FROM tab1
----
-85
91

query I rowsort
SELECT col1 * + - col0 * + col0 FROM tab2
----
-107916
-315392
-376875

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT DISTINCT + MIN( DISTINCT - 88 ) AS col0 FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-5402
SELECT DISTINCT + MIN ( DISTINCT - 88 ) AS col0 FROM tab2
----
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT ALL SUM( ALL - 56 ) FROM tab1
----
-168

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL SUM ( ALL - 56 ) FROM tab1
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5405
SELECT DISTINCT CAST( NULL AS SIGNED ), 65 * - col1 col0 FROM tab2
----
NULL
-3315
NULL
-4355
NULL
-5005

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5405
SELECT DISTINCT CAST ( NULL AS INTEGER ), 65 * - col1 col0 FROM tab2
----
NULL
-3315
NULL
-4355
NULL
-5005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5406
SELECT ALL - 12 * col2 * + col1 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL - 12 * col2 * + col1 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5407
SELECT ALL - col0 DIV 87 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL - col0 / 87 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 13 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5409
SELECT + col0 DIV - 95 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5409
SELECT + col0 / - 95 FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE - ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT - 94 + + COUNT( * ) col1 FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5411
SELECT - 94 + + COUNT ( * ) col1 FROM tab2 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT ALL - + 99 + COUNT( * ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL - + 99 + COUNT ( * ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT - col0 + - + col1 + + col2 + + 46 FROM tab1 AS cor0
----
-24
15
77

query I rowsort
SELECT + - col0 * - col2 * + - col0 * - 14 + + 48 FROM tab0 AS cor0
----
1059708
13040922
148098

query I rowsort
SELECT ALL - col0 * 29 AS col0 FROM tab1
----
-1479
-2465
-2639

query III rowsort
SELECT * FROM tab2 WHERE - col2 < 60
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 21 * + 4 + - col1 AS col0 FROM tab2
----
17
33
7

query I rowsort
SELECT ALL + 26 * + - col0 AS col0 FROM tab1 AS cor0
----
-1326
-2210
-2366

query I rowsort
SELECT ALL - col1 * - 83 + + col0 * - + 95 FROM tab2 AS cor0
----
-137
-1564
311

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 - + - 84 IN ( col2, - 67 * 29 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5421
SELECT - COUNT( * ), COUNT( * ) col2 FROM tab2 AS cor0 WHERE col0 * + col1 * + 73 IS NULL
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5421
SELECT - COUNT ( * ), COUNT ( * ) col2 FROM tab2 AS cor0 WHERE col0 * + col1 * + 73 IS NULL
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT ALL + COUNT( - 87 ) * + 71 + 19 col0 FROM tab1
----
232

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5422
SELECT ALL + COUNT ( - 87 ) * + 71 + 19 col0 FROM tab1
----
232

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 / + 39 + + 74 + - 35 + - col1 / - 27 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - + col2 ) - + - ( - - 0 ) FROM tab0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5425
SELECT ALL - - col2 DIV + 3 FROM tab0 AS cor0
----
15
3
33

skipif mysql # not compatible
query I rowsort label-5425
SELECT ALL - - col2 / + 3 FROM tab0 AS cor0
----
15
3
33

query I rowsort
SELECT + + col1 * + ( col0 ) * + 72 FROM tab0 AS cor0
----
131544
6984
87480

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT + SUM( + 34 ) AS col2 FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-5427
SELECT + SUM ( + 34 ) AS col2 FROM tab2 AS cor0
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5428
SELECT - col1 * + 16 + + + 52 * - 1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5428
SELECT - col1 * + 16 + + + 52 * - 1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 24, + col2 AS col0 FROM tab0 AS cor0
----
-24
10
-24
47
-24
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT ALL - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 93 > + col2
----
51
14
96

query II rowsort
SELECT col1, - col2 AS col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT ALL - col2 * - + 5 FROM tab2
----
115
200
290

onlyif mysql # DIV for integer division: 
query I rowsort label-5434
SELECT DISTINCT - 46 DIV col2 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5434
SELECT DISTINCT - 46 / col2 FROM tab2
----
-1
-2
0

query I rowsort
SELECT ALL col2 * 23 AS col2 FROM tab2
----
1334
529
920

onlyif mysql # DIV for integer division: 
query I rowsort label-5436
SELECT DISTINCT 88 DIV - 69 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5436
SELECT DISTINCT 88 / - 69 FROM tab2
----
-1

query I rowsort
SELECT - + col0 FROM tab0 WHERE NOT col0 IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT DISTINCT MIN( DISTINCT - 32 ) col0 FROM tab0
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5438
SELECT DISTINCT MIN ( DISTINCT - 32 ) col0 FROM tab0
----
-32

query I rowsort
SELECT ALL + + col2 FROM tab0 AS cor0 WHERE col2 * col2 + + col1 BETWEEN - col1 AND + col2 / + + col0 + - 45
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5440
SELECT ALL - COUNT( * ) DIV - 96 AS col0 FROM tab0 AS cor0 WHERE NOT col2 > - 46 * 73 * 31 + + + col0
----
0

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL - COUNT ( * ) / - 96 AS col0 FROM tab0 AS cor0 WHERE NOT col2 > - 46 * 73 * 31 + + + col0
----
0

query I rowsort
SELECT + 7 + + - 46 * + - 2 AS col0 FROM tab2
----
99
99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5442
SELECT - 73 DIV col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5442
SELECT - 73 / col1 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5443
SELECT ALL - CAST( NULL AS SIGNED ) / col1 - - col0 * 42 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5443
SELECT ALL - CAST ( NULL AS INTEGER ) / col1 - - col0 * 42 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5444
SELECT ALL - col2 * + col1 / - 28 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL - col2 * + col1 / - 28 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5445
SELECT - CAST( + + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5445
SELECT - CAST ( + + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL - ( - col2 ) + 71 AS col2 FROM tab0 AS cor0
----
118
170
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5447
SELECT + + COUNT( * ) AS col2, 68 FROM tab0 cor0
----
3
68

skipif mysql # not compatible
query II rowsort label-5447
SELECT + + COUNT ( * ) AS col2, 68 FROM tab0 cor0
----
3
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5448
SELECT ALL - COUNT( * ) + - COUNT( * ) + - 69, COUNT( * ) AS col2 FROM tab2 cor0
----
-75
3

skipif mysql # not compatible
query II rowsort label-5448
SELECT ALL - COUNT ( * ) + - COUNT ( * ) + - 69, COUNT ( * ) AS col2 FROM tab2 cor0
----
-75
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5449
SELECT ALL - 44 * - + 90 + - col0 DIV + 15 FROM tab2 AS cor0
----
3955
3956
3957

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL - 44 * - + 90 + - col0 / + 15 FROM tab2 AS cor0
----
3955
3956
3957

query I rowsort
SELECT - ( + 61 ) FROM tab1 AS cor0 WHERE NULL <= - col0
----

query I rowsort
SELECT DISTINCT + + 32 + 41 FROM tab1 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT ALL - 3 + + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL - 3 + + COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT col0 * + - ( + + 61 ) FROM tab0
----
-5307
-5917
-915

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + col1 col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT ALL - COUNT( + - 8 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL - COUNT ( + - 8 ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT - 73 - col0 AS col0 FROM tab2
----
-119
-137
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT DISTINCT + COUNT( * ) - 38 AS col2 FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-5457
SELECT DISTINCT + COUNT ( * ) - 38 AS col2 FROM tab2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT ALL MAX( ALL 1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5458
SELECT ALL MAX ( ALL 1 ) AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT ALL + - COUNT( * ) * + - 36 AS col2 FROM tab0 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL + - COUNT ( * ) * + - 36 AS col2 FROM tab0 AS cor0
----
108

query I rowsort
SELECT - col2 + + 15 FROM tab1 AS cor0
----
-44
-53
-81

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL > + 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT ALL ( - + 7 ) + - MIN( - col0 ) FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-5462
SELECT ALL ( - + 7 ) + - MIN ( - col0 ) FROM tab1
----
84

query I rowsort
SELECT DISTINCT + col1 + + 10 AS col0 FROM tab1
----
15
24
57

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT - col2 * 8 * - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT DISTINCT + 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-5465
SELECT DISTINCT + COUNT ( * ) col2 FROM tab1 WHERE NOT - col2 IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 24 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5467
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( - + 14 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-5467
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( - + 14 AS INTEGER ) >= NULL
----

query I rowsort
SELECT - + ( - + 18 ) * - 70 AS col1 FROM tab1 AS cor0
----
-1260
-1260
-1260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5469
SELECT + COUNT( * ) DIV + 65 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5469
SELECT + COUNT ( * ) / + 65 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col2 * + + 88 FROM tab0 AS cor0
----
-4136
-8712
-880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5471
SELECT DISTINCT + col1 / + col0 * - ( + - col2 ) / - - CAST( NULL AS SIGNED ) / 68 + - CAST( - 74 AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5471
SELECT DISTINCT + col1 / + col0 * - ( + - col2 ) / - - CAST ( NULL AS INTEGER ) / 68 + - CAST ( - 74 AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5472
SELECT ALL COUNT( * ) * COUNT( * ) AS col1, - 58 AS col0 FROM tab0, tab2 AS cor0
----
81
-58

skipif mysql # not compatible
query II rowsort label-5472
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col1, - 58 AS col0 FROM tab0, tab2 AS cor0
----
81
-58

query I rowsort
SELECT DISTINCT + 20 AS col2 FROM tab2, tab2 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5474
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT - 33 AS col1, + col0 FROM tab1 AS cor0
----
-33
51
-33
85
-33
91

query I rowsort
SELECT + col0 * - + 34 AS col2 FROM tab0 AS cor0
----
-2958
-3298
-510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5477
SELECT + ( - COUNT( ALL - + CAST( - col1 AS SIGNED ) ) ) AS col2, - MIN( - col2 ) FROM tab0 AS cor0
----
-3
99

skipif mysql # not compatible
query II rowsort label-5477
SELECT + ( - COUNT ( ALL - + CAST ( - col1 AS INTEGER ) ) ) AS col2, - MIN ( - col2 ) FROM tab0 AS cor0
----
-3
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT MIN( + - col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5478
SELECT MIN ( + - col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT - COUNT( + col2 ) AS col0 FROM tab2 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5479
SELECT - COUNT ( + col2 ) AS col0 FROM tab2 WHERE NOT NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT DISTINCT - COUNT( DISTINCT col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5480
SELECT DISTINCT - COUNT ( DISTINCT col0 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5481
SELECT ( - col1 ) * CAST( NULL AS SIGNED ) + - col1 FROM tab2 WHERE NULL <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5481
SELECT ( - col1 ) * CAST ( NULL AS INTEGER ) + - col1 FROM tab2 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT 4 * col1 IN ( 64 * col0 )
----
15
87
97

query I rowsort
SELECT col1 * col2 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT - ( - 35 ) * - ( col2 * + 9 + 69 * + 88 ) AS col2 FROM tab1
----
-231105
-233940
-242760

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT + 85 * COUNT( * ) AS col0 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-5485
SELECT + 85 * COUNT ( * ) AS col0 FROM tab0
----
255

query I rowsort
SELECT ALL - col0 + + 32 FROM tab2
----
-14
-32
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ALL + 47 * COUNT( * ) FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL + 47 * COUNT ( * ) FROM tab1
----
141

query I rowsort
SELECT DISTINCT - ( 3 ) + col2 * col0 AS col0 FROM tab1 WHERE + col2 IS NOT NULL
----
4893
5012
6185

query I rowsort
SELECT ALL 74 * - col0 FROM tab0
----
-1110
-6438
-7178

query I rowsort
SELECT col1 + 57 AS col2 FROM tab2
----
108
124
134

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT MAX( 97 ) * - 88 + - COUNT( * ) FROM tab1
----
-8539

skipif mysql # not compatible
query I rowsort label-5491
SELECT MAX ( 97 ) * - 88 + - COUNT ( * ) FROM tab1
----
-8539

query III rowsort
SELECT * FROM tab2 WHERE NOT + 38 - col0 * col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col0 * 14 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5494
SELECT ALL COUNT( col0 ) DIV 68 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5494
SELECT ALL COUNT ( col0 ) / 68 AS col1 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 ) NOT IN ( 52 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5496
SELECT DISTINCT 78 DIV col0 AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5496
SELECT DISTINCT 78 / col0 AS col1 FROM tab2
----
1

query I rowsort
SELECT col1 * + 60 + - 81 AS col2 FROM tab1
----
219
2739
759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + ( 6 ) - - col0 col2 FROM tab0 AS cor0
----
-435
-485
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-5499
SELECT ALL col1 DIV + col2 + - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL col1 / + col2 + - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT COUNT( - 10 ) AS col0 FROM tab2 WHERE NOT ( 26 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5500
SELECT COUNT ( - 10 ) AS col0 FROM tab2 WHERE NOT ( 26 ) IS NULL
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 46 ) - + col0 IS NOT NULL
----

query I rowsort
SELECT + 46 * - 56 FROM tab2 cor0
----
-2576
-2576
-2576

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - ( + 73 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT ( - ( - MAX( col1 ) ) ) AS col0 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-5504
SELECT ( - ( - MAX ( col1 ) ) ) AS col0 FROM tab1 cor0
----
47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 22 + ( col1 + - ( + 49 + + col1 ) * + col1 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT 27 * col0 AS col2 FROM tab2 AS cor0
----
1242
1728
2025

query I rowsort
SELECT DISTINCT + 77 AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
77

query I rowsort
SELECT DISTINCT + 45 * col0 FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN ( col1 * col1 ) AND NULL
----
2070
2880
3375

query I rowsort
SELECT - col0 * 21 AS col2 FROM tab2 AS cor0
----
-1344
-1575
-966

query I rowsort
SELECT + 94 * - + col0 FROM tab2
----
-4324
-6016
-7050

query I rowsort
SELECT DISTINCT col2 + + 81 FROM tab1 WHERE + 78 < NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 IS NULL OR ( NULL ) <= ( 94 + + 95 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT - MAX( ALL - col0 ) * 14 AS col0 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-5513
SELECT - MAX ( ALL - col0 ) * 14 AS col0 FROM tab0
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL < ( 16 ) * - col1 OR NOT ( - 72 * ( - 5 * - col1 ) ) = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5514
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL < ( 16 ) * - col1 OR NOT ( - 72 * ( - 5 * - col1 ) ) = ( NULL )
----
0

query I rowsort
SELECT DISTINCT - AVG ( - col2 ) AS col1 FROM tab1 WHERE NOT NULL NOT IN ( col1 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5516
SELECT DISTINCT col1 DIV 72 * - 51 + col2 FROM tab2 AS cor0
----
-11
23
58

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT col1 / 72 * - 51 + col2 FROM tab2 AS cor0
----
-11
23
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT ALL + 71 * - COUNT( * ) * 72 + 87 AS col1 FROM tab1 cor0
----
-15249

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL + 71 * - COUNT ( * ) * 72 + 87 AS col1 FROM tab1 cor0
----
-15249

query I rowsort
SELECT 71 + + 95 FROM tab0 cor0 WHERE col2 NOT BETWEEN col0 AND NULL
----
166

query I rowsort
SELECT ALL col1 + - + col2 AS col2 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT ALL - COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5520
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT DISTINCT + 55 FROM tab2 WHERE NOT + col1 * + col1 - 29 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 78 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-5523
SELECT DISTINCT - 87 DIV 26 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5523
SELECT DISTINCT - 87 / 26 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT col2 * - ( - ( 27 ) / col2 ) AS col0 FROM tab2 WHERE NOT ( - 51 ) <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL > 23 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <= + + 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT - MIN( + + ( + + col2 ) ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5527
SELECT - MIN ( + + ( + + col2 ) ) AS col1 FROM tab1 AS cor0
----
-59

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 <> - col1 / - 88
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5529
SELECT * FROM tab1 AS cor0 WHERE 13 = ( + + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-5529
SELECT * FROM tab1 AS cor0 WHERE 13 = ( + + CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( 59 ) * + col1 IN ( + col1 + 93 )
----

query I rowsort
SELECT DISTINCT col2 + - col0 * col1 AS col1 FROM tab2 cor0
----
-2323
-4888
-4967

query I rowsort
SELECT ALL 28 + col1 FROM tab2 AS cor0
----
105
79
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5533
SELECT ALL CAST( - + 33 AS SIGNED ) * 28 + + col2 * + 52 FROM tab1 AS cor0
----
2144
2612
4068

skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL CAST ( - + 33 AS INTEGER ) * 28 + + col2 * + 52 FROM tab1 AS cor0
----
2144
2612
4068

query I rowsort
SELECT DISTINCT 0 + - col1 * ( + col0 ) FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5535
SELECT - ( + col2 ) FROM tab0 AS cor0 WHERE col2 BETWEEN 19 * - CAST( col2 AS SIGNED ) + - 88 AND col0
----
-10

skipif mysql # not compatible
query I rowsort label-5535
SELECT - ( + col2 ) FROM tab0 AS cor0 WHERE col2 BETWEEN 19 * - CAST ( col2 AS INTEGER ) + - 88 AND col0
----
-10

query I rowsort
SELECT + + 68 * + - 28 + + col2 - col2 AS col0 FROM tab2 AS cor0
----
-1904
-1904
-1904

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 50 * - + col1 + 53 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - ( - col1 ) - + col0 AS col2 FROM tab2
----
-8
13
5

query I rowsort
SELECT ALL - 8 + 30 FROM tab0
----
22
22
22

onlyif mysql # DIV for integer division: 
query I rowsort label-5540
SELECT ALL + col2 DIV + + col2 - + col2 - + - col0 + ( - 21 ) * col1 * 72 FROM tab2
----
-101286
-116399
-77088

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL + col2 / + + col2 - + col2 - + - col0 + ( - 21 ) * col1 * 72 FROM tab2
----
-101286
-116399
-77088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5541
SELECT + COUNT( * ) + + CAST( - COUNT( * ) AS SIGNED ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5541
SELECT + COUNT ( * ) + + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1
----
0

query I rowsort
SELECT 72 + + - col0 * + - ( + - col2 ) FROM tab2
----
-2488
-4278
-986

query I rowsort
SELECT - col2 + - 59 + - + 39 - col1 * + col1 AS col0 FROM tab2
----
-2722
-4645
-6067

query I rowsort
SELECT DISTINCT + col0 * - col0 - - col2 FROM tab0
----
-178
-7559
-9310

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 NOT IN ( + - 59 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5546
SELECT ALL + - col0 DIV + col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL + - col0 / + col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN + col0 AND - 0 * + ( - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5548
SELECT + 89 col2 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
89
89
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5548
SELECT + 89 col2 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
89
89
89

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < ( - 25 * col0 )
----

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( 32 + - col0 ) BETWEEN col2 - + 94 AND NULL
----
67

query I rowsort
SELECT ALL - 21 * - 54 FROM tab2 cor0
----
1134
1134
1134

onlyif mysql # aggregate syntax: 
query II rowsort label-5552
SELECT + 53 AS col2, MAX( - ( - col0 ) ) AS col0 FROM tab1 cor0 WHERE NOT - 29 IS NULL
----
53
91

skipif mysql # not compatible
query II rowsort label-5552
SELECT + 53 AS col2, MAX ( - ( - col0 ) ) AS col0 FROM tab1 cor0 WHERE NOT - 29 IS NULL
----
53
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5553
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5553
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT - 33 * MIN( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
-330

skipif mysql # not compatible
query I rowsort label-5554
SELECT - 33 * MIN ( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
-330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5555
SELECT - CAST( + + COUNT( * ) AS SIGNED ) col1 FROM tab0 AS cor0 WHERE NOT ( + CAST( col1 AS DECIMAL ) ) IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5555
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0 WHERE NOT ( + CAST ( col1 AS REAL ) ) IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT ALL MAX( + 64 ) FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL MAX ( + 64 ) FROM tab1
----
64

query II rowsort
SELECT DISTINCT 65 AS col0, - col1 * - - col1 AS col1 FROM tab1
----
65
-196
65
-2209
65
-25

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 92 * + - col1 + - col0 * - + col2 + 1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5559
SELECT - 47 DIV + col0 + col1 + 68 AS col0 FROM tab2
----
118
135
145

skipif mysql # not compatible
query I rowsort label-5559
SELECT - 47 / + col0 + col1 + 68 AS col0 FROM tab2
----
118
135
145

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5560
SELECT DISTINCT + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5560
SELECT DISTINCT + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 58 * - col0 AS col0 FROM tab2
----
-2668
-3712
-4350

query III rowsort
SELECT col0, + col1 AS col0, + col1 * - col0 AS col2 FROM tab2 AS cor0
----
9 values hashing to 741d28ae55735a82734ecc7e110e62c4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5563
SELECT - COUNT( * ) * + 12 FROM tab0 AS cor0 WHERE - ( - + col2 ) / + + col0 * - CAST( 34 AS SIGNED ) - 75 - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5563
SELECT - COUNT ( * ) * + 12 FROM tab0 AS cor0 WHERE - ( - + col2 ) / + + col0 * - CAST ( 34 AS INTEGER ) - 75 - col0 IS NULL
----
0

query I rowsort
SELECT ALL - col0 * + col1 + + col0 FROM tab2
----
-2300
-4864
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT ALL - COUNT( * ) * + + COUNT( ALL + 18 ) * + 53 - - COUNT( * ) * - + COUNT( * ) FROM tab2 cor0
----
-486

skipif mysql # not compatible
query I rowsort label-5565
SELECT ALL - COUNT ( * ) * + + COUNT ( ALL + 18 ) * + 53 - - COUNT ( * ) * - + COUNT ( * ) FROM tab2 cor0
----
-486

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 82 - - + col1 / 30 <= ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( + col2 + - - col1, + col2 * - 7 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT + MIN( ALL - 81 ) + - MIN( - - col1 ) + - 67 AS col0 FROM tab0 AS cor0
----
-149

skipif mysql # not compatible
query I rowsort label-5568
SELECT + MIN ( ALL - 81 ) + - MIN ( - - col1 ) + - 67 AS col0 FROM tab0 AS cor0
----
-149

onlyif mysql # DIV for integer division: 
query I rowsort label-5569
SELECT ALL - 77 DIV - + 44 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL - 77 / - + 44 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5570
SELECT ALL - 63 + + 38 AS col1, SUM( col0 ) * - - 43 FROM tab0 AS cor0
----
-25
8557

skipif mysql # not compatible
query II rowsort label-5570
SELECT ALL - 63 + + 38 AS col1, SUM ( col0 ) * - - 43 FROM tab0 AS cor0
----
-25
8557

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5571
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) IN ( - 73 )
----

skipif mysql # not compatible
query III rowsort label-5571
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IN ( - 73 )
----

query II rowsort
SELECT - 90 + - col1 AS col0, - col0 FROM tab2 AS cor0
----
-141
-46
-157
-75
-167
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT DISTINCT MIN( col0 ) + - 17 * - MIN( ALL 45 ) FROM tab0 AS cor0
----
780

skipif mysql # not compatible
query I rowsort label-5573
SELECT DISTINCT MIN ( col0 ) + - 17 * - MIN ( ALL 45 ) FROM tab0 AS cor0
----
780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5574
SELECT - col0 + col1 + + col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5574
SELECT - col0 + col1 + + col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 * + 30 * + 99 ) IN ( - 49 * col2 - - + 39 )
----

query I rowsort
SELECT ALL 45 * + 22 + col0 AS col2 FROM tab2 AS cor0
----
1036
1054
1065

query I rowsort
SELECT - 42 / - col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * + col1 - - + col1 FROM tab1 AS cor0
----
1358
300
3243

query II rowsort
SELECT DISTINCT col1 - - ( col0 ), + col2 AS col0 FROM tab0
----
108
10
96
47
98
99

query III rowsort
SELECT * FROM tab0 WHERE NULL <> - + col0
----

query I rowsort
SELECT DISTINCT + col0 - + + col2 FROM tab0
----
-2
-32
77

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5583
SELECT ALL col2 DIV col2 DIV 25 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL col2 / col2 / 25 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT ALL COUNT( ALL + + 39 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL COUNT ( ALL + + 39 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT - SUM( DISTINCT 77 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-77

skipif mysql # not compatible
query I rowsort label-5585
SELECT - SUM ( DISTINCT 77 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-5586
SELECT col1 DIV - 14 col1 FROM tab0 AS cor0
----
-1
-5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5586
SELECT col1 / - 14 col1 FROM tab0 AS cor0
----
-1
-5
0

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( + col0 + 64 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col0 * col0, col2 * - + col2 AS col0 FROM tab1
----
2601
-9216
7225
-3481
8281
-4624

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NOT + 40 IS NOT NULL
----

query I rowsort
SELECT ALL 7 * - + col1 * col1 AS col1 FROM tab1 AS cor0
----
-1372
-15463
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT + + COUNT( + - ( + ( + 73 ) ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5591
SELECT + + COUNT ( + - ( + ( + 73 ) ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5592
SELECT ALL - - col2 col0, ( + CAST( ( col1 ) AS SIGNED ) ) col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + col1 * + col2 + - col0 + + col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5592
SELECT ALL - - col2 col0, ( + CAST ( ( col1 ) AS INTEGER ) ) col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + col1 * + col2 + - col0 + + col1
----

query II rowsort
SELECT + + 99, col1 * + 30 FROM tab2 WHERE NOT NULL BETWEEN + col1 / + 45 AND + 50
----

query I rowsort
SELECT - col2 FROM tab1 WHERE - col0 NOT BETWEEN 12 AND - col1
----
-59
-68
-96

query II rowsort
SELECT 58 AS col2, + 30 FROM tab0
----
58
30
58
30
58
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT ALL + ( + MAX( col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5596
SELECT ALL + ( + MAX ( col0 ) ) FROM tab0
----
97

query III rowsort
SELECT * FROM tab2 WHERE col1 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 61 + 57 + col1 + 19 AS col2 FROM tab0 AS cor0
----
16
36
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5599
SELECT DISTINCT + col1 + - + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT + col1 + - + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - - col1 col2 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT DISTINCT - MIN( ALL - 15 ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 55 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5601
SELECT DISTINCT - MIN ( ALL - 15 ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 55 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col2 NOT BETWEEN - + ( + col0 ) AND + 57
----
15
81
47
97
1
99

query II rowsort
SELECT ALL + 51, col1 FROM tab0 AS cor0
----
51
1
51
21
51
81

query I rowsort
SELECT DISTINCT - ( + col0 ) + - col2 AS col0 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT DISTINCT - col0 + - - 36 AS col2 FROM tab1 cor0
----
-15
-49
-55

query I rowsort
SELECT - col0 - 44 * col2 FROM tab0 AS cor0
----
-2083
-4453
-527

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5607
SELECT DISTINCT + - CAST( - col1 AS SIGNED ) + 26 AS col1 FROM tab0 AS cor0
----
107
27
47

skipif mysql # not compatible
query I rowsort label-5607
SELECT DISTINCT + - CAST ( - col1 AS INTEGER ) + 26 AS col1 FROM tab0 AS cor0
----
107
27
47

query I rowsort
SELECT col1 + - - ( col2 ) FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT DISTINCT + col2 + col1 + 37 AS col1 FROM tab2
----
111
154
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5610
SELECT + COUNT( * ) * 71 DIV - + 98 + COUNT( * ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5610
SELECT + COUNT ( * ) * 71 / - + 98 + COUNT ( * ) AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5611
SELECT COUNT( * ) DIV + SUM( + col0 ) + 37 AS col0 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-5611
SELECT COUNT ( * ) / + SUM ( + col0 ) + 37 AS col0 FROM tab1
----
37

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 >= 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT COUNT( * ) + + + 5 AS col0 FROM tab0, tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-5613
SELECT COUNT ( * ) + + + 5 AS col0 FROM tab0, tab0 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT + COUNT( * ) * + + MAX( ALL + col1 ) AS col2 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-5614
SELECT + COUNT ( * ) * + + MAX ( ALL + col1 ) AS col2 FROM tab1
----
141

query I rowsort
SELECT ALL - col2 * + 69 FROM tab0
----
-3243
-6831
-690

query I rowsort
SELECT DISTINCT ( - col1 ) * + + col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT ALL ( 31 ) AS col1 FROM tab2
----
31
31
31

query I rowsort
SELECT ALL 75 * - col2 AS col0 FROM tab0
----
-3525
-7425
-750

query I rowsort
SELECT + 92 FROM tab0 WHERE NOT 61 IS NULL
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT ( + - COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT col2 + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5620
SELECT ( + - COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT col2 + col2 IS NOT NULL
----
0

query I rowsort
SELECT + 29 * - 50 AS col1 FROM tab0 cor0
----
-1450
-1450
-1450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5622
SELECT + CAST( + + 8 AS SIGNED ) AS col0 FROM tab0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-5622
SELECT + CAST ( + + 8 AS INTEGER ) AS col0 FROM tab0
----
8
8
8

query I rowsort
SELECT ALL - + 85 * + - col2 + + - col2 + - - 33 * + col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
5121
7263
8526

query II rowsort
SELECT ALL + 35, col2 AS col1 FROM tab0 AS cor0 WHERE + 99 IS NOT NULL
----
35
10
35
47
35
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col0 + - col2
----

query I rowsort
SELECT DISTINCT - 73 + + 96 AS col1 FROM tab0 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT 30 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-5627
SELECT 30 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT DI